Next Article in Journal
Custom-Made Alloplastic Prosthetic Implant to Treat Temporomandibular Joint Ankylosis in Pediatric Patients: A Case Study
Previous Article in Journal
Copper Nanoparticles: Synthesis and Characterization, Physiology, Toxicity and Antimicrobial Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Ontology-Based Nutritional Recommender System

by
Dexon Mckensy-Sambola
1,
Miguel Ángel Rodríguez-García
2,*,
Francisco García-Sánchez
3 and
Rafael Valencia-García
3
1
Escuela de Informática, Bluefields Indian & Caribbean University (BICU), Bluefields 81000, Nicaragua
2
Departamento de Ciencias de la Computación, Universidad Rey Juan Carlos, 28933 Madrid, Spain
3
Departamento de Informática y Sistemas, Universidad de Murcia, 30100 Murcia, Spain
*
Author to whom correspondence should be addressed.
Appl. Sci. 2022, 12(1), 143; https://doi.org/10.3390/app12010143
Submission received: 17 November 2021 / Revised: 17 December 2021 / Accepted: 21 December 2021 / Published: 24 December 2021
(This article belongs to the Section Computing and Artificial Intelligence)

Abstract

:
Obesity is considered an epidemic that is continuously growing around the world. Heart diseases, diabetes, and bone and joint diseases are some of the diseases that people who are overweight or obese can develop. One of the vital causes of those disorders is poor nutrition education; there is no raising awareness about eating healthy food and practicing physical activities to burn off the excess energy. Therefore, it is necessary to use new technologies to build methods/tools that help people to overcome these avoidable nutrition disorders. For this reason, we implemented a recommendation engine capable of identifying the different levels of overweight and obesity in users and providing dietary strategies to mitigate them. To do so, we defined the Ontology of Dietary Recommendations (ODR) with axioms to model recipes, ingredients, and a set of diets to assist people who suffer from obesity. We validated the defined model by using a real set of individuals who were anonymized. A panel of advisors evaluated each individual record and suggested the most appropriate diets from those included in the ontology. Then, the proposed system was asked to also provide diet recommendations for each individual, which were compared with those proposed by the advisors (ground truth), reaching a mean accuracy of 87%.

1. Introduction

Currently, obesity is considered a “global, complex, multifactorial, and generally preventable disease” [1,2]. According to the World Health Organization (WHO) (https://www.who.int/health-topics/obesity (accessed on 17 December 2021)), overweight and obesity are associated with the abnormal accumulation of fat, which can be potentially harmful. This feeding disorder can be developed by having poor eating habits and an unhealthy lifestyle, and it has an even worse impact on human health, reducing immunity, increasing vulnerability to illnesses, altering physical and sensory development, and reducing productivity [3]. Several diagnostic measures have been employed to assess obesity [4]. Although it has some limitations, the body mass index (BMI) is the most widely used index because of its simplicity and low cost. It measures in kg/m 2 the abnormal accumulation of fat, considering anthropometric parameters such as weight and height. Other more accurate techniques, such as dual-energy X-ray absorptiometry (DEXA), are more complicated and expensive. For instance, a person is considered as an obese person if his/her BMI is higher than or equal to 30 kg/m 2 , taking into account the table published by the WHO (https://www.euro.who.int/en/health-topics/disease-prevention/nutrition/a-healthy-lifestyle/body-mass-index-bmi (accessed on 17 December 2021)), which establishes different obesity categories depending on the level of the BMI reached.
As any other widespread disease, obesity is considered as an epidemic that can affect people of all ages [5]. The self-management of physical activities and dietary habits are the primary components not only to have a healthy life by maintaining the ideal weight of the body, but it is also very advisable to lose weight [6]. There are six types of nutrients that the body needs: vitamins, minerals, protein, fats, water, and carbohydrates [7]. It is important to consume them daily to build and maintain a healthy body function (https://www.who.int/publications/m/item/healthy-diet-factsheet394 (accessed on 12 December 2021)). The exact composition of a healthy, balanced, and varied diet depends on the needs of each person (age, sex, life habits, physical exercise), the cultural context, locally available foods, and eating habits [8]. However, according to the WHO (https://www.who.int/news-room/fact-sheets/detail/healthy-diet (accessed on 17 December 2021)), the basic principles of healthy eating are always the same regardless of the factors mentioned above.
With the arrival of the Semantic Web [9], ontologies have become a relevant model for representing knowledge in many scientific fields, including medicine [10], biomedicine [11], bioinformatics [12], and many others [13]. Ontologies are the basis for sharing and reusing knowledge both on the Semantic Web and in scientific and non-scientific fields. It is a conceptualization of a domain in an understandable, machine-readable human format consisting of entities, attributes, relations, and axioms [14]. Ontologies represent a method for formally expressing a shared understanding of information, which can be considered as a prerequisite for the Semantic Web. The W3C states that “ontologies are formalized vocabularies of terms, often covering a specific domain and shared by a community of users. They specify the definitions of terms by describing their relationships with other terms in the ontology” (https://www.w3.org/2007/OWL/wiki/Document_Overview_branch_for_refs (accessed on 17 December 2021)).
In this work, we present an ontology of the food domain related to health self-management in a chronic multifactorial disease such as obesity and the different levels of overweight. Semantic technologies were integrated into the project to provide a formal representation that enables accurately defining concepts such as food allergies, ingredients, recipes, and diets in this particular domain. Reasoning techniques were leveraged to infer users’ health status and make dietetic recommendations accordingly. All these components articulate a knowledge-based recommender system for obesity and overweight conditions. To sum up, the main contributions of this work are as follows:
  • We present the Ontology of Dietary Recommendations (ODR), a shareable conceptual model comprising the most relevant elements in the food recommendation domain including diets, recipes, ingredients, anthropometric indexes, and food allergies;
  • A knowledge base built on top of the ODR ontology was used to support the recommendation process. The knowledge base was populated with data about specific diets and recipes gathered from scientific publications and other sources;
  • The knowledge base and the underlying ontology schema were developed by adopting the Linked Data best practices (https://www.w3.org/TR/ld-bp/ (accessed on 13 December 2021)). In particular, the ontology is easily extensible with new axioms, and the knowledge base can be updated with the latest advancements in the field;
  • We propose a knowledge-based diet recommendation system that infers the most suitable diets given the user’s data and returns a list of recipes that comply with those diets’ composition details. In the prototypical implementation described here, the BMI was used as the main indicator to assess the users’ health status (i.e., their obesity level), and the recommendations are focused on helping with weight loss.
The remainder of the paper is organized as follows. In Section 2, background information about existing ontologies that conceptualize the health domain in general and food and nutrition in particular is put forward, along with the state-of-the-art dietary recommendation systems. The proposed ontology-based nutritional recommender system is described in detail in Section 3. The results of the evaluation of the system are discussed in Section 4. Finally, in Section 5, conclusions are presented and future research directions identified.

2. State-of-The-Art

Currently, overweight and obesity are considered nutritional disorders, where inadequate physical activity and abusing high-calorie intakes make their presence more likely [2,15]. There is no single rule applicable for everyone, but most recommendations reduce the intake of calories by day (https://www.nhs.uk/conditions/obesity/treatment/ (accessed on 17 December 2021)). The best way to achieve this reduction depends on removing unhealthy food such as processed food and alcoholic or sugary drinks [16]. However, the self-management of obesity is not an easy task, since it requires re-educating eating, adopting new nourishment habits, and tracking the intake by counting calories [17]. Although people are aware of the importance of having healthy eating habits, a high percentage neglects following those habits due to the cognitive effort required to organize meals [18]. Furthermore, suggesting a proper meal is not an easy task, not only because its implications in terms of personal health, but also because it requires trying to advise what people should eat, considering their personal preferences (e.g., vegan, vegetarian, semi-vegetarian). Consequently, specific ingredients (e.g., tomato, chicken, etc.) play an important role in food recommendations (i.e., dishes recommended as part of a diet) since those ingredients should be linked to each personal taste [19]. A way of modeling the decomposition of recipes into individual ingredients must be defined to enable the recommender engine to suggest recipes that satisfy all personal requirements. In this sense, ontologies enable conceptualizing a domain providing a specific vocabulary [14]. In the literature, ontologies have been applied not only in the food domain [20,21], but also in improving recommendation models [22,23]. In the following sections, a detailed analysis of cutting-edge food conceptual models and semantically-empowered recommender engines is provided.

2.1. Health and Nutrition Ontologies

In health care, an ontology is a formal conceptualization of a health-related domain [24]. Ontologies are used to model the medical domain’s semantics, making its terminology explicit [25,26]. Currently, a great variety of ontologies has been developed covering several domains that go from representing the human disease domain to creating medical terminology, enabling medical information systems to be interoperable and facilitating knowledge interchange across multiple disciplines [27,28]. Concretely, in the health domain, there is a variety of interesting works proposed by Malhotra et al. [29]. They defined the Alzheimer Disease Ontology (ADO) to cover the absence of formal representation in this disease. The ontology was built using various knowledge resources such as the National Center for Biomedical Ontology to extract synonyms and abstracts obtained from PubMed to construct a dictionary or encyclopedia and atlas of the mentioned disease. Following the same domain, He et al. [30] built the coronavirus Infectious Disease Ontology (CIDO) to cover areas related to coronavirus diseases such as etiology, transmission, prevention, and treatment, among others. The CIDO integrates more than 300 ontologies and contains 4000 terms imported from some 20 other ontologies such as ChEBI [31] or the Human Phenotype Ontology [32]. It defines axioms that relate, for instance, the virus SARS-CoV-2 to the produced disease COVID-19 or the phenotype that manifests the disease in infected patients.
Focusing on the nutritional domain, El-Sappagh et al. [33] proposed the Diabetes Mellitus Treatment Ontology (DMTO) as a knowledge base that provides a detailed description of a patient’s conditions, profiles, complications, and symptoms of Type 2 Diabetes Mellitus (T2DB) treatment. In the same line, Yang et al. [34] emphasized the application of the Semantic Web in nutrition research. They proposed the Ontology for Nutritional Epidemiology (ONE), a formal way to specifically relate terms used in this domain. To build the ontology, the authors analyzed multiple articles and ontologies related to the nutritional epidemiology domain. More related to the food recommendation, Gharibi et al. [35] described the process of building FoodKG, a food knowledge graph that links recipes to their ingredients and ingredients to their nutritional data. Following the same line, Çelik in [36] presented the Ontology-Driven Mobile Safe Food Consumption System (FoodWiki) and the Food Ontology Knowledge Base (FOKB). The system provides a web service that enables food-sensitive users obtain detailed information about their consumed nutrients individually. It does not consider recipes, only individual ingredients. The retrieved data are based on the FOKB, which semantically describes health risk groups, unsuitable components for those groups, and unhealthy ingredients with side effects taking into account users’ health status.
In this work, we implemented an ontology to define diets recommended to users, considering their health status. D i e t s are related to a set of recipes, and each recipe is semantically described in terms of ingredients. Taking into account that the FOKB defines a detailed specification of ingredients, part of that model has been reused to build our ontology. An in-depth description of the ontology conceived of in this work can be found in Section 3.1.

2.2. Dietary Recommender Systems

Recommender systems are software applications that serve as an information filter to help users navigate large sets of alternatives and find items that fit their preferences [37,38]. In the literature, several techniques have been proposed to predict the users’ interests: (i) collaborative filtering (CF): the most widespread approach consisting of collecting preferences from many users, filtering use strategies that require collaboration, and making automatic predictions; (ii) content-based filtering (CB) utilizes features defined in items liked by users to find similar ones and suggest them; (iii) knowledge-based techniques (KBs) use implicit knowledge about users and products to infer users’ needs and preferences and make the recommendations [39]; (iv) hybrid approaches that are based on a combination of the mentioned techniques. Those techniques have been widely applied in a variety of diverse domains, for instance CF in music [39], CB to retrieve learning resources [40], KB in dialogue systems [41], and hybrid approaches in dating recommender systems [42].
In particular, in the domain of this work, dietary recommendation, Agapito et al. [43] presented DIETOS, a dietary recommender system based on user health conditions and eventual chronic diseases. The system utilizes questionnaires to create users’ health profiles and make the recommendations considering their medical conditions. In the same line, Pecune et al. [44] described three different recommender systems: (i) a preference-based recommender that utilizes a content-based filtering technique to only take into account the users’ preferences to suggest recipes; (ii) a healthy recommender, which only considers healthy diets, ignoring users’ preferences; (iii) a hybrid approach based on a combination of both previous approaches. Following the same idea about preference recommendations, Toledo et al. [45] developed a framework that suggests a personalized daily meal plan. The system incorporates a multi-criteria decision analysis tool for personalized meal recommendation by considering users’ preferences. Similarly, Ting and Chen [46] proposed the Dietary Recommendation System (DRS), a system capable of analyzing users’ situation, inferring whether they are following a balanced diet, and recommending suitable diet recipes to make their lives healthier. The DRS utilizes an ontology to relate nutritional information to recipes. The former is obtained from the Food Composition Database. It provides information about various nutrients, their nutritional values, and the amount that should be incorporated daily in an adult diet. The latter were extracted from two different web pages, where people publish recipes describing the ingredients and the steps to prepare the dish. Finally, Tumnark et al. presented in [47] a recommender engine that provides personalized dietary recommendations for weightlifting athletes. The engine infers the amount of the total energy expenditure (TTE) of athletes, considering their activity level. Then, it leverages this information to recommend a balanced menu with varied foods in appropriate portions to satisfy their nutritional needs. It also uses an ontology to semantically describe specific athlete information such as weight, height, body type, training plans, food items, and nutritional values. The engine utilizes this information to execute rules expressed in the Semantic Web Rule Language (SWRL) [48] to make suggestions considering the recommended energy and nutrients needed for specific training types, age, and height.
In this work, we propose a recommender system that suggests recipes complying with certain diet restrictions of users depending on their health status. The recommendation engine was built on top of a domain ontology. In particular, the system analyzes the users’ health situation by taking into account some of the main anthropometric measurements such as height, weight, and BMI, among others. The semantic underpinnings of our approach enable the system to identify the diets best suited for each user and then list recipes whose ingredients and nutritional values match the recommended diets’ constraints.

3. Recommender System Architecture

In this work, we propose a novel knowledge-based tool that provides nutritional recommendations to users based on their profile. While the aim of the conceived framework is to take into account the most relevant features in the users’ profiles for dietary advice, in this prototypical implementation, only the BMI and the corresponding overweight and obesity types are considered. The overall architecture of the ontology-based nutritional recommender system is depicted in Figure 1 and is comprised of three modules, namely the User Data Collector, which was designed to enable users to interact with the system, the Ontology of Dietary Recommendations (ODR), which contains the conceptualization of the diet domain, and the Diet Recommender, which is responsible for providing users with the recipes that best suit the individual users’ diet needs.
Mainly, the system’s target is to assist people with finding recipes that enable them to lose weight. In brief, the system works as follows. First, a user inserts his/her personal data by using the collector. Details such as weight, age, height, and so on, need to be provided. Then, the system will take advantage of these details to determine the user’s health condition. For instance, if the introduced weight and height are 160 cm and 80 kg, the user is associated with Obesity Type I since the BMI is between 30 kg/m 2 and 34.9 kg/m 2 . Next, the system will select the dietary plan to reduce the overweight considering the type of nutritional disorder detected. To do so, the reasoner will utilize the ODR. Following the above example, the diets that will be suggested given the identified obesity type are bland, dissociated, Dukan, and Mediterranean. Finally, the outcome of the system will be a list of the recipes that match the nutritional restrictions defined in the health plan of those suggested diets. In the following subsections, each component is described in detail.

3.1. Ontology of Dietary Recommendations

To build the ontology, we used the iterative method proposed by Abdel-Badeeh and Hisahm (Salem, 2012), which comprises several stages to specify the requirements, collect and analyze the data, and finally, construct the initial model. As a baseline, the FOKB [36] was employed to structure the ODR. The following classes were preserved from the original schema: P r o d u c t , which classifies ingredients by EAN (European Article Number); F o o d A l l e r g i e s , to express relations between food and allergen items; I n g r e d i e n t s , to define the building blocks of the recipes; and finally, M e a s u r e , which includes different rates to quantify indicators such as the Basal Metabolic Rate (BMR), the BMI, or Blood Pressure (BP), among others. For the purposes of our work, several elements were added to obtain the resulting ODR schema, namely P e r s o n , R e c i p e , and  D i e t s . Next, the purpose of these added classes is described.
P e r s o n : Axioms were included to define the most common variety of eating disorders that can affect users. There are several ways to determine whether an individual is suffering from this dietetic situation. A variety of measures can be considered to specify the grade of obesity. Depending on the measure obtained, the individual will be classified into a set of grades that go from ‘Very Severely Underweight’ to ‘Obesity Type III’. In particular, for this work, the BMI was chosen to assess the grade of obesity because of its simplicity and low cost. In [49], Weir and Jan set the cutoffs to estimate the body fat. Concretely, for obesity type I, they estimated that the BMI must be between 30 kg/m 2 and 34.9 kg/m 2 . Consequently, to express these cutoffs in the ontology, we defined the h a s _ b m i data property to declare the limits and various classes to represent the different types of obesity. For example, O b e s i t y _ T y p e _ I was defined as a class equivalent to P e r s o n whose BMI is between the margins previously set. Following the same procedure, the following defined classes are declared: N o r m a l , O b e s i t y _ T y p e _ I , O b e s i t y _ T y p e _ I I , O b e s i t y _ T y p e _ I I I , O v e r w e i g h t , U n d e r w e i g h t , S e v e r e l y _ U n d e r w e i g h t , and V e r y _ S e v e r e l y _ U n d e r w e i g h t . Table 1 contains the semantic description of these defined classes.
D i e t : This organizes the types of diets recommended by the system. At the moment, only the normal and hypocaloric diets (i.e., a diet that is low in calories) are defined since those are the ones associated with overweight/obesity problems representing one of the main challenges for dietitians and nutritionists. Eight subclasses were considered representing eight different hypocaloric diets (see Figure 2), namely A l k a l i n e _ D i e t , A r t i c h o k e _ D i e t , A t k i n s _ D i e t , B l a n d _ D i e t , D i s s o c i a t e d _ D i e t , D u n k a n _ D i e t , M e d i t e r r a n e a n _ D i e t , and P i n e a p p l e _ D i e t . This is an initial set of diets chosen based on existing literature [50,51,52]. Some of these diets have been refuted by health experts given their relationship to nutritional deficiencies, but were included due to their popularity. Please bear in mind that this set of diets is dynamic and can be updated based on the latest scientific evidence.
Each diet was systematically associated with a nutrition disorder that is related to users’ metabolism rates. For example, in Figure 3, the axiom defined to link A l k a l i n e _ D i e t to O v e r w e i g h t is depicted. Therefore, the recommendation engine will consider such an association when providing dietary suggestions to users depending on their health profile.
R e c i p e : This contains the entire taxonomy of all the recipes included in the knowledge base. The  f o o d R e c S y s V 1 dataset (https://www.kaggle.com/elisaxxygao/foodrecsysv1 (accessed on 17 December 2021)), where thousands of recipes have been collected from the Allrecipes.com website, was used to create such a hierarchy. The dataset includes data such as ingredients, nutritional components, and even users’ ratings. We randomly selected 105 recipes from the whole dataset and scrutinized details about the ingredients and nutritional components to integrate each recipe in our knowledge base. To do so, we developed a procedure (see Algorithm 1) that analyzes each recipe, extracts its ingredients and nutritional values, and expresses the extracted information in the form of OWL axioms. The process takes such details and utilizes data properties and object properties to link the retrieved data to entities already defined in the knowledge base. For instance, the recipe “Abuelas_Picadillo” is made of red wine, butter, bell pepper, garlic, and olive oil, among other ingredients, and contains 74 mg of cholesterol, 378 calories, and 24 g of proteins. Then, the procedure utilizes this information to define the axioms that represent the new recipe with the mentioned ingredients and nutritional values.
Algorithm 1 Mapping ingredients.
1:
procedureanalyzeRecipe( s t r R e c i p e )
2:
    while not at end of the recipe do
3:
         w o r d t o k e n i z e ( s t r R e c i p e )
4:
        if  i n g r D i c t i o n a r y . c o n t a i n s ( w o r d )  then
5:
             //word is an ingredient
6:
              n e w A x i o m g e t I n g r e d i e n t A x i o m ( w o r d )
7:
              o n t o l o g y n e w A x i o m
8:
        else if  i s N u t r i t i o n a l V a l u e ( w o r d )  then
9:
             //word is a nutritional value
10:
            n e w A x i o m g e t N u t r i t i o n a l A x i o m ( w o r d )
11:
            o n t o l o g y n e w A x i o m
12:
        end if
13:
    end while
14:
end procedure
In addition, in order to associate recipes with the type of diets, we defined a specific subclass of R e c i p e for each diet type (see Figure 4). The aim of this hierarchy is to clearly state the unique constraints, in terms of both ingredients and nutritional values, that a recipe should satisfy to be valid for a given diet. Essentially, each class defines in OWL language the set of nutritional restrictions that users must follow to implement the diet. Therefore, the number of proteins, calories, or allowed types of the ingredient constitute some of the rules defined in those classes. In this way, when a diet is selected, the recipes will be filtered according to these nutritional restrictions in an automatic way using a reasoning engine. For example, the class R e c i p e _ F o r _ A l k a l i n e _ D i e t is defined as shown in Figure 5. Since the A l k a l i n e _ D i e t is characterized by high fruit and vegetable content, avoiding chicken, red meat, and eggs, among others, recipes for such a diet should comply with those restrictions.
The ontology was developed in OWL 2 [53] and is available at https://agrisemantics.inf.um.es/ontologies/ODR (accessed on 16 December 2021). Table 2 shows some of the most relevant metrics of the ontology. The correctness of the resulting ontology was checked using the following tools: (i) the RDFS Validator (https://www.w3.org/RDF/Validator/, accessed on 16 December 2021) to repair the definitions of concepts, relations, and instances; (ii) OOPS! (http://oops.linkeddata.es/catalogue.jsp, accessed on 16 December 2021) (the OntOlogy Pitfall Scanner!) to identify deficiencies in metadata information such as license and version information, among others; (iii) OQuare (https://semantics.inf.um.es/ontology-metrics/, accessed on 16 December 2021) to test the model’s features. Figure 6 depicts the core concepts of the resulting ontology.

3.2. User Data Collector

The user data collector represents the entry point for users to utilize the system. It provides an interface that enables users to enter personal information such as weight, height, and age. The system will use these details to determine the health condition of users. Based on these data, metabolic indicators such as the BMI, the BMR, or the BP, among others, will be calculated. Such information will help the recommendation engine to identify whether users suffer from a nutritional disorder and to suggest the diet that most fits the users’ dietetic problems.
In Figure 7, the process followed to define the axioms in the ontology from the data inputted by the users is depicted. Two parts can be easily differentiated in the figure, the form in which users insert their personal information on the left and the data type properties defined in the ontology on the right. Each property relates a P e r s o n entity to each data introduced by the users.
Algorithm 2 shows the method developed to insert a new user in the ontology. b a s e U R I stands for the ontology’s namespace, and p e r s o n L a b e l contains the string “Person”, identifying the name of the parent class, namely, P e r s o n . The new user is then included as a new class in the ontology, subclass of the class P e r s o n .
Algorithm 2 Populate ontology with a new user (class P e r s o n ).
1:
procedureinsertNewUser( u s e r N a m e , w e i g h t , a g e , . . . )
2:
     n e w U s e r C l a s s g e t O W L C l a s s ( b a s e U R I + u s e r N a m e )
3:
     p e r s o n C l a s s g e t O W L C l a s s ( b a s e U R I + p e r s o n L a b e l )
4:
     n e w A x i o m g e t O W L S u b C l a s s A x i o m ( n e w U s e r C l a s s , p e r s o n C l a s s )
5:
     o n t o l o g y n e w A x i o m
6:
     w e i g h t A x i o m g e t O W L L i t e r a l A x i o m ( n e w U s e r C l a s s , w e i g h t )
7:
     o n t o l o g y w e i g h t A x i o m
8:
     a g e A x i o m g e t O W L L i t e r a l A x i o m ( n e w U s e r C l a s s , a g e )
9:
     o n t o l o g y a g e A x i o m
10:
end procedure

3.3. Diet Recommender Module

The Diet Recommender module acts as the mediator between the user interface and the knowledge base. It is responsible for systematically converting the data collected by the user interface into an OWL language to ask the reasoner for the users’ health condition. The query was written in Manchester OWL Syntax using classes, the object properties, and the data properties identifiers. As a result, it retrieves the users’ category of obesity, BP level, or the BMR. Similarly, the system will utilize the information inferred to select the diets most recommendable for the users’ health status. Hence, the module works as follows:
  • Step 1: retrieving the new user—At this stage, user’s personal details are transformed into OWL axioms, and the recommender will retrieve such information to make the diet recommendation;
  • Step 2: linking diets—Users’ medical conditions are the first factor the system considers for making suggestions. Therefore, the details inserted by users are used to classify their situation and recommend diets accordingly. In Figure 3 above, the axiom utilized for specifying the association between the user’s dietetic profile and diets is shown;
  • Step 3: analyzing recipes—Once the diet is assigned, a list of recipes can be recommended considering the ingredients more adequate for users. Figure 8 shows the exemplary taxonomy of Alkaline diet recipes. The classification of such recipes is performed automatically by the reasoner by considering the semantic description of each recipe subclass (see Figure 5 above).
Hence, depending on the user’s taste, different recipes can be combined to follow the recommended diet. For instance, let us suppose that a new user called Robert, age 48, 90 kg, 1.70 cm, aims to receive nutritional advice given his current health status. First, he has to introduce his personal details in the form. The User Data Collector module will harvest the information, compute the measures, and create a new P e r s o n entity in the ODR ontology model. Second, considering the information inserted, the Diet Recommender module will utilize an OWL Reasoner to infer the user’s health status. In particular, in this example, the module will consider the BMI to infer the obesity type suffered by the user, if any, and will associate the most advisable diets, accordingly. Finally, the user can choose from various recipe options and organize his menu regime by complying with the chosen diet.

4. Evaluation

In this section, the evaluation dataset is described along with the metrics used to assess the performance of the recommender system. Then, the results obtained are put forward and discussed in comparison with related work.

4.1. Dataset

The dataset used in the evaluation experiment is based on the one created by Palechor and Manotas in [54]. This dataset was chosen because it contains the basic information about individuals required as the input by the proposed system to provide the resulting recommendations. In particular, it consists of 2111 records and 17 attributes, storing a variety of variables that harvest details about eating habits and physical condition. For instance, age, height, weight, frequency of consumption of vegetables, number of main meals, and consumption of food between meals are some of the variables collected by the authors utilizing a survey. From this dataset, a panel of advisors evaluated such attributes for each record and manually suggested a set of diets from those defined in our ontology. When the recommendations were different, they met and analyzed the case independently until there was a general agreement. As a result, a new column was added to the dataset containing the agreed set of diets pre-selected by the experts for each test case (i.e., row corresponding to one of the individuals’ records), which constituted the ground truth for the experiment. The panel of advisors was composed of five students of the Master of Nutrition, Technology and Food Safety of the University of Murcia. The students agreed to be part of this study, which was proposed as a final practice.
Table 3 classifies the number of records of the dataset based on their nutritional categories. The records belonging to “Insufficient” were discarded from the experiment because it was explicitly focused on hypocaloric diets. Therefore, only 1839 records were used for evaluation purposes.

4.2. Evaluation Metrics

The metrics typically calculated to assess the performance of classification models such as the one described in this work are: accuracy, precision, recall, and F-measure. These metrics have been widely applied to evaluate information retrieval systems [55]. Therefore, these four outcomes were utilized to measure the performance of the recommender. Accuracy is measured as follows:
a c c u r a c y = c o r r e c t _ d i e t s _ p r e d i c t i o n s t o t a l _ p r e d i c t i o n s
where c o r r e c t _ d i e t s _ p r e d i c t i o n s defines the number of correctly predicted diets, including the relevant diets correctly retrieved and the non-relevant diets precisely left. Next, the precision is calculated as follows:
p r e c i s i o n = | { r e l e v a n t _ d i e t s } { r e t r i e v e d _ d i e t s } | | { r e t r i e v e d _ d i e t s } |
where r e l e v a n t _ d i e t s stands for the set of diets suggested by the panel of advisors and r e t r i e v e d _ d i e t s represents the set of diets inferred from the ontology. In addition, the recall measure was used to compute the number of relevant diets that were successfully retrieved. The recall formula is as follows:
r e c a l l = | { r e l e v a n t _ d i e t s } { r e t r i e v e d _ d i e t s } | | { r e l e v a n t _ d i e t s } |
Finally, the harmonic mean of both measures is calculated producing the F-measure. The formula is as follows:
F m e a s u r e = 2 × p r e c i s i o n × r e c a l l p r e c i s i o n + r e c a l l

4.3. Results

Table 4 shows the results of the experiments for the four measures considered above. The table contains the average of the 1839 records utilized in the evaluation. The overall accuracy of the proposed approach was 0.84, 0.92, 0.86, 0.84, and 0.85 for “Normal”, “Overweight”, “Obesity Type I”, “Obesity Type II”, and “Obesity Type III”, respectively. Given the characteristics of our dataset, where for each class (e.g.,“Normal”), only one pool of diets can be considered, the results are shown aggregated by nutritional profile.

4.4. Discussion

In general terms, the recommender system obtained promising results despite a significant imbalance in the records utilized (the number of test cases for “Overweight” was double the number of test cases for “Normal”). However, a big difference can be observed between the performance for the case of users with “Normal” weight and users with obesity problems. In particular, the worst result was obtained for the “Normal” profile, where the precision was 0.34, meaning that many diets not selected by the panel of advisors were suggested by the system. Nevertheless, recall for this weight profile was significantly better, 0.77. This indicates that, although various incorrect diets were suggested, most of the diets selected by the panel of advisors were included. As shown in the table, such behavior was repeated in the other profiles, where the best precision and recall were obtained for “Overweight”, 0.84 and 0.97, respectively. In fact, the same dynamics is reflected in the aggregate results, where the precision was 0.70, while the recall reached 0.92. Given that the focus of this work is set on obesity and overweight, removing the “Normal” profile test cases resulted in an accuracy, precision, recall, and F-measure of 0.87, 0.76, 0.95, and 0.84, respectively.
As mentioned above, the low values in precision mean that given a test case, the system retrieves false positives, namely it recommends diets that the panel of advisors did not include in their selection for such a case. Conversely, the larger recall exposes that the system suggested a high percentage of the actually relevant diets (i.e., those previously selected by the panel of advisors). This behavior can be partly due to the fact that the information used by the advisors, consisting of the 17 attributes available in the dataset, differed from that considered by the system. In particular, while the system only took into account the attributes such as the BMI, age, weight, and height to calculate the obesity profile and assign the corresponding nutritional plan, the panel of advisors also analyzed other parameters such as the frequent consumption of high caloric food, vegetables, food between meals, or water daily. Therefore, this lack of information might hamper the system’s performance, justifying the limited precision when comparing against the advisors’ recommendations. To overcome such a limitation, we plan to improve the ontology model and its inferencing ability by including in the rules aspects such as calorie consumption, frequency of ingredient type, nutrient reference values, or allergies or intolerances suffered.
In the literature, the approach closest to that presented here is the system proposed by Manoharan [56], which employs statistical and deep learning models such as logistic regression, naive Bayes, multilayer perceptrons, or recurrent neural networks to suggest diets for diverse patients with different types of disease. The highest precision achieved by the system was 0.95, and the recall was 0.91. Another approach quite similar is the one proposed by Chavan [57], where three recommender systems based on content-based, collaborative filtering, and hybrid techniques were analyzed. The best precision and recall results were obtained by using the hybrid technique, 0.20 and 0.55, respectively. Both of the works mentioned above proposed various diet recommendation systems. However, it does not seem appropriate to compare the results of our approach with theirs for several reasons. First, all approaches make diet suggestions, but in different ways. For instance, the former recommends diets for diverse patients with different types of disease. Still, neither the type of disease suffered by patients nor the type of diets utilized for the experiments were specified. On the other hand, the latter describes different systems, but they focus more on ingredients and recipes than diet recommendations. In addition, there are other interesting approaches also mentioned above (see Section 2.2), such as DIETOS [43] or Nutriflow [58], which propose similar ideas, but do not provide an evaluation.

5. Conclusions and Future Work

In the medical community, obesity is considered as a chronic illness that comes from a multifactorial etiology [59]. This disorder is characterized by the unchecked increase of fat tissue in the body. As a preventable disorder, we need to develop mechanisms that help people overcome it. Therefore, we believe that the knowledge representation techniques are remarkably useful to that end. It provides suitable elements such as concepts, object, and data properties to accurately define the data in this domain. Its usage provides the opportunity to the biomedical community to mitigate this disorder with consistent, reusable, and standardized descriptions about obesity and dietetic food.
In this work, two main contributions can be identified. On the one hand, the recommender system is capable of making suggestions considering certain users’ diet restrictions depending on their medical condition. On the other hand, we implemented the Ontology of Dietary Recommendations (ODR), which concretely integrates information about obesity, nutrition, food, and health. In addition, a couple of algorithms were implemented to convert heterogeneous data into semantic axioms, such as user profiles and recipe ingredients. We expect this conceptual model will help the intelligent systems and the medical profession to exploit this knowledge base in different ways.
This work aimed at providing general diet suggestions without considering users’ requirements such as tastes, food restrictions, diseases, and allergies, which represent a significant constraint. Furthermore, our approach does not provide a dietetic diary for users, which means that there is no dynamic readjustment, but instead, this adaptation must be carried out manually. We plan to address these limitations as part of future work. Likewise, the way recipes are modeled in the ontology will be enriched by including more details concerning the nutritional properties, thus facilitating the development of different added-value features. So far, each recipe is characterized by properties such as h a s _ f a t , h a s _ c a l o r i e s , h a s _ s o d i u m , h a s _ c h o l e s t e r o l , or h a s _ p r o t e i n . Some other attributes such as energy, fiber content, and carbohydrate content can be defined in the “Recipe” ontology concept so as to enable the system to manage new relevant indicators and provide better recommendations. That additional information can be gathered from publicly available databases such as Open Food Facts (https://world.openfoodfacts.org/ (accessed on 12 December 2021)).
For the proof-of-concept implementation of the system presented in this manuscript, the knowledge base was populated relying on some scientific publications and information gathered from the Internet. For it to be deployed to customers, nutrition experts should be consulted to review and update the knowledge base by including only those diets and recipes that are endorsed by the scientific community and defining the most accurate and feasible indicators to determine the (nutritional) health condition of individuals. Indeed, as pointed out above, research has shown that the BMI alone is not the best tool to assess the grade of obesity [60]. A better understanding of the individuals’ overall health status and nutritional requirements can be obtained by combining different markers. Finally, the F o o d A l l e r g i e s concept was included in the ontology, but this contribution does not go far enough. We believe that it would be interesting for end users to axiomatically expand the ontological hierarchy defining more specific user profile diets by considering allergens and, consequently, to provide a better recommendation service.

Author Contributions

Conceptualization, D.M.-S. and M.Á.R.-G.; methodology, D.M.-S. and R.V.-G.; software, D.M.-S. and M.Á.R.-G.; validation, D.M.-S., M.Á.R.-G. and F.G.-S.; investigation, F.G.-S. and R.V.-G.; resources, D.M.-S. and R.V.-G.; data curation, D.M.-S. and M.Á.R.-G.; writing—original draft preparation, D.M.-S., M.Á.R.-G. and F.G.-S.; writing—review and editing, F.G.-S. and R.V.-G.; supervision, F.G.-S. and R.V.-G.; funding acquisition, M.Á.R.-G., F.G.-S. and R.V.-G. All authors have read and agreed to the published version of the manuscript.

Funding

This work is part of the research project LaTe4PSP (PID2019-107652RB-I00) funded by MCIN/ AEI/10.13039/501100011033 and was partially supported by the Seneca Foundation, the Regional Agency for Science and Technology of Murcia (Spain), through Project 20963/PI/18, and the Community of Madrid, through the Young Researchers R+D Project. Ref. M2173 – SGTRS (co-funded by Rey Juan Carlos University).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The Ontology of Dietary Recommendations (ODR) is publicly available at: https://agrisemantics.inf.um.es/ontologies/ODR (accessed on 17 December 2021). Publicly available datasets were analyzed in this study. These data can be found here: https://www.kaggle.com/elisaxxygao/foodrecsysv1 (accessed on 17 December 2021), https://www.kaggle.com/ankurbajaj9/obesity-levels (accessed on 17 December 2021).

Acknowledgments

We would like to thank the five students who were part of the panel of advisors for their collaboration in the evaluation experiment.

Conflicts of Interest

The funders had no role in the design of the study; in the collection, analyzes, or interpretation of data; in the writing of the manuscript; nor in the decision to publish the results.

References

  1. Mehrzad, R. Definition and introduction to epidemiology of obesity. In Obesity; Elsevier: Amsterdam, The Netherlands, 2020; pp. 1–6. [Google Scholar] [CrossRef]
  2. Hruby, A.; Hu, F.B. The epidemiology of obesity: A big picture. Pharmacoeconomics 2015, 33, 673–689. [Google Scholar] [CrossRef] [PubMed]
  3. Vatansever, S. Public private partnerships in nutrition education: Policy and evidence from Turkey and The European Union. Ph.D. Thesis, Middle East Technical University, Ankara, Turkey, 2020. [Google Scholar]
  4. Adab, P.; Pallan, M.; Whincup, P.H. Is BMI the best measure of obesity? BMJ 2018, 360. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. de Vries, J. The obesity epidemic: Medical and ethical considerations. Sci. Eng. Ethics 2007, 13, 55–67. [Google Scholar] [CrossRef] [PubMed]
  6. Kochkarovich, A.I.; Sultonovna, O.A.; Ravshanovna, A.D. Eating Wisely is the Foundation of a Healthy Lifestyle. Int. J. Integr. Educ. 2020, 3, 175–176. [Google Scholar] [CrossRef]
  7. Mudambi, S.R.; Rao, S.M.; Rajagopal, M. Food Science; New Age International: Delhi, India, 2015. [Google Scholar]
  8. Johnson, S. The Importance of Nutrition and Preventing Malnutrition in Older Adults: A Literature Review and Informational Booklet; UNL Digital Commons; University of Nebraska-Lincoln: Lincoln, Nebraska, 2021; Volume 294. [Google Scholar]
  9. Hitzler, P. A review of the Semantic Web field. Commun. ACM 2021, 64, 76–83. [Google Scholar] [CrossRef]
  10. García-Díaz, J.A.; Cánovas-García, M.; Valencia-García, R. Ontology-driven aspect-based sentiment analysis classification: An infodemiological case study regarding infectious diseases in Latin America. Future Gener. Comput. Syst. 2020, 112, 641–657. [Google Scholar] [CrossRef]
  11. Juanes Cortés, B.; Vera-Ramos, J.A.; Lovering, R.C.; Gaudet, P.; Laegreid, A.; Logie, C.; Schulz, S.; del Mar Roldán-García, M.; Kuiper, M.; Fernández-Breis, J.T. Formalization of gene regulation knowledge using ontologies and gene ontology causal activity models. Biochim. Biophys. Acta (BBA)-Gene Regul. Mech. 2021, 1864, 194766. [Google Scholar] [CrossRef] [PubMed]
  12. Arsic, B.; Ðokic-Petrovic, M.; Spalevic, P.C.; Milentijevic, I.Z.; Rancic, D.D.; Zivanovic, M. SpecINT: A framework for data integration over cheminformatics and bioinformatics RDF repositories. Semant. Web 2019, 10, 795–813. [Google Scholar] [CrossRef]
  13. Rodríguez-García, M.Á.; García-Sánchez, F.; Valencia-García, R. Knowledge-Based System for Crop Pests and Diseases Recognition. Electronics 2021, 10, 905. [Google Scholar] [CrossRef]
  14. Studer, R.; Benjamins, V.R.; Fensel, D. Knowledge Engineering: Principles and Methods. Data Knowl. Eng. 1998, 25, 161–197. [Google Scholar] [CrossRef] [Green Version]
  15. Dostálová, J. LOW-FAT FOODS | Low-fat Spreads. In Encyclopedia of Food Sciences and Nutrition, 2nd ed.; Caballero, B., Ed.; Academic Press: Oxford, UK, 2003; pp. 3617–3622. [Google Scholar] [CrossRef]
  16. Moodie, R.; Stuckler, D.; Monteiro, C.; Sheron, N.; Neal, B.; Thamarangsi, T.; Lincoln, P.; Casswell, S. Profits and pandemics: Prevention of harmful effects of tobacco, alcohol, and ultra-processed food and drink industries. Lancet 2013, 381, 670–679. [Google Scholar] [CrossRef]
  17. Tóthová, V.; Bártlová, S.; Šedová, L.; Olišarová, V.; Prokešová, R.; Adámková, V.; Mauritzová, I.; Treslova, M.; Chloubová, I.; Mikšová, Z. The importance of self-management in the prevention and treatment of excessive weight and obesity. Neuro Endocrinol. Lett. 2015, 36, 5–10. [Google Scholar] [PubMed]
  18. Tran, T.N.T.; Atas, M.; Felfernig, A.; Stettinger, M. An overview of recommender systems in the healthy food domain. J. Intell. Inf. Syst. 2018, 50, 501–526. [Google Scholar] [CrossRef]
  19. Trattner, C.; Elsweiler, D. Food recommender systems: Important contributions, challenges and future research directions. arXiv 2017, arXiv:1711.02760. [Google Scholar]
  20. Dooley, D.; Andrés-Hernández, L.; Bordea, G.; Carmody, L.; Cavalieri, D.; Chan, L.E.; Castellano-Escuder, P.; Lachat, C.; Mougin, F.; Vitali, F.; et al. OBO Foundry Food Ontology Interconnectivity. In Proceedings of the Joint Ontology Workshops 2021 Episode VII: The Bolzano Summer of Knowledge co-located with the 12th International Conference on Formal Ontology in Information Systems (FOIS 2021), and the 12th International Conference on Biomedical Ontologies (ICBO 2021), Bolzano, Italy, 11–18 September 2021; Volume 2969. [Google Scholar]
  21. Castellano-Escuder, P.; González-Domínguez, R.; Wishart, D.S.; Andres-Lacueva, C.; Sánchez-Pla, A. FOBI: An ontology to represent food intake data and associate it with metabolomic data. Database J. Biol. Databases Curation 2020, 2020. [Google Scholar] [CrossRef] [PubMed]
  22. Paredes-Valverde, M.A.; del Pilar Salas-Zárate, M.; Colomo-Palacios, R.; Gómez-Berbís, J.M.; Valencia-García, R. An ontology-based approach with which to assign human resources to software projects. Sci. Comput. Program. 2018, 156, 90–103. [Google Scholar] [CrossRef]
  23. García-Sánchez, F.; Colomo-Palacios, R.; Valencia-García, R. A social-semantic recommender system for advertisements. Inf. Process. Manag. 2020, 57, 102153. [Google Scholar] [CrossRef]
  24. Kiong, Y.C.; Palaniappan, S.; Yahaya, N.A. Health ontology system. In Proceedings of the 2011 7th International Conference on Information Technology in Asia, Sarawak, Malaysia, 12–13 July 2011; pp. 1–4. [Google Scholar] [CrossRef]
  25. Liyanage, H.; Krause, P.; De Lusignan, S. Using ontologies to improve semantic interoperability in health data. BMJ Health Care Inform. 2015, 22. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  26. Hadzic, M.; Chen, M.; Dillon, T.S. Towards the Mental Health Ontology. In Proceedings of the 2008 IEEE International Conference on Bioinformatics and Biomedicine, BIBM 2008, Philadephia, PA, USA, 3–5 November 2008; Chen, X., Hu, X., Kim, S., Eds.; IEEE Computer Society: Washington, DC, USA, 2008; pp. 284–288. [Google Scholar] [CrossRef] [Green Version]
  27. Schriml, L.M.; Arze, C.; Nadendla, S.; Chang, Y.W.; Mazaitis, M.; Felix, V.; Feng, G.; Kibbe, W.A. Disease Ontology: A backbone for disease semantic integration. Nucleic Acids Res. 2012, 40, 940–946. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  28. Legaz-García, M.C.; Martínez-Costa, C.; Menárguez-Tortosa, M.; Fernández-Breis, J.T. A semantic web based framework for the interoperability and exploitation of clinical models and EHR data. Knowl. Based Syst. 2016, 105, 175–189. [Google Scholar] [CrossRef]
  29. Malhotra, A.; Younesi, E.; Gündel, M.; Müller, B.; Heneka, M.T.; Hofmann-Apitius, M. ADO: A disease ontology representing the domain knowledge specific to Alzheimer’s disease. Alzheimer’s Dement. 2014, 10, 238–246. [Google Scholar] [CrossRef]
  30. He, Y.; Yu, H.; Ong, E.; Wang, Y.; Liu, Y.; Huffman, A.; Huang, H.H.; Beverley, J.; Hur, J.; Yang, X.; et al. CIDO, a community-based ontology for coronavirus disease knowledge and data integration, sharing, and analysis. Sci. Data 2020, 7, 181. [Google Scholar] [CrossRef] [PubMed]
  31. Hastings, J.; Owen, G.; Dekker, A.; Ennis, M.; Kale, N.; Muthukrishnan, V.; Turner, S.; Swainston, N.; Mendes, P.; Steinbeck, C. ChEBI in 2016: Improved services and an expanding collection of metabolites. Nucleic Acids Res. 2016, 44, 1214–1219. [Google Scholar] [CrossRef]
  32. Groza, T.; Köhler, S.; Moldenhauer, D.; Vasilevsky, N.; Baynam, G.; Zemojtel, T.; Schriml, L.M.; Kibbe, W.A.; Schofield, P.N.; Beck, T.; et al. The human phenotype ontology: Semantic unification of common and rare disease. Am. J. Hum. Genet. 2015, 97, 111–124. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. El-Sappagh, S.H.A.; Kwak, D.; Ali, F.; Kwak, K.S. DMTO: A realistic ontology for standard diabetes mellitus treatment. J. Biomed. Semant. 2018, 9, 8:1–8:30. [Google Scholar] [CrossRef] [Green Version]
  34. Yang, C.; Ambayo, H.; De Baets, B.; Kolsteren, P.; Thanintorn, N.; Hawwash, D.; Bouwman, J.; Bronselaer, A.; Pattyn, F.; Lachat, C. An ontology to standardize research output of nutritional epidemiology: From paper-based standards to linked content. Nutrients 2019, 11, 1300. [Google Scholar] [CrossRef] [Green Version]
  35. Gharibi, M.; Zachariah, A.; Rao, P. FoodKG: A Tool to Enrich Knowledge Graphs Using Machine Learning Techniques. Front. Big Data 2020, 3, 12. [Google Scholar] [CrossRef]
  36. Ertugrul, D.Ç. FoodWiki: A Mobile App Examines Side Effects of Food Additives Via Semantic Web. J. Med. Syst. 2016, 40, 41:1–41:15. [Google Scholar] [CrossRef]
  37. Zhang, X.; Ferreira, P.; de Matos, M.G.; Belo, R. Welfare Properties of Profit Maximizing Recommender Systems: Theory and Results from a Randomized Experiment. MIS Q. 2021, 45. [Google Scholar] [CrossRef]
  38. Zhang, F.; Qi, S.; Liu, Q.; Mao, M.; Zeng, A. Alleviating the data sparsity problem of recommender systems by clustering nodes in bipartite networks. Expert Syst. Appl. 2020, 149, 113346. [Google Scholar] [CrossRef]
  39. Bobadilla, J.; Ortega, F.; Hernando, A.; Gutiérrez, A. Recommender systems survey. Knowl. Based Syst. 2013, 46, 109–132. [Google Scholar] [CrossRef]
  40. Shu, J.; Shen, X.; Liu, H.; Yi, B.; Zhang, Z. A content-based recommendation algorithm for learning resources. Multim. Syst. 2018, 24, 163–173. [Google Scholar] [CrossRef]
  41. Chen, Q.; Lin, J.; Zhang, Y.; Ding, M.; Cen, Y.; Yang, H.; Tang, J. Towards Knowledge-Based Recommender Dialog System. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, EMNLP-IJCNLP 2019, Hong Kong, China, 3–7 November 2019; Inui, K., Jiang, J., Ng, V., Wan, X., Eds.; Association for Computational Linguistics: Stroudsburg, PA, USA, 2019; pp. 1803–1813. [Google Scholar] [CrossRef]
  42. Rodríguez-García, M.Á.; Valencia-García, R.; Colomo-Palacios, R.; Gómez-Berbís, J.M. BlindDate recommender: A context-aware ontology-based dating recommendation platform. J. Inf. Sci. 2019, 45. [Google Scholar] [CrossRef]
  43. Agapito, G.; Simeoni, M.; Calabrese, B.; Care, I.; Lamprinoudi, T.; Guzzi, P.H.; Pujia, A.; Fuiano, G.; Cannataro, M. DIETOS: A dietary recommender system for chronic diseases monitoring and management. Comput. Methods Progr. Biomed. 2018, 153, 93–104. [Google Scholar] [CrossRef]
  44. Pecune, F.; Callebert, L.; Marsella, S. A Recommender System for Healthy and Personalized Recipes Recommendations. In Proceedings of the 5th International Workshop on Health Recommender Systems co-located with the 14th ACM Conference on Recommender Systems 2020 (RecSys 2020), Rio de Janeiro, Brazil, 26 September 2020; Said, A., Schäfer, H., Torkamaan, H., Trattner, C., Eds.; ACM: New York, NY, USA, 2020; Volume 2684, pp. 15–20. [Google Scholar]
  45. Toledo, R.Y.; Alzahrani, A.A.; Martínez, L. A Food Recommender System Considering Nutritional Information and User Preferences. IEEE Access 2019, 7, 96695–96711. [Google Scholar] [CrossRef]
  46. Ting, Y.H.; Zhao, Q.; Chen, R.C. Dietary recommendation based on recipe ontology. In Proceedings of the 2014 IEEE 6th International Conference on Awareness Science and Technology (iCAST), Paris, France, 29–31 October 2014; pp. 1–6. [Google Scholar] [CrossRef]
  47. Tumnark, P.; Oliveira, L.; Santibutr, N. Ontology-Based Personalized Dietary Recommendation for Weightlifting. In 2013 International Workshop on Computer Science in Sports; Atlantis Press: Paris, France, 2013; pp. 44–49. [Google Scholar] [CrossRef] [Green Version]
  48. Horrocks, I.; Patel-Schneider, P.F.; Boley, H.; Tabet, S.; Grosof, B.; Dean, M. SWRL: A Semantic Web rule language combining OWL and RuleML. W3C Memb. Submiss. 2004, 21, 1–31. [Google Scholar]
  49. Weir, C.B.; Jan, A. BMI Classification Percentile And Cut Off Points; StatPearls Publishing: Treasure Island, FL, USA, 2021. [Google Scholar]
  50. Anton, S.D.; Hida, A.; Heekin, K.; Sowalsky, K.; Karabetian, C.; Mutchie, H.; Leeuwenburgh, C.; Manini, T.M.; Barnett, T.E. Effects of popular diets without specific calorie targets on weight loss outcomes: Systematic review of findings from clinical trials. Nutrients 2017, 9, 822. [Google Scholar] [CrossRef] [Green Version]
  51. Golay, A.; Allaz, A.; Ybarra, J.; Bianchi, P.; Saraiva, S.; Mensi, N.; Gomis, R.; De Tonnac, N. Similar weight loss with low-energy food combining or balanced diets. Int. J. Obes. 2000, 24, 492–496. [Google Scholar] [CrossRef] [Green Version]
  52. del Castillo, J.M.S.; Llobell, M.I.Z. Miracle diets: When eating guidelines cause health problems. MÈTode Sci. Stud. J. 2021, 11, 147–153. [Google Scholar]
  53. W3C OWL Working Group. OWL 2 Web Ontology Language. Document Overview (Second Edition). 2012. Available online: https://www.w3.org/TR/owl2-overview/ (accessed on 10 November 2021).
  54. Palechor, F.M.; de la Hoz Manotas, A. Dataset for estimation of obesity levels based on eating habits and physical condition in individuals from Colombia, Peru and Mexico. Data Br. 2019, 25, 104344. [Google Scholar] [CrossRef]
  55. Salton, G.; McGill, M.J. Introduction to Modern Information Retrieval; McGraw-Hill: New York, NY, USA, 1983. [Google Scholar]
  56. Manoharan, S. Patient diet recommendation system using K clique and deep learning classifiers. J. Artif. Intell. Capsul. Netw. 2020, 2, 121–130. [Google Scholar] [CrossRef]
  57. Chavan, P.; Thoms, B.; Isaacs, J.T. A Recommender System for Healthy Food Choices: Building a Hybrid Model for Recipe Recommendations using Big Data Sets. In Proceedings of the 54th Hawaii International Conference on System Sciences, HICSS 2021, Kauai, HI, USA, 5 January 2021; pp. 1–10. [Google Scholar]
  58. Shrimal, M.; Khavnekar, M.; Thorat, S.; Deone, J. Nutriflow: A Diet Recommendation System. 2021. Available online: https://ssrn.com/abstract=3866863 (accessed on 17 December 2021).
  59. Rippe, J.M.; Crossley, S.; Ringer, R. Obesity as a chronic disease: Modern medical and lifestyle management. J. Am. Diet. Assoc. 1998, 98, S9–S15. [Google Scholar] [CrossRef]
  60. Haregu, T.N.; Oti, S.; Egondi, T.; Kyobutungi, C. Measurement of overweight and obesity an urban slum setting in sub-Saharan Africa: A comparison of four anthropometric indices. BMC Obes. 2016, 3, 46. [Google Scholar] [CrossRef] [Green Version]
Figure 1. Architecture of the system.
Figure 1. Architecture of the system.
Applsci 12 00143 g001
Figure 2. Diets’ hierarchy defined in the ODR.
Figure 2. Diets’ hierarchy defined in the ODR.
Applsci 12 00143 g002
Figure 3. Axiom to link a diet with the user’s health status.
Figure 3. Axiom to link a diet with the user’s health status.
Applsci 12 00143 g003
Figure 4. Hierarchy of recipes created for each specific diet.
Figure 4. Hierarchy of recipes created for each specific diet.
Applsci 12 00143 g004
Figure 5. Semantic definition of the class R e c i p e _ F o r _ A l k a l i n e _ D i e t .
Figure 5. Semantic definition of the class R e c i p e _ F o r _ A l k a l i n e _ D i e t .
Applsci 12 00143 g005
Figure 6. Global hierarchy concepts of the ODR.
Figure 6. Global hierarchy concepts of the ODR.
Applsci 12 00143 g006
Figure 7. Matching between the user form and the class P e r s o n .
Figure 7. Matching between the user form and the class P e r s o n .
Applsci 12 00143 g007
Figure 8. Recipes that comply with the Alkaline diet’s restrictions.
Figure 8. Recipes that comply with the Alkaline diet’s restrictions.
Applsci 12 00143 g008
Table 1. Axioms defined in the ontology to specify some nutritional profiles.
Table 1. Axioms defined in the ontology to specify some nutritional profiles.
V e r y _ S e v e r e l y _ U n d e r w e i g h t Applsci 12 00143 i001
S e v e r e l y _ U n d e r w e i g h t Applsci 12 00143 i002
U n d e r w e i g h t Applsci 12 00143 i003
N o r m a l Applsci 12 00143 i004
O v e r w e i g h t Applsci 12 00143 i005
O b e s i t y _ T y p e _ I Applsci 12 00143 i006
O b e s i t y _ T y p e _ I I Applsci 12 00143 i007
O b e s i t y _ T y p e _ I I I Applsci 12 00143 i008
Table 2. The ODR’s main metrics.
Table 2. The ODR’s main metrics.
Metrics
Axioms5733
Logic Axioms2815
Classes1193
Object Properties21
Data Properties23
Table 3. Dataset distribution.
Table 3. Dataset distribution.
TypeInstances
Insufficient272
Normal287
Overweight580
Obesity Type I351
Obesity Type II297
Obesity Type III324
Table 4. Results obtained in the experiments.
Table 4. Results obtained in the experiments.
ProfileAccuracyPrecisionRecallF-Measure
Normal0.840.340.770.47
Overweight0.920.840.970.90
Obesity Type I0.860.720.940.81
Obesity Type II0.840.710.930.80
Obesity Type III0.850.710.930.80
Overall0.870.70.920.78
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Mckensy-Sambola, D.; Rodríguez-García, M.Á.; García-Sánchez, F.; Valencia-García, R. Ontology-Based Nutritional Recommender System. Appl. Sci. 2022, 12, 143. https://doi.org/10.3390/app12010143

AMA Style

Mckensy-Sambola D, Rodríguez-García MÁ, García-Sánchez F, Valencia-García R. Ontology-Based Nutritional Recommender System. Applied Sciences. 2022; 12(1):143. https://doi.org/10.3390/app12010143

Chicago/Turabian Style

Mckensy-Sambola, Dexon, Miguel Ángel Rodríguez-García, Francisco García-Sánchez, and Rafael Valencia-García. 2022. "Ontology-Based Nutritional Recommender System" Applied Sciences 12, no. 1: 143. https://doi.org/10.3390/app12010143

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

Article Metrics

Back to TopTop