Digital Humanities Data Mining with Weka

Similar documents
Data Mining: Introduction. Lecture Notes for Chapter 1. Slides by Tan, Steinbach, Kumar adapted by Michael Hahsler

Introduction of Information Visualization and Visual Analytics. Chapter 4. Data Mining

Foundations of Artificial Intelligence. Introduction to Data Mining

CSE4334/5334 Data Mining Lecturer 2: Introduction to Data Mining. Chengkai Li University of Texas at Arlington Spring 2016

Data Mining: Introduction

Introduction to Artificial Intelligence G51IAI. An Introduction to Data Mining

Data Mining. Yeow Wei Choong Anne Laurent

Quick Introduction of Data Mining Techniques

Data mining for prediction

Introduction to Data Mining

Introduction to Data Mining

DATA MINING - 1DL105, 1Dl111

Data Mining and Machine Learning in Bioinformatics

Marta Zorrilla Universidad de Cantabria

What is Data Mining? Data Mining (Knowledge discovery in database) Data mining: Basic steps. Mining tasks. Classification: YES, NO

Information Management course

Data Mining on Social Networks. Dionysios Sotiropoulos Ph.D.

Example application (1) Telecommunication. Lecture 1: Data Mining Overview and Process. Example application (2) Health

Mining Big Data. Pang-Ning Tan. Associate Professor Dept of Computer Science & Engineering Michigan State University

Clustering. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

Big Data. Introducción. Santiago González

Introduction to Pattern Recognition

Business Intelligence and Data Mining

Data Mining and Exploration. Data Mining and Exploration: Introduction. Relationships between courses. Overview. Course Introduction

Machine Learning, Data Mining, and Knowledge Discovery: An Introduction

Database Marketing, Business Intelligence and Knowledge Discovery

Introduction. A. Bellaachia Page: 1

Data Mining Classification: Decision Trees

An Introduction to Data Mining. Big Data World. Related Fields and Disciplines. What is Data Mining? 2/12/2015

The Need for Training in Big Data: Experiences and Case Studies

Data Mining for Fun and Profit

Transforming the Telecoms Business using Big Data and Analytics

Lluis Belanche + Alfredo Vellido. Intelligent Data Analysis and Data Mining

Statistics for BIG data

Data Mining Techniques

DATA MINING TECHNIQUES SUPPORT TO KNOWLEGDE OF BUSINESS INTELLIGENT SYSTEM

Data Mining Algorithms Part 1. Dejan Sarka

Chapter 20: Data Analysis

Data Warehousing and Data Mining in Business Applications

Big Data. Fast Forward. Putting data to productive use

Analytics-as-a-Service: From Science to Marketing

CAS CS 565, Data Mining

An Overview of Database management System, Data warehousing and Data Mining

Introduction to Data Mining

Data Mining + Business Intelligence. Integration, Design and Implementation

Reference Books. Data Mining. Supervised vs. Unsupervised Learning. Classification: Definition. Classification k-nearest neighbors

Data Mining Cluster Analysis: Basic Concepts and Algorithms. Lecture Notes for Chapter 8. Introduction to Data Mining

Mobile Phone APP Software Browsing Behavior using Clustering Analysis

Sunnie Chung. Cleveland State University

Data Mining System, Functionalities and Applications: A Radical Review

Surfing the Data Tsunami: A New Paradigm for Big Data Processing and Analytics

Why is Internal Audit so Hard?

Big Analytics: A Next Generation Roadmap

CSC590: Selected Topics BIG DATA & DATA MINING. Lecture 2 Feb 12, 2014 Dr. Esam A. Alwagait

IT and CRM A basic CRM model Data source & gathering system Database system Data warehouse Information delivery system Information users

Data Mining: Overview. What is Data Mining?

Learning from Big Data in

Lecture 6 - Data Mining Processes

Welcome. Data Mining: Updates in Technologies. Xindong Wu. Colorado School of Mines Golden, Colorado 80401, USA

CIS 4930/6930 Spring 2014 Introduction to Data Science Data Intensive Computing. University of Florida, CISE Department Prof.

OLAP and Data Mining. Data Warehousing and End-User Access Tools. Introducing OLAP. Introducing OLAP

T : Classification as Spam or Ham using Naive Bayes Classifier. Santosh Tirunagari :

Data Mining is sometimes referred to as KDD and DM and KDD tend to be used as synonyms

International Journal of Advanced Engineering Research and Applications (IJAERA) ISSN: Vol. 1, Issue 6, October Big Data and Hadoop

Performance Analysis of Naive Bayes and J48 Classification Algorithm for Data Classification

Assessing Data Mining: The State of the Practice

Data Mining Introduction

Financial Fraud Detection and Prevention with Data Mining Techniques Professor Hui Xiong Rutgers Business School

Chapter 12 Discovering New Knowledge Data Mining

International Journal of Computer Science Trends and Technology (IJCST) Volume 2 Issue 3, May-Jun 2014

Analytics on Big Data

Statistical Challenges with Big Data in Management Science

Chapter 4 Getting Started with Business Intelligence

Big Data Analytics. Genoveva Vargas-Solar French Council of Scientific Research, LIG & LAFMIA Labs

COMP9321 Web Application Engineering

Learning Example. Machine learning and our focus. Another Example. An example: data (loan application) The data and the goal

Chapter 2 Literature Review

Search and Data Mining: Techniques. Applications Anya Yarygina Boris Novikov

Operations and Supply Chain Management Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology Madras

Data Mining: An Introduction

Collaborations between Official Statistics and Academia in the Era of Big Data

Data Mining: Exploring Data. Lecture Notes for Chapter 3. Introduction to Data Mining

DATA MINING CLUSTER ANALYSIS: BASIC CONCEPTS

Lecture Slides for INTRODUCTION TO. ETHEM ALPAYDIN The MIT Press, Lab Class and literature. Friday, , Harburger Schloßstr.

BIG DATA What it is and how to use?

Taming the Internet of Things: The Lord of the Things

Data Mining Classification: Basic Concepts, Decision Trees, and Model Evaluation. Lecture Notes for Chapter 4. Introduction to Data Mining

Use of Data Mining Techniques to Improve the Effectiveness of Sales and Marketing

Data Warehousing and Data Mining for improvement of Customs Administration in India. Lessons learnt overseas for implementation in India

Classification Techniques (1)

Big Data Analytics and Healthcare

Data, Measurements, Features

Data Science at U of U

Role of Social Networking in Marketing using Data Mining

Conquering the Astronomical Data Flood through Machine

Clustering Big Data. Anil K. Jain. (with Radha Chitta and Rong Jin) Department of Computer Science Michigan State University November 29, 2012

DATA MINING TECHNOLOGY. Keywords: data mining, data warehouse, knowledge discovery, OLAP, OLAM.

Data Mining and Knowledge Discovery in Databases (KDD) State of the Art. Prof. Dr. T. Nouri Computer Science Department FHNW Switzerland

Data Mining. Toon Calders

Outline. What is Big data and where they come from? How we deal with Big data?

Transcription:

Digital Humanities Data Mining with Weka THATCamp Center for History and New Media, GMU Huzefa Rangwala Assistant Professor, Computer Science George Mason University Email: rangwala@cs.gmu.edu Website: www.cs.gmu.edu/~hrangwal Slides are adapted from the available book slides developed by Tan, Steinbach and Kumar

Roadmap for Today Welcome & Introduction Introduction to Data Mining Examples, Motivation, Definition, Methods Classification Clustering Weka Iris Dataset Spam Email Dataset Your data (discussion)

What do you think of data mining? Please could you write down examples that you know of or have heard of on the provided index card. Also write down your own definition.

Data Mining Examples?

Large-scale Data is Everywhere! There has been enormous data growth in both commercial and scientific databases due to advances in data generation and collection technologies New mantra Gather whatever data you can whenever and wherever possible. Expectations Gathered data will have value either for the purpose collected or for a purpose not envisioned. Homeland Security Geo-spatial data Sensor Networks Business Data Computational Simulations

Why Data Mining? Commercial Viewpoint Lots of data is being collected and warehoused Web data Yahoo has 2PB web data Facebook has 800M? (1billion?) active users purchases at department/ grocery stores, e-commerce Amazon records 2M items/day Bank/Credit Card transactions Computers have become cheaper and more powerful

Why Data Mining? Scientific Viewpoint Data collected and stored at enormous speeds remote sensors on a satellite NASA EOSDIS archives over 1-petabytes of earth science data / year telescopes scanning the skies Sky survey data High-throughput biological data scientific simulations terabytes of data generated in a few hours Data mining helps scientists in automated analysis of massive datasets In hypothesis formation

Data Mining Example 1

My Favorite Data Mining Examples Amazon.com, Google, Netflix Personal Recommendations. Profile-based advertisements. Spam Filters/Priority Inbox Keep those efforts to pay us millions of dollars at bay. Scientific Discovery Grouping patterns in sky. Inferring complex life science processes. Forecasting weather. Security Phone Conversations, Network Traffic

Data Mining Definitions Non-trivial extraction of implicit, previously unknown and potentially useful information from data (normally large databases) Exploration & analysis, by automatic or semiautomatic means, of large quantities of data in order to discover meaningful patterns. Part of the Knowledge Discovery in Databases Process.

What is (not) Data Mining? What is not Data Mining? Look up phone number in phone directory Query a Web search engine for information about Amazon What is Data Mining Certain names are more prevalent in certain US locations (O Brien, O Rurke, O Reilly in Boston area) Group together similar documents returned by search engine according to their context (e.g. Amazon rainforest, Amazon.com,

Data Mining Tasks Prediction Methods Use some variables to predict unknown or future values of other variables. Description Methods Find human-interpretable patterns that describe the data. Make good inferences from the data. From [Fayyad, et.al.] Advances in Knowledge Discovery and Data Mining, 1996

Data Mining Tasks... Classification [Predictive] Clustering [Descriptive] Association Rule Discovery [Descriptive] Sequential Pattern Discovery [Descriptive] Regression [Predictive] Deviation Detection [Predictive]

10 10 Classification Example Tid Refund Marital Status Taxable Income Cheat Refund Marital Status Taxable Income Cheat 1 Yes Single 125K No 2 No Married 100K No 3 No Single 70K No 4 Yes Married 120K No 5 No Divorced 95K Yes 6 No Married 60K No 7 Yes Divorced 220K No 8 No Single 85K Yes No Single 75K? Yes Married 50K? No Married 150K? Yes Divorced 90K? No Single 40K? No Married 80K? Test Set 9 No Married 75K No 10 No Single 90K Yes Training Set Learn Classifier Model

Classification: Definition Given a collection of records (training set ) Each record contains a set of attributes, one of the attributes is the class. Find a model for class attribute as a function of the values of other attributes. Goal: previously unseen records should be assigned a class as accurately as possible. A test set is used to determine the accuracy of the model. Usually, the given data set is divided into training and test sets, with training set used to build the model and test set used to validate it.

Classification: Direct Marketing Direct Marketing Goal: Reduce cost of mailing by targeting a set of consumers likely to buy a new cell-phone product. Approach: Use the data for a similar product introduced before. We know which customers decided to buy and which decided otherwise. This {buy, don t buy} decision forms the class attribute. Collect various demographic, lifestyle, and company-interaction related information about all such customers. Type of business, where they stay, how much they earn, etc. Use this information as input attributes to learn a classifier model. From [Berry & Linoff] Data Mining Techniques, 1997

Classification: Your Turn Historical Archival Mining Goal: Predict the era for a set of historical text documents available from National archives? Approach: What kind of data will you try to get? Can you say something about the characteristics of the data? Estimate the size of the data. What kind of pitfalls you might run into? You have 5 minutes to think and discuss.

Classifying Galaxies Courtesy: http://aps.umn.edu Early Class: Stages of Formation Intermediate Attributes: Image features, Characteristics of light waves received, etc. Late Data Size: 72 million stars, 20 million galaxies Object Catalog: 9 GB Image Database: 150 GB

What is Cluster Analysis? Finding groups of objects such that the objects in a group will be similar (or related) to one another and different from (or unrelated to) the objects in other groups Intra-cluster distances are minimized Inter-cluster distances are maximized

Applications of Cluster Analysis Understanding Group related documents for browsing, group genes and proteins that have similar functionality, or group stocks with similar price fluctuations 1 2 3 4 Discovered Clusters Applied-Matl-DOWN,Bay-Network-Down,3-COM-DOWN, Cabletron-Sys-DOWN,CISCO-DOWN,HP-DOWN, DSC-Comm-DOWN,INTEL-DOWN,LSI-Logic-DOWN, Micron-Tech-DOWN,Texas-Inst-Down,Tellabs-Inc-Down, Natl-Semiconduct-DOWN,Oracl-DOWN,SGI-DOWN, Sun-DOWN Apple-Comp-DOWN,Autodesk-DOWN,DEC-DOWN, ADV-Micro-Device-DOWN,Andrew-Corp-DOWN, Computer-Assoc-DOWN,Circuit-City-DOWN, Compaq-DOWN, EMC-Corp-DOWN, Gen-Inst-DOWN, Motorola-DOWN,Microsoft-DOWN,Scientific-Atl-DOWN Fannie-Mae-DOWN,Fed-Home-Loan-DOWN, MBNA-Corp-DOWN,Morgan-Stanley-DOWN Baker-Hughes-UP,Dresser-Inds-UP,Halliburton-HLD-UP, Louisiana-Land-UP,Phillips-Petro-UP,Unocal-UP, Schlumberger-UP Industry Group Technology1-DOWN Technology2-DOWN Financial-DOWN Oil-UP Summarization Reduce the size of large data sets Clustering precipitation in Australia

Clustering: Document Document Clustering: Goal: To find groups of documents that are similar to each other based on the important terms appearing in them. Approach: To identify frequently occurring terms in each document. Form a similarity measure based on the frequencies of different terms. Use it to cluster. Gain: Information Retrieval can utilize the clusters to relate a new document or search term to clustered documents.

Illustrating Document Clustering Clustering Points: 3204 Articles of Los Angeles Times. Similarity Measure: How many words are common in these documents (after some word filtering). Category Total Correctly Articles Placed Financial 555 364 Foreign 341 260 National 273 36 Metro 943 746 Sports 738 573 Entertainment 354 278

Think point? Differences between classification and clustering?

Association Rule Discovery: Definition 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. TID Items 1 Bread, Coke, Milk 2 Beer, Bread 3 Beer, Coke, Diaper, Milk 4 Beer, Bread, Diaper, Milk 5 Coke, Diaper, Milk Rules Discovered: {Milk} --> {Coke}

Urban Legend. Classic Association Rule Example: If a customer buys diaper and milk, then he is very likely to buy beer. Any plausible explanations?

Association Rule Discovery: Application 1 Marketing and Sales Promotion: Let the rule discovered be {Bagels, } --> {Potato Chips} Potato Chips as consequent => Can be used to determine what should be done to boost its sales. Bagels in the antecedent => Can be used to see which products would be affected if the store discontinues selling bagels. Bagels in antecedent and Potato chips in consequent => Can be used to see what products should be sold with Bagels to promote sale of Potato chips!

Regression Predict a value of a given continuous valued variable based on the values of other variables, assuming a linear or nonlinear model of dependency. Also called density estimation. Greatly studied in statistics, neural network fields. Examples: Predicting wind velocities as a function of temperature, humidity, air pressure, etc. Time series prediction of stock market indices.

Deviation/Anomaly Detection Detect significant deviations from normal behavior Applications: Credit Card Fraud Detection Network Intrusion Detection

What else can Data Mining do? Dilbert

Challenges of Data Mining Scalability Dimensionality Complex and Heterogeneous Data Data Quality Data Ownership and Distribution Privacy Preservation Streaming Data

Back to classification..

10 10 Illustrating Classification Task Tid Attrib1 Attrib2 Attrib3 Class 1 Yes Large 125K No 2 No Medium 100K No Learning algorithm 3 No Small 70K No 4 Yes Medium 120K No 5 No Large 95K Yes Induction 6 No Medium 60K No 7 Yes Large 220K No 8 No Small 85K Yes 9 No Medium 75K No Learn Model 10 No Small 90K Yes Training Set Tid Attrib1 Attrib2 Attrib3 Class Apply Model Model 11 No Small 55K? 12 Yes Medium 80K? 13 Yes Large 110K? Deduction 14 No Small 95K? 15 No Large 67K? Test Set

Classification: Definition Given a collection of records (training set ) Each record contains a set of attributes, one of the attributes is the class. Find a model for class attribute as a function of the values of other attributes. Goal: previously unseen records should be assigned a class as accurately as possible. A test set is used to determine the accuracy of the model. Usually, the given data set is divided into training and test sets, with training set used to build the model and test set used to validate it.

Case Study: Sea Bass vs Salmon?

An Example Sorting incoming Fish on a conveyor according to species using optical sensing Species Sea bass Salmon

Problem Analysis Set up a camera and take some sample images to extract features Length Lightness Width Number and shape of fins Position of the mouth, etc This is the set of all suggested features to explore for use in our classifier!

Classification Select the length of the fish as a possible feature for discrimination

The length is a poor feature alone! Select the lightness as a possible feature.

Adopt the lightness and add the width of the fish Fish x T = [x 1, x 2 ] Lightness Width

Add more features: Produce an optimal decision boundary:

However, our satisfaction is premature because the central aim of designing a classifier is to correctly classify novel input Issue of generalization!

Move to WEKA. Spam Email Detection: Given an email predict whether it is spam or not. Features? How will you measure accuracy?

How to best represent documents? Youn et. al. 2009

Metrics for Performance Evaluation Focus on the predictive capability of a model Rather than how fast it takes to classify or build models, scalability, etc. Confusion Matrix: ACTUA L CLASS PREDICTED CLASS Class=Yes Class=No Class=Yes a b Class=No c d a: TP (true positive) b: FN (false negative) c: FP (false positive) d: TN (true negative)

Not discussed (Classification) Several other classification evaluation metrics. Classification methods. Variants of binary classification.

Resources WEKA MALLET CLUTO UCI Machine Learning Repository (DataSets) Twitter.com/DMFun