Bites of Tomorrow: Personalized Recommendations for a Healthier and Greener Plate

Jiazheng Jing, Yinan Zhang, Chunyan Miao

Introduction

Food production is a primary driver of global carbon emissions and water pollution, yet shifting consumer behavior toward sustainable diets remains a significant challenge. While traditional "nudges"—such as public awareness campaigns or regulatory measures—often face resistance or lack personalization, recommendation systems (RS) offer a powerful alternative. However, most existing models are optimized solely for prediction accuracy, often reinforcing existing habits rather than encouraging healthier or greener choices.

To bridge this gap, researchers have developed GRAPE (Green Recommender Aligned with Personalized Eating). This framework integrates environmental and nutritional indicators directly into a neural architecture, successfully balancing what users want to eat with what is better for the planet.

The Challenge: Accuracy vs. Sustainability

The fundamental tension in sustainable recommendation is the gap between a user's historical preference (e.g., a diet high in processed foods) and the desired outcome (e.g., low-carbon, nutrient-dense alternatives). Modeling this transition requires handling evolving user tastes and managing conflicting sustainability indicators, such as a dish that is high in protein but carries a high environmental cost due to intensive farming practices.

The GRAPE Framework

GRAPE addresses these challenges through three core innovations:

1. Sustainability Integrated Attention (SIA) Module

Unlike standard transformer models that focus only on item sequences, the SIA module utilizes a dual-attention mechanism. Self-attention tracks the evolution of a user's taste over time, while cross-attention captures the correlation between specific food items and green indicators. This allows the model to learn, for instance, if a user who prefers high-protein meals is becoming more receptive to plant-based protein alternatives.

2. Personalized Attention Matrix ($P$)

GRAPE recognizes that every user has a different threshold for change. The model initializes a preference matrix based on the mean and variance of a user's interaction history. A user with high variance in their health scores is identified as more "adventurous," signaling to the system that they may be more open to sustainable "nudges" than a user with highly rigid eating habits.

3. Innovative Green Loss Functions

To optimize for multiple goals, the researchers introduced two types of loss functions:

  • Non-prioritized Green Loss ($L_{np}$): Treats all indicators—such as carbon footprint and nutritional value—as equally important.
  • Prioritized Green Loss ($L_{pg}$): Employs a lexicographic approach. It optimizes for a secondary goal (like carbon footprint) only after a primary threshold (like basic nutrition) is met. This ensures that recommendations remain nutritionally sound while pursuing environmental benefits.

Experimental Setup and Data

The framework was evaluated using a large-scale food recommendation dataset containing:

  • 6,290 users and 74,324 recipes.
  • 316,116 interactions.
  • Three Sustainability Indicators: Environmental Impact Score (EIS), Nutritional Impact Score (NIS), and the Healthy Meal Index (HMI).

Key Insights

Sustainability as Context

One of the study's most striking findings is that incorporating sustainability data actually improves recommendation accuracy. Rather than acting as a constraint, these indicators serve as rich features that help the model better understand the underlying motivations behind user choices.

The "Gentle Nudge"

The researchers found that accuracy peaks when the model weights user preference at 90% and sustainability at 10% (via the parameter $\alpha$). This suggests that a "gentle nudge" is more effective at maintaining user engagement than a more aggressive "shove" toward green items.

Results

In comparative testing against state-of-the-art baselines (including BPR, STOSA, and MSSR), GRAPE demonstrated superior performance:

  • Accuracy: GRAPE outperformed the best baseline (MSSR) by 8.01% in Hit Ratio (HR@20) and 4.89% in NDCG@20.
  • Impact: Recommendations consistently achieved lower EIS and higher NIS/HMI scores compared to models focused purely on accuracy.
  • Flexibility: The prioritized loss function allowed the system to emphasize specific health or environmental goals without compromising overall system performance.

Limitations and Future Directions

While GRAPE represents a significant step forward, its implementation depends on high-quality, pre-labeled sustainability data, which is often missing in real-world retail environments. Additionally, the "cold start" problem for new green products remains an area for exploration. Future research will likely focus on the long-term habit-forming effects of these personalized nudges to see if they can lead to permanent shifts in dietary behavior.

Summary updated

BibTeX
@inproceedings{jing2025bites,
  author = {Jiazheng Jing and Yinan Zhang and Chunyan Miao},
  title = {{Bites of Tomorrow: Personalized Recommendations for a Healthier and Greener Plate}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i11.33295},
}
Figure