| Literature DB >> 30023359 |
Gianrocco Lazzari1, Yannis Jaquet1, Djilani J Kebaili1, Laura Symul1, Marcel Salathé1.
Abstract
Entities:
Keywords: API; digital epidemiology; digital health; nutrition; open data
Year: 2018 PMID: 30023359 PMCID: PMC6040205 DOI: 10.3389/fnut.2018.00057
Source DB: PubMed Journal: Front Nutr ISSN: 2296-861X
Figure 1(A) Screenshot from the webpage of a product on the FoodRepo website. (B) Schematic representation of the pipeline behind our API. When a user or an application (left column) sends a call to the API, the request is handled by the server that hosts the API (middle column). This sends then a query to the server which hosts the FoodRepo database (right column), where the query is handled by the Elastic Search engine. The data is returned to the API server which performs final formatting before giving it back to the user or the application. (C) Distribution of API response times, color-coded according to different sections of the back-end pipeline, as shown in (B). In green (main plot and inset) the response-times of the Elastic Search server to the application server; in blue the full time needed for a user to have the data after a call to our API.
Figure 2Schematic overview of FoodRepo data collection and validation processes. The two workflows are illustrated here. The bootstrap workflow (A) was based on the joint work of the FoodRepo team and crowd-sourced workers collecting and validating the data. This allowed the storage of the first 14,000 or so products in the database. The community-based workflow (B) allows for long-term sustainability of the database thanks to customers uploading new products through FoodRepo mobile app and the continuous support of the FoodRepo team.
Sample product from the FoodRepo database with its values for the most relevant fields.
| Product ID | 972 |
| Barcode | 7611654884033 |
| Name | Chocolat au lait aux noisettes |
| Quantity | 150 |
| Units | g |
| Portion quantity | 30 |
| Portion unit | g |
| Alcohol by volume | 0 |
| Origin | Switzerland |
| Ingredients | (FR) |
| Nutrients (per 100 g) | Energy 2410.0 kJ; Energy (kCal) 577.0 kCal; Fat 40 g; Saturated fat 16 g; Carbohydrates 43 g; Sugars 42 g; Fiber 4 g; Protein 10 g; Salt 0.2 g |
| Created at | 2016-05-31, 17:54:07 |
| Updated at | 2017-11-16, 10:13:31 |
| Pictures | Url to the front picture of the sample product: e.g., |
While here we only provide the link to the front image of the product, an API call would provide the links to all pictures available for the requested products. A complete description of the fields provided by the API is available in the .
Figure 3Examples of tests implemented with linear boundaries on nutritional values. Dots outside the boundaries have been inspected and corrected whenever data were different from the products packages. Products in the fat/carbohydrates concentrations space (A), saturated fat/fat concentrations space (B) and energy density/fat concentration space (C).