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.
Keywords: diabetes, fuzzy logic, meal planning, multicriteria decision-making, optimization
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 [1]. 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 [2]. For instance, meal planning can help regulate blood glucose levels in individuals with diabetes by balancing the intake of carbohydrates, proteins, and fats [3]. 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 [4]. 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 [5]. 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 [6-9], 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 [10-17]) 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 [18-20]. 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
Figure 1 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 [21]. 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 [22] and FoodKG [23]. 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.
Figure 2 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 [10] 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 [24], 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 [25] as the implementation strategy, which can be described logically as repeated applications of modus ponens [26]. 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 [24]. 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 Multimedia Appendix 1 [27-29], 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 [27] 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 [27], 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 Multimedia Appendix 1.
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) [30] and analytic hierarchy process [31] 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 Multimedia Appendix 1.
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 [32], 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. Figure 3 shows screenshots of the app. Figure 3A shows the user’s basic information that is collected. Figure 3B and 3C show the user’s diet preferences surveyed. Figure 3D shows the app providing recommended meals to the user. In Figure 3D, 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.
Table 1 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.
Table 1.
|
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 Table 2, 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.
Table 2.
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) |
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 [33-36]. 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.
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 Figure 4. 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.
Figure 5 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.
Figure 6 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 Multimedia Appendix 1). 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 [37,38] use technology to help with meal planning. These systems can be web-based [6-8,22], mobile app–based [19,20,39], or integrated into smart kitchen devices [40]. Automated meal planning systems typically use algorithms to suggest meals based on the user’s dietary needs, preferences, and restrictions [38,41-43]. They may also consider other factors such as food availability, cost, and time constraints [44,45]. Some popular examples of automated meal planning systems include MyFitnessPal [16], Noom [46], and Mealime [39].
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 [41,47,48].
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.
Abbreviations
- AI
artificial intelligence
- MCDM
multicriteria decision-making
- PV
Prerow Value
- TOPSIS
Technique for Order of Preference by Similarity to Ideal Solution
Descriptive explanation of fuzzy membership functions for various nutrients, fuzzy nutrition optimization algorithm, and multiobjective optimization algorithm.
Data Availability
The data sets analyzed during this study are available from the corresponding author upon reasonable request.
Footnotes
Conflicts of Interest: None declared.
References
- 1.Cena H, Calder PC. Defining a healthy diet: evidence for the role of contemporary dietary patterns in health and disease. Nutrients. 2020 Jan 27;12(2):334. doi: 10.3390/nu12020334. https://www.mdpi.com/resolver?pii=nu12020334 .nu12020334 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Schulze MB, Martínez-González MA, Fung TT, Lichtenstein AH, Forouhi NG. Food based dietary patterns and chronic disease prevention. BMJ. 2018 Jun 13;361:k2396. doi: 10.1136/bmj.k2396. http://www.bmj.com/lookup/pmidlookup?view=long&pmid=29898951 . [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Gillespie SJ, Kulkarni KD, Daly AE. Using carbohydrate counting in diabetes clinical practice. J Am Diet Assoc. 1998 Aug;98(8):897–905. doi: 10.1016/s0002-8223(98)00206-5. [DOI] [PubMed] [Google Scholar]
- 4.Lichtenstein AH, Appel LJ, Vadiveloo M, Hu FB, Kris-Etherton PM, Rebholz CM, Sacks FM, Thorndike AN, Van Horn L, Wylie-Rosett J. 2021 dietary guidance to improve cardiovascular health: a scientific statement from the American Heart Association. Circulation. 2021 Dec 07;144(23):e472–87. doi: 10.1161/cir.0000000000001031. [DOI] [PubMed] [Google Scholar]
- 5.Kalantar-Zadeh K, Joshi S, Schlueter R, Cooke J, Brown-Tortorici A, Donnelly M, Schulman S, Lau W-L, Rhee CM, Streja E, Tantisattamo E, Ferrey AJ, Hanna R, Chen JL, Malik S, Nguyen DV, Crowley ST, Kovesdy CP. Plant-dominant low-protein diet for conservative management of chronic kidney disease. Nutrients. 2020 Jun 29;12(7):1931. doi: 10.3390/nu12071931. https://www.mdpi.com/resolver?pii=nu12071931 .nu12071931 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.National Collaborating Centre for Chronic Conditions (UK) Introduction: standards of medical care in diabetes-2020. Diabetes Care. 2020 Jan;43(Suppl 1):S1–2. doi: 10.2337/dc20-Sint.43/Supplement_1/S1 [DOI] [PubMed] [Google Scholar]
- 7.Hyman BT, Phelps CH, Beach TG, Bigio EH, Cairns NJ, Carrillo MC, Dickson DW, Duyckaerts C, Frosch MP, Masliah E, Mirra SS, Nelson PT, Schneider JA, Thal DR, Thies B, Trojanowski JQ, Vinters HV, Montine TJ. National Institute on Aging-Alzheimer's Association guidelines for the neuropathologic assessment of Alzheimer's disease. Alzheimers Dement. 2012 Jan;8(1):1–13. doi: 10.1016/j.jalz.2011.10.007. https://europepmc.org/abstract/MED/22265587 .S1552-5260(11)02980-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.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. [PubMed] [Google Scholar]
- 9.DeSalvo KB, Olson R, Casavale KO. Dietary guidelines for Americans. JAMA. 2016 Feb 02;315(5):457–8. doi: 10.1001/jama.2015.18396.2481221 [DOI] [PubMed] [Google Scholar]
- 10.Lifesum: healthy eating and diet. Google Play. [2022-10-01]. https://play.google.com/store/apps/details?id=com.sillens.shapeupclub&hl=en&gl=US&pli=1 .
- 11.Calorie Counter - MyNetDiary. Google Play. [2022-10-01]. https://play.google.com/store/apps/details?id=com.fourtechnologies.mynetdiary.ad&hl=en_US .
- 12.HealthifyMe – Calorie Counter. Google Play. [2022-10-01]. https://play.google.com/store/apps/details?id=com.healthifyme.basic&hl=en&gl=US .
- 13.Calorie counter app: Fooducate. Google Play. [2022-10-01]. https://play.google.com/store/apps/details?id=com.fooducate.nutritionapp&hl=en&gl=US .
- 14.eatright PRO Academy of Nutrition and Dietetics homepage. eatright PRO Academy of Nutrition and Dietetics. [2022-10-01]. https://www.eatrightpro.org/about-us?_ga=2.222990354.863373658.1650059459-1119665767.1650059459 .
- 15.MyPlate. U.S. Department of Agriculture. [2023-07-02]. https://www.myplate.gov/
- 16.MyFitnessPal homepage. MyFitnessPal. [2023-07-02]. https://www.myfitnesspal.com/
- 17.Food. U.S. Food & Drug Administration. [2023-07-02]. https://www.fda.gov/food .
- 18.DietWiz: Weekly Meal Planner. App Store. [2022-10-01]. https://apps.apple.com/gb/app/dietwiz-weekly-meal-planner/id1156820017 .
- 19.MealPrepPro Meal Plans. App Store. [2022-10-01]. https://apps.apple.com/us/app/mealpreppro-meal-plans/id1249805978 .
- 20.MealBoard - Meal Planner. App Store. [2022-10-01]. https://apps.apple.com/us/app/mealboard-meal-planner/id333425918 .
- 21.Fensel D, Şimşek U, Angele K, Huaman E, Kärle E, Panasiuk O, Toma I, Umbrich J, Wahler A. Knowledge Graphs. Cham: Springer; 2020. Introduction: what is a knowledge graph? [Google Scholar]
- 22.Phillips JA. Dietary guidelines for Americans, 2020-2025. Workplace Health Saf. 2021 Aug;69(8):395. doi: 10.1177/21650799211026980. [DOI] [PubMed] [Google Scholar]
- 23.FoodKG: a semantics-driven knowledge graph for food recommendation. GitHub. [2022-10-01]. https://foodkg.github.io/
- 24.Why should I limit sodium? American Heart Association. [2022-10-01]. https://www.heart.org/-/media/files/health-topics/answers-by-heart/why-should-i-limit-sodium.pdf .
- 25.Kuter U, Nau D. Forward-chaining planning in nondeterministic domains. Proceedings of the Nineteenth National Conference on Artificial Intelligence (AAAI-04); Nineteenth National Conference on Artificial Intelligence (AAAI-04); Jul 25-29, 2004; San Jose, California. 2004. https://www.cs.umd.edu/~nau/papers/kuter2004forward-chaining.pdf . [Google Scholar]
- 26.Bledin J. Modus ponens defended. J Philos. 2015 Feb;112(2):57–83. doi: 10.5840/jphil201511225. https://www.pdcnet.org/jphil/content/jphil_2015_0112_0002_0057_0083 . [DOI] [Google Scholar]
- 27.Wirsam B, Hahn A, Uthus EO, Leitzmann C. Fuzzy sets and fuzzy decision making in nutrition. Eur J Clin Nutr. 1997 May 01;51(5):286–96. doi: 10.1038/sj.ejcn.1600378. [DOI] [PubMed] [Google Scholar]
- 28.Wirsam B, Hahn A. Fuzzy methods in nutrition planning and education and in clinical nutrition. In: Teodorescu H-N, Kandel A, Jain LC, editors. Soft Computing in Human-Related Sciences. Boca Raton, Florida, United States: CRC Press; 1999. pp. 335–50. [Google Scholar]
- 29.Teodorescu HNL, Kandel A, Jain LC. Soft Computing in Human-Related Sciences. Boca Raton, Florida, United States: CRC Press; 1999. [Google Scholar]
- 30.Rahim R, Siahaan AP, Wijaya RF, Hantono H, Aswan N, Thamrin S, Sari DA, Agustina S, Santosa RB, Muttaqin WM, Sujito S, Yulia Y, Fatmasari R, Ikhwan A, Sugiarto I, Purnomo A, Anam F, Kulsum NM, Diawati P, Mina R, Sujarwo S. Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) Method for decision support system in top management. Int J Eng Technol. 2018 Jan;7(3.4):290–3. https://www.researchgate.net/publication/328132893_Technique_for_Order_of_Preference_by_Similarity_to_Ideal_Solution_TOPSIS_method_for_decision_support_system_in_top_management . [Google Scholar]
- 31.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. 2018 Mar 26;19(5):436–52. doi: 10.1080/15623599.2018.1452098. [DOI] [Google Scholar]
- 32.Home page. Food.com. [2023-07-14]. https://www.food.com/
- 33.Global recommendations on physical activity for health. World Health Organization. 2010. Jan 1, [2022-10-01]. https://www.who.int/publications/i/item/9789241599979 . [PubMed]
- 34.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. 2021 May 07;9(5):e22990. doi: 10.2196/22990. https://mhealth.jmir.org/2021/5/e22990/ v9i5e22990 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.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. 2003 Sep 02;1:37. doi: 10.1186/1477-7525-1-37. https://hqlo.biomedcentral.com/articles/10.1186/1477-7525-1-37 .1477-7525-1-37 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Pemberton VL, McCrindle BW, Barkin S, Daniels SR, Barlow SE, Binns HJ, Cohen MS, Economos C, Faith MS, Gidding SS, Goldberg CS, Kavey R, Longmuir P, Rocchini AP, Van Horn L, Kaltman JR. Report of the National Heart, Lung, and Blood Institute’s working group on obesity and other cardiovascular risk factors in congenital heart disease. Circulation. 2010 Mar 09;121(9):1153–9. doi: 10.1161/circulationaha.109.921544. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Salloum G, Tekli J. Automated and personalized nutrition health assessment, recommendation, and progress evaluation using fuzzy reasoning. Int J Human Comput Stud. 2021 Jul;151:102610. doi: 10.1016/j.ijhcs.2021.102610. [DOI] [Google Scholar]
- 38.Salloum G, Tekli J. Automated and personalized meal plan generation and relevance scoring using a multi-factor adaptation of the transportation problem. Soft Comput. 2021 Nov 10;26(5):2561–85. doi: 10.1007/s00500-021-06400-1. [DOI] [Google Scholar]
- 39.Mealime meal plans and recipes. App Store. [2022-10-01]. https://apps.apple.com/us/app/mealime-meal-plans-recipes/id1079999103 .
- 40.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. Proceedings of the IEEE International Conference on E-health Networking, Application & Services (HealthCom); IEEE International Conference on E-health Networking, Application & Services (HealthCom); Oct 14-16, 2019; Bogota, Colombia. 2019. [DOI] [Google Scholar]
- 41.Zadeh MS, Li J, Alian s. Personalized meal planning for diabetic patients using a multi-criteria decision- making approach. Proceedings of the 2019 IEEE International Conference on E-health Networking, Application & Services (HealthCom); 2019 IEEE International Conference on E-health Networking, Application & Services (HealthCom); Oct 14-16, 2019; Bogota, Colombia. 2019. [DOI] [Google Scholar]
- 42.Ribeiro D, Machado J, Ribeiro J, Vasconcelos MJ, Vieira EF, de Barros AC. SousChef: mobile meal recommender system for older adults. Proceedings of the 3rd International Conference on Information and Communication Technologies for Ageing Well and e-Health ICT4AWE - Volume 1; 3rd International Conference on Information and Communication Technologies for Ageing Well and e-Health ICT4AWE - Volume 1,; Apr 28-29, 2017; Porto, Portugal. 2017. [DOI] [Google Scholar]
- 43.Sharawat K, Dubey SK. Intelligent Communication, Control and Devices. Singapore: Springer; 2018. Diet recommendation for diabetic patients using MCDM approach. [Google Scholar]
- 44.Kljusurić JG, Kurtanjek Ž. Fuzzy logic modelling in nutrition planning - application on meals in boarding schools. Curr Stud Biotechnol. 2003;III:347–54. https://bib.irb.hr/datoteka/179068.Gajdos_et_al.pdf . [Google Scholar]
- 45.Yang L, Hsieh C, Yang H, Pollak JP, Dell N, Belongie S, Cole C, Estrin D. Yum-Me: a personalized nutrient-based meal recommender system. ACM Trans Inf Syst. 2017 Aug 17;36(1):1–31. doi: 10.1145/3072614. https://europepmc.org/abstract/MED/30464375 .7 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Noom: Healthy Weight Loss. App Store. [2022-10-01]. https://apps.apple.com/us/app/noom-healthy-weight-loss/id634598719 .
- 47.Hsiao J-H, Chang H. SmartDiet: a personal diet consultant for healthy meal planning. Proceedings of the IEEE 23rd International Symposium on Computer-Based Medical Systems (CBMS); IEEE 23rd International Symposium on Computer-Based Medical Systems (CBMS); Oct 12-15, 2010; Bentley, WA, Australia. 2010. https://ieeexplore.ieee.org/document/6042681 . [DOI] [Google Scholar]
- 48.Aberg J. Dealing with malnutrition: a meal planning system for elderly. Proceedings of the AAAI Spring Symposium: Argumentation for Consumers of Healthcare; AAAI Spring Symposium: Argumentation for Consumers of Healthcare; Mar 27-29, 2006; Stanford, California, USA. 2006. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Descriptive explanation of fuzzy membership functions for various nutrients, fuzzy nutrition optimization algorithm, and multiobjective optimization algorithm.
Data Availability Statement
The data sets analyzed during this study are available from the corresponding author upon reasonable request.