{'fraction_non_alphanumeric': 0.019918283963227784, 'fraction_numerical': 0.006639427987742594, 'mean_word_length': 5.083850931677019, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Adaptive Personalized Diet Linguistic Recommendation Mechanism Based on Type-2 Fuzzy Sets and Genetic Fuzzy Markup Language

Many different real-world applications with a high-level of uncertainty proved the good performance of the type-2 fuzzy sets (T2 FSs). Balanced diet means that the intake of each necessary nutrient meets its adequate demand and actual caloric intake balances with calories burned. Additionally, making a diversity of choice from various types of food is also essential to reduce the risk of developing various chronic diseases. Different people have a different goal and it is hard to measure how healthy the eaten meal is for those who are not the domain experts on the diet. This paper presents an adaptive personalized diet linguistic recommendation mechanism based on type-2 fuzzy logic system (T2 FLS) and genetic fuzzy markup language (GFML). First, an adaptive dietary assessment and recommendation ontology is constructed by domain experts, and then a T2 FS-based GFML, describing the fuzzy knowledge base and the fuzzy rule base of the proposed mechanism, is evolved by using genetic algorithms. Next, a T2 FS-based fuzzy inference mechanism infers the result of the dietary health level based on the evolved type-2 GFML (T2GFML). In addition, the balanced computation mechanism is also proposed to reduce the computational complexity of the T2 FLS for the diet domain knowledge. Finally, the linguistic knowledge discovery mechanism presents the discovered linguistic meaning about the meal's health level to show the involved subjects how to make a personalized diet linguistic recommendation. This type of information about the eaten meal can provide the subjects with a reference to gradually improve their unhealthy eating habit and then become healthier and healthier. Experimental results show that the results of the proposed mechanism for the T2 FLS are better than those for the type-1 fuzzy logic system (T1 FLS).