Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Expected energy as nutrient #10862

Closed
3 tasks
aleene opened this issue Oct 3, 2024 · 1 comment
Closed
3 tasks

Add Expected energy as nutrient #10862

aleene opened this issue Oct 3, 2024 · 1 comment
Labels
🧽 Data quality https://wiki.openfoodfacts.org/Quality Nutrients

Comments

@aleene
Copy link
Contributor

aleene commented Oct 3, 2024

Description

The expected energy is the energy expected based on the values for the nutrients and a standard formula. This expected energy should be the same as the published energy. Any large deviations indicate a problematic product. In a scatter plot these are easily seen and can be inspected and corrected.
Large deviations in the energy difference (publish energy minus expected energy) can be used as a flag for data quality.

Acceptance criteria

Some test to check the correctness of the formula based on a specific complex product.

What would a demo look like

A scatter plot with published energy versus expected energy for a category.

Notes

  • See the wiki;
  • Exclude upper values from calculations;

Tasks

  • Add the expected nutrient to nutrients taxonomy;
  • Implement the formula and calculations for each product;
  • Add the expected energy to the statistics and graph module;
@aleene
Copy link
Contributor Author

aleene commented Nov 13, 2024

This is availabe through the Power user script, which is enough for the moment.

@aleene aleene closed this as completed Nov 13, 2024
@github-project-automation github-project-automation bot moved this from To discuss and validate to Done in 🍊 Open Food Facts Server issues Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧽 Data quality https://wiki.openfoodfacts.org/Quality Nutrients
Projects
Archived in project
Development

No branches or pull requests

3 participants