FeApResFeApRes Supervisor: Mr. Le Thanh Quang. OutlineOutline I. Group Introduction II. Capstone Project Introduction III. Software Project Plan IV. Software.

Slides:



Advertisements
Similar presentations
Association Rule Mining
Advertisements

ICS 434 Advanced Database Systems
Huffman Codes and Asssociation Rules (II) Prof. Sin-Min Lee Department of Computer Science.
Association Analysis (2). Example TIDList of item ID’s T1I1, I2, I5 T2I2, I4 T3I2, I3 T4I1, I2, I4 T5I1, I3 T6I2, I3 T7I1, I3 T8I1, I2, I3, I5 T9I1, I2,
A distributed method for mining association rules
Data Mining Techniques Association Rule
Data Mining (Apriori Algorithm)DCS 802, Spring DCS 802 Data Mining Apriori Algorithm Spring of 2002 Prof. Sung-Hyuk Cha School of Computer Science.
Nadia Andreani Dwiyono DESIGN AND MAKE OF DATA MINING MARKET BASKET ANALYSIS APLICATION AT DE JOGLO RESTAURANT.
Association rules The goal of mining association rules is to generate all possible rules that exceed some minimum user-specified support and confidence.
FP (FREQUENT PATTERN)-GROWTH ALGORITHM ERTAN LJAJIĆ, 3392/2013 Elektrotehnički fakultet Univerziteta u Beogradu.
Sampling Large Databases for Association Rules ( Toivenon’s Approach, 1996) Farzaneh Mirzazadeh Fall 2007.
Data Mining Association Analysis: Basic Concepts and Algorithms
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Chapter 19: Network Management Business Data Communications, 4e.
Data Mining Association Analysis: Basic Concepts and Algorithms
Association Analysis: Basic Concepts and Algorithms.
1 Review #1 l Intro stuff –What is a database, 4 parts, 3 users, etc. l Architecture –Data independence –Three levels, two mappings –Jobs of the DBA.
Data Mining Association Analysis: Basic Concepts and Algorithms
Is Sampling Useful in Data Mining? A Case in the Maintenance of Discovered Association Rules S.D. Lee, D. W. Cheung, B. Kao Department of Computer Science.
Application architectures
Introduction to Databases Transparencies
Association Rule Mining - MaxMiner. Mining Association Rules in Large Databases  Association rule mining  Algorithms Apriori and FP-Growth  Max and.
2/8/00CSE 711 data mining: Apriori Algorithm by S. Cha 1 CSE 711 Seminar on Data Mining: Apriori Algorithm By Sung-Hyuk Cha.
Is Sampling Useful in Data Mining? A Case in the Maintenance of Discovered Association Rules S.D. Lee David W. Cheung Ben Kao The University of Hong Kong.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
8 Systems Analysis and Design in a Changing World, Fifth Edition.
Supervisor: Mr. Huynh Anh Dung Students: To Quang Duy Pham Ngoc Tien Nguyen Luong Ngoc Chau Nguyen Hoang Phuc Nguyen Thi Trang.
Application architectures
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
『 Data Mining 』 By Jung, hae-sun. 1.Introduction 2.Definition 3.Data Mining Applications 4.Data Mining Tasks 5. Overview of the System 6. Data Mining.
Fayoum University Faculty of Engineering Electrical Engineering Department E-voting system Using Smart Card Under the supervision Of: Dr. Magdy Amer.
بسم الله الرحمن الرحيم SOFTWARE ENGINEERING. Store System Prepared by Moamer.T.Sawafiri Ahmed.R.Abu saif Hasan.M.Ouda
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Software Project Documentation. Types of Project Documents  Project Charter  Requirements  Mockups and Prototypes  Test Cases  Architecture / Design.
Apriori Algorithms Feapres Project. Outline 1.Association Rules Overview 2.Apriori Overview – Apriori Advantage and Disadvantage 3.Apriori Algorithms.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Chapter 1 Introduction to Databases. 1-2 Chapter Outline   Common uses of database systems   Meaning of basic terms   Database Applications  
Frequent Item Mining. What is data mining? =Pattern Mining? What patterns? Why are they useful?
Outline Knowledge discovery in databases. Data warehousing. Data mining. Different types of data mining. The Apriori algorithm for generating association.
CSE4334/5334 DATA MINING CSE4334/5334 Data Mining, Fall 2014 Department of Computer Science and Engineering, University of Texas at Arlington Chengkai.
Fast Algorithms for Mining Association Rules Rakesh Agrawal and Ramakrishnan Srikant VLDB '94 presented by kurt partridge cse 590db oct 4, 1999.
1 FINDING FUZZY SETS FOR QUANTITATIVE ATTRIBUTES FOR MINING OF FUZZY ASSOCIATE RULES By H.N.A. Pham, T.W. Liao, and E. Triantaphyllou Department of Industrial.
CS251 – Software Engineering Lecture 9: Software Design Slides by Mohammad El-Ramly, PhD
Scope of testing  The testing phase bases on the final Feapres system requirement specification and Feapres detail design.  The system including 5 components.
Database Management Systems (DBMS)
Mining Frequent Patterns, Associations, and Correlations Compiled By: Umair Yaqub Lecturer Govt. Murray College Sialkot.
 Frequent Word Combinations Mining and Indexing on HBase Hemanth Gokavarapu Santhosh Kumar Saminathan.
Security in Outsourced Association Rule Mining. Agenda  Introduction  Approximate randomized technique  Encryption  Summary and future work.
Differences Training BAAN IVc - BaanERP 5.0c: Development BaanERP 5.0c Tools.
HEMANTH GOKAVARAPU SANTHOSH KUMAR SAMINATHAN Frequent Word Combinations Mining and Indexing on HBase.
Supervisor: Mr. Huynh Anh Dung Students: To Quang Duy Pham Ngoc Tien Nguyen Luong Ngoc Chau Nguyen Hoang Phuc Nguyen Thi Trang.
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
Reducing Number of Candidates Apriori principle: – If an itemset is frequent, then all of its subsets must also be frequent Apriori principle holds due.
Data Mining Association Rules Mining Frequent Itemset Mining Support and Confidence Apriori Approach.
Chapter 8-1 Chapter 8 Accounting Information Systems Information Technology Auditing Dr. Hisham madi.
Programming Contest Management System Supervisor : Lecturer Phan Tr ư ờng Lâm Students : Hoàng Quang Mạnh Trần Đình Tuấn Nguyễn Thành Trung Phạm Thị Hồng.
FeApResFeApRes Supervisor: Mr. Le Thanh Quang. OutlineOutline I. Group Introduction II. Capstone Project Introduction III. Software Project Plan IV. Software.
LOGO FACE DETECTION APPLICATION Member: Vu Hoang Dung Vu Ha Linh Le Minh Tung Nguyen Duy Tan Chu Duy Linh Uong Thanh Ngoc CAPSTONE PROJECT Supervisor:
Systems Analysis and Design in a Changing World, Fourth Edition
Market Basket Analysis
Reducing Number of Candidates
FUNCTIONALITIES ON iPAD
USERS’ PERCEPTIONS OF THE E-MENU PROTOTYPE ON E-MENU FEATURES
Frequent Pattern Mining
Dynamic Itemset Counting
DIRECT HASHING AND PRUNING (DHP) ALGORITHM
Association Rule Mining
Farzaneh Mirzazadeh Fall 2007
Review #1 Intro stuff What is a database, 4 parts, 3 users, etc.
Presentation transcript:

FeApResFeApRes Supervisor: Mr. Le Thanh Quang

OutlineOutline I. Group Introduction II. Capstone Project Introduction III. Software Project Plan IV. Software Design Description V. Demo VI. Software Testing I. Group Introduction II. Capstone Project Introduction III. Software Project Plan IV. Software Design Description V. Demo VI. Software Testing

I.Group Introduction PMTester/QA DEV team Supervisor Mr. Le Thanh Quang

II.Capstone Project Introduction L ove P assion

II.Capstone Project Introduction Cook Serve Decorate

II.Capstone Project Introduction Cook Serve Decorate Restaurant ➣ Interesting but sophisticated business ➣ Tons of stuff to face with

II.Capstone Project Introduction User requirements must be thoroughly analyzed

II.Capstone Project Introduction Limitations of existing system: Non user-friendly interface Non VIP customer management supporting Non data analyzing tool

User Requirements Customer Waiter/Waitress Cashier Manager Accountant FeApRes The system has the domain functions like other common restaurant management systems. Smart card to support management. Tool to analyze transaction data for meaningful conclusion.

Requirement Specification Problem: Problem QU Ả N LÝ KHÁCH HÀNG TÍCH Đ I Ể M GI Ả M GIÁ PHÂN TÍCH DỮ LIỆU TÀI S Ả N

Requirement Specification Scope: TÍCH Đ I Ể M GI Ả M GIÁ PHÂN TÍCH DỮ LIỆU QU Ả N LÝ KHÁCH HÀNG TÀI S Ả N

Cook Serve Decorate Requirement Specification Using Felica card and Apriori algorithm in restaurant management Solution

II.Capstone Project Introduction Felica: contactless smart card system Apriori algorithm: a classic algorithm for learning association rules VIP customer management with card Data mining

III.Project Plan DEVELOPMENT MODEL

Development Model Reasons  Time constraint  On time, accepted quality  Specific phases  Equal weight: coding, testing

III.Project Plan

Team Working Online Offline

IV.Software Design Descriptions

Architecture Design

Component design

Database Design

Felica Card Felica has high speed communication Felica has high security Felica is good at anti-collision

Outline I. Device II. Communication Protocol III. File System IV. Commands I. Device II. Communication Protocol III. File System IV. Commands

Device Reader / WriterFelica Card Pasori (RC – S600)RC – S885

Communication Protocol Physical layer  defines the physical and electrical characteristics of data transfer Data link layer  defines the data transfer method and the error detection scheme. Application layer  defines the specifications and functions of data strings to be handled as commands. Physical layer  defines the physical and electrical characteristics of data transfer Data link layer  defines the data transfer method and the error detection scheme. Application layer  defines the specifications and functions of data strings to be handled as commands.

Communication Protocol Application layer Command Package Response Package Application layer Command Package Response Package

File System

Commands

Demo Using Felica Card in Restaurant Management

Apriori Algorithms Target:  Decision-making  Making strategic plan E.g.:  Preparing inventory  Suggesting customer  Managing menu (add, remove dish when needed)  Managing human resource.

Outline 1. Association Rules Overview 2. Apriori Overview 3. Apriori Algorithms 4. Improvement 4.1. Segmental Values (Mờ hóa dữ liệu) 4.2. Get Support (Speed up algorithms) 4.3. Weight Rules (Find important rules) 1. Association Rules Overview 2. Apriori Overview 3. Apriori Algorithms 4. Improvement 4.1. Segmental Values (Mờ hóa dữ liệu) 4.2. Get Support (Speed up algorithms) 4.3. Weight Rules (Find important rules)

1. Association Rules Overview  Association Rule : Relations between variables in large databases. E.g. (Sea food) => (Wine)  Algorithms for finding association rules: o Apriori algorithm o Eclat algorithm o FP-growth algorithm o One-attribute-rule o Zero-attribute-rule  Association Rule : Relations between variables in large databases. E.g. (Sea food) => (Wine)  Algorithms for finding association rules: o Apriori algorithm o Eclat algorithm o FP-growth algorithm o One-attribute-rule o Zero-attribute-rule

2. Apriori Overview  Best-known algorithm to mine association rules  Advantages o Find all rules o Simple  Disadvantages o Suffer from a number of inefficiencies or trade-offs o Operate in binary data only  Best-known algorithm to mine association rules  Advantages o Find all rules o Simple  Disadvantages o Suffer from a number of inefficiencies or trade-offs o Operate in binary data only

3. Apriori Algorithms Step 1: Find all frequent itemsets:  Get frequent items: Items whose occurrence in database is greater than or equal to the min support.  Get frequent itemsets: Generate candidates from frequent items. Use the candidate to find the frequent itemsets. Repeat until there are no new candidates. Step 1: Find all frequent itemsets:  Get frequent items: Items whose occurrence in database is greater than or equal to the min support.  Get frequent itemsets: Generate candidates from frequent items. Use the candidate to find the frequent itemsets. Repeat until there are no new candidates.

3. Apriori Algorithms Step 2: Generate strong association rules from frequent item sets  Rules which satisfy the min support and min confidence. Step 2: Generate strong association rules from frequent item sets  Rules which satisfy the min support and min confidence.

3. Apriori Algorithms

3.1. Apriori Algorithms : Step1 Transaction ACD BCE ABCE BE L1-ItemsetSupport {A}2 {B}3 {C}3 {E}3 Min Support = 50 % Min Confidence = 80% L2-ItemsetSupport {AC}2 {BC}2 {BE}3 {CE}2 Self-Join Check Support ItemSupport {A}2 {B}3 {C}3 {D}1 {E}3 Check Support ItemSupport {AB}1 {AC}2 {AE}1 {BC}2 {BE}3 {CE}2

3.1. Apriori Algorithms : Step1 Self -Join Check Support L2 L3 All subsets of frequent Items must be frequent. {ABCDEF} must combine with itemsets like {ABCDEG} ItemSupport {BCE}2 L2-ItemsetSupport {AC}2 {BC}2 {BE}3 {CE}2 L3-ItemsetSupport {BCE}2

3.1.Apriori Algorithms : Step1 Frequent ItemsSupport {A}2 {B}3 {C}3 {E}3 {AC}2 {BC}2 {BE}3 {CE}2 {BCE}2

3.2.Apriori Algorithms : Step2

4. IMPROVEMENT 4.1. Segmental Values (Mờ hóa dữ liệu) 4.2. Get Support (Speed up algorithms) 4.3. Weight Rules (Find important rules) 4.1. Segmental Values (Mờ hóa dữ liệu) 4.2. Get Support (Speed up algorithms) 4.3. Weight Rules (Find important rules)

4.1.Segmental Values  Major disadvantage: binary database. -> Convert conventional database to binary database  Value Types: o Category values o Continuous values (E.g. Age, money, ….)  Major disadvantage: binary database. -> Convert conventional database to binary database  Value Types: o Category values o Continuous values (E.g. Age, money, ….)

4.1.Segmental Values Fuzzy Set Triangle Function Fuzzy Set Triangle Function 0 1 a b c

4.1.Segmental Values Fuzzy Set Trapezoid Function Fuzzy Set Trapezoid Function 0 1 ab cd

4.1. Segmental Values Bill values (0-> max: integer) Low= F1(x,0,0,500,600) (red line) Medium = F2(x,600,500,2000,2500) (blue line) High = F3(x,2000,2500,MaxInt, MaxInt) (yellow line) MinWT = 0.4 Bill values (0-> max: integer) Low= F1(x,0,0,500,600) (red line) Medium = F2(x,600,500,2000,2500) (blue line) High = F3(x,2000,2500,MaxInt, MaxInt) (yellow line) MinWT = 0.4 Example : if F1(2200) = 0; F2(F1(2200) = 0.5; F3(2200) = 0.6) => 2200k Bill of 2200 is considered as both Middle and High

4.2. Get Support This procedure is the most time consuming part in the algorithms. L1-ItemsetSupport {A}2 {B}3 {C}3 {E}3 L2-ItemsetSupport {AC}2 {BC}2 {BE}3 {CE}2 ItemSupport {AB}1 {AC}2 {AE}1 {BC}2 {BE}3 {CE}2 Join Check Support ItemSupport {A}2 {B}3 {C}3 {D}1 {E}3 Check Support L1 L2

4.2. Get Support Transaction ACDE BCE ABCE BCE AB SETElements A{1,3,5} B{2,3,4,5} C{1,2,3,4} D{1} E{1,2,3,4} Need algorithms to calculate intersection of two sets (HASH SET)

4.3. Weight Rules Rule: (Vip card = Yes & Time = Afternoon) => Bill Amount = High Some components are more interesting than others E.g.: Bill Amount => Each component is weighted. Importance of rule A=>B is Rule: (Vip card = Yes & Time = Afternoon) => Bill Amount = High Some components are more interesting than others E.g.: Bill Amount => Each component is weighted. Importance of rule A=>B is

Demo Using Apriori Algorithm in Restaurant Management

VI. Testing  Bases  The system including 5 components as: - Authentication - Accountant - Manager - Cashier - Apriori Algorithm  The stages of testing: - Unit Test - Integration Test & System Test - User Acceptance Test Final SRS Detail Design

Test Plan Create test plan Create and update test cases Execute test

Test Execution 1. Features to be tested Authentication Manager Cashier Accountant Apriori algorithm 2. Features not to tested None

Test Data Problem with real test data 1.Functionality testing: Create sample data in logic (about 10 records for each table) and execute test. 2. Performance testing: Using SQL query to generate test data. They’re created randomly.

Algorithm Testing Algorithm’s speed: -Hundreds of records (Order and Bill): ~ 3seconds -Thousands of records : ~ 5seconds records : ~ 7,8 seconds

Test Result

Demo Other Business Functions in Restaurant Management

Future Features 1. Use Felica as the smart card -Check-in and check-out of staff management -Customer and supplier management 2. Complete all business functions of the system -Inventory management -Accounting -Online reservation

Future Features 3. Improve Apriori algorithm 4. Build restaurant system including hardware and software support

Lessons Learned Communication Working in group Felica technology Apriori algorithm Project management Restaurant business domain

FeApRes