| Literature DB >> 36119876 |
Miriam Cobo1, Ignacio Heredia1, Fernando Aguilar1, Lara Lloret Iglesias1, Daniel García1, Begoña Bartolomé2, M Victoria Moreno-Arribas2, Silvia Yuste3, Patricia Pérez-Matute4, Maria-Jose Motilva3.
Abstract
In this paper, we present a method to determine the volume of wine in different types of glass liquid containers from a single-view image. The proposed model predicts red wine volume from a photograph of the glass containing the wine. Experimental results demonstrated satisfactory performance of our image-based wine measurement system, with a Mean Absolute Error lower than 10 mL . To train and evaluate our system, we introduced the WineGut_BrainUp dataset, a new dataset of glasses of wine that contains 24305 laboratory images, including a wide range of containers, volumes of wine, backgrounds, object distances, angles and lightning, with or without calibration object. The proposed methodology is a suitable analytical tool for automate measurement of red wine volume. Indeed, it has potential real life applications in diet monitoring and wine consumption studies.Entities:
Keywords: Deep learning model; Quantitative red wine volume estimation; Single-view image
Year: 2022 PMID: 36119876 PMCID: PMC9475323 DOI: 10.1016/j.heliyon.2022.e10557
Source DB: PubMed Journal: Heliyon ISSN: 2405-8440
Figure 1Flowchart followed for the construction of WineGut_BrainUP dataset.
Figure 2Glasses used in the WineGut_BrainUp dataset. In these examples, glasses were filled with 150 mL (balloon, Bourgogne Bordeaux, tasting and Chardonnay wine glasses) or 100 mL (coffee, short rock, rock and water glasses) of red wine.
Average size of the wine glasses used in this study.
| Type of glass | Volume (mL) | Height (cm) | Maximum diameter (cm) | Opening diameter (cm) |
|---|---|---|---|---|
| Balloon wine glass | 765 | 11.0 | 10.9 | 8.4 |
| Bourgogne wine glass | 815 | 13.5 | 10.8 | 7.0 |
| Bordeaux wine glass | 495 | 12.0 | 8.5 | 6.6 |
| Chardonnay wine glass | 315 | 9.8 | 8.0 | 6.0 |
| Wine tasting glass | 215 | 10.0 | 6.5 | 5.4 |
| Coffee glass | 185 | 5.8 | 8.1 | 8.1 |
| Water glass | 315 | 8.9 | 8.4 | 8.4 |
| Short rock glass | 135 | 7.4 | 7.2 | 7.2 |
| Rock glass | 235 | 9.5 | 7.6 | 7.6 |
Figure 3Examples of laboratory images in the WineGut_BrainUP dataset.
Number of images available in the WineGut_BrainUP dataset for every wine volume.
| Volume (mL) | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | 275 | 300 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| # | 2187 | 2194 | 2194 | 2195 | 2025 | 2025 | 1508 | 1393 | 1261 | 1178 | 919 |
| # | 300 | 300 | 300 | 301 | 277 | 277 | 207 | 191 | 173 | 161 | 126 |
| # | 299 | 301 | 301 | 300 | 277 | 278 | 206 | 191 | 173 | 161 | 126 |
| # | 2786 | 2795 | 2795 | 2796 | 2579 | 2580 | 1921 | 1775 | 1607 | 1500 | 1171 |
Figure 4Standard and smoothed saliency maps examples. (a) Saliency maps of Chardonnay wine glass filled with 150 mL. The predicted volume is 146.5 mL (2.3% relative error). (b) Saliency maps of Bordeaux wine glass filled with 275 mL. The estimated volume is 259.6 mL (5.6% relative error).
Regression metrics (MAE and RMSE) evaluation for wine volume predictions with our model.
| Set | MAE (mL) | RMSE (mL) |
|---|---|---|
| Training | 2 | 3 |
| Validation | 8 | 12 |
| Test | 8 | 11 |
Figure 5Violin plots of the volumes distribution for model's predictions.
Figure 6Mean Absolute Error for estimated red wine volumes with our model.