Next Article in Journal
Rapid Recovery and Self-Healing Strategies for Power Distribution Systems Based on Dynamic Mesh Networks
Previous Article in Journal
A Bi-Objective Optimization for Sensor Path Planning and Communication Node Deployment
Previous Article in Special Issue
Cognitive Biases in Large Language Models: A Systematic Quantitative Assessment and Debiasing Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Multi-Objective Recipe Recommender System with Structural Safety Constraints for Allergen-Aware Diets †

Graduate School of Sciences and Technology for Innovation, Yamaguchi University, Ube 755-8611, Yamaguchi, Japan
*
Authors to whom correspondence should be addressed.
This paper is an extended version of our paper published in Wang, T.; Ding, Y.; Wang, Y. Allergen-Aware Cooking Recipe Recommendation Incorporating Nutritional Balance and Visual Appeal. In Proceedings of the 2026 20th International Conference on Ubiquitous Information Management and Communication (IMCOM), Hanoi, Vietnam, 4–6 January 2026; pp. 1–6.
Electronics 2026, 15(12), 2628; https://doi.org/10.3390/electronics15122628 (registering DOI)
Submission received: 22 May 2026 / Revised: 11 June 2026 / Accepted: 12 June 2026 / Published: 14 June 2026

Abstract

Food allergies impose strict constraints on dietary decision-making, necessitating recommender systems that guarantee safety without compromising nutritional quality or user satisfaction. Existing systems often treat safety as a preference, failing to meet rigorous safety-critical standards or account for complex interactions between allergens, nutrition, and visual appeal. To address this issue, we propose a structured, multi-objective recipe recommendation framework. In this framework, rather than being modeled as an additive objective, allergen safety is prioritized through a safety-aware penalty-based ranking mechanism. The framework integrates three core modules: an allergen safety score accounting for cross-reactivity and cooking conditions; a nutritional balance score aligned with Dietary Reference Intakes (DRIs); and a neural-derived visual appeal score. In evaluation, we conducted a controlled user study ( N = 20 ) to evaluate the framework against single-factor baselines. Our integrated strategy consistently outperforms all single-factor baselines across evaluated metrics. Sensitivity analysis further confirms that safety-aware ranking ensures stable recommendation behavior across diverse preference profiles. Notably, behavioral analysis revealed a decision–action discrepancy, wherein users exhibited more risk-averse behavior during actual interactions than their explicitly stated preferences suggested. These findings suggest that prioritizing safety through safety-aware ranking mechanisms, together with multi-objective optimization, provides a robust foundation for personalized health-aware dietary support.

1. Introduction

The global food system is under mounting pressure to simultaneously ensure human health and environmental sustainability [1]. Within this context, food allergies have emerged as a pervasive public health concern worldwide, affecting individuals across all demographics. For affected populations, strict avoidance of allergen exposure is an absolute medical necessity, reinforced by stringent regulatory frameworks, including mandatory labeling policies enforced by the Japan Consumer Affairs Agency (CAA) [2]. These compounded challenges underscore the critical need for intelligent systems that support safe, health-conscious, and nutritionally adequate dietary decision-making.
Despite ongoing public health efforts, managing allergy-restricted diets remains highly complex. Beyond the mere avoidance of explicit allergens, individuals must also navigate the risks of cross-reactivity, wherein structurally homologous proteins can trigger unintended and potentially severe immune responses [3]. Concurrently, dietary safety must not come at the expense of nutritional balance, a priority emphasized by national public health initiatives such as “Health Japan 21” and the Dietary Reference Intakes (DRIs) [4,5]. This creates an inherent and persistent tension among safety, nutritional adequacy, and user satisfaction, which represents a trilemma that remains insufficiently addressed in existing computational dietary approaches.
Despite extensive study, food recommender systems often fail to meet the stringent requirements of users with food allergies. Conventional systems typically optimize for either general user preferences or broad health objectives, lacking rigorous allergen risk modeling that accounts for cross-reactivity and cooking-induced biochemical transformations [6,7,8]. Conversely, systems focused on nutritional optimization frequently disregard the visual and hedonic factors that profoundly influence human food choices [9,10]. Existing mobile applications for allergy management similarly also suffer from limited clinical reliability and a lack of adaptive personalization [11,12]. A critical point of divergence in current research is how to treat safety: as a preference-based a fully compensatory objective or a safety-prioritized ranking mechanism. Although some argue that flexible, preference-aware filtering improves user satisfaction, we hypothesize that, in health-critical contexts, structural safety implicitly takes precedence over aesthetic or hedonic factors, regardless of explicitly stated preferences. Furthermore, current algorithmic approaches rely heavily on explicitly stated user preferences, neglecting the well-documented discrepancies between stated preferences and actual interaction behaviors, particularly in risk-sensitive contexts. Consequently, there remains a distinct lack of a unified, principled framework that jointly models allergen safety, nutritional balance, and real-world user behavior.
To bridge these gaps, this study proposes an allergen-aware recipe recommendation framework that integrates safety constraints, nutritional optimization, and user-centered aesthetic preferences. We formulate the recommendation problem as a structured multi-objective ranking task. Crucially, allergen safety is operationalized as a primary safety-aware ranking objective rather than a secondary preference, with nutritional balance and visual appeal incorporated as complementary optimization objectives within the safe feasible region. This paper is a significant extension of our preliminary work presented at [13]. While our previous study demonstrated the feasibility of a multi-objective scoring framework, it treated allergen safety as a simple additive goal rather than thoroughly investigating its role as a safety-prioritized ranking component. In this paper, we provide a deeper theoretical re-characterization of safety and a substantially expanded empirical evaluation. Specifically, we introduce a systematic weight robustness analysis to identify stable performance regions, a standardized usability evaluation using the System Usability Scale (SUS), and a novel behavioral analysis that identifies the “decision–action discrepancy” in risk-sensitive scenarios, providing critical insights that remained unexplored in our initial study. Through these advancements, we provide the following contributions:
  • Multi-Objective Integration with Safety-Aware Ranking: We conceptualize and model allergen safety not merely as a binary filter or an additive scoring component, but as a foundational safety-aware ranking component using a penalty-based mechanism. This enables nuanced, graded risk-aware recommendations while stabilizing the overall preference space.
  • Robustness Analysis of the Unified Scoring Framework: We develop a comprehensive scoring architecture that seamlessly integrates safety risk evaluation, nutritional profiling, and visual appeal assessment. Furthermore, we present an extensive sensitivity analysis that maps the performance landscape, identifying a robust high-performance plateau for these integrated objectives.
  • Behavioral Insight through Empirical Evaluation: We conduct a controlled user study to evaluate the performance of multi-objective ranking. The analysis uncovers the “decision–action discrepancy,” which refers to systematic divergences between explicit user preferences and actual implicit decision-making behaviors in risk-sensitive scenarios. This finding provides new design implications for health-critical recommendations.
Ultimately, these findings provide compelling empirical evidence for the necessity of incorporating safety-aware prioritization mechanisms and behavior-aware modeling into the design of trustworthy, health-critical recommender systems.
The remainder of this paper is organized as follows. Section 2 reviews related work in health and allergen-aware recommender systems, as well as visual aesthetics and multi-objective evaluation. Section 3 details the proposed Allergen-Aware Cooking Recipe Recommender System and its methodology, which includes the mathematical modeling of the three scoring modules. Section 4 describes the experimental design and evaluation metrics. Section 5 presents the quantitative results, while Section 6 provides an in-depth discussion on the decision–action discrepancy observed in user evaluations. Finally, Section 7 concludes the paper and outlines future research directions.

2. Related Work

2.1. Health and Allergen-Aware Recommender Systems

Food computing has emerged as a critical interdisciplinary field that leverages food-related data to support diverse computational applications [6]. While traditional recommender systems have historically prioritized collaborative filtering and predictive accuracy [14], recent systematic reviews highlight a significant shift toward context-aware and health-oriented frameworks [15]. Due to the global increase in diet-related chronic diseases, research on dietary recommendations has expanded to include complex health constraints [9]. This research employs mechanisms such as time-awareness [16] and behavioral “nudging” [17] to promote healthier dietary habits.
Despite these advancements, specific allergen management remains a significant gap in the literature. While foundational studies have addressed the identification of safe ingredient substitutes [18] and the biological mechanisms of cross-reactivity [3,19], most existing computational models treat safety as an auxiliary feature or a preference-based soft constraint. These approaches fundamentally fail to conceptualize allergen safety as a primary safety-aware ranking component that consistently guides recommendation behavior. For users in health-critical contexts, safety should be prioritized over competing preference signals and therefore requires explicit consideration throughout the ranking process.

2.2. Visual Aesthetics and Multi-Objective Evaluation

The visual presentation of food profoundly influences human appetite and selection, a psychological phenomenon often referred to as “visual hunger” [10]. Recent progress in deep learning has facilitated the precise aesthetic analysis of food imagery. Specifically, computational frameworks such as Neural Image Assessment (NIMA) [20] have proven effective in mimicking human aesthetic perception by capturing fundamental photographic attributes [21].
However, most existing research primarily focuses on visual signals as the dominant factors influencing decisions. In the context of allergen-restricted diets, replacing ingredients, such as removing gluten, dairy, or eggs, often compromises the visual and textural integrity of the final dish. Consequently, in risk-sensitive scenarios, visual appeal should be positioned as a hedonic refinement signal rather than a primary driver, ensuring that safety-first recommendations remain palatable without compromising clinical rigor.
Furthermore, user trust is paramount in high-risk domains, which is often established through transparent recommendation mechanisms [22]. Despite the rich body of literature, critical discrepancies remain: safety is rarely modeled as a structural constraint; the robustness of multi-objective weight spaces is underexplored; and the inherent discrepancy between explicitly stated preferences and actual implicit interaction behavior is frequently overlooked. To bridge these gaps, this study proposes a structured multi-objective framework that integrates safety constraints, investigates weight space robustness, and explicitly analyzes the decision-action discrepancy.

3. Allergen-Aware Cooking Recipe Recommender System

This section details the proposed allergen-aware recipe recommendation framework and the data-driven methodology employed to evaluate its performance. We first provide a high-level overview of the system architecture, followed by a rigorous mathematical formulation of the three core scoring modules: Allergen Safety, Nutritional Balance, and Visual Appeal. Finally, we define the multi-objective ranking strategies utilized to aggregate these dimensions into optimized recommendation lists.

3.1. System Architecture and Workflow

Figure 1 illustrates the proposed system architecture. It consists of four primary components designed to facilitate reproducible dietary decision-making:
  • Recipe Repository: A centralized database containing recipe metadata, including precise ingredient quantities, standardized nutritional profiles, and high-resolution culinary images.
  • Scoring Modules: Three independent computational modules that quantify Allergen Safety (S), Nutritional Balance (N), and Visual Appeal (V).
  • Multi-Objective Re-ranker: An aggregation engine that applies dynamic weighting strategies ( α , β , γ ) to prioritize health-critical safety factors while maintaining hedonic appeal.
  • Web-Based Interface: An interactive platform that enables users to browse recommendations and adjust preferences while simultaneously facilitating the collection of explicit preference data and implicit behavioral logs.
The workflow follows a two-stage process: (1) Hard Filtering, which excludes recipes containing a user’s primary allergens, and (2) Multi-Objective Ranking, where the remaining candidates are ranked using the scoring modules described below.

3.2. Safety-Aware Risk Modeling

Although the initial filtering removes immediate health risks, a binary “safe/unsafe” classification is insufficient for high-risk users. Therefore, we introduce a safety-aware risk modeling mechanism that combines hard allergen filtering with graded penalty-based ranking. Rather than acting as a strict optimization constraint, the safety module serves as a safety-aware ranking component that strongly suppresses recipes carrying residual allergen risks.
The Safety Score (S) is defined as a penalty-based function that captures varying degrees of risk rather than a binary safe/unsafe distinction:
S = ( P a l l e r g e n + P c r o s s + P h e a t i n g ) + B s u b s t i t u t e
The components of the Safety Score (S) are defined as follows:

3.2.1. Allergen and Cross-Reactivity Penalties ( P a l l e r g e n , P c r o s s )

P a l l e r g e n reflects the intrinsic risk of ingredients based on the “8 Specified Ingredients” (mandatory labeling) and “20 Recommended Ingredients” defined by the Japan Consumer Affairs Agency (CAA) [2]. In the first stage, the system meticulously filters out the user’s explicitly declared primary allergens. However, this term introduces a soft penalty for the presence of any remaining high-risk ingredients from this 28-item list. This mechanism ensures the system favors generally hypoallergenic recipes, preventing it from casually substituting one common allergen for another potentially risky ingredient.
P c r o s s accounts for cross-reactivity, where proteins in non-allergen ingredients structurally resemble allergens [3]. For instance, a user allergic to shrimp (crustacean) might react to crab or lobster. We utilize cross-reactivity groups (e.g., Group G2 for crustaceans, G3 for latex-fruit syndrome) to assign penalties. If an ingredient belongs to the same cross-reactivity group as the user’s allergen, a fixed penalty (e.g., 5 points) is applied [19]. This specific penalty value is mathematically calibrated as a high-magnitude threshold relative to the preference scoring range. By setting P c r o s s = 5.0 , the system ensures that cross-reactive ingredients are strongly penalized and effectively demoted below the baseline preferences, preventing accidental exposure based on clinical risk categories documented in medical literature [3].

3.2.2. Heating Requirement Penalty ( P h e a t i n g )

Certain ingredients, such as eggs or shellfish, may pose risks if undercooked, even if not strictly allergenic. We assign penalties based on the Tokyo Metropolitan Government’s food hygiene standards [8]. Ingredients requiring higher internal temperatures for sterilization are assigned higher penalties to reflect the increased cooking burden and risk. To avoid heuristic scaling, the penalty scores were systematically derived from biologically motivated thermal-processing thresholds. A conservative baseline of 45 °C was adopted as the computational lower bound, below which substantial structural protein denaturation and the inactivation of non-thermophilic microorganisms are generally negligible. As summarized in Table 1, target temperatures within the practically relevant processing spectrum of 60 °C to 85 °C were then mapped onto a discrete penalty scale from 1.0 to 4.0 via a linear scaling function equipped with a deterministic floor operator.
By integrating this into the Safety Score (S) by Equation (1), the system ensures that the recommendation ranking is sensitive not only to biochemical allergen risks but also to the practical, safety-critical requirements of the cooking process itself.

3.2.3. Substitution Bonus ( B s u b s t i t u t e )

To promote safe adaptation, the system provides a bonus when high-risk ingredients are substituted. The bonus is calculated as follows:
B s u b s t i t u t e = P o r i g i n a l · δ 1 + n r
where P o r i g i n a l R + is the positive continuous penalty value of the replaced ingredient, δ { 1.0 , 2.0 } is a discrete safety coefficient (2.0 if the substitute is completely safe, 1.0 otherwise), and n r N 0 is a non-negative integer representing the count of remaining risky ingredients. This formulation rewards risk reduction [18]. The coefficient δ { 1.0 , 2.0 } acts as a binary scaling factor designed to double the adaptation reward only when a verified hypoallergenic alternative replaces a hazardous ingredient. To ensure the robustness of the recommendation, the denominator ( 1 + n r ) mathematically models the overall risk density of the recipe, expanding upon the concept of safe dietary substitution mining proposed in recent health informatics literature [18]. This density-dependent dampening mechanism ensures that the substitution bonus is adaptively suppressed if the surrounding recipe environment still contains multiple unaddressed allergen risks, thereby preventing the system from over-rewarding a single substitution in an otherwise hazardous dish.

3.3. Nutritional Optimization and DRI Alignment

The Nutrition Score (N) quantifies the degree to which a recipe aligns with the Dietary Reference Intakes (DRIs) for the Japanese population (2025 Edition) [5]. In alignment with the strategic framework of “Health Japan 21” (Phase III) by the MHLW [4], our framework prioritizes ten essential nutrients critical for preventing lifestyle-related diseases.
To adapt daily DRI standards to a single-meal context, we assume a balanced three-meal dietary structure. Thus, the target intake ( r i ) and the tolerable upper limit ( r i m a x ) for the i-th nutrient correspond to the daily recommended value divided by three. Let a i represent the actual content of the i-th nutrient in a given recipe. The individual nutrient score s i formulates a penalty for both insufficient and excessive intake:
s i = 100 · a i r i if a i < r i 100 if r i a i r i m a x 100 · 1 a i r i m a x r i m a x if a i > r i m a x
The aggregate Nutrition Score (N) is computed as a weighted average to reflect the varying public health significance of each nutrient:
N = i = 1 10 w i · s i i = 1 10 w i
where w i denotes the weight assigned to nutrient i. As detailed in Table 2, these weights are categorized into three strategic tiers:
  • High Importance ( w i = 3.0 ): Energy and fat, given their critical roles in managing obesity and chronic metabolic disorders.
  • Medium Importance ( w i = 2.0 ): Essential micronutrients, including sodium (salt), iron, and specific vitamins, selected for their broad public health impact.
  • Standard Importance ( w i = 1.0 ): Nutrients such as dietary fiber, which are vital for long-term health maintenance but present less acute risk profiles.

3.4. Visual Appeal Assessment via Neural Image Assessment (NIMA)

To address the “visual hunger” phenomenon, the framework implements a deep perceptual scoring module to quantify the aesthetic quality of recipe images, providing an objective measure of their visual appeal.
The evaluation leverages the Neural Image Assessment (NIMA) architecture, instantiated via the open-source PyTorch (version 2.12.0) Image Quality Assessment (IQA-PyTorch) toolbox. Specifically, the visual scoring path utilizes a robust Inception-ResNet-V2 backbone pre-trained on ImageNet for structural feature extraction, which was subsequently optimized on the Aesthetics Visual Analysis (AVA) dataset. The AVA dataset contains approximately 250,000 professional photographic images annotated with human aesthetic rating distributions, providing a strong foundation for generalized aesthetic evaluation.
To rigorously evaluate the domain generalization performance of the scoring module without introducing target-domain annotation bias, the NIMA network is intentionally evaluated in a zero-shot setting without fine-tuning on food-specific imagery. Instead, it relies on cross-domain feature transfer from the off-the-shelf weights to capture fundamental, universal photographic attributes, including optimal illumination, chromatic contrast, and compositional alignment.
During inference, the model processes the input recipe image X and returns a mean aesthetic preference score natively scaled between 1 and 10. To align this metric with the uniform scale of our multi-objective framework, this raw score is deterministically mapped into the final Visual Score ( V [ 10 , 100 ] ) via a standard decimal multiplier:
V = NIMA ( X ) × 10
In our safety-critical framework, this visual appeal score does not act as a primary hard filter. Instead, it serves strictly as a hedonic refinement signal that distinguishes between recipe candidates that have already satisfied the rigorous safety and nutritional thresholds.

3.5. Multi-Objective Ranking Strategy

The final recommendation ranking results from a Composite Objective Score (O). To ensure commensurability across diverse metrics, we normalized the raw scores for safety, nutrition, and visual appeal to a uniform scale of [0, 100], denoted as S , N , and V , respectively. Specifically, for the visual dimension, the raw score V [ 10 , 100 ] is min-max normalized to V [ 0 , 100 ] to ensure that complete aesthetic collapse maps to an absolute zero baseline. Then, we define the Composite Objective Score (O) as follows:
O = α · S + β · N + γ · V
In our primary configuration, the weighting coefficients are set to ( α , β , γ ) = ( 0.5 , 0.3 , 0.2 ) , reflecting a deliberate prioritization of allergen safety. Although the overall ranking score is formulated as a linear weighted sum, the framework is designed to exhibit safety-aware non-compensatory behavior through the penalty mechanism described in Section 3.2. While primary explicit allergens are eliminated via a strict hard structural constraint at the first stage (the absolute exclusion mechanism in Algorithm 1 described in Section 3.6), remaining implicit risks such as cross-reactivity ( P c r o s s ) and heating requirements ( P h e a t i n g ) are processed within the scoring engine. Recipes associated with these identified secondary risks receive substantial safety penalties, causing their normalized safety score to approach the lower end of the scoring range.
Algorithm 1 Multi-Objective Recipe Ranking Engine
  • Require: Set of Candidate Recipes R , User Profile U (Primary Allergens, Cross-Reactivity Groups, Nutritional Targets r i , Upper Limits r i m a x , Nutrient Weights w i ), Global Coefficients ( α , β , γ )
  • Ensure: Ranked Recommendation List R *
      1:
R s c o r e d
      2:
for each recipe r R  do
      3:
    if r contains the user’s primary explicit allergen then
      4:
        continue {Absolute exclusion of explicit allergens}
      5:
    end if
      6:
    Calculate penalties P a l l e r g e n and P c r o s s using CAA guidelines and cross-reactivity matrices {Implicit risk modeling}
      7:
    Calculate P h e a t i n g using linear normalization of sterilization temperatures from Table 1
      8:
    Compute Substitution Bonus B s u b s t i t u t e ( P o r i g i n a l · δ ) / ( 1 + n r ) using Equation (2)
      9:
    Compute Raw Safety Score S ( P a l l e r g e n + P c r o s s + P h e a t i n g ) + B s u b s t i t u t e using Equation (1)
    10:
    Normalize Raw Safety Score to S [ 0 , 100 ]
    11:
    for each nutrient i { 1 , 2 , , 10 }  do
    12:
        Compute individual nutrient score s i using actual content a i via Equation (3)
    13:
    end for
    14:
    Compute Aggregate Nutrition Score N ( w i · s i ) / w i using Equation (4)
    15:
    Normalize Raw Nutrition Score to N [ 0 , 100 ]
    16:
    Fetch Pre-calculated Visual Score V NIMA ( X ) × 10 using Equation (5)
    17:
    Normalize Raw Visual Score to V [ 0 , 100 ]
    18:
    Compute Composite Ranking Score O ( r ) α · S + β · N + γ · V using Equation (6)
    19:
    Append r , O ( r ) , S , N , V to R s c o r e d
    20:
end for
    21:
R * CustomSort ( R s c o r e d ) {Sort via hierarchical fallback rules}
    22:
return  R *
To preserve safety dominance in practical deployment scenarios, we recommend operating within a safety-prioritized region of the weight space:
α β + γ
Under this configuration, substantial safety degradation cannot be fully compensated for by improvements in nutritional balance and visual appeal. For the default weight setting ( 0.5 , 0.3 , 0.2 ) , the theoretical lower bound of a completely safe recipe with respect to secondary risks occurs when
S = 100 , N = 0 , V = 0 ,
yielding
O s a f e = 0.5 ( 100 ) + 0.3 ( 0 ) + 0.2 ( 0 ) = 50
Conversely, the theoretical upper bound of a heavily penalized risky recipe occurs when
S = 0 , N = 100 , V = 100 ,
yielding
O r i s k y = 0.5 ( 0 ) + 0.3 ( 100 ) + 0.2 ( 100 ) = 50
Therefore, except for this extreme boundary condition where O s a f e = O r i s k y = 50 , safe recipes remain preferentially ranked. In the rare event of an exact numerical tie, the deterministic fallback procedure via the CustomSort function detailed in Section 3.6 (Algorithm 1) is invoked, evaluating sub-scores sequentially ( S N V ) to ensure safety-oriented ranking consistency.
It should be noted that the above condition serves as a deployment guideline rather than a hard optimization constraint for the entire framework. To evaluate the robustness of the framework and explore diverse user-preference patterns, the sensitivity analysis and weight optimization experiments reported in Section 5.5 intentionally examined the full feasible weight space under the normalization constraint α + β + γ = 1 . Consequently, empirically optimal weight combinations may fall outside the safety-prioritized region while still providing valuable insight into user preference structures. The recommended deployment configuration, however, remains anchored in the safety-dominant region to preserve the intended behavior of the recommender system.

3.6. Algorithmic Implementation and Reproducibility

To guarantee full technical reproducibility and eliminate any mathematical ambiguity regarding how these distinct objectives are programmatically integrated, Algorithm 1 outlines the sequential operational pipeline of our multi-objective scoring and ranking engine.
To systematically support the formalized procedure in Algorithm 1, we define its core operational parameters below:
  • Computational Complexity: Let N = | R | denote the total number of candidate recipes. The scoring phase iterates through the filtered repository in a single pass, yielding O ( N ) complexity. Within this loop, implicit safety penalties and nutrient sub-scores are calculated in O ( 1 ) constant time due to the fixed dimensions of cross-reactivity matrices and nutrient categories (10 items). To optimize online inference efficiency, visual aesthetic scores (V) are pre-computed offline via the CNN-based NIMA model and indexed in the database, reducing the runtime visual score acquisition to a lightweight O ( 1 ) table lookup per recipe. The final re-ranking phase utilizes a customized sorting algorithm equipped with a multi-key hierarchical comparison operator (derived from dual-pivot Quicksort), which operates at O ( N log N ) time complexity. Thus, the overall computational complexity of the engine is bounded at O ( N log N ) , making the framework suitable for real-time recommendation scenarios involving moderate-to-large recipe collections.
  • Stopping Criteria: The ranking engine operates under a deterministic batch-processing stopping criterion. The execution automatically terminates without any early-stopping thresholds or heuristic convergence checks once all N elements in the candidate repository R have completed the scoring loop and the fully sorted recommendation queue R * is compiled.
  • Tie-Breaking Mechanism: In the event that multiple recipes achieve identical composite scores ( O ( r a ) = O ( r b ) ), a non-compensatory hierarchical fallback mechanism is programmatically triggered to protect user safety. As modeled at the boundary conditions in Section 3.5 (where a safe but nutritionally empty recipe intersects with an unsafe but otherwise perfect recipe at O s a f e = O r i s k y = 50 ), ties are resolved deterministically by evaluating sub-scores in sequential order of health-critical importance: (1) higher Safety Score ( S ), (2) higher Nutrition Score ( N ), and (3) higher Visual Score ( V ). If a tie persists across all dimensions, the recipe with the lower unique database entry index (Recipe ID) is prioritized to ensure absolute algorithmic determinism.

4. Experimental Design and Evaluation

To evaluate the efficacy of the proposed system, we conducted a controlled user study comparing diverse ranking strategies. The primary objective of this evaluation is not to measure the system’s absolute retrieval recall from a global database, but to assess its ability to align with nuanced user preferences within a safety-prioritized recommendation space. By providing participants with a pre-filtered set of high-quality, safe candidates, we isolate and observe how different multi-objective weighting strategies reflect the subtle trade-offs between safety, nutrition, and visual appeal. This section details the dataset construction, the user study protocol, and the evaluation metrics used.

4.1. Dataset Construction and Curation

We constructed a comprehensive, proprietary recipe dataset by systematically scraping and curating web data from the “Table for All” platform [23], a specialized Japanese portal dedicated to allergy-friendly diets. Crucially, the culinary contents, dietary guidelines, and ingredient substitution rules on this platform were developed under the strict clinical supervision and expert advice of Dr. Yukihiro Ohya, Director of the Allergy Center at the National Center for Child Health and Development, alongside certified food allergy registered dietitians [24]. This expert-backed foundation provides a high level of clinical credibility and reliability for the source data. Since the platform does not offer an official academic API or a downloadable dataset, we developed a dedicated web-scraping pipeline to extract content from 606 individual recipe pages. By cleaning and structuring this raw web data, we built a tailored database for our study. This self-compiled dataset is particularly suitable for allergen-aware recommendation research due to the source platform’s highly reliable allergen annotations and well-structured nutritional metadata.
  • Total Recipes: 606 distinct, validated recipes.
  • Cuisine Categories: The dataset covers Desserts (217), Japanese (201), Western (159), and Chinese/Korean (29).
  • Metadata Attributes: Each entry includes a list of ingredients, 28-type allergen labels, detailed nutritional profiles (energy, protein, fat, salt, etc.), step-by-step instructions, and high-resolution culinary imagery.
The dataset was pre-processed to standardize unit measurements, normalize ingredient names, and remove incomplete or duplicate records to ensure experimental integrity.

4.2. User Study Protocol

We recruited 20 participants (13 regular home cooks and 7 occasional cooks) to evaluate the system’s recommendations. To maintain privacy and adhere to ethical standards, all interactions with participants were anonymous, and no personally identifiable information (PII) was collected. The study was conducted in a within-subject design so that each participant experienced several ranking configurations to reduce individual variance.

4.2.1. Experimental Procedure

The experiment utilized a custom web-based interface, following a four-stage protocol:
  • Profile Initialization: Participants registered an anonymous ID and declared their dietary restrictions.
  • Session Interaction: The system presented recommendation lists generated under 4 core interactive evaluation configurations: the integrated Multi-Objective (Overall) strategy, and three single-objective baselines (SafetyOnly, NutritionOnly, and VisualOnly). For each configuration, the top-10 recommended items were displayed to the participant (Figure 2). Across these live interactive sessions, each participant reviewed and manually re-ranked a total of 40 recipe recommendations. To prevent cognitive fatigue and ensure evaluation quality during the user study, the remaining dual-objective and external baselines were excluded from the live interface and reserved for retroactive algorithmic evaluation.
  • Interactive Re-ranking: Participants reviewed the recommended list and manually reordered the items to reflect their true personal preference. This user-modified order serves as the ground truth for our evaluation metrics (Figure 3).
  • Data Logging: The system automatically logged the initial system-generated rank, the user’s final rank, and any click-through behavior for detailed recipe views.

4.2.2. Ranking Strategies

To rigorously analyze the influence of each scoring dimension, we evaluated 7 distinct ranking configurations:
  • Multi-Objective (Overall): The proposed integrated strategy, with a baseline weight configuration of ( α = 0.5 , β = 0.3 , γ = 0.2 ) , which prioritizes safety while balancing other factors.
  • Single-Objective Benchmarks: SafetyOnly (S), NutritionOnly (N), and VisualOnly (V).
  • Dual-Objective Benchmarks: Safety+Nutrition ( S + N ), Safety+Visual ( S + V ), Nutrition+Visual ( N + V ).
Although seven ranking configurations were evaluated in total, only four core configurations were exposed during the live user sessions. The remaining configurations were assessed retrospectively using the collected preference data.

4.3. Evaluation Metrics

We evaluated the quality of the recommendations using standard Information Retrieval (IR) metrics, comparing the system’s initial ranking with the user’s re-ranked list, which serves as a proxy for the ground truth preference.
  • Mean Reciprocal Rank (MRR): Measures the effectiveness of the system in placing the user’s top-choice item at the top of the list.
  • Mean Average Precision (MAP): Evaluates the overall precision across the ranked list, where user interaction signals (e.g., clicks and selections) serve as implicit relevance indicators.
  • Normalized Discounted Cumulative Gain (nDCG@5): Measures the ranking quality within the top-5 positions, giving more weight to the relevance of higher-ranked items.
  • Spearman’s Rank Correlation Coefficient (SRC): Assesses the monotonic relationship between the system’s ranking and the user’s preference ranking, indicating how well the model captures relative user priorities [14].

4.4. Evaluation Paradigm and Data Utilization

This study utilizes a user-centric Information Retrieval (IR) evaluation paradigm rather than an offline machine learning training loop. The 606 validated recipes serve as the frozen retrieval repository [24]. Crucially, because our multi-objective ranking framework relies on an axiomatic scoring formulation rather than parameterized learning, the primary weighting coefficients ( α , β , γ ) = ( 0.5 , 0.3 , 0.2 ) were defined a priori based on clinical safety priorities, avoiding any training-level dependency on user data.
The explicit human preferences harvested from the interactive sessions form an independent evaluation dataset. To maintain full comparative completeness, the three dual-objective combinations (detailed in Section 4.2.2) and the external state-of-the-art baselines (detailed in Section 5.1) were evaluated retroactively offline by replays against these empirical user profiles. Furthermore, the continuous weight sensitivity analysis explored in Section 5.5 was simulated post hoc against this frozen baseline, serving strictly as a system robustness check rather than an iterative hyperparameter tuning procedure.

5. Results

This section bridges the proposed formulation with empirical validation by presenting a comprehensive evaluation of the allergen-aware recipe recommender system based on data collected from the user study ( N = 20 ). We analyze the effectiveness of different ranking strategies from four perspectives: ranking effectiveness, alignment with user preferences, parameter sensitivity, and subjective usability.

5.1. Comparative Performance Analysis

To validate the effectiveness of our multi-objective approach, we compared the proposed Overall strategy against single-objective and dual-objective baselines. Table 3 summarizes the performance across four metrics: MRR, MAP, nDCG@5, and SRC.
The results clearly demonstrate the superiority of the multi-objective formulation. The Overall strategy achieved the highest scores in MRR ( 0.7242 ) and MAP ( 0.6464 ), indicating its high precision in surfacing relevant, safe, and nutritious recipes at the top of the recommendation list. While the Safety+Nutrition strategy showed a marginally higher nDCG@5 ( 0.8968 ), the Overall strategy maintained the highest SRC ( 0.6952 ), suggesting superior global ranking consistency with users’ holistic preferences.
To rigorously validate the effectiveness of our multi-objective framework within the constraints of the completed user study, we extended our comparative analysis by retroactively evaluating two representative external baselines offline, utilizing the explicit user preference profiles collected during the interactive sessions: (1) Hard-Filtering Safety Recommendation (HF-SR), which executes the binary exclusion of primary allergens as evaluated in mobile health applications [11,12] and subsequently retains the natural retrieval order of the original dataset, and (2) Linear Multi-Objective Optimization (LMO), representing the conventional compensatory scalarization paradigm widely categorized in healthy dietary recommendation surveys [9], which standardizes safety, nutrition, and visuals as equivalent linear objectives without applying the proposed safety-aware filtering and ranking mechanism or penalty-based risk modulations. Table 3 summarizes the retroactive empirical performance.
The offline simulated results suggest that the proposed Overall strategy maintains competitive advantages over both external baselines. Notably, it demonstrates statistically significant improvements in ranking-sensitive metrics (nDCG@5 and SRC), as statistically verified by the post hoc tests detailed in Section 5.2. Within these simulated bounds, the HF-SR baseline exhibits low global ranking alignment (SRC = 0.2765), confirming that a rudimentary binary exclusion of primary allergens, while ensuring safety, completely disrupts the continuous optimization of user preferences by failing to account for secondary health or hedonic utilities. On the other hand, while the LMO baseline yields more competitive top-k results (MRR = 0.6563, nDCG@5 = 0.8278), its global rank correlation remains notably inferior to our model (SRC = 0.5077 vs. 0.6952). This discrepancy empirically supports our theoretical premise: traditional compensatory multi-objective systems allow critical safety risks to be balanced out by nutritional or visual high-scores, leading to chaotic ranking hierarchies in risk-sensitive scenarios. By treating safety as an explicit allergen filtering and high-magnitude penalty-based ranking mechanism rather than a fully compensatory objective, our framework ensures stable, precise, and highly personalized recommendation lists.

5.2. Statistical Significance Analysis

To strictly evaluate the statistical robustness of the ranking strategies, a non-parametric Friedman test was conducted, followed by a Wilcoxon signed-rank test with Holm–Bonferroni correction for post hoc pairwise comparisons. As summarized in Table 4, the analysis revealed a highly significant main effect across strategies for the ranking-sensitive metrics, specifically nDCG@5 and SRC ( p < 0.001 ). Conversely, the macro-level retrieval metrics (MRR and MAP) did not demonstrate statistical significance ( p = 0.957 and p = 0.393 , respectively), indicating that the baseline ability to surface relevant items remains consistent across configurations.
Post hoc pairwise comparisons indicate that the proposed Overall strategy achieves statistically significant improvements over the newly incorporated external baselines. Specifically, the Overall strategy significantly outperforms the HF-SR baseline ( p < 0.001 for both nDCG@5 and SRC) and the conventional LMO paradigm ( p = 0.002 for nDCG@5; p = 0.004 for SRC).
The post hoc analysis uncovers a critical structural dynamic. While the proposed Overall strategy significantly outperforms the visually driven baselines (e.g., Overall vs. Nutrition+Visual, p = 0.002 for nDCG@5), it does not yield a statistically significant improvement over the dual-objective Safety+Nutrition baseline ( p = 1.000 for nDCG@5; p = 0.538 for SRC). This statistical parity suggests that in a health-constrained search space, the visual dimension mathematically fails to override safety and nutritional objectives in macro-level ranking.

5.3. Ablation Study: Component-Wise Contributions

We conducted an ablation study to understand the isolated effect of safety, nutrition, and visual cues on the quality of recommendations.
  • Synergy of Safety and Nutrition: The high performance of the Safety+Nutrition strategy (MRR: 0.7176 , nDCG@5: 0.8968 ) confirms that these two factors form the structural backbone of the system.
  • Visual Cues as a Refinement Signal: Incorporating visual information does not consistently improve top-k accuracy; however, the Overall strategy achieves the highest SRC ( 0.6952 ), indicating improved global ranking coherence. This suggests that visual cues primarily function as a critical “tie-breaker,” allowing users to differentiate between multiple safe and nutritious candidates, thereby smoothing the overall preference curve.

5.4. Impact of Safety Modeling on Ranking Coherence

The SRC measures how well the system ranking aligns with users’ overall preference ordering. A critical finding emerged from the Nutrition+Visual baseline. Despite a competitive MRR ( 0.7050 ), it yielded an exceptionally low SRC ( 0.1048 ). This result suggests that, in the absence of safety-oriented risk modeling, the model’s ranking is noisy and fails to accurately reflect the user’s relative ranking preferences across the entire list. This phenomenon demonstrates the importance of safety for allergy users, who regard it as a requirement rather than a preference when developing a coherent decision-making logic.

5.5. Parameter Sensitivity and Weight Optimization

To validate the rationality of the proposed weighting scheme and ensure its robustness across varying user priorities, we conducted a systematic sensitivity analysis alongside data-driven weight optimization.

5.5.1. Safety Weight Sensitivity

We first examined the impact of the safety weight ( α ) on ranking performance by varying its value from 0 to 1 with a step size of 0.05, while maintaining a fixed ratio between the nutrition ( β ) and visual ( γ ) weights ( β : γ = 3 : 2 ). As illustrated in Figure 4, the resulting performance trends are evident.
The results reveal a distinct performance plateau within the range of α [ 0.35 , 0.55 ] , where all evaluation metrics remain consistently high. When α is too small (e.g., α < 0.2 ), we observe a significant decline in SRC, suggesting that insufficient prioritization of safety compromises ranking coherence. Conversely, when α becomes excessively large (e.g., α > 0.6 ), we observe a marginal but consistent decline in performance, as the over-prioritization of safety begins to overshadow the nuanced contributions of nutritional and visual factors.

5.5.2. Optimal Weight Discovery

To further validate the empirical observations from the sensitivity analysis, we performed a grid search over the full weight space under the constraint α + β + γ = 1 . Table 5 shows the optimal weight combination ( α = 0.39 , β = 0.32 , γ = 0.29 ) with SRC as optimization objective. Notably, this learned value of α falls squarely within the high-performance plateau identified in the sensitivity analysis, confirming the stability of our initial weighting strategy.

5.5.3. Weight Space Visualization

Figure 5 shows the SRC distribution heatmap, which provides further insight into the structure of the weight space. This visualization confirms that high-performance configurations do not correspond to a single isolated point, but rather form a contiguous high-value plateau within the parameter space (specifically, α [ 0.35 , 0.45 ] and β [ 0.30 , 0.40 ] , where γ = 1 α β ). This result underscores the structural stability of the proposed ranking mechanism, indicating that the model maintains robust alignment with user preferences despite minor variations in weighting strategies.
Interestingly, the heatmap reveals an asymmetric sensitivity, in which the performance drops sharply when the safety weight α is below 0.35 , while the variation in the nutrition ( β ) and visual ( γ ) weights within the flat area has relatively little impact on the overall ranking quality. This observation empirically validates our architectural design, confirming that while nutritional and aesthetic factors are essential for refinement, a foundational prioritization of allergen safety is the primary determinant of ranking coherence in health-critical contexts.

5.6. Usability and User Experience Assessment

To evaluate the subjective user experience and interface intuitiveness, we administered the System Usability Scale (SUS), a widely validated and reliable industry standard for assessing perceived usability [25]. A total of 20 participants evaluated the proposed allergen-aware recipe recommender system using the standardized 10-item questionnaire.
Each item was rated on a five-point Likert scale, ranging from 1 (strongly disagree) to 5 (strongly agree). To ensure reliability and mitigate response bias, the questionnaire utilized alternating positive (Q1, Q3, Q5, Q7, Q9) and negative (Q2, Q4, Q6, Q8, Q10) statements. The administered SUS questionnaire items were as follows:
  • Q1. I think that I would like to use this system frequently.
  • Q2. I found the system unnecessarily complex.
  • Q3. I thought the system was easy to use.
  • Q4. I think that I would need the support of a technical person to be able to use this system.
  • Q5. I found the various functions in this system were well integrated.
  • Q6. I thought there was too much inconsistency in this system.
  • Q7. I would imagine that most people would learn to use this system very quickly.
  • Q8. I found the system very cumbersome to use.
  • Q9. I felt very confident using the system.
  • Q10. I needed to learn a lot of things before I could get going with this system.
Following the standard SUS scoring procedure, we first converted the raw ratings into normalized scores ranging from 0 to 4. For positively worded items (Q1, Q3, Q5, Q7, Q9), we calculated the score by subtracting 1 from the user’s rating. For negatively worded items (Q2, Q4, Q6, Q8, Q10), we calculated the score as 5 minus the rating. The final composite SUS score was obtained by summing these normalized scores and multiplying the total by 2.5, resulting in a standardized value between 0 and 100. Table 6 summarizes the raw average ratings and standard deviations for each questionnaire item.
The system achieved an overarching SUS score of 75.38 ± 7.22 . According to established industry benchmarks [26], this score places the system in the “Good” to “Excellent” (Grade B) level of usability, significantly exceeding the average baseline of 68. Particularly high scores in ease of use (Q3: 4.40 ) and learnability (Q7: 4.35 ) indicate that the system successfully translates its complex multi-objective ranking logic into an intuitive interface. These results confirm that the proposed framework is not only technically robust but also highly accessible for users managing allergen-aware diets in daily domestic contexts.

6. Discussion

In this section, we discuss the implications of the empirical findings, interpreting how multi-objective optimization balances potentially competing factors and how this trade-off influences system performance, user behavior, and perceived trust.

6.1. The Asymmetric Role of Visual Aesthetics: A Hedonic Tie-Breaker

The statistical parity observed between the Overall and Safety+Nutrition strategies presents a counterintuitive yet vital behavioral insight for health-aware recommendation. Mainstream food recommender systems typically conceptualize visual appeal as a primary, independent driver of user preference. However, our rigorous statistical analysis (Table 4) demonstrates that in an allergen-restricted context, incorporating visual aesthetics does not systematically alter the macro-level ranking distribution (SRC, p = 0.538 ).
Rather than indicating a flaw in the multi-objective formulation, this statistical phenomenon exposes the highly asymmetric nature of risk-sensitive decision-making. Specifically, as highlighted by the reviewer’s observation on the marginal variance between the Overall strategy and the Safety+Nutrition baseline (e.g., Overall MRR of 0.7242 vs. Safety+Nutrition MRR of 0.7176), the absence of a statistically significant difference in macro-level retrieval metrics ( p = 0.957 for MRR) is a mathematically expected result of our safety-prioritized ranking mechanism. Because the safety component receives the highest weighting and incorporates substantial risk penalties, both strategies consistently assign lower composite scores to high-risk recipes, reducing variance among unsafe candidates and homogenizing the macro-retrieval space.
We argue that visual appeal in health-critical systems should not be treated as a parallel ranking engine, but strictly as a hedonic tie-breaker. From a dual-process cognitive perspective, safety and nutritional considerations operate as dominant System 2 evaluation criteria that strongly influence user judgment regarding risk and healthfulness. Once most candidate recipes achieve acceptable safety and nutritional levels, macro-ranking metrics struggle to capture further variance. It is precisely within this local, pre-filtered neighborhood that visual aesthetics engage System 1 (fast, emotional) processing to trigger the final click decision. Consequently, the Visual Score functions as a localized optimization mechanism, preventing the presentation of unappetizing safe options without destabilizing the fundamental, survival-oriented safety hierarchy.

6.2. Stability and Dominance in Multi-Objective Landscapes

The experimental results confirm that the optimal configuration for allergen-aware recommendation operates within a contiguous and stable performance plateau ( α [ 0.35 , 0.55 ] ). The existence of this plateau implies that safety and nutritional value jointly form the structural backbone of the decision-making process.
Without explicit safety prioritization, as observed in the Nutrition+Visual strategy anomaly, the the absence of such prioritization led to a collapse in ranking coherence (low SRC). This demonstrates that safety functions as the primary organizing factor of user decision-making rather than merely another preference dimension. Without it, users have to make high-risk decisions based on inconsistent heuristics, leading to decision ambiguity. This aligns with prior work suggesting that constrained search spaces can paradoxically improve user satisfaction by reducing cognitive friction [22]. However, we also observe that overprioritizing safety ( α > 0.6 ) leads to “objective dominance,” in which the system loses its capacity to differentiate items based on secondary yet important factors such as visual appeal or nutrition.

6.3. The Gap Between Rational Preference and Risk-Averse Behavior

Our analysis reveals that different evaluation metrics favor distinct weight configurations. Ranking-based metrics (e.g., nDCG@5 and SRC) achieved optimal performance around α 0.4 , while interaction-based metrics (e.g., MAP) continued to improve and reach their peak around α 0.6 .
This shift indicates “decision–action discrepancy,” which represents a systematic gap between the articulation of explicit preferences (i.e., manual re-ranking) and implicit interaction behavior (i.e., clicks or detailed views). From a behavioral perspective, this shift can be interpreted as a form of risk-sensitive decision-making. While participants rationally balanced safety, nutrition, and visuals when asked to re-order the list, their actual interaction behavior was significantly more conservative. In a health-critical context, the “cost” of an unsafe choice is perceived as far higher during active selection than during a reflective ranking task. This phenomenon reinforces the necessity of incorporating risk-sensitive algorithmic biases in health-aware systems to bridge the gap between what users say they want and how they actually behave under perceived risk.
This behavioral divergence aligns with established psychological and behavioral economics frameworks. Specifically, it instantiates Kahneman and Tversky’s concept of “loss aversion” [27], where the psychological pain of a negative outcome, such as consuming an allergen, far outweighs the pleasure of a positive utility, such as visual appeal or nutritional balance, during real-time choices. In a reflective ranking task, users operate under a more abstract preference-matching mindset. However, during an active selection task, such as clicking a recipe, the perceived immediacy of risk triggers a conservative cognitive bias, amplifying the fear of making an unsafe choice.
Furthermore, this phenomenon provides strong empirical evidence for the “intention–behavior gap” within the health-critical domain [28,29]. While users explicitly articulate a balanced intention, their final actions shift toward survival-oriented, risk-averse constraints. This finding highlights the importance of incorporating risk-sensitive algorithmic biases into health-conscious systems. This will help bridge the gap between what users say they want and how they actually behave when faced with perceived risk.

6.4. Human-Centered Evaluation: Trust, Usability, and Cognitive Load

The consistently high performance of ranking strategies incorporating the Safety module underscores the foundational role of trust in health-critical recommender systems [9]. Our findings suggest that participants utilized the safety score as a reliable cognitive heuristic, enabling them to prune the decision space efficiently. Unlike traditional binary filtering approaches, which merely categorize items as safe or unsafe, the proposed penalty-based formulation enables more granular differentiation between “safe” and “safer” options (e.g., distinguishing between highly processed ingredients and raw components with higher cross-contamination risks). This transparency likely functioned as a primary heuristic, empowering users to make confident, risk-aware decisions without the cognitive burden of exhaustive ingredient verification.
This psychological sense of security is reflected in the SUS outcomes. The overall score ( 75.38 ± 7.22 ) indicates a “Good” to “Excellent” (Grade B) level of usability. Specifically, high scores in ease of use (Q3: 4.40 ) and learnability (Q7: 4.35 ) confirm that the interface successfully translates complex multi-objective ranking logic into an intuitive user experience. Furthermore, the positive rating on confidence in use (Q9: 3.90 ) reinforces the link between transparent safety scoring and user trust.
However, the moderate scores for Q4 (need for technical support) and Q10 (prior learning) reveal a subtle “multi-objective friction.” Weighing safety, nutrition, and aesthetics simultaneously is inherently more cognitively demanding than traditional single-criterion search. These scores suggest that while the system is highly effective, the initial interaction requires users to mentally visualize a three-dimensional trade-off space. Our findings suggest that presenting safety as the default priority within the ranking process can mitigate this load, ensuring that advanced functionality does not cognitively overwhelm the user during long-term domestic use.

6.5. Design Implications for Health-Aware Recommender Systems

Based on the synthesized empirical findings and behavioral analyses, we distill several key design implications for building robust, risk-sensitive recommendation frameworks:
  • Safety as a Stabilizing Decision Anchor: In health-critical domains, safety should function as a stabilizing anchor rather than a mere additive score. Our results demonstrate that safety prioritization establishes a stable decision framework that stabilizes the preference space. This safety-aware approach is essential for maintaining ranking consistency and fostering user trust in high-stakes scenarios.
  • Prioritize Robust Regions over Singular Optimal Points: System designers should aim for a “robust performance plateau” rather than searching for a fragile, singular optimal point. Operating within a stable weight region (e.g., the identified plateau of α [ 0.35 , 0.55 ] ) enhances system generalizability and provides a “forgiving” foundation for future personalization and adaptive learning algorithms.
  • Addressing the Discrepancy Between Rational Preference and Interaction: Recommender systems must explicitly account for the gap between explicit preference articulation and implicit interaction behavior. In risk-sensitive contexts, we recommend introducing a “safety-biased” algorithmic nudge to align with users’ implicit risk aversion, even when their explicit profiles suggest a more balanced approach.
  • Operationalizing Visual Aesthetics as “Top-Rank Nudges”: Perceptual features should be considered as refinement signals rather than primary drivers. Following the “nudging” principle [17], visual appeal is most effective when applied at the final stage of a ranking pipeline to assist users in selecting among candidates that have already satisfied safety and nutritional thresholds.
  • Mitigating Cognitive Overload through Scaffolding: To prevent “multi-objective friction,” systems must provide cognitive support mechanisms. This includes transparent safety scoring to reduce verification effort and well-designed default configurations that balance complex trade-offs, ensuring that the system remains accessible for daily, long-term domestic use.

7. Conclusions

This study addresses the critical challenge of dietary planning for individuals with food allergies by proposing a multi-objective recipe recommender system. Moving beyond traditional single-objective optimization, the proposed framework integrates Allergen Safety, Nutritional Balance, and Visual Appeal into a unified, interpretable scoring model.
While the empirical scale of our user study is exploratory, this research significantly advances our preliminary findings [13] by resolving key methodological and evaluative limitations. Specifically, we have reconceptualized allergen safety, transforming it from a simple additive objective into a safety-aware ranking component with explicit risk prioritization that enhances ranking stability. Through rigorous weight sensitivity analysis, a formal System Usability Scale (SUS) evaluation, and a behavioral analysis of the “decision–action discrepancy,” we have validated the effectiveness and robustness of the framework in risk-sensitive scenarios.
The principal contributions and findings of this research are summarized as follows:
  • Safety as a Stabilizing Decision Anchor: We demonstrate that in health-critical domains, safety must be prioritized within the ranking process rather than being treated as a fully compensatory objective. Experimental results confirm that excluding safety results in a collapse of ranking consistency (SRC). However, including safety establishes a stable preference space that supports further refinement via nutritional and visual factors.
  • Empirical Identification of a Robust Performance Plateau: Using systematic grid searches and heatmap visualizations, we demonstrated that optimal performance does not exist at a single, fragile point, but rather within a stable region ( α [ 0.35 , 0.50 ] ). This robustness is a critical property for real-world deployment, as it reduces the system’s sensitivity to precise parameter tuning.
  • The Gap Between Rational Preference and Interaction Behavior: We identified a systematic discrepancy between explicit ranking (optimized at α 0.4 ) and implicit interaction (optimized at α [ 0.5 , 0.6 ] ). This finding reveals that users are more risk-averse in active decision-making than in reflective preference articulation, highlighting the necessity of dual-modality feedback modeling in health-aware systems.

7.1. Limitations

Despite the promising results, this study has several limitations that should be acknowledged:
  • Sample Size and Diversity: Although the within-subject design with 20 participants yielded statistically significant insights, a larger and more demographically diverse cohort is needed to improve the generalizability of the findings. Given the exploratory nature of this usability-oriented evaluation, the observed behavioral discrepancies should be interpreted as localized user trends rather than deterministic behavioral laws.
  • Platform-Specific Bias: The dataset originates from a single website (“Table for All”) specializing in allergy-friendly recipes [24]. To formally quantify this source bias and evaluate its statistical implications, we analyzed the descriptive statistics of the raw Visual Score across all 606 recipes. The raw visual appeal distribution exhibits a mean of 51.96 and a notably narrow standard deviation of 4.31 , spanning from a minimum of 39.00 to a maximum of 63.00 . This empirical variance directly confirms that the specialized platform’s standardized food presentation artificially compresses the raw aesthetic distribution. However, to ensure commensurability across diverse metrics, our framework applies a standard Min-Max normalization to project these scores onto a uniform [ 0 , 100 ] continuous scale. The resulting normalized Visual Score ( V ) exhibits an expanded mean ( μ V ) of 52.45 and a standard deviation ( σ V ) of 22.39 . This expanded 100-point absolute variance demonstrates that the normalization process successfully restores the mathematical resolution, ensuring that the visual score functions effectively as a distinct secondary refinement signal within the safe feasible region without losing discriminative power.
  • Static vs. Dynamic Personalization: The current model employs a globally optimized configuration. While robust, it does not yet dynamically adapt to individual variations in risk sensitivity or real-time dietary goals.
  • Lack of Clinical Validation: Although the mathematical formulation of our safety model is grounded in expert-supervised datasets, this study evaluates system performance through an online user study focused on cognitive and behavioral metrics. It lacks direct clinical trials on actual food-allergy patients within a controlled medical environment, which is critical since physiological sensitivity can vary dynamically across individuals.
  • Evaluation Paradigm Limitations: Our comparative evaluation of external baselines was conducted retroactively via offline replay based on interaction logs from the user study. Because our re-ranking engine relies on an unsupervised, axiomatic scoring function rather than a parameterized statistical model requiring machine learning training, conventional offline train–validation–test data splits are conceptually inapplicable. While this hybrid paradigm prevents participant fatigue by limiting live evaluation to 40 core recipes per user, offline simulations inherently face limitations in perfectly capturing dynamic, context-dependent user choices when presented with entirely new recommendation lists. Future studies should evaluate these external models through live, randomized A/B testing to capture real-time behavioral nuances.
  • Proxy Nature of Visual Assessment: The visual appeal module utilizes an off-the-shelf NIMA model pre-trained on the general-purpose AVA dataset without food-specific fine-tuning. While this effectively captures universal photographic quality (e.g., lighting and composition) to act as a hedonic tie-breaker, it is fundamentally a proxy metric. It does not natively capture domain-specific culinary semantics, such as perceived freshness or “deliciousness”. Future iterations should incorporate visual models fine-tuned on dedicated food aesthetic datasets.

7.2. Future Work

Building upon the empirical findings of this study, future research will focus on four primary directions:
  • Personalized Learning-to-Rank (LTR): Our goal is to implement LTR algorithms that dynamically calibrate module weights based on implicit signals, such as dwell time and click sequences. This allows for highly personalized trade-offs between safety and visual appeal.
  • Generative Recipe Adaptation: Beyond recommendation, we plan to leverage Large Language Models (LLMs) and Generative AI (GenAI) to proactively modify recipes, suggesting safe, nutritionally superior ingredient substitutions to turn “unsafe” recipes into viable options.
  • Contextual Awareness via Computer Vision: We plan to extend the system’s awareness to include dynamic, real-time contexts. The system uses computer vision to automatically monitor a user’s inventory of available ingredients, eliminating the need for manual data entry. Integrating this with temporal context, such as specific meal times or seasonal constraints [16], will enable truly situational and risk-aware dietary guidance that adapts to the immediate realities of the user’s domestic environment.
  • Longitudinal Clinical Evaluation: To overcome the limitation of medical validation, we aim to collaborate with healthcare providers and clinical nutritionists. We plan to deploy the system in real-world dietary interventions to validate its long-term clinical efficacy, physiological safety, and overall impact on the quality of life of food-allergy patients.
In conclusion, this study provides valuable exploratory evidence that in risk-sensitive personalized recommendation, safety acts as a primary prerequisite for ranking coherence. By demonstrating the intricate interplay between safety-aware prioritization and human decision behavior within a controlled, sample-limited setting, this work offers a preliminary yet foundational blueprint for the design of next-generation health-aware dietary assistance systems. Further large-scale validation remains necessary to confirm these behavioral trends across broader demographics.

Author Contributions

Conceptualization, T.W. and Y.W.; methodology, T.W.; software, T.W.; validation, T.W. and Y.W.; formal analysis, T.W.; investigation, T.W.; resources, T.W.; data curation, T.W.; writing—original draft preparation, T.W.; writing—review and editing, T.W. and Y.W.; visualization, T.W.; supervision, Y.W.; project administration, Y.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially supported by JSPS KAKENHI Grant Number JP25K15354.

Institutional Review Board Statement

Ethical review and approval were waived for this study due to its design as an anonymous user evaluation and questionnaire survey. In accordance with the “Ethical Guidelines for Medical and Biological Research Involving Human Subjects” by the Japanese Ministry of Health, Labour, and Welfare (MHLW) and the “Regulations for General Research Involving Human Subjects” at Yamaguchi University, this study did not involve the collection of personally identifiable information (PII) or any invasive procedures.

Informed Consent Statement

Informed consent was obtained from all subjects involved in the study.

Data Availability Statement

Restrictions apply to the availability of the recipe datasets used in this study, which were derived from the “Table for All” platform (Collection of Recipes for Food Allergy Support), available at https://www.food-allergy.jp/blog/recipe/ (accessed on 7 June 2025). The anonymized interaction logs supporting the conclusions of this article are available on request from the corresponding author. Although no personally identifiable information (PII) was collected, access to the raw behavioral data is restricted to ensure ethical use and protect participants’ privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AVAAesthetics visual analysis
CAAConsumer affairs agency
CNNConvolutional neural network
DRIsDietary reference intakes
GenAIGenerative AI
IRInformation retrieval
LLMsLarge language models
LTRLearning-to-rank
MAPMean average precision
MRRMean reciprocal rank
nDCGNormalized discounted cumulative gain
PIIPersonally identifiable information
SRCSpearman’s rank correlation coefficient
SUSSystem usability scale

References

  1. Willett, W.; Rockström, J.; Loken, B.; Springmann, M.; Lang, T.; Vermeulen, S.; Garnett, T.; Tilman, D.; DeClerck, F.; Wood, A.; et al. Food in the Anthropocene: The EAT-Lancet Commission on healthy diets from sustainable food systems. Lancet 2019, 393, 447–492. [Google Scholar] [CrossRef] [PubMed]
  2. Consumer Affairs Agency, Government of Japan. Information on Food Allergy Labeling; Official Technical Report; Consumer Affairs Agency: Tokyo, Japan, 2024. Available online: https://www.caa.go.jp/policies/policy/food_labeling/food_sanitation/allergy/assets/food_labeling_cms204_241031_1.pdf (accessed on 7 June 2025). (In Japanese)
  3. Ferreira, F.; Hawranek, T.; Gruber, P.; Wopfner, N.; Mari, A. Allergic cross-reactivity: From gene to the clinic. Allergy 2004, 59, 243–267. [Google Scholar] [CrossRef] [PubMed]
  4. Ministry of Health, Labour andWelfare. Explanatory Materials for the Promotion of Health Japan 21 (Third Term); Official Technical Report; Ministry of Health, Labour and Welfare: Tokyo, Japan, 2024. Available online: https://www.mhlw.go.jp/content/001426890.pdf (accessed on 16 June 2025). (In Japanese)
  5. Ministry of Health, Labour andWelfare, Japan. Dietary Reference Intakes for Japanese (2025 Edition). 2025. Available online: https://www.mhlw.go.jp/stf/newpage_44138.html (accessed on 7 June 2025). (In Japanese)
  6. Min, W.; Jiang, S.; Liu, L.; Rui, Y.; Jain, R. A Survey on Food Computing. ACM Comput. Surv. 2019, 52, 1–36. [Google Scholar] [CrossRef]
  7. Trattner, C.; Elsweiler, D. Food Recommender Systems: Important Contributions, Challenges and Future Research Directions. arXiv 2017, arXiv:1711.02760. [Google Scholar] [CrossRef]
  8. Food Surveillance Section, Health and Safety Division. Food Hygiene Control File (for Small-Scale Businesses); Official Technical Guidelines, Bureau of Public Health, Tokyo Metropolitan Government: Tokyo, Japan, 2023. Available online: https://www.hokeniryo1.metro.tokyo.lg.jp/shokuhin/foodhygienecontrolfile/files/english_kanrifile-p.pdf (accessed on 16 June 2025).
  9. Tran, T.N.T.; Atas, M.; Felfernig, A.; Stettinger, M. An overview of recommender systems in the healthy food domain. J. Intell. Inf. Syst. 2018, 50, 501–526. [Google Scholar] [CrossRef]
  10. Spence, C.; Motoki, K.; Petit, O. Factors Influencing the Visual Deliciousness/Eye-Appeal of Food. Food Qual. Prefer. 2022, 102, 104672. [Google Scholar] [CrossRef]
  11. Mandracchia, F.; Llauradó, E.; Tarro, L.; Valls, R.M.; Solà, R. Mobile Phone Apps for Food Allergies or Intolerances in App Stores: Systematic Search and Quality Assessment Using the Mobile App Rating Scale (MARS). JMIR mHealth uHealth 2020, 8, e18339. [Google Scholar] [CrossRef] [PubMed]
  12. Wu, A.C.; Walsh, R.; Wang, A.L. Assessment of the quality of mobile apps for food allergy. J. Allergy Clin. Immunol. Pract. 2022, 10, 1658–1659. [Google Scholar] [CrossRef] [PubMed]
  13. Wang, T.; Ding, Y.; Wang, Y. Allergen-Aware Cooking Recipe Recommendation Incorporating Nutritional Balance and Visual Appeal. In Proceedings of the 2026 20th International Conference on Ubiquitous Information Management and Communication (IMCOM), Hanoi, Vietnam, 4–6 January 2026; pp. 1–6. [Google Scholar] [CrossRef]
  14. Herlocker, J.L.; Konstan, J.A.; Terveen, L.G.; Riedl, J.T. Evaluating collaborative filtering recommender systems. ACM Trans. Inf. Syst. 2004, 22, 5–53. [Google Scholar] [CrossRef]
  15. Bondevik, J.N.; Bennin, K.E.; Babur, O.; Ersch, C. A systematic review on food recommender systems. Expert Syst. Appl. 2024, 238, 122166. [Google Scholar] [CrossRef]
  16. Rostami, M.; Oussalah, M.; Farrahi, V. A Novel Time-Aware Food Recommender-System Based on Deep Learning and Graph Clustering. IEEE Access 2022, 10, 52508–52524. [Google Scholar] [CrossRef]
  17. El Majjodi, A.; Starke, A.D.; Trattner, C. Nudging Towards Health? Examining the Merits of Nutrition Labels and Personalization in a Recipe Recommender System. In Proceedings of the 30th ACM Conference on User Modeling, Adaptation and Personalization (UMAP ’22), Barcelona, Spain, 4–7 July 2022; pp. 48–56. [Google Scholar] [CrossRef]
  18. Achananuparp, P.; Weber, I. Extracting Food Substitutes From Food Diary via Distributional Similarity. arXiv 2016, arXiv:1607.08807. [Google Scholar] [CrossRef]
  19. The Doctors Laboratory. Cross Reactivity. 2025. Available online: https://www.tdlpathology.com/specialties/allergy/cross-reactivity/ (accessed on 7 June 2025).
  20. Talebi, H.; Milanfar, P. NIMA: Neural Image Assessment. IEEE Trans. Image Process. 2018, 27, 3998–4011. [Google Scholar] [CrossRef]
  21. Deng, Y.; Loy, C.C.; Tang, X. Image Aesthetic Assessment: An experimental survey. IEEE Signal Process. Mag. 2017, 34, 80–106. [Google Scholar] [CrossRef]
  22. Tintarev, N.; Masthoff, J. Explaining Recommendations: Design and Evaluation. In Recommender Systems Handbook; Ricci, F., Rokach, L., Shapira, B., Eds.; Springer: Boston, MA, USA, 2015; pp. 353–382. [Google Scholar] [CrossRef]
  23. Food Allergy Research Association, NPO. Collection of Recipes for Food Allergy Support. 2025. Available online: https://www.food-allergy.jp/blog/recipe/ (accessed on 7 June 2025). (In Japanese)
  24. Nipponham Group. Launch of ‘Table for All Food Allergy Care’ Platform for Food Allergy Support; Official Corporate News Release, Supervised by Dr. Yukihiro Ohya (Allergy Center, National Center for Child Health and Development); NH Foods Ltd.: Osaka, Japan, 2022; Available online: https://www.nipponham.co.jp/news/2022/20220217/ (accessed on 4 June 2026). (In Japanese)
  25. Brooke, J. SUS: A ’Quick and Dirty’ Usability Scale. In Usability Evaluation In Industry; Taylor & Francis: London, UK, 1996; pp. 189–194. [Google Scholar] [CrossRef]
  26. Bangor, A.; Kortum, P.T.; Miller, J.T. An empirical evaluation of the system usability scale. Int. J. Hum.-Comput. Interact. 2008, 24, 574–594. [Google Scholar] [CrossRef]
  27. Kahneman, D.; Tversky, A. Prospect theory: An analysis of decision under risk. Econometrica 1979, 47, 263–291. [Google Scholar] [CrossRef]
  28. Ajzen, I. The theory of planned behavior. Organ. Behav. Hum. Decis. Process. 1991, 50, 179–211. [Google Scholar] [CrossRef]
  29. Sheeran, P. Intention-behavior relations: A conceptual and empirical review. Eur. Rev. Soc. Psychol. 2002, 12, 1–36. [Google Scholar] [CrossRef]
Figure 1. Architecture of the allergen-aware cooking recipe recommender system.
Figure 1. Architecture of the allergen-aware cooking recipe recommender system.
Electronics 15 02628 g001
Figure 2. User interface for recipe browsing and selection during the evaluation.
Figure 2. User interface for recipe browsing and selection during the evaluation.
Electronics 15 02628 g002
Figure 3. Interface for manual re-ranking of recipes based on user preference.
Figure 3. Interface for manual re-ranking of recipes based on user preference.
Electronics 15 02628 g003
Figure 4. Performance metrics vs. safety weight α .
Figure 4. Performance metrics vs. safety weight α .
Electronics 15 02628 g004
Figure 5. Heatmap of SRC distribution in the weight space ( α , β , γ ). The contiguous high-value region indicates the system’s robustness to parameter variations.
Figure 5. Heatmap of SRC distribution in the weight space ( α , β , γ ). The contiguous high-value region indicates the system’s robustness to parameter variations.
Electronics 15 02628 g005
Table 1. Heat-sensitive ingredients and their assigned penalties based on sterilization thresholds.
Table 1. Heat-sensitive ingredients and their assigned penalties based on sterilization thresholds.
CategoryRequired TemperatureMathematical DerivationPenalty Score
Clams/Bivalves>85 °C ( 85 45 ) / 10 4.0
Meat (General)> 75 °C ( 75 45 ) / 10 3.0
Hen Eggs>70 °C ( 70 45 ) / 10 2.0
Seafood (General)>60 °C ( 60 45 ) / 10 1.0
Table 2. Nutrient weights and assigned units for scoring.
Table 2. Nutrient weights and assigned units for scoring.
NutrientWeight ( w i )Unit
Energy3.0kcal
Fat3.0g
Salt2.0g
Iron2.0mg
Calcium2.0mg
Zinc2.0mg
Vitamin A2.0μg
Vitamin D2.0μg
Vitamin C2.0mg
Dietary Fiber1.0g
Table 3. Performance comparison of various ranking strategies (mean ± standard deviation). Bold values indicate the best performance in each metric.
Table 3. Performance comparison of various ranking strategies (mean ± standard deviation). Bold values indicate the best performance in each metric.
Ranking StrategyMRRMAPnDCG@5SRC
Overall0.7242 ± 0.1520.6464 ± 0.1070.8951 ± 0.0510.6952 ± 0.142
Safety+Nutrition0.7176 ± 0.1580.6441 ± 0.1170.8968 ± 0.0350.6661 ± 0.096
Safety+Visual0.6292 ± 0.1510.5451 ± 0.0830.8381 ± 0.0670.5897 ± 0.177
Nutrition+Visual0.7050 ± 0.1610.5372 ± 0.0880.6753 ± 0.0460.1048 ± 0.140
SafetyOnly0.6567 ± 0.1580.5762 ± 0.1210.8914 ± 0.0530.5800 ± 0.207
NutritionOnly0.5672 ± 0.1480.5213 ± 0.1110.5612 ± 0.0730.5642 ± 0.127
VisualOnly0.6617 ± 0.1660.5512 ± 0.1090.6755 ± 0.0620.4994 ± 0.106
HF-SR0.5972 ± 0.3570.5083 ± 0.2450.7406 ± 0.1090.2765 ± 0.342
LMO0.6563 ± 0.3390.5703 ± 0.2460.8278 ± 0.1400.5077 ± 0.406
Table 4. Statistical significance analysis of evaluation metrics across different ranking strategies.
Table 4. Statistical significance analysis of evaluation metrics across different ranking strategies.
Evaluation MetricFriedman TestWilcoxon Post-hoc (p-Value vs. Overall)
(p-Value) HF-SR LMO Safety + Nutrition Nutrition + Visual VisualOnly
MRR0.957 (n.s.)-----
MAP0.393 (n.s.)-----
nDCG@5<0.001<0.0010.0021.000 (n.s.)0.0020.008
SRC<0.001<0.0010.0040.538 (n.s.)0.0040.145 (n.s.)
n.s. indicates not significant ( p 0.05 ). Post hoc pairwise comparisons were evaluated using the Wilcoxon signed-rank test with Holm–Bonferroni correction. Post hoc p-values for MRR and MAP are omitted as their main effects (Friedman test) did not reach statistical significance.
Table 5. Optimal weight combination learned via grid search.
Table 5. Optimal weight combination learned via grid search.
α (Safety) β (Nutrition) γ (Visual)
0.390.320.29
Table 6. Results of the System Usability Scale (SUS) questionnaire (1–5 Likert scale).
Table 6. Results of the System Usability Scale (SUS) questionnaire (1–5 Likert scale).
QuestionMeanStd
Q1. Frequent use intent4.150.81
Q2. Complexity (reversed)2.050.76
Q3. Ease of use4.400.75
Q4. Tech support (reversed)2.200.77
Q5. Well integrated3.950.51
Q6. Inconsistency (reversed)2.150.59
Q7. Learnability4.350.75
Q8. Cumbersome (reversed)2.150.59
Q9. Confidence in use3.900.55
Q10. Prior learning (reversed)2.050.60
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wang, T.; Wang, Y. A Multi-Objective Recipe Recommender System with Structural Safety Constraints for Allergen-Aware Diets. Electronics 2026, 15, 2628. https://doi.org/10.3390/electronics15122628

AMA Style

Wang T, Wang Y. A Multi-Objective Recipe Recommender System with Structural Safety Constraints for Allergen-Aware Diets. Electronics. 2026; 15(12):2628. https://doi.org/10.3390/electronics15122628

Chicago/Turabian Style

Wang, Tianyu, and Yuanyuan Wang. 2026. "A Multi-Objective Recipe Recommender System with Structural Safety Constraints for Allergen-Aware Diets" Electronics 15, no. 12: 2628. https://doi.org/10.3390/electronics15122628

APA Style

Wang, T., & Wang, Y. (2026). A Multi-Objective Recipe Recommender System with Structural Safety Constraints for Allergen-Aware Diets. Electronics, 15(12), 2628. https://doi.org/10.3390/electronics15122628

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop