Evaluating espresso coffee quality by means of time-series feature engineering

Espresso quality attracts the interest of many stakeholders: from consumers to local business activities, from coffee-machine vendors to international coffee industries. So far, it has been mostly addressed bymeans of human experts, electronic noses, and chemical approaches. The current work, instead, proposes a datadriven analysis exploiting time-series feature engineering. We analyze a real-world dataset of espresso brewing by professional coffee-making machines. The novelty of the proposed work is provided by the focus on the brewing time series, from which we propose to engineer features able to improve previous data-driven metrics determining the quality of the espresso. Thanks to the exploitation of the proposed features, better quality-evaluation predictions are achieved with respect to previous data-driven approaches that relied solely on metrics describing each brewing as a whole (e.g., average flow, total amount of water). Yet, the engineered features are simple to compute and add a very limited workload to the coffee-machine sensor-data collection device, hence being suitable for large-scale IoT installations on-board of professional coffee machines, such as those typically installed in consumer-oriented business activities, shops, and workplaces. To the best of the authors’ knowledge, this is the first attempt to perform a data-driven analysis of real-world espresso-brewing time series. Presented results yield to three-fold improvements in classification accuracy of high-quality espresso coffees with respect to current data-driven approaches (from 30% to 100%), exploiting simple threshold-based quality evaluations, defined in the newly proposed feature space.

[1]  C. Cid,et al.  Influence of extraction temperature on the final quality of espresso coffee , 2003 .

[2]  Ingemar Lundström,et al.  Data preprocessing enhances the classification of different brands of Espresso coffee with an electronic nose , 2000 .

[3]  Tak-chung Fu,et al.  Flexible time series pattern matching based on perceptually important points , 2001 .

[4]  Y. Sagara,et al.  Gas chromatography/olfactometry and electronic nose analyses of retronasal aroma of espresso and correlation with sensory evaluation by an artificial neural network. , 2010, Journal of food science.

[5]  R. Perren,et al.  Impact of Roasting Conditions on the Formation of Aroma Compounds in Coffee Beans , 2002 .

[6]  C. Severini,et al.  Changes in the aromatic profile of espresso coffee as a function of the grinding grade and extraction time: a study by the electronic nose system. , 2015, Journal of agricultural and food chemistry.

[7]  Daniele Apiletti,et al.  Correlating Espresso Quality with Coffee-Machine Parameters by Means of Association Rule Mining , 2020, Electronics.

[8]  Nuno Constantino Castro,et al.  Time Series Data Mining , 2009, Encyclopedia of Database Systems.

[9]  Eamonn J. Keogh,et al.  Segmenting Time Series: A Survey and Novel Approach , 2002 .

[10]  Andreas W. Kempa-Liehr,et al.  Distributed and parallel time series feature extraction for industrial big data applications , 2016, ArXiv.

[11]  C. Cid,et al.  Influence of coffee/water ratio on the final quality of espresso coffee , 2007 .

[12]  Giovanni Caprioli,et al.  Optimization of espresso machine parameters through the analysis of coffee odorants by HS-SPME-GC/MS. , 2012, Food chemistry.

[13]  Elena Baralis,et al.  Real-Time Analysis of Physiological Data to Support Medical Applications , 2009, IEEE Transactions on Information Technology in Biomedicine.

[14]  Angelo Fabbri,et al.  Evaluation of coffee roasting degree by using electronic nose and artificial neural network for off-line quality control. , 2012, Journal of food science.

[15]  Daniele Apiletti,et al.  METATECH: METeorological Data Analysis for Thermal Energy CHaracterization by Means of Self-Learning Transparent Models , 2018 .

[16]  J W Gardner and P N Bartlett,et al.  Electronic Noses: Principles and Applications , 1999 .

[17]  M. Pardo,et al.  Classification of electronic nose data with support vector machines , 2005 .

[18]  M. D. de Peña,et al.  Influence of water pressure on the final quality of arabica espresso coffee. Application of multivariate analysis. , 2002, Journal of agricultural and food chemistry.