Original Paper
Abstract
Background: Chronic diseases such as heart disease, stroke, diabetes, and hypertension are major global health challenges. Healthy eating can help people with chronic diseases manage their condition and prevent complications. However, making healthy meal plans is not easy, as it requires the consideration of various factors such as health concerns, nutritional requirements, tastes, economic status, and time limits. Therefore, there is a need for effective, affordable, and personalized meal planning that can assist people in choosing food that suits their individual needs and preferences.
Objective: This study aimed to design an artificial intelligence (AI)–powered meal planner that can generate personalized healthy meal plans based on the user’s specific health conditions, personal preferences, and status.
Methods: We proposed a system that integrates semantic reasoning, fuzzy logic, heuristic search, and multicriteria analysis to produce flexible, optimized meal plans based on the user’s health concerns, nutrition needs, as well as food restrictions or constraints, along with other personal preferences. Specifically, we constructed an ontology-based knowledge base to model knowledge about food and nutrition. We defined semantic rules to represent dietary guidelines for different health concerns and built a fuzzy membership of food nutrition based on the experience of experts to handle vague and uncertain nutritional data. We applied a semantic rule-based filtering mechanism to filter out food that violate mandatory health guidelines and constraints, such as allergies and religion. We designed a novel, heuristic search method that identifies the best meals among several candidates and evaluates them based on their fuzzy nutritional score. To select nutritious meals that also satisfy the user’s other preferences, we proposed a multicriteria decision-making approach.
Results: We implemented a mobile app prototype system and evaluated its effectiveness through a use case study and user study. The results showed that the system generated healthy and personalized meal plans that considered the user’s health concerns, optimized nutrition values, respected dietary restrictions and constraints, and met the user’s preferences. The users were generally satisfied with the system and its features.
Conclusions: We designed an AI-powered meal planner that helps people create healthy and personalized meal plans based on their health conditions, preferences, and status. Our system uses multiple techniques to create optimized meal plans that consider multiple factors that affect food choice. Our evaluation tests confirmed the usability and feasibility of the proposed system. However, some limitations such as the lack of dynamic and real-time updates should be addressed in future studies. This study contributes to the development of AI-powered personalized meal planning systems that can support people’s health and nutrition goals.
doi:10.2196/46434
Keywords
Introduction
Background
Chronic diseases such as diabetes and heart disease are major health challenges that affect millions of people worldwide. One of the key strategies for managing chronic diseases is healthy eating, which can help prevent, delay, or improve the symptoms and complications associated with these conditions [
]. Meal planning is a useful tool for achieving healthy eating goals, as it can help individuals with chronic diseases ensure they are consuming a balanced diet that provides the necessary nutrients for good health [ ]. For instance, meal planning can help regulate blood glucose levels in individuals with diabetes by balancing the intake of carbohydrates, proteins, and fats [ ]. Meal planning can also help lower the risk of high blood pressure and high cholesterol in individuals with heart disease by promoting a diet that is low in saturated fat and high in fruits, vegetables, and whole grains [ ]. Furthermore, meal planning can help individuals with chronic diseases manage their weight and adhere to their medication schedule by avoiding overeating and planning meals around their treatment regimen [ ]. Therefore, meal planning can play a crucial role in managing chronic diseases and improving the overall health outcomes.With the overwhelming number of food and nutrition websites and amount of information out there [
- ], it is difficult for a busy person to decide exactly what is appropriate for them. Keeping track of all health guidelines and their limitations is difficult for many people. Furthermore, many other personal conditions need to be considered, such as the time limit for preparing meals, budget constraints, styles of cuisine, religious requirements, cultural factors, and traditions. Besides providing healthy and nourishing meal options, planning meals can help people save time during meal preparation. This can eliminate the stress of figuring out meals every day. Recently, there have been various mobile apps (eg, EatRight, MyPlate, FDA, MyFitnessPal, Lifesum, CalorieCounter, and Fooducate [ - ]) that help people to plan their meals. These apps tend to provide generic planning and recommendations without considering the user’s special health conditions and other personal preferences or considering only a limited fixed factor [ - ]. These limitations include the limited consideration of personalized health constraints, lack of customization for taste preferences, and incomplete consideration of cultural and regional dietary practices.Objective
There are no one-size-fits-all diets. To help people with health concerns make healthy and sustainable meal plans, we proposed an artificial intelligence (AI)–enabled personalized meal planning strategy tailored to an individual’s unique dietary needs, preferences, and goals while also considering their lifestyle and available resources. Specifically, we adopted semantic web technologies to model complex and heterogeneous diet knowledge, used semantic logic to enable automatic machine reasoning to apply clinical diet rules, used fuzzy logic to handle uncertainty and vagueness of food data and improve flexibility, and designed heuristic search–assisted multicriteria decision-making (MCDM) to effectively integrate multiple user preferences in meal planning. In our work, we treated each person as a unique individual with different health concerns, flavor preferences, financial situations, religions, and cultural and traditional backgrounds.
Our app addresses the gaps in existing meal planning systems by offering a more comprehensive and personalized meal planning experience that considers a wide range of factors, including health constraints, taste preferences, cultural practices, changing goals, and emotional connections to food. In addition, our approach used highly flexible and efficient AI algorithms, enabling us to consider a significantly larger number of factors and deliver fast and flexible responses. This further distinguishes our app from existing solutions as it allows for more comprehensive and dynamic meal planning capabilities. We implemented the proposed planning system with a mobile app prototype. Comprehensive evaluation tests were performed on the prototype.
Methods
System Overview
shows the architecture of the proposed planning system. The system’s brain is a comprehensive knowledge base that includes knowledge about food, nutrition, and clinical guidelines for healthy eating regarding different health concerns. The meal planning system depends on this knowledge to understand food nutrition values and healthy meal requirements. The system also maintains a user profile, including the user’s basic physical and economic information, health concerns, and diet constraints and preferences. The user profile is the foundation for the personalization of the meal planning system. On the basis of the user’s health conditions, corresponding healthy eating guidelines, represented as semantic rules, can be applied to screen food and meals so that they can satisfy healthy eating guidelines. A fuzzy membership scheme was used to model the desirability of nutrition intake, providing more flexibility and tolerance to the vagueness of data. We designed an optimization function to identify meals with optimal nutrition value. To integrate users’ other preferences, we proposed a novel, multicriteria decision analysis mechanism assisted by a heuristic search method that can efficiently locate meals that satisfy multiple, conflicting user preferences. In the following sections, we’ve presented each of the system components.
Knowledge Foundation
The brain of the planner is a comprehensive food and nutrition knowledge graph [
]. It is a visual representation of information and the relationships between various elements of food and nutrition. This includes information on food groups, nutrients, dietary recommendations, and the relationship between food consumption and health outcomes. A knowledge graph can help provide a comprehensive and interconnected view of food and nutrition, making it easier to understand and access the information. The graph data were collated from a variety of reliable sources, such as the US Department of Agriculture’s food and nutrition data set [ ] and FoodKG [ ]. Some of these sources were structured data sets and some others were unstructured and needed to be transformed into structured graph knowledge. By leveraging these diverse sources, we aimed to cross-validate the information and mitigate the risk of relying solely on a single data repository. Knowledge graphs enable the fast and easy navigation of data and support automatic reasoning and inferring new knowledge. The knowledge graph can be extended to national or international dietary guidelines, such as the US Department of Agriculture’s Dietary Guidelines for Americans or the World Health Organization’s Global Recommendations on Physical Activity for Health. It also includes diet guidelines for different kinds of health concerns; for example, to get food and nutrition guidelines for diabetes, we adopted the guidelines from multiple resources, such as the American Diabetes Association, the British Dietetic Association, the Association of Clinical Endocrinologists, and the American College of Endocrinology.shows part of our food and nutrition knowledge graph. Nodes represent entities, such as foods, nutrients, dietary recommendations, and health outcomes, whereas edges represent the relationships between these entities. Food items may be linked to the nutrients it contains, whereas a nutrient node may be linked to the recommended daily intake and the health outcomes associated with inadequate or excessive intake. For example, from the knowledge graph, we can see that spinach is a leafy green vegetable. It has the nutrient magnesium, which is beneficial for heart health and blood sugar control.
In addition to food and nutrition knowledge, a comprehensive user profile includes users’ biological, socioeconomic, and cultural characteristics and contextual situations that influence peoples’ food choices. We used a biocultural user profile ontology [
] to model the user profile.Rule-Based Screening
The first step in meal planning is to screen food ingredients that violate the user’s mandatory constraints, such as medical, allergy, cultural, and religious constraints. For example, if a user is allergic to peanuts, peanuts as an ingredient should be eliminated from meal ingredient lists. Alternatively, if a user is a vegetarian, animal products as ingredients must be eliminated. Subsequently, rule-based food screening uses a set of predefined rules to evaluate the nutritional value of food choices and to make recommendations. For example, rules will be applied to evaluate a food based on its calorie content, fat content, and the presence of certain vitamins and minerals, and then a recommendation will be made based on those evaluations. The system may flag foods that are high in calories, unhealthy fats, or lack certain essential nutrients, and suggest healthier alternatives. In addition to food ingredients, rules can be applied to screen meals. For example, a user with type 2 diabetes should have 3 to 5 carbohydrate choices (each choice has 15 g) for every meal, based on the calculated estimated energy requirements. A user with hypertension should not consume more than 2300 mg and not less than 500 mg of sodium per day, with an ideal limit of 1500 mg. In addition, the cholesterol intake of users with hypertension should be restricted to less than 300 mg per day.
We used semantic rules, which are description logic in nature, to apply these dietary recommendations. For example, for the rule about sodium intake: Sodium should be less than 1500 mg per day for people with diabetes and high blood pressure [
], the Semantic Web Rule Language rule is defined as follows:Person(?user) ^hasHealthConcern(?user,Hypertension) ^hasMeal(?user,?meal) ^hasSodium(?meal,?sodium) ^swrlb:greaterThan(?sodium, 1500) -> isRecommended(?meal,false)
We implemented a reasoner that uses forward chaining [
] as the implementation strategy, which can be described logically as repeated applications of modus ponens [ ]. The inference engine uses forward chaining searches of the inference rules until it finds the one where the antecedent is known to be true. When such a rule is found, the engine can conclude or infer the consequence, resulting in the addition of new information to its data.Fuzzy-Based Nutrition Optimization
Overview
Incorporating fuzzy membership into our planning system allows for more informed decisions regarding food choices and nutrient intake, considering the uncertainties and subjectivity inherent in food preferences, dietary restrictions, and health goals. Fuzzy logic, using linguistic variables such as “low,” “medium,” and “high” provides flexibility compared with strict binary decision rules, effectively capturing uncertainty and improving recommendation accuracy and personalization. The application of fuzzy membership enhances the accuracy, personalization, and flexibility of food and nutrition recommendations.
Fuzzy Interpretation of Dietary Reference Intakes
Fuzzy sets represent vague information without clear boundaries, in contrast to crisp sets that classify objects as belonging or not belonging. Although most current dietary rules and guidelines use crisp sets based on dietary reference intake, we encounter limitations. For instance, following the dietary approaches to stop hypertension diet recommendation, the limit for sodium intake is within 2300 mg per day [
]. A sodium intake of 2305 mg would be deemed completely unacceptable under crisp logic. However, fuzzy membership allows for a more nuanced approach, defining the degree of desirability for the recommended amounts. We used fuzzy membership functions to estimate nutrient intake between 0 (not desired) and 1 (completely within the desired range), overcoming the limitations of crisp logic decisions. Curve fitting based on key points, such as extreme and optimal intake levels, was used to construct the membership function. Details of the curve fitting algorithm are illustrated in Figure S1 in [ - ], which illustrates the fuzzy membership functions for various nutrients, such as protein, fat, fiber, sugar, sodium, and carbohydrate.Nutrition Optimization
To produce the optimal intake of nutrients in a meal, each nutrient has a fuzzy set in which the membership value should achieve its maximum value (µ=1). We adopted the Prerow Value (PV) proposed by Wirsam et al [
] to measure the closeness of a meal’s nutrients to the optimal recommended value. PV is the product of the minimal membership value and harmonic mean of the fuzzy sets of the remaining observed nutrients, as defined in equation 1. PV is graded between 0 and 1, and nutrition with the lowest value has the most influence on the result.On the basis of the research by Wirsam [
], the preferred PV values were >0.7 and the optimal PV values were >0.9.To determine the best combination of meals for a day (breakfast, lunch, and dinner), we proposed a heuristic optimization algorithm that computes the optimal PV value. In this algorithm, we generate a population of unique meals, denoted as x. Each one of these x meal is considered as a potential candidate for an optimal daily meal plan encompassing 3 meals: breakfast, lunch, and dinner. As the iterations progress, each meal in the x population will be separately enhanced, allowing the daily menus to develop independently. The PV is used as the fitness value to evaluate all meals. Global-best is a list sorted by size y that saves y-best meals based on the fitness value (y<x). The meal that has the lowest PV is selected to be replaced with a better meal that has a better amount of nutrition. This replacement is based on the summation of the nutrition in all the foods in a day toward the optimal fuzzy membership value. The details of the fuzzy nutrition optimization algorithm are presented in Figure S2 in
.Multiobjective Optimization
Besides nutrition, other factors may affect a user’s satisfaction with a meal, such as the cost, preferred cuisine flavor, color, texture, and temperature, cooking time, and rating of the recipe on the website. Many of these factors may conflict with one another. We proposed an MCDM approach to determine the best daily meals that a user likes. The basic idea of the algorithm is to use the combined Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) [
] and analytic hierarchy process [ ] methods to choose the best meals based on multiple criteria.The algorithm mainly includes defining the criteria for choosing the best meal, determining the weighting of each criterion based on the user’s preferences using analytic hierarchy process, normalizing the criteria values, calculating the weighted normalization of each meal, determining the positive and negative ideal solutions, calculating the Euclidean distances, determining the relative closeness of each meal to the positive ideal solution, and finally sorting the meals based on the relative closeness values to find the best meal. The algorithm provides a systematic way to consider user preferences and make an informed decision about which meal is the best option. The details of the algorithm can be found in Figure S3 in
.Ethics Approval
This study underwent an ethics review and received the necessary approval from the North Dakota State University Institutional Review Board (IRB0003985).
Informed Consent
Informed consent was obtained from all the participants through an email-based consent process. The participants were provided with detailed information about the study and its objectives, procedures, and potential risks and benefits. The consent email clearly stated that participation in the study was voluntary, and the participants were informed that they could withdraw their participation at any time without any consequences. By following the provided link and participating in the study, participants indicated their voluntary consent to participate in the research.
Privacy and Confidentiality Protection
Questions were taken to protect the privacy and confidentiality of human subjects. The study data were anonymized to ensure participant anonymity.
Results
System
To evaluate the proposed meal planning system, we implemented a mobile app as a proof-of-concept prototype system. We collected recipes from multiple well-known recipe websites, such as the New York Times, Food [
], and Epicurious, as candidate meal options. A crawler was built to collect recipes. Preprocessing was performed on these recipes, including removing incomplete recipes and merging highly similar recipes. A recipe parser was developed to extract key information, such as ingredients, amount, unit, and cooking time, from the recipes. This information was mapped using a predefined food nutrition ontology. The extracted information is stored in a structured recipe data set. The data set contains 176,206 meal recipes and 563 food tags.User information, such as sex, age, health issues, and diet preferences, was collected through a short survey in the app. Furthermore, users had the flexibility to update or modify these settings at any time through the “Settings” menu within the app. This allows users to adjust their information as needed, ensuring that meal plans align with their current preferences and requirements.
Each time, meal planning can make 1 week’s meal plan for the user.
shows screenshots of the app. A shows the user’s basic information that is collected. B and 3C show the user’s diet preferences surveyed. D shows the app providing recommended meals to the user. In D, the “Healthy Value” represents the PV value defined previously. To enhance user-friendliness, we used an easily understandable name instead of directly referencing the PV value. The current version of the app was designed to generate meal plans based on a conventional 3-meal structure. Future iterations of the app may include options to adjust the number of meals during the day or incorporate snack options.Use Case Study
To evaluate the system’s usability from the user’s point of view, we created use cases before providing the system to real users. We listed 2 use cases that represent different scenarios and preferences. User 1, a 45-year-old female user, has hypertension and is allergic to peanuts. Her BMI value is 25.8 kg/m2. She cares about the cost of the meals and prefers more economical meals. She lives with 3 other family members, so she cares about the number of servings. The time required to prepare food is less important to consider. User 1 likes Mexican and vegetarian cuisines, but she is open to trying new tastes. She always looks at the rating number of meals (a score given by other users who have tried the meal and rated it on a scale of 1-5 stars) to choose meals. User 2, a 30-year-old male user, has type 2 diabetes. His BMI value is 26.9 kg/m2. It is important to consider the time needed to prepare food as he is busy. User 2 prefers food from his favorite cuisine list and likes Asian cuisines. He sometimes looks at the rating number of meals to choose meals. The cost of meals is not very important to him.
shows an example of a daily meal for both users. The recommended meal plans were optimized based on 176,206 meal options in our database, considering users’ preferences and specific health constraints. All the recommended meals were verified by human experts that the meals satisfy the users’ health guidelines or constraints and follow users’ preferences. Each meal also has a health value percentage (a score calculated by our app based on how well the meal meets the user’s nutritional and health needs) that helps users compare and select meals.
User 1: hypertension (PVb=0.98549) | User 2: diabetes (PV=0.92071) | ||||||
Title | Nutrition | Information | Title | Nutrition | Information | ||
Breakfast | Veggie Omelet | Calories: 560.1, carbohydrate: 42.8 g, sodium: 495 mg, sugar: 6.1 g, fiber: 9.6 g, protein: 47.2 g, fat: 37.3 g, saturated fat: 3.7 g, cholesterol: 7 mg | Time: 20 min, serves: 4, rating: 5, reviews: 2, flavor: 1, cost: US $6 | Couscous for Breakfast! | Calories: 720, carbohydrate: 48.5 g, sodium: 159 mg, sugar: 0.4 g, fiber: 4.2 g, protein: 12.8 g, fat: 10.5 g, saturated fat: 3.9 g, cholesterol: 21.4 mg | Time: 6 min, serves: 2, rating: 5, reviews: 2, flavor: 1, cost: US $8 | |
Lunch | Black Bean Spaghetti | Calories: 1150, carbohydrate: 55.8 g, sodium: 458 mg, sugar: 7.5 g, fiber: 14 g, protein: 26.1 g, fat: 12.3 g, saturated fat: 4.1 g, cholesterol: 14.7 mg | Time: 40 min, serves: 4, rating: 5, reviews: 3, flavor: 0, cost: US $10 | Dum Ka Chicken | Calories: 780.3, carbohydrate: 18.05 g, sodium: 443.6 mg, sugar: 10.2 g, fiber: 4.5 g, protein: 75.7 g, fat: 42.7 g, saturated fat: 13 g, cholesterol: 236.2 mg | Time: 55 min, serves: 2, rating: 4, reviews: 2, flavor: 1, cost: US $17 | |
Dinner | Mexican Macaroni and Cheese | Calories: 461.4, carbohydrate: 55.8 g, sodium: 182.3 mg, sugar: 11.1 g, fiber: 4.8 g, protein: 31.6 g, fat: 12.5 g, saturated fat: 3.7 g, cholesterol: 96.9 mg | Time: 45 min, Serves: 2, rating: 5, reviews: 2, flavor: 1, cost: US $8 | Curried Winter Vegetable Soup | Calories: 685.6, carbohydrate: 66.3 g, sodium: 713.6 mg, sugar: 18.2 g, fiber: 23.2 g, protein: 16.7 g, fat: 13.1 g, saturated fat: 1.8 g, cholesterol: 0 mg | Time: 40 min, serves: 4, rating: 5, reviews: 4, flavor: 0, cost: US $10 |
aTotal nutrition of the day: user 1—fat: 62.1 g, sodium: 1135.3 mg, sugar: 24.7 g, fiber: 28.4 g, protein: 104.9 g, and carbohydrate: 171.2 g. User 2—fat: 66.3 g, sodium: 1316.2 mg, sugar: 28.8 g, fiber: 31.9 g, and protein: 105.2 g.
bPV: Prerow Value.
To ensure the accuracy and reliability of the nutritional information and health constraints provided by the app, we conducted manual verification of a randomly selected sample of meals produced from various use cases. We are pleased to report that all the verified samples were found to be 100% accurate in terms of their nutritional information and adherence to health constraints.
User Study
We conducted a user study to evaluate the usability and performance of our mobile app in meal planning.
Compensation
No compensation was provided to participants involved in the study. The study was conducted on a voluntary basis, and the participants did not receive any form of monetary or nonmonetary compensation.
Design
To recruit a diverse and representative sample of potential users for our app, we used web-based platforms and flyers to advertise the study. Interested participants were invited to complete a screening questionnaire. On the basis of the screening results, we selected 39 adults who met our inclusion criteria and consented to participate in the study. By selecting a sample size of 39 participants, we were able to strike a balance between having a reasonable number of participants to obtain meaningful insights while still being feasible within the constraints of our study. The demographic information of the participants is provided in
, with a higher proportion of female participants, possibly reflecting sex differences in meal preparation behavior. Among the participants, 1 had diabetes, 3 had hypertension, and the remaining participants had no health concerns.During the study, users were asked to provide individual-level information that is relevant for personalizing their meal plans. This information included age, which helped determine the appropriate caloric intake and nutrient requirements for different life stages. Sex was considered to account for physiological differences and specific needs between male individuals and female individuals. Data on medical conditions were also collected to identify any chronic diseases or dietary restrictions that could impact the suitability of certain foods or nutrients.
In addition, users were prompted to select their physical activity level based on the World Health Organization’s guidelines and recommendations [
- ]. This information indicated the amount of physical activity that users typically engaged in per week. It allowed us to adjust caloric intake and nutrient requirements based on their energy expenditure and physical activity goals. We defined 4 physical activity levels: sedentary (<150 min of moderate-intensity or 75 min of vigorous-intensity physical activity/wk), low active (150 min of moderate-intensity or 75 min of vigorous-intensity physical activity/wk), active (>150 min but <300 min of moderate-intensity or >75 min but <150 min of vigorous-intensity physical activity/wk), and very active (≥300 min of moderate-intensity or ≥150 min of vigorous-intensity physical activity/wk).The participants were introduced to the app through a detailed description of the user interface, features, and functionalities. They were given demonstrations and explanations of how the app worked, enabling them to gain a clear understanding of its capabilities. Furthermore, the participants received training sessions before using the app. These sessions focused on familiarizing them with the app’s interface, navigation, and various functionalities. The training aimed to ensure that participants felt comfortable and confident in using the app and in understanding its features.
Variables | Participants, n (%) | ||
Age group (years) | |||
18-24 | 7 (9) | ||
25-34 | 17 (23) | ||
35-44 | 8 (11) | ||
45-54 | 5 (7) | ||
55-64 | 2 (3) | ||
Sex | |||
Female | 32 (82) | ||
Male | 7 (18) | ||
Physical activity | |||
Sedentary | 1 (4) | ||
Low active | 20 (43) | ||
Active | 15 (33) | ||
Very active | 3 (7) | ||
Medical conditions | |||
No conditions | 36 (91) | ||
Hypertension | 3 (8) | ||
Diabetes | 1 (2) |
Objective Measurement Results
First, we compared meal nutrition in terms of PV values for user-designed plans and AI-designed plans. The PV for user-designed plans is significantly lower (<0.2). This indicates a lesser alignment with the optimal recommended nutrient values, when compared with the PV of meals planned by the app (0.8). These results demonstrate that the proposed planning system optimized PV values, that is, providing excellent nutrition for participants’ health. The breakdown of PV values for each of the 3 patient groups: diabetes (n=1), hypertension (n=3), and no concerns (n=35) is worth noting. For those with diabetes, the average PV of participants' meal plans was 0.0561, which substantially improved to 0.8125 with the app's meal plans. Similarly, participants with hypertension initially had an average PV of 0.0305, which increased to 0.7895 when using the app’s meal plans. Even those without any health concerns showed an improvement from a PV of 0.0873 to 0.801 using the app. This reveals that due to their health concerns and subsequent dietary constraints, it is more challenging for individuals with health issues to achieve higher PV values. Hence, the meals provided by the app can dramatically improve the nutritional values required by people with health concerns. We analyzed all the nutrients in meals recommended by the app and compared them with those planned by the participants. As an example, we’ve presented the different daily sodium content in the meals of participants’ plan and the app’s plan, as shown in
. Note that the partisans in the figure do not have any health concerns. The 3 horizontal lines indicate the maximum, recommended, and minimum permitted amounts of sodium consumption per day. For each participant, there are 2 sodium values: the yellow one is sodium from meals planned by the participant themselves, whereas the blue one is the sodium content from meals planned by the app for that participant. We can see that the app’s sodium contents are closer to the recommended amount of sodium consumption. In some cases, the participants’ sodium contents exceeded the maximum limit. This figure highlights the effectiveness of the proposed planning in controlling sodium intake compared with the participant-designed plans.shows the sodium content of the participants with hypertension. We separated them because of the different sodium limits specified in the health diet guidelines for this group. The results showed that all users with hypertension exceeded the maximum limit in their sodium intake, whereas the app’s plan was closer to the recommended limit.
shows the sodium content of a hypertensive participant over 1 week. It provides a clear illustration of daily sodium intake, allowing a more in-depth analysis of the individual’s diet.
The analysis of the app's adherence to user preferences reveals some significant insights. The preference scores were compared between the participant-designed plans and the app-designed plans, utilizing the TOPSIS score (as shown in equation 11 in
). The app-designed plans registered higher scores, suggesting that the app was more successful in closely adhering to individuals' desired preferences.Interestingly, we found that when participants created their plans, they usually focused on 1 or 2 preferences, although they had expressed multiple preferences in their survey. This tendency resulted in a TOPSIS score of 0.4564 for participant-designed plans. On the other hand, the app-designed plans, which took into account a wider range of user preferences, achieved a higher TOPSIS score of 0.5227. This result demonstrates that the app effectively considered people’s preferences in their meal plans, offering a more customized and inclusive meal planning experience.
Subjective Measurement Results
To evaluate the participants’ overall satisfaction with the mobile app, we asked them to answer a questionnaire with 3 questions regarding the app’s usefulness, time savings, and consideration of their diet constraints and preferences. All the participants completed the questionnaire after using the app. The results showed that most of the participants were satisfied with the mobile planning system and had a positive view of its features. As our data shows, most of the participants had a positive view of whether the app was helpful for meal planning. Specifically, 13% (5/39) were extremely positive, 54% (21/39) were very positive, and 31% (12/39) were somewhat positive. Only 3% (1/39) of the respondents had a negative view. Our data shows that most participants agreed that the app helped them save time in meal planning. Specifically, 33% (13/39) were extremely positive, 36% (14/39) were very positive, 26% (10/39) were somewhat positive, and only a minor proportion of 5% (2/39) were not positive.
Our findings illustrate that most respondents had a positive view of the app, considering their diet constraints and overall preferences in meal planning. Specifically, 23% (9/39) were extremely positive, 36% (14/39) were very positive, 31% (12/39) were somewhat positive, and 10% (4/39) were not positive.
Discussion
Principal Findings
This study proposed a personalized healthy meal planner for people who would like to eat healthily, especially for people with diet-related health concerns and compared the nutritional value of meals planned by users and by an AI-based mobile planning system. The results showed that the AI system optimized the nutrient value, providing better nutrition for the participants. The system was also more successful in addressing health-related nutrition intake (eg, controlling sodium intake) and following participants’ dietary preferences, as shown by higher scores in terms of TOPSIS scores. Participants were satisfied with the mobile planning system, with most having a positive view of the app’s helpfulness in meal planning, saving time, and considering their dietary constraints and preferences.
Comparison With Prior Work
Existing meal planning systems can be broadly classified into 2 categories: manual and automated systems. Manual meal planning systems typically involve the use of cookbooks, recipes, and nutritional guides to plan and prepare meals. These systems can be time consuming, and the results depend on the user’s knowledge and ability to find appropriate recipes and ingredients.
Automated meal planning systems [
, ] use technology to help with meal planning. These systems can be web-based [ - , ], mobile app–based [ , , ], or integrated into smart kitchen devices [ ]. Automated meal planning systems typically use algorithms to suggest meals based on the user’s dietary needs, preferences, and restrictions [ , - ]. They may also consider other factors such as food availability, cost, and time constraints [ , ]. Some popular examples of automated meal planning systems include MyFitnessPal [ ], Noom [ ], and Mealime [ ].The proposed AI meal planning system integrates multiple techniques, such as semantic reasoning, fuzzy logic, heuristic search, and multicriteria analysis, to create optimized meal plans tailored to the user’s individual needs and preferences. It uses an ontology-based knowledge base, semantic rules, and fuzzy membership functions to handle uncertain and vague nutritional data. The system also incorporates a semantic rule-based filter, a heuristic search method, and an MCDM approach to make meal suggestions. A mobile app prototype was developed and tested with positive results, including well-considered health concerns, optimized nutrition values, respect for restrictions and constraints, consideration of user preferences, and user satisfaction.
Compared with existing meal planning systems, this AI-powered system is unique in its integration of multiple techniques to create personalized meal plans that consider multiple factors, such as health conditions, dietary restrictions, and user preferences. In addition, the use of fuzzy logic and heuristic search sets it apart from other systems that may rely on purely deterministic or rule-based methods [
, , ].Limitations
This study had some limitations that need to be acknowledged. One limitation is that the system does not dynamically adjust meal plans to accommodate changes, such as when a user cannot follow the plan on a specific day. This may affect the user’s adherence to and satisfaction with the system. Another limitation is that the system assumes that the user’s health conditions, preferences, and status remain unchanged throughout the meal planning process. This may not reflect the reality of some users who may experience changes in their health or lifestyle. These limitations suggest that the system needs further development to incorporate dynamic and real-time updates that can adapt to the user’s changing needs and circumstances. In our current version of the app, our primary source of guidelines is the American Diabetes Association Guidelines, as we are targeting the US population. We plan to include a feature that allows users to select their country within the app. By doing so, we can provide personalized meal plans that align with the specific guidelines and recommendations of their respective countries.
Another limitation of this study is related to the user study design and sample. The user study was conducted using a relatively small and homogeneous sample of 39 adults who had different health conditions and dietary preferences. This may limit the generalizability and external validity of the results to other populations or contexts. Moreover, the user study only evaluated the usability and performance of the system for 1 week, which may not capture the long-term effects or outcomes of using the system. Participants’ satisfaction with the mobile planning system should extend beyond the use of the app. Additional features, such as the ability to create menus and generate grocery lists, would enhance the overall user experience and determine the system’s usefulness in practical meal preparation. Further investigations are needed to assess the app’s performance in real-world scenarios and gather more comprehensive feedback from users regarding their meal planning and preparation experiences. These investigations would provide a more comprehensive evaluation of the app’s usefulness, usability, and overall user satisfaction. A more comprehensive and longitudinal user study is required to assess how the system improves users’ health and quality of life over time.
Conclusions
The proposed AI-powered meal planner provides a novel solution for the challenge of healthy and personalized meal planning. The system uses a combination of semantic reasoning, fuzzy logic, heuristic search, and multicriteria analysis to generate optimized meal plans that are tailored to an individual’s unique dietary needs, preferences, and goals. The use of semantic web technologies to model complex and heterogeneous diet knowledge, semantic logic to enable automatic machine reasoning, fuzzy logic to handle the uncertainty and vagueness of food data, and heuristic search–assisted MCDM to effectively integrate multiple user preferences all contribute to the effectiveness of the system. Through comprehensive evaluation tests, the system was shown to be effective in generating healthy and personalized meal plans, and the mobile app prototype demonstrated its feasibility for practical use. However, it is important to note that the system has some limitations that should be addressed in future studies. Overall, this work represents a significant step forward in the development of AI-powered personalized meal planning systems, providing a valuable tool to help people achieve their health and nutritional goals.
Acknowledgments
This study was supported by the National Science Foundation with awards 1722913 and 2218046.
Data Availability
The data sets analyzed during this study are available from the corresponding author upon reasonable request.
Conflicts of Interest
None declared.
Descriptive explanation of fuzzy membership functions for various nutrients, fuzzy nutrition optimization algorithm, and multiobjective optimization algorithm.
DOCX File , 145 KBReferences
- Cena H, Calder PC. Defining a healthy diet: evidence for the role of contemporary dietary patterns in health and disease. Nutrients. Jan 27, 2020;12(2):334. [FREE Full text] [CrossRef] [Medline]
- Schulze MB, Martínez-González MA, Fung TT, Lichtenstein AH, Forouhi NG. Food based dietary patterns and chronic disease prevention. BMJ. Jun 13, 2018;361:k2396. [FREE Full text] [CrossRef] [Medline]
- Gillespie SJ, Kulkarni KD, Daly AE. Using carbohydrate counting in diabetes clinical practice. J Am Diet Assoc. Aug 1998;98(8):897-905. [CrossRef] [Medline]
- Lichtenstein AH, Appel LJ, Vadiveloo M, Hu FB, Kris-Etherton PM, Rebholz CM, et al. 2021 dietary guidance to improve cardiovascular health: a scientific statement from the American Heart Association. Circulation. Dec 07, 2021;144(23):e472-e487. [CrossRef] [Medline]
- Kalantar-Zadeh K, Joshi S, Schlueter R, Cooke J, Brown-Tortorici A, Donnelly M, et al. Plant-dominant low-protein diet for conservative management of chronic kidney disease. Nutrients. Jun 29, 2020;12(7):1931. [FREE Full text] [CrossRef] [Medline]
- National Collaborating Centre for Chronic Conditions (UK). Introduction: standards of medical care in diabetes-2020. Diabetes Care. Jan 2020;43(Suppl 1):S1-S2. [CrossRef] [Medline]
- Hyman BT, Phelps CH, Beach TG, Bigio EH, Cairns NJ, Carrillo MC, et al. National Institute on Aging-Alzheimer's Association guidelines for the neuropathologic assessment of Alzheimer's disease. Alzheimers Dement. Jan 2012;8(1):1-13. [FREE Full text] [CrossRef] [Medline]
- National Collaborating Centre for Chronic Conditions (Great Britain). Type 2 Diabetes National Clinical Guideline for Management in Primary and Secondary Care (update). London, England. Royal College of Physicians; 2008.
- DeSalvo KB, Olson R, Casavale KO. Dietary guidelines for Americans. JAMA. Feb 02, 2016;315(5):457-458. [CrossRef] [Medline]
- Lifesum: healthy eating and diet. Google Play. URL: https://play.google.com/store/apps/details?id=com.sillens.shapeupclub&hl=en&gl=US&pli=1 [accessed 2022-10-01]
- Calorie Counter - MyNetDiary. Google Play. URL: https://play.google.com/store/apps/details?id=com.fourtechnologies.mynetdiary.ad&hl=en_US [accessed 2022-10-01]
- HealthifyMe – Calorie Counter. Google Play. URL: https://play.google.com/store/apps/details?id=com.healthifyme.basic&hl=en&gl=US [accessed 2022-10-01]
- Calorie counter app: Fooducate. Google Play. URL: https://play.google.com/store/apps/details?id=com.fooducate.nutritionapp&hl=en&gl=US [accessed 2022-10-01]
- eatright PRO Academy of Nutrition and Dietetics homepage. eatright PRO Academy of Nutrition and Dietetics. URL: https://www.eatrightpro.org/about-us?_ga=2.222990354.863373658.1650059459-1119665767.1650059459 [accessed 2022-10-01]
- MyPlate. U.S. Department of Agriculture. URL: https://www.myplate.gov/ [accessed 2023-07-02]
- MyFitnessPal homepage. MyFitnessPal. URL: https://www.myfitnesspal.com/ [accessed 2023-07-02]
- Food. U.S. Food & Drug Administration. URL: https://www.fda.gov/food [accessed 2023-07-02]
- DietWiz: Weekly Meal Planner. App Store. URL: https://apps.apple.com/gb/app/dietwiz-weekly-meal-planner/id1156820017 [accessed 2022-10-01]
- MealPrepPro Meal Plans. App Store. URL: https://apps.apple.com/us/app/mealpreppro-meal-plans/id1249805978 [accessed 2022-10-01]
- MealBoard - Meal Planner. App Store. URL: https://apps.apple.com/us/app/mealboard-meal-planner/id333425918 [accessed 2022-10-01]
- Fensel D, Şimşek U, Angele K, Huaman E, Kärle E, Panasiuk O, et al. Introduction: what is a knowledge graph? In: Knowledge Graphs. Cham. Springer; 2020.
- Phillips JA. Dietary guidelines for Americans, 2020-2025. Workplace Health Saf. Aug 2021;69(8):395. [CrossRef] [Medline]
- FoodKG: a semantics-driven knowledge graph for food recommendation. GitHub. URL: https://foodkg.github.io/ [accessed 2022-10-01]
- Why should I limit sodium? American Heart Association. URL: https://www.heart.org/-/media/files/health-topics/answers-by-heart/why-should-i-limit-sodium.pdf [accessed 2022-10-01]
- Kuter U, Nau D. Forward-chaining planning in nondeterministic domains. In: Proceedings of the Nineteenth National Conference on Artificial Intelligence (AAAI-04). Presented at: Nineteenth National Conference on Artificial Intelligence (AAAI-04); Jul 25-29, 2004, 2004; San Jose, California. URL: https://www.cs.umd.edu/~nau/papers/kuter2004forward-chaining.pdf
- Bledin J. Modus ponens defended. J Philos. Feb 2015;112(2):57-83. [FREE Full text] [CrossRef]
- Wirsam B, Hahn A, Uthus EO, Leitzmann C. Fuzzy sets and fuzzy decision making in nutrition. Eur J Clin Nutr. May 01, 1997;51(5):286-296. [CrossRef] [Medline]
- Wirsam B, Hahn A. Fuzzy methods in nutrition planning and education and in clinical nutrition. In: Teodorescu HN, Kandel A, Jain LC, editors. Soft Computing in Human-Related Sciences. Boca Raton, Florida, United States. CRC Press; 1999;335-350.
- Teodorescu HNL, Kandel A, Jain LC. Soft Computing in Human-Related Sciences. Boca Raton, Florida, United States. CRC Press; 1999.
- Rahim R, Siahaan AP, Wijaya RF, Hantono H, Aswan N, Thamrin S, et al. Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) Method for decision support system in top management. Int J Eng Technol. Jan 2018;7(3.4):290-293. [FREE Full text]
- Darko A, Chan AP, Ameyaw EE, Owusu EK, Pärn E, Edwards DJ. Review of application of analytic hierarchy process (AHP) in construction. Int J Constr Manag. Mar 26, 2018;19(5):436-452. [CrossRef] [Medline]
- Home page. Food.com. URL: https://www.food.com/ [accessed 2023-07-14]
- Global recommendations on physical activity for health. World Health Organization. Jan 1, 2010. URL: https://www.who.int/publications/i/item/9789241599979 [accessed 2022-10-01]
- Mauch CE, Laws RA, Prichard I, Maeder AJ, Wycherley TP, Golley RK. Commercially available apps to support healthy family meals: user testing of app utility, acceptability, and engagement. JMIR Mhealth Uhealth. May 07, 2021;9(5):e22990. [FREE Full text] [CrossRef] [Medline]
- Moriarty DG, Zack MM, Kobau R. The Centers for Disease Control and Prevention's Healthy Days Measures - population tracking of perceived physical and mental health over time. Health Qual Life Outcomes. Sep 02, 2003;1:37. [FREE Full text] [CrossRef] [Medline]
- Pemberton VL, McCrindle BW, Barkin S, Daniels SR, Barlow SE, Binns HJ, et al. Report of the National Heart, Lung, and Blood Institute’s working group on obesity and other cardiovascular risk factors in congenital heart disease. Circulation. Mar 09, 2010;121(9):1153-1159. [CrossRef] [Medline]
- Salloum G, Tekli J. Automated and personalized nutrition health assessment, recommendation, and progress evaluation using fuzzy reasoning. Int J Human Comput Stud. Jul 2021;151:102610. [CrossRef]
- Salloum G, Tekli J. Automated and personalized meal plan generation and relevance scoring using a multi-factor adaptation of the transportation problem. Soft Comput. Nov 10, 2021;26(5):2561-2585. [CrossRef]
- Mealime meal plans and recipes. App Store. URL: https://apps.apple.com/us/app/mealime-meal-plans-recipes/id1079999103 [accessed 2022-10-01]
- Maharjan B, Li J, Kong J, Tao C. Alexa, what should I eat? : a personalized virtual nutrition coach for native American diabetes patients using Amazon’s smart speaker technology. In: Proceedings of the IEEE International Conference on E-health Networking, Application & Services (HealthCom). Presented at: IEEE International Conference on E-health Networking, Application & Services (HealthCom); Oct 14-16, 2019, 2019; Bogota, Colombia. [CrossRef]
- Zadeh MS, Li J, Alian S. Personalized meal planning for diabetic patients using a multi-criteria decision- making approach. In: Proceedings of the 2019 IEEE International Conference on E-health Networking, Application & Services (HealthCom). Presented at: 2019 IEEE International Conference on E-health Networking, Application & Services (HealthCom); Oct 14-16, 2019, 2019; Bogota, Colombia. [CrossRef]
- Ribeiro D, Machado J, Ribeiro J, Vasconcelos MJ, Vieira EF, de Barros AC. SousChef: mobile meal recommender system for older adults. In: Proceedings of the 3rd International Conference on Information and Communication Technologies for Ageing Well and e-Health ICT4AWE - Volume 1. Presented at: 3rd International Conference on Information and Communication Technologies for Ageing Well and e-Health ICT4AWE - Volume 1,; Apr 28-29, 2017, 2017; Porto, Portugal. [CrossRef]
- Sharawat K, Dubey SK. Diet recommendation for diabetic patients using MCDM approach. In: Intelligent Communication, Control and Devices. Singapore. Springer; 2018.
- Kljusurić JG, Kurtanjek Ž. Fuzzy logic modelling in nutrition planning - application on meals in boarding schools. Curr Stud Biotechnol. 2003;III:347-354. [FREE Full text]
- Yang L, Hsieh C, Yang H, Pollak JP, Dell N, Belongie S, et al. Yum-Me: a personalized nutrient-based meal recommender system. ACM Trans Inf Syst. Aug 17, 2017;36(1):1-31. [FREE Full text] [CrossRef] [Medline]
- Noom: Healthy Weight Loss. App Store. URL: https://apps.apple.com/us/app/noom-healthy-weight-loss/id634598719 [accessed 2022-10-01]
- Hsiao JH, Chang H. SmartDiet: a personal diet consultant for healthy meal planning. In: Proceedings of the IEEE 23rd International Symposium on Computer-Based Medical Systems (CBMS). Presented at: IEEE 23rd International Symposium on Computer-Based Medical Systems (CBMS); Oct 12-15, 2010, 2010; Bentley, WA, Australia. URL: https://ieeexplore.ieee.org/document/6042681 [CrossRef]
- Aberg J. Dealing with malnutrition: a meal planning system for elderly. In: Proceedings of the AAAI Spring Symposium: Argumentation for Consumers of Healthcare. Presented at: AAAI Spring Symposium: Argumentation for Consumers of Healthcare; Mar 27-29, 2006, 2006; Stanford, California, USA.
Abbreviations
AI: artificial intelligence |
MCDM: multicriteria decision-making |
PV: Prerow Value |
TOPSIS: Technique for Order of Preference by Similarity to Ideal Solution |
Edited by A Mavragani; submitted 11.02.23; peer-reviewed by L Quintana, AS Brazeau, YL Leung; comments to author 17.05.23; revised version received 07.06.23; accepted 22.06.23; published 03.08.23.
Copyright©Maryam Amiri, Juan Li, Wordh Hasan. Originally published in JMIR Formative Research (https://formative.jmir.org), 03.08.2023.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on https://formative.jmir.org, as well as this copyright and license information must be included.