Data Mining http www um ac irkahani Motivation

  • Slides: 39
Download presentation
Data Mining ﺩﻛﺘﺮﻣﺤﺴﻦ ﻛﺎﻫﺎﻧﻲ http: //www. um. ac. ir/~kahani/

Data Mining ﺩﻛﺘﺮﻣﺤﺴﻦ ﻛﺎﻫﺎﻧﻲ http: //www. um. ac. ir/~kahani/

Motivation: “Necessity is the Mother of Invention” § Data explosion problem: § Automated data

Motivation: “Necessity is the Mother of Invention” § Data explosion problem: § Automated data collection tools and mature database technology lead to tremendous amounts of data stored in databases, data warehouses and other information repositories § We are drowning in data, but starving for knowledge! ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Related Fields Machine Learning Visualization Data Mining and Knowledge Discovery Statistics Databases ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ

Related Fields Machine Learning Visualization Data Mining and Knowledge Discovery Statistics Databases ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Knowledge Discovery Process Integration Da Tr an s & DATA Ware house Se lec

Knowledge Discovery Process Integration Da Tr an s & DATA Ware house Se lec Cl tio ea n nin g for ma tio n Mi nin Knowledge g __ __ __ Transformed Data Target Data Knowledge Patterns and Rules Understanding Raw Data ta Interpretation & Evaluation ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining and Business Intelligence Increasing potential to support business decisions End User Making

Data Mining and Business Intelligence Increasing potential to support business decisions End User Making Decisions Business Analyst Data Presentation Visualization Techniques Data Mining Information Discovery Data Analyst Data Exploration Statistical Analysis, Querying and Reporting Data Warehouses / Data Marts OLAP, MDA Data Sources Paper, Files, Information Providers, Database Systems, OLTP DBA ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Definition of Data Mining “…The non-trivial process of identifying valid, novel, potentially useful, and

Definition of Data Mining “…The non-trivial process of identifying valid, novel, potentially useful, and ultimately understandable patterns in data…” Fayyad, Piatetsky-Shapiro, Smyth [1996] ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Need for Data Mining § Data accumulate and double every 9 months § There

Need for Data Mining § Data accumulate and double every 9 months § There is a big gap from stored data to knowledge; and the transition won’t occur automatically. § Manual data analysis is not new but a bottleneck § Fast developing Computer Science and Engineering generates new demands § Seeking knowledge from massive data ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

When is DM useful § Data rich world § Large data (dimensionality and size)

When is DM useful § Data rich world § Large data (dimensionality and size) § Image data (size) § Gene chip data (dimensionality) § Little knowledge about data (exploratory data analysis) § What if we have some knowledge? ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Challenges § Increasing data dimensionality and data size § Various data forms § New

Challenges § Increasing data dimensionality and data size § Various data forms § New data types § Streaming data, multimedia data § Efficient search and access to data/knowledge § Intelligent update and integration § Privacy Concerns ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Results of Data Mining Include: § Forecasting what may happen in the future §

Results of Data Mining Include: § Forecasting what may happen in the future § Classifying people or things into groups by recognizing patterns § Clustering people or things into groups based on their attributes § Associating what events are likely to occur together § Sequencing what events are likely to lead to later events ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining versus OLAP §OLAP - On-line Analytical Processing § Provides you with a

Data Mining versus OLAP §OLAP - On-line Analytical Processing § Provides you with a very good view of what is happening, but can not predict what will happen in the future or why it is happening ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Versus Statistical Analysis §Data Mining § Originally developed to act as expert

Data Mining Versus Statistical Analysis §Data Mining § Originally developed to act as expert systems to solve problems § Less interested in the mechanics of the technique § If it makes sense then let’s use it § Does not require assumptions to be made about data § Can find patterns in very large amounts of data § Requires understanding of data and business problem §Data Analysis § Tests for statistical correctness of models § Are statistical assumptions of models correct? § Eg Is the R-Square good? § Hypothesis testing § Is the relationship significant? § Use a t-test to validate significance § Tends to rely on sampling § Techniques are not optimised for large amounts of data § Requires strong statistical skills ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Taxonomy Predictive Method - …predict the value of a particular attribute… Descriptive

Data Mining Taxonomy Predictive Method - …predict the value of a particular attribute… Descriptive Method - …foundation of human-interpretable patterns that describe the data… ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Tasks. . . § § § Classification [Predictive] Clustering [Descriptive] Association Rule

Data Mining Tasks. . . § § § Classification [Predictive] Clustering [Descriptive] Association Rule Discovery [Descriptive] Sequential Pattern Discovery [Descriptive] Deviation Detection [Predictive] ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Tasks: Classification Learn a method for predicting the instance class from pre-labeled

Data Mining Tasks: Classification Learn a method for predicting the instance class from pre-labeled (classified) instances Many approaches: Statistics, Decision Trees, Neural Networks, . . . ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Classification: Linear Regression § Linear Regression w 0 + w 1 x + w

Classification: Linear Regression § Linear Regression w 0 + w 1 x + w 2 y >= 0 § Regression computes wi from data to minimize squared error to ‘fit’ the data § Not flexible enough ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Classification: Decision Trees if X > 5 then blue else if Y > 3

Classification: Decision Trees if X > 5 then blue else if Y > 3 then blue else if X > 2 then green else blue Y 3 2 5 X ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Example Decision Tree l l a ric go c e at a ric in

Example Decision Tree l l a ric go c e at a ric in c t on u o u s ss Splitting Attributes a cl Refund Yes No NO Mar. St Single, Divorced Tax. Inc < 80 K NO Married NO > 80 K YES The splitting attribute at a node is determined based on the Gini index. ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Classification: Neural Networks - efficiently model large and complex problems; - may be used

Classification: Neural Networks - efficiently model large and complex problems; - may be used in classification problems or for regressions; - Starts with input layer => hidden layer => output layer 1 3 4 6 2 Inputs 5 Hidden Layer Output ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Neural Networks (cont. ) - can be easily implemented to run on massively parallel

Neural Networks (cont. ) - can be easily implemented to run on massively parallel computers; - can not be easily interpret; - require an extensive amount of training time; - require a lot of data preparation (involve very careful data cleansing, selection, preparation, and preprocessing); - require sufficiently large data set and high signal-to noise ratio. ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Classification Example al ric c go e at t ca al o eg ric

Classification Example al ric c go e at t ca al o eg ric co in nt s u o u ss a cl Test Set Training Set Learn Classifier Model ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Classification Application § Direct Marketing § Fraud Detection § Customer Attrition/Churn § Sky Survey

Classification Application § Direct Marketing § Fraud Detection § Customer Attrition/Churn § Sky Survey Cataloging ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Tasks: Clustering § Goal is to identify categories § Natural grouping of

Data Mining Tasks: Clustering § Goal is to identify categories § Natural grouping of customers by processing all the available data about them. § Other applications § market segmentation, discovering affinity groups, and defect analysis ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Kohonen Network Description § unsupervised § seeks to describe dataset in terms of natural

Kohonen Network Description § unsupervised § seeks to describe dataset in terms of natural clusters of cases ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Tasks: Association Rule Discovery § Given a set of records each of

Data Mining Tasks: Association Rule Discovery § Given a set of records each of which contain some number of items from a given collection; § Produce dependency rules which will predict occurrence of an item based on occurrences of other items. Rules Discovered: {Milk} --> {Coke} {Diaper, Milk} --> {Beer} ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Association Rule Discovery Application § Marketing and Sales Promotion § Supermarket Shelf Management §

Association Rule Discovery Application § Marketing and Sales Promotion § Supermarket Shelf Management § Inventory Management ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Deviation Detection & Pattern Discovery Deviation Detection: …discovering most significant changes in data from

Deviation Detection & Pattern Discovery Deviation Detection: …discovering most significant changes in data from previously measured or normative values… V. Kumar, M. Joshi, Tutorial on High Performance Data Mining. Sequential Pattern Discovery: …process of looking for patterns and rules that predict strong sequential dependencies among different events… V. Kumar, M. Joshi, Tutorial on High Performance Data Mining. ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Sequential Patterns § Identify frequently occurring sequences from given records § 40 percent of

Sequential Patterns § Identify frequently occurring sequences from given records § 40 percent of female customers buy a gray skirt six months after buying a red jacket ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Methodology: SAS § Sample § Extract a portion of the dataset for

Data Mining Methodology: SAS § Sample § Extract a portion of the dataset for data mining § Explore § Modify § create, select and transform variables with the intention of building a model § Model § Specify a relationship of variables that reliably predicts a desired goal § Assess § Evaluate the practical value of the findings and the model resulting from the data mining effort ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Data Mining Methodology: CRISP-DM § § § Data understanding Data preparation Modeling Evaluation Deployment

Data Mining Methodology: CRISP-DM § § § Data understanding Data preparation Modeling Evaluation Deployment ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Phases and Tasks Business Understanding Determine Business Objectives Background Business Objectives Business Success Criteria

Phases and Tasks Business Understanding Determine Business Objectives Background Business Objectives Business Success Criteria Situation Assessment Inventory of Resources Requirements, Assumptions, and Constraints Risks and Contingencies Terminology Costs and Benefits Determine Data Mining Goals Data Mining Success Criteria Data Understanding Collect Initial Data Collection Report Data Preparation Data Set Description Select Data Description Report Rationale for Inclusion / Exclusion Explore Data Clean Data Describe Data Exploration Report Verify Data Quality Report Data Cleaning Report Construct Data Derived Attributes Generated Records Integrate Data Merged Data Format Data Modeling Select Modeling Technique Modeling Assumptions Generate Test Design Build Model Parameter Settings Model Description Assess Model Assessment Revised Parameter Settings Evaluation Evaluate Results Assessment of Data Mining Results w. r. t. Business Success Criteria Approved Models Review Process Review of Process Determine Next Steps List of Possible Actions Decision Deployment Plan Monitoring and Maintenance Plan Produce Final Report Final Presentation Review Project Experience Documentation Reformatted Data Produce Project Plan Initial Asessment of Tools and Techniques ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Major Application Areas for Data Mining Solutions §Fraud/Non-Compliance Anomaly detection § Isolate the factors

Major Application Areas for Data Mining Solutions §Fraud/Non-Compliance Anomaly detection § Isolate the factors that lead to fraud, waste and abuse § Target auditing and investigative efforts more effectively §Credit/Risk Scoring §Intrusion detection §Parts failure prediction §Recruiting/Attracting customers §Maximizing profitability (cross selling, identifying profitable customers) §Service Delivery and Customer Retention § Build profiles of customers likely to use which services §Web Mining §Health Care ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Controversial Issues § Data mining (or simple analysis) on people may come with a

Controversial Issues § Data mining (or simple analysis) on people may come with a profile that would raise controversial issues of § Discrimination § Privacy § Security § Examples: § Should males between 18 and 35 from countries that produced terrorists be singled out for search before flight? § Can people be denied mortgage based on age, sex, race? § Women live longer. Should they pay less for life insurance? 34

Data Mining and Discrimination § Can discrimination be based on features like sex, age,

Data Mining and Discrimination § Can discrimination be based on features like sex, age, national origin? § In some areas (e. g. mortgages, employment), some features cannot be used for decision making § In other areas, these features are needed to assess the risk factors § E. g. people of African descent are more susceptible to sickle cell anemia 35

Data Mining and Privacy § Can information collected for one purpose be used for

Data Mining and Privacy § Can information collected for one purpose be used for mining data for another purpose § In Europe, generally no, without explicit consent § In US, generally yes § Companies routinely collect information about customers and use it for marketing, etc. § People may be willing to give up some of their privacy in exchange for some benefits § See Data Mining And Privacy Symposium, www. kdnuggets. com/gpspubs/ieee-expert-9504 -priv. html 36

Data Mining and Privacy § Data Mining looks for patterns, not people! § Technical

Data Mining and Privacy § Data Mining looks for patterns, not people! § Technical solutions can limit privacy invasion § Replacing sensitive personal data with anon. ID § Give randomized outputs § Multi-party computation – distributed data §… ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

The Hype Curve for Data Mining and Knowledge Discovery Over-inflated expectations Growing acceptance and

The Hype Curve for Data Mining and Knowledge Discovery Over-inflated expectations Growing acceptance and mainstreaming rising expectations Disappointment ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ

Final Remarks § Data Mining can be utilized for any field that needs to

Final Remarks § Data Mining can be utilized for any field that needs to find patterns or relationships in their data. ﺩﻛﺘﺮ ﻛﺎﻫﺎﻧﻲ - ﺳﻴﺴﺘﻤﻬﺎﻱ ﺧﺒﺮﻩ ﻭ ﻣﻬﻨﺪﺳﻲ ﺩﺍﻧﺶ