Cafe Data Project

Abstract

The steady growth of digital storage capacities and the connection of an increasing variety of devices to the internet allows for the collection of data sets so large and complex that traditional methods of data processing are rendered obsolete. While such data sets generally prove challenging to analyze, their sheer scope and comprehensiveness provide many opportunities to identify subtle trends in business, crime, and information. For this reason, many modern scientists and analysts employ machine learning and data mining techniques, allowing for the automation of big data analysis and rendering the process of identifying trends and relationships in large data sets much more efficient.

We present a web application which makes predictions about customer activity at a local cafe, based on factors such as time of day, external weather conditions, and advertising decisions. Predictions are made using models generated through machine learning algorithms, including regression and decision trees, applied to multiple large data sets provided by Dr. Julie Whitney of Lexmark International, Inc. and collected from a Lexmark campus café. The predictions made by the application achieve an average of at least 80% accuracy (using the Mean Absolute Scaled Error). The result of our efforts can be found here.


Project Description

Objective

The purpose of this project is to provide a web-based application that allows the user, an owner or manager of a café or restaurant, to estimate staffing and supply needs based upon predicted customer activity, based upon a user-modifiable time scale and input parameters. This allows for more efficient utilization of physical resources and personnel, potentially reducing overhead costs and increasing net profits.

Background

In February 2016, Dr. Julie Whitney, senior technical staff member at Lexmark International, Inc., presented our team with a large data set (described below) collected from a café serving Lexmark employees and visitors to the Lexmark campus. We were then tasked with using machine learning techniques to analyze the data sets and obtain models for predicting future customer activity. After initial exploration, we divided the data into two sets, one for training our models, and one for testing them. We then applied regression and decision tree algorithms to the training set to obtain predictive models, which we then refined until the models’ predictions achieved 80% accuracy when compared to actual results from the testing set of the collected data. At this point, the models were implemented into a web application which allows the user to choose between models and adjust input parameters based upon their needs.

The Data Set

Included in the data set provided by Dr. Whitney are the following essential data points:

(Note: Some of the supplied data points have been fabricated to protect customer identities.) Our team examined the relationships between these data point in order to identify meaningful trends.