This project has the goal to reduce cost and optimize the resources of a Japanse bakery where I collaborate using a TimeSeries predictor FBProphet. SWEET Co. Bakery was founded in 1913 in Seattle, USA by a Japanese immigrant that after 10 years decided to move back to his hometown in Matsumoto, Japan. Since then the bakery has been open and run by the same family for 4 generations.
Prophet is open source software released by Facebook’s Core Data Science team. Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.
Steps (Jupyter Notebooks):
- I defined a testing area where I learned all the basics and material from FB Prophet documentation.
- Used data directly from SquareUp that is the cash register management that the company use. This data was cleaned and prepared to be able to use in FB Prophet.
- The training data is from 2018-04-26 until 2019-12-31 as I want to predict January of 2020. The last one is also included to test the model.
- The test area helped me to validate and refine the final model.
- I added historical weather data to figure out the influence on the model. After some analysis, this data was dropped as was intrinct to the data.
- Once I got satisfactory results I added Data Visualization to understand how the model was adapting and predicting.
- Metrics are included and the FB Prophet own cross-validation module.
Using the model predictions I prepared a business analysis about how the company predicts their sales vs FB Prophet forecast and how they allocate the staff according to their calculations. Finding that FB Prophet offers better insights helping to reduce HR cost allocating the staff more efficiently and reducing cost.
FB Prophet is a great tool that small & medium companies can take advantage to optimize their resources and reduce cost. This model can be easily applied to different areas of the bakery like production, supply chain and human resources where the time series is part of the daily operation of the company.
- Deploy FB Prophet in pythonanyware.com using Flask and be able to make consultations on the established model by the staff with a basic UI.
- Improve the UI and be able to change the hyperparameters according to the necessities of the staff.
FB Prophet folder:
-
FB Prophet - Final Vr.ipynb
-
2018-2019_prophet.csv
-
2018-2020j_prophet.csv
-
README.md
-
Business Analysis.xlsx
-
Dynamic-plot.html
Other folders:
- Data: Includes all raw data by transactions and items (2018-2020 February)
- Tutorials: Basic tutorials from FB Prophet team
- Web Scrapping: To obtain weather historical data
8 days
EsdrasGrau
|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|
| CODING FERRET |
|___________________|
(\__/) ||
(•ㅅ•) ||
/ づ
I'm a ferret, not a rabbit o(>ω<)o

