Daily Healthy Eating Index (HEI-2020) scoring reveals diet quality patterns masked by aggregation
Digital Epidemiology Lab, School of Life Sciences, School of Computer and Communication Sciences, EPFL, Lausanne, Switzerland
Abstract
The Healthy Eating Index (HEI-2020) is commonly calculated by aggregating dietary intake across several days before scoring. Continuous food logging also makes it possible to score each day separately and then average the daily scores. We compared these approaches in 1,012 Food & You participants who logged their diet daily for 14 or 28 days (median 17 days). The aggregate HEI score was 5.5 points higher on average than the mean daily score and was higher in 96% of participants. Most of this difference arose because HEI component scores stop changing once intake reaches the maximum or minimum score. In contrast, the effect of giving greater weight to days with higher energy intake was comparatively small. The two approaches provide different summaries of the same dietary records, with daily scoring retaining day-to-day variation that is lost upon aggregation. Therefore, for studies with long consecutive daily intake data, we recommend reporting both scores together with day-to-day variability in HEI.
1 Introduction
1.1 Background and structure of the Healthy Eating Index
The Healthy Eating Index (HEI) was introduced in 1995 to provide a single indicator of overall diet quality for Guidelines. Major revisions in 2005 and 2010 shifted the index toward a density-based approach (2, 3). HEI-2015 introduced added sugars and saturated fat as moderation components (4), and HEI-2020 retained the component structure and standards while aligning the name with the 2020–2025 guidance (5).
The HEI-2020 is a summary measure of overall diet quality, scored from 0 to 100 across 13 components, that reflects adherence to the Dietary Guidelines for Americans (DGA) (6) (Supplementary Table S1). Components are classified as adequacy components, for which higher intake is encouraged, or moderation components, for which lower intake is recommended. For both, higher scores reflect closer alignment with the guidance. Six components are scored from 0 to 5 and seven from 0 to 10, reflecting the relative emphasis given to them by the index developers (4). Most components are scored on a density basis per 1,000 kcal with proportional scoring between minimum and maximum standards. The Fatty Acids component is scored as a ratio of poly- and monounsaturated fatty acids (PUFAs and MUFAs) to saturated fatty acids (SFAs) rather than per 1,000 kcal, with higher ratios indicating better diet quality. The total score is the sum of component scores and provides a comparable metric across individuals, menus, or food supplies.
1.2 Clinical utility and health associations
HEI scores have been associated with a wide range of health outcomes. In a meta-analysis of 18 cohort studies, participants with the highest HEI-2015 scores had about 20% lower all-cause mortality than those with the lowest scores, with similar reductions for cardiovascular and cancer mortality (7). A meta-analysis pooling the HEI with related dietary indices likewise found that the highest-quality diets were associated with lower all-cause mortality, lower cardiovascular disease and cancer incidence or mortality, and lower risk of type 2 diabetes and neurodegenerative disease (8). In cross-sectional studies, higher HEI scores have been associated with lower stroke prevalence (9), lower odds of frailty (10) and fewer decayed, missing and filled teeth (11). Among three dietary indices compared in a twin cohort, the HEI showed the strongest association with gut microbiome alpha diversity and explained the most variance in beta diversity (12).
1.3 Conventional scoring approaches
The index can be applied to 24-h recalls, food records, menus and food frequency questionnaires. The National Cancer Institute (NCI) documents several scoring approaches, including scoring on totals across days and day specific scoring.
The HEI was developed and validated primarily as a measure of usual diet quality (3, 13), which is why intake from several days is typically combined before scoring. Food intakes and energy are summed across all of a participant’s days, component densities are computed on these totals, and then the HEI scoring is done once (14). When estimating mean HEI scores at the population level from a single recall per person, intakes and energy are instead pooled across individuals, and component ratios are calculated from these population totals. In cases where repeated recalls are available, NCI usual intake methods can instead be used to account for daily variation within individuals and correlations among HEI components in order to estimate the distribution of usual HEI scores (14–16). These methods are needed because intake averaged across only a few non-consecutive recalls may not adequately represent habitual intake, particularly for foods that are consumed episodically.
However, when diet is logged over a longer consecutive period, such as two weeks or longer, a participant’s daily intake can be observed more directly. The mean daily HEI score then estimates the participant’s expected score on a typical day directly from the observed days, without the statistical modeling that usual intake methods require when only a few recalls are available (15). This mean daily score can then be compared with the HEI score calculated after combining intake across all recorded days. Because HEI is also applied to single days and menus (17), the two approaches summarize the same dietary records in different ways.
1.4 Rationale and objectives
The difference between the two approaches comes from two aspects of HEI scoring. First, aggregating intake across days gives greater weight to days with higher energy intake, whereas the mean daily score gives equal weight to each day. This corresponds to the ratio estimator bias described in survey sampling (18). Second, HEI component scores are bounded and no longer change once the maximum or minimum score is reached. As a result, scoring intake after aggregation does not necessarily give the same result as averaging scores calculated separately for each day. This follows from Jensen’s inequality for the piecewise linear HEI scoring functions. The direction of the difference depends on how a participant’s daily intakes are distributed relative to the scoring thresholds. Aggregation tends to increase scores when daily intakes fall on both sides of the threshold for the maximum score, and to decrease scores when they fall on both sides of the threshold for a score of zero (Figure 1), and its magnitude also depends on how much intake varies from day to day.
Our interest in this question came from an earlier analysis of the Food & You cohort, in which the mean daily HEI was more strongly associated with gut microbiome alpha diversity than the aggregate score (19). That result suggested that the two scores carry different information, but it did not show how large the difference is or where it comes from. We therefore quantified the difference between aggregate and mean daily HEI-2020 scores for each HEI component, examined the contributing mechanisms and derived recommendations for reporting them.
2 Methods
2.1 Study population and dietary assessment
Food & You was a digital nutrition cohort of 1,014 participants, conducted in Switzerland between 2018 and 2023 (20). Adults were recruited online and participated remotely without clinic visits. The protocol was approved by the Geneva Ethics Commission (2017–02124) and registered with the Swiss Federal Office of Public Health (SNCTP000002833) and
<p>The Geneva ethics commission has reviewed and authorized the project (Ethical Approval Number: 2017–02124). The study is registered on the website of the Federal Office of Public Health (SNCTP000002833) and the platform


