0% found this document useful (0 votes)
11 views16 pages

Data Mining Rev

Data mining is the process of extracting valuable knowledge and patterns from large datasets, utilizing disciplines such as AI, machine learning, and statistics. It encompasses various functionalities, including classification, clustering, and anomaly detection, and employs techniques like the FP-Growth algorithm for efficient pattern mining. The data mining process is iterative and involves problem definition, data acquisition, preprocessing, pattern discovery, evaluation, and knowledge representation.

Uploaded by

meona0328
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views16 pages

Data Mining Rev

Data mining is the process of extracting valuable knowledge and patterns from large datasets, utilizing disciplines such as AI, machine learning, and statistics. It encompasses various functionalities, including classification, clustering, and anomaly detection, and employs techniques like the FP-Growth algorithm for efficient pattern mining. The data mining process is iterative and involves problem definition, data acquisition, preprocessing, pattern discovery, evaluation, and knowledge representation.

Uploaded by

meona0328
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Mining is the computational process of extracting useful knowledge and meaningful

patterns from large datasets. The emphasis is on mining knowledge from data, not
merely mining the data itself.

Aspect Description

Core Disciplines Artificial Intelligence (AI), Machine


Learning, Statistics, Database Systems

Primary Goal Convert raw data into an understandable


form that directly supports decision-
making

Key Outcomes • Automatic discovery of patterns


• Prediction of likely outcomes
• Creation of actionable information
Focus Areas Working with large datasets/databases;
identifying key properties (volume,
variety, velocity, veracity)

THE SCOPE OF DATA MINING

The term "data mining" is analogous to extracting ore from a mine—both require sifting through
massive material to locate valuable portions.

1.1.1 Capabilities Enabled by Sufficient-Size, High-Quality Databases

Capability What It Provides

Automated prediction of trends & Rapid predictive insight without manual


behaviors analysis; examples include targeted
marketing, bankruptcy/default
forecasting, population segmentation

Automated discovery of previously One-step sweeping of databases to reveal


unknown patterns hidden relationships; examples include
market-basket analysis, fraud detection,
anomaly spotting
1.1.2 Pattern Types Frequently Discussed

Pattern Category Typical Example

Frequent Itemsets I tems that co-occur often (e.g., milk and


bread)

Sequential Patterns I tems occurring in specific chronological order


(e.g., PC → camera → memory card)

Structured Patterns Patterns in non-tabular data such as


graphs, trees, networks

Descriptive Mining Describes existing data characteristics

Predictive Mining Uses existing data to forecast future


outcomes (inference)

1.2 Data Mining Functionalities & Task Classes


1.2.1 High-Level Functionalities

Data mining tasks split into two broad categories:

Category Description

Mining Frequent Patterns, Associations & Finds items appearing together


Correlations repeatedly; discovers relationships (e.g.,
Market Basket Analysis)

Mining Anomalies (Outlier Detection) Identifies unusual/abnormal patterns—


useful for fraud detection, error spotting,
rare-event discovery

Clustering Groups similar objects without


predefined labels (unsupervised learning)

Classification Assigns data to pre-defined categories


(supervised learning)—e.g., spam vs.
legitimate email

Summarization Provides compact representation of data


(visualizations, reports)
Regression Fits mathematical function to model data with
minimal error; predicts continuous
values

1.2.2 Six Common Classes of Data-Mining Tasks


1. Regression – Predicts numeric outcomes
2. Summarization – Generates concise data overviews
3. Classification – Labels data into known classes
4. Clustering – Discovers natural groupings
5. Association Rule Learning – Finds co-occurrence relationships
6. Anomaly Detection – Highlights rare or suspicious records

1.3 Data Mining Architecture


The architecture ties together user interaction, data preparation, mining engines, and
knowledge storage.

The diagram shows:

Data Sources – databases, data warehouses, WWW, other repositories


Data Pre-processing – cleaning, integration, selection
Data Mining Engine – applies algorithms (AI, ML, statistics)
Pattern Evaluation – assesses discovered patterns for usefulness
Knowledge Base – stores validated results for later retrieval
User Interface – allows analysts to pose queries, view results, and steer the
process

Key Insight: The architecture emphasizes a pipeline: raw data → preprocessing →


mining → evaluation → knowledge storage → user consumption. Each stage can be
swapped or refined depending on the application domain.
1.4 Classification of Data-Mining Systems
Data-mining systems can be differentiated along several axes: data model, knowledge type,
abstraction level, employed techniques, and target application.

The figure highlights the interdisciplinary nature of data mining, linking it to:

Database Systems – storage, query processing


Statistics – inference, hypothesis testing
Machine Learning – predictive modeling, pattern discovery
Information Science – organization and retrieval of information
Visualization – graphical representation of patterns
Other Disciplines – e.g., domain-specific fields (finance, bio-informatics)

1.4.1 Classification Criteria

Criterion What It Captures

Knowledge Type Classification, prediction, clustering,


association, outlier analysis

Abstraction Level Primitive-level (detailed, raw patterns) vs.


high-level (generalized, abstracted
insights)

Technique Used Machine-learning algorithms, statistical


models, database-centric methods, visual
analytics

Application Domain Finance, telecommunications, bio-


informatics, web mining, etc.
Data Model / Type Relational tables, data-warehouse
schemas, text, multimedia, web data –
each demands specific mining techniques

1.5 The Data-Mining Process (CRISP-DM-style Overview)


1. State the Problem – Clearly define the business/analytical question
2. Collect the Data – Gather raw data from relevant sources (databases, logs,
external feeds)
3. Formulate the Hypothesis – Propose a plausible explanation or expected
relationship
4. Design Experiment / Choose Approach
Designed Experiment – Controlled, planned data collection (e.g., A/B
testing)
Observational Approach – Use existing, passively recorded data; no
control over how it was originally gathered
5. Data Pre-processing – Clean, integrate, select, and possibly transform data (as
shown in the architecture)
6. Apply Mining Algorithms – Run classification, clustering, association,
regression, etc., depending on the problem
7. Pattern Evaluation – Validate discovered models/patterns against criteria
(accuracy, novelty, usefulness)
8. Knowledge Representation – Store validated patterns in a knowledge base;
produce reports, visualizations, or actionable recommendations

Note: The presentation emphasizes that the process is iterative – insights may lead back
to redefining the problem or acquiring additional data.

1.6 Key Take-aways & Unique Perspectives


Mining Knowledge, Not Just Data – The authors stress that the true value lies in
extracting knowledge that can be acted upon
Interdisciplinary Foundations – By mapping data mining to AI, ML, statistics,
and database systems, the slides underline the necessity of cross-domain
expertise
Automation of Traditionally Manual Analyses – Predictive trends and
unknown pattern discovery are positioned as automated replacements for
labor-intensive statistical analysis
Pattern Taxonomy – Clear categorisation of pattern types (frequent itemsets,
sequential, structured) helps learners map algorithms to real-world scenarios
System Classification Matrix – The multi-criteria view (knowledge type,
abstraction, technique, domain, data model) offers a practical lens for selecting or
designing a data-mining platform
Process Flow Emphasis – The architecture diagram coupled with the step-by-
step process gives a concise, repeatable workflow for practitioners

Section 2: 🌳 The FP-Growth Algorithm – Compact TtreeBased Pattern Mining

2.1 Overview of the FP-Growth Method


The FP-Growth (Frequent-Pattern Growth) algorithm presents a revolutionary alternative to
classic Apriori-type methods that require repeated scans of the transaction database. I ts
core advantage lies in eliminating multiple full database passes by first compressing data
into a compact FP-tree structure.
Concept Explanation

Frequent items I tems whose occurrence count meets or


exceeds a user-defined minimum support
threshold

List L A sorted list of frequent items ordered


by descending popularity (support)

Single final scan After building L, the database is scanned


once more to construct the FP-tree

FP-tree A rooted, directed tree where each node


stores an item label and a counter
indicating how many transactions share that
prefix

Common prefix sharing Transactions beginning with the same


sequence reuse the same branch,
incrementing node counters instead of
creating duplicates

Header Table An auxiliary index holding pointers to


first occurrences of each frequent item,
plus linked lists (node-links) connecting all
nodes containing that item—providing
O(1) access

Resulting workflow The massive repeated-scan problem


becomes a fast tree-traversal problem
2.2 Step-by-Step Procedure
2.2.1 Popularity Scan

Popularity Scan: The algorithm performs a single pass through the transaction
database to count item frequencies, discard infrequent items, and sort surviving items by
descending support to produce List L.

This list L becomes the foundation for subsequent tree-building.

2.2.2 FP-Tree Construction (Implied)


After the popularity scan:

1. Initialize a null root node


2. Read each transaction once more, re-ordering items according to List L
3. Insert ordered items into the tree, sharing prefixes when possible and
incrementing node counts
4. Update the Header Table with pointers for rapid access

2.2.3 Mining Frequent Patterns (Implied)

With FP-tree and Header Table ready:

1. Extract conditional pattern bases for each frequent item (using header links)
2. Build conditional FP-trees recursively
3. Generate frequent itemsets by concatenating suffix items with patterns
discovered in conditional trees

2.3 Core Contributions & Unique Perspectives

Contribution Explanation

Reduction of I/O Overhead Compressing database into single tree


dramatically reduces disk I/O—major
bottleneck in earlier algorithms

Prefix Sharing Mechanism Multiple transactions share single nodes with


common prefixes—key space-saving

technique
Header Table as Shortcut Index O(1) access to every item instance;
transforms pattern discovery into tree-
traversal problem rather than costly
database scan

2.4 Terminology Glossary

Term Definition

FP-Growth Frequent-pattern mining algorithm


building compact tree to avoid repeated
database scans

FP-tree Prefix-tree storing compressed transaction


data; nodes hold item labels and counts

Header Table Dictionary-like structure linking frequent


items to all tree occurrences

Popularity Scan Initial database pass determining item


frequencies and creating sorted List L

Minimum Support Threshold (count or percentage) for


item/itemset to be considered frequent

Conditional Pattern Base Collection of prefix paths leading to


particular item; used to build conditional
FP-trees

2.5 Relationships & Patterns Highlighted

Relationship Explanation

Frequency ↔ Ordering I tem popularity determines List L order,


which dictates FP-tree branching
pattern; more frequent items appear
closer to root, increasing prefix sharing

Header Table ↔ Traversal Efficiency Creates bijection between frequent items


and linked lists of tree nodes, enabling
O(1) access for mining
Compression ↔ Performance Merging common prefixes compresses
transaction set, leading to lower memory
usage and faster pattern extraction

Section 3: 🤖 Machine Learning Techniques for DataMining

3.1 Neural Networks

3.1.1 Inspiration & Purpose

Neural Networks are computational models inspired by the human brain; systems that
learn from data and are used for classification and prediction tasks.

Component Function

Input Layer Receives raw data attributes

Hidden Layer(s) Performs internal processing and feature


transformation

Output Layer Emits final result (class label or predicted


value)
Illustrative Example: Predict whether a student will PASS or FAIL based on input features
(attendance, grades, etc.).

The diagram visualizes the three-layer structure (input-hidden-output) and full connections
between adjacent layers, helping understand how information flows through the network.

3.2 Back-Propagation

Back-Propagation is the learning algorithm for feed-forward neural networks that compares
the predicted output with the actual (target) output, propagates the error backwards, and
adjusts connection weights to reduce future error.

Step-by-Step Process

Step Action

1 Input data entered into network

2 Forward pass produces prediction

3 Error calculation: Error = Predicted –


Actual

4 Backward pass distributes error to each


weight
5 Weight update using learning rate: Δw = –
η · ∂Error/∂w

Key Idea: The system learns from its mistakes, iteratively improving accuracy.

This schematic clarifies the multi-layer layout that back-propagation traverses, illustrating where
error signals travel.

3.3 k-Nearest-Neighbor (k-NN)

k-NN is a non-parametric, instance-based classification (and regression) method that


classifies a test tuple by analogy to its k nearest training instances.

Characteristic Description

Representation Each data point is an n-dimensional vector of


attributes

Nature Lazy learning—no explicit model training;


stores all training instances

Procedure

| Step | Action | | ------- |


🎯Putting it All Together

Unified Data‑Mining Workflow

Data mining is the computational process of extracting useful knowledge and meaningful
patterns from large datasets.

1. Problem definition – articulate the business or research question.


2. Data acquisition & integration – pull raw records from transactional systems,
warehouses, or external feeds; resolve schema conflicts and merge into a
unified view.
3. Pre‑processing – clean noisy or missing values, normalize attributes, and apply
reduction techniques (e.g., dimensionality reduction, aggregation).
4. Pattern discovery – select an appropriate algorithmic family (see below).
5. Pattern evaluation – measure support, confidence, lift, or error metrics; assess
interestingness and relevance.
6. Knowledge representation – store validated rules or models in a knowledge
base; visualise results for stakeholders.

The pipeline is iterative: insights from step 5 often trigger refinements in steps 2–4.

Algorithmic Families & Their Roles

Family Typical Tasks Representative Strengths / When


Methods to Use

Frequent‑pattern Find co‑occurring Apriori, FP‑Growth Ideal for


mining items, generate market‑basket
association rules analysis; FP‑Growth
reduces I/O by
building a compact
FP‑tree.

Supervised Predict categorical Neural networks Use when labeled


learning or numeric (back‑propagation), data exist; neural
outcomes k‑Nearest‑Neighbor , nets excel with
Regression complex, non‑linear
relationships, while
k‑NN offers
simplicity and
interpretability.
Unsupervised Reveal hidden Clustering, Helpful for
learning groupings without Association rule segmenting
labels mining (as a customers or
discovery tool) detecting
anomalies.

Ensemble methods Boost predictive Bagging, Boosting Combine weak


performance and learners (e.g.,
stability decision trees) to
reduce variance
(bagging) or bias
(boosting).

Key algorithmic insights

FP‑Growth builds a compact prefix‑tree (FP‑tree) after a single popularity scan, then
mines frequent patterns by traversing the tree via a header table, turning repeated
database scans into fast tree operations.

Back‑propagation adjusts network weights by propagating the error from output back
through hidden layers, iteratively minimizing prediction error.

k‑NN classifies a query point by majority vote (or averages for regression) among its k
nearest neighbours, relying on a distance metric (commonly Euclidean) after normalising
features.

Bagging creates multiple bootstrap samples, trains independent models, and aggregates
predictions to lower variance; Boosting trains models sequentially, re‑weighting
mis‑classified instances to focus learning on hard cases.

Pre‑processing & Quality Assurance

Aspect Why It Matters Typical Techniques

Noise & missing data Poor data quality degrades Imputation, outlier
model accuracy and rule detection, smoothing.
interestingness.

Normalization Prevents attributes with large Min‑max scaling, z‑score


ranges from dominating standardisation.
distance
calculations in k‑NN or
gradient updates in neural
nets.

Dimensionality reduction Cuts computational cost PCA, SVD, feature selection


and mitigates the curse of (filter/wrapper/embedded).
dimensionality.

Aggregation / Enables efficient Binning, concept


discretisation frequent‑pattern mining hierarchies, data‑cube
and prepares numeric summarisation.
fields for algorithms
expecting categorical input.

These steps directly feed the pattern discovery stage; for example, a well‑scaled dataset
improves k‑NN distance reliability, while an FP‑tree benefits from prior removal of
infrequent items.

Evaluation & Interpretation


Classification accuracy and regression error (MSE, MAE) gauge predictive
performance on unseen data.
Association‑rule metrics (support, confidence, lift, conviction) assess rule
strength and usefulness.
Interestingness combines statistical significance with domain relevance; rules that
are both frequent and have high lift are prime candidates for action.
Visualization (heatmaps, network graphs, decision‑tree plots) and high‑level
language summaries translate technical results into business‑readable insights,
closing the loop between data scientists and decision makers.

Interpretability is especially crucial for neural networks (often seen as black boxes) and
ensemble models; techniques such as feature importance, partial dependence plots, or rule
extraction help expose the reasoning behind predictions.

Practical Take‑aways

Choose the algorithm that matches the task and data characteristics:
Use FP‑Growth for large transactional datasets where multiple scans are
costly.
Deploy neural nets when relationships are highly non‑linear and
abundant labeled data exist.
Apply k‑NN for quick prototypes or when the dataset is modest and
interpretability matters.
Leverage bagging to stabilise noisy models, and boosting to
squeeze out extra accuracy from weak learners.
Invest in robust preprocessing (cleaning, integration, reduction,

transformation) – it pays dividends across all downstream mining activities.

Iterate interactively: early pattern evaluation guides refinements in


preprocessing, algorithm parameters (e.g., k in k‑NN, minimum support in
Apriori/FP‑Growth), and even the original business question.

Present results in digestible formats – visual dashboards, concise rule

statements, or narrative summaries – to ensure that discovered knowledge


drives real‑world decisions.

You might also like