A Hybrid Food Recommendation System Based on MOEA/D Focusing on the Problem of Food Nutritional Balance and Symmetry
Abstract
:1. Introduction
2. Related Work
3. The Hybrid Food RS Based on MOEA/D
3.1. The Framework of the Hybrid Food RS
3.2. The CF Recommendation Model Based on User Preferences
3.3. MOEA/D Optimization Model
3.3.1. Multi-Objective Problem Description
3.3.2. MOEA/D
3.3.3. Objective Function and Constraints
4. Description of the Algorithm
4.1. CF Algorithm Based on User Preferences
Algorithm 1. (Framework of the user-based CF). |
Inputs: data- User dietary preference matrix, k nearby neighbors Outputs: ReFood- The food combination recommended to users Refining the user preference matrix with the Slop One function: . for i = 1 to N do//Where N represents the number of users in the user preference matrix //Calculate the similarity between _target user and other users. end for //Sorting users by similarity size in matrix FR. Select the users with the highest similarity to the user. //Each user individually selects the top k2 food items that //have the highest ratings and have not been rated by the _target user. Finally obtain the ReFood that conforms to the preferences of the _target users. |
4.2. The Improvement Strategy of the MOEA/D
4.2.1. AO Optimization Strategy
4.2.2. Self-Adaptive Adjustment Strategy
4.2.3. The Principle of the Two-Sided Mirror to Optimize the Boundary Strategy
4.2.4. AFR Food Nutrition Regulation Strategy
4.3. FNR-MOEA/D
Algorithm 2. (Framework of the FNR-MOEA/D). |
Inputs: X- individual initial position, z- reference point, λ- weight vector of MOPs, B-neighborhood Outputs: FV- object value of X for gen = 1 to Generation do if gen > 1 then Calculate the distance between each x and the sub-problem, and sort them. // Record the number of individuals around each subproblem. // the neighborhood and mutation probability of the X are adjusted adaptively. // Adjusting neighborhood size // Adjusting the probability of mutation end if for i = 1 to N do // Where N is the number of individuals of the population. if rand() < δ then // Obtain the neighborhood of the current individual. else // Obtain all individuals of the entire population. end if if rand() < ξ then // ξ is a number less than 1 Carry out AO optimization for the current individual: . end if Randomly select two individuals . . // Generation difference individual by using DE. if rand() < then Polynomial variation: . end if Optimize the boundary through the two-sided mirror theory: . // AFR regulation strategy. if then end if if then Update neighborhood: . end if end for end for |
5. Experiment
5.1. Experimental Data and Process
5.2. Experimental Results
5.3. Experimental Analysis
6. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
MOEA/D | Multi-Objective Evolutionary Algorithm Based on Decomposition |
MOPSO | Multi-Objective Particle Swarm Optimization |
MOABC | Multi-Objective Artificial Bee Colony algorithm |
RVEA | Reference Vector Guided Evolutionary Algorithm |
NSGA-II | Non-dominated Sorting Genetic Algorithm-II |
MOP | Multi-Objective Problem |
MOO | Multi-Objective Optimization |
References
- Gao, C.; Zheng, Y.; Wang, W.; Feng, F.; He, X.; Li, Y. Causal inference in recommender systems: A survey and future directions. ACM Trans. Inf. Syst. 2024, 42, 1–32. [Google Scholar] [CrossRef]
- Zmora, N.; Suez, J.; Elinav, E. You are what you eat: Diet, health and the gut microbiota. Nat. Rev. Gastroenterol. Hepatol. 2019, 16, 35–56. [Google Scholar] [CrossRef] [PubMed]
- Wu, D.; Zheng, J.; Mao, G.; Hu, W.; Ye, X.; Linhardt, R.J.; Chen, S. Rethinking the impact of RG-I mainly from fruits and vegetables on dietary health. Crit. Rev. Food Sci. Nutr. 2020, 60, 2938–2960. [Google Scholar] [CrossRef]
- Wu, G. Dietary protein intake and human health. Food Funct. 2016, 7, 1251–1265. [Google Scholar] [CrossRef]
- Clemente-Suárez, V.J.; Beltrán-Velasco, A.I.; Redondo-Flórez, L.; Martín-Rodríguez, A.; Tornero-Aguilera, J.F. Global impacts of western diet and its effects on metabolism and health: A narrative review. Nutrients 2023, 15, 2749. [Google Scholar] [CrossRef] [PubMed]
- Hu, F.B.; Liu, Y.; Willett, W.C. Preventing chronic diseases by promoting healthy diet and lifestyle: Public policy implications for China. Obes. Rev. 2011, 12, 552–559. [Google Scholar] [CrossRef]
- Mendez-Zorrilla, A. Systematic Review of Nutritional Recommendation Systems. Appl. Sci. 2021, 11, 12069. [Google Scholar] [CrossRef]
- Jayedi, A.; Soltani, S.; Abdolshahi, A.; Shab-Bidar, S. Healthy and unhealthy dietary patterns and the risk of chronic disease: An umbrella review of meta-analyses of prospective cohort studies. Br. J. Nutr. 2020, 124, 1133–1144. [Google Scholar] [CrossRef]
- Cecchini, M.; Sassi, F.; Lauer, J.A.; Lee, Y.Y.; Guajardo-Barron, V.; Chisholm, D. Chronic Diseases: Chronic Diseases and Development 3 Tackling of unhealthy diets, physical inactivity, and obesity: Health effects and cost-effectiveness. Lancet 2010, 376, 1775–1784. [Google Scholar] [CrossRef] [PubMed]
- Elsweiler, D.; Trattner, C.; Harvey, M. Exploiting food choice biases for healthier recipe recommendation. In Proceedings of the 40th International ACM SIGIR Conference on Research and Development in Information Retrieval, Tokyo, Japan, 7–11 August 2017; Volume 51, pp. 575–584. [Google Scholar] [CrossRef]
- Koolen, M.; Bogers, T.; Mobasher, B.; Said, A.; Tuzhilin, A. Overview of the Workshop on Recommendation in Complex Scenarios 2019 (ComplexRec 2019). In Proceedings of the Conference on Recommender Systems, Copenhagen, Denmark, 16–20 September 2019; ACM: New York, NY, USA, 2019. [Google Scholar] [CrossRef]
- Zuo, Y.; Gong, M.; Zeng, J.; Ma, L.; Jiao, L. Personalized Recommendation Based on Evolutionary Multi-Objective Optimization [Research Frontier]. IEEE Comput. Intell. Mag. 2015, 10, 52–62. [Google Scholar] [CrossRef]
- Zheng, Y.; Wang, D.X. A survey of recommender systems with multi-objective optimization. Neurocomputing 2022, 474, 141–153. [Google Scholar] [CrossRef]
- Cui, L.; Ou, P.; Fu, X.; Wen, Z.; Lu, N. A novel multi-objective evolutionary algorithm for recommendation systems. J. Parallel Distrib. Comput. 2017, 103, 53–63. [Google Scholar] [CrossRef]
- Elkin-Koren, N. Contesting algorithms: Restoring the public interest in content filtering by artificial intelligence. Big Data Soc. 2020, 7, 2053951720932296. [Google Scholar] [CrossRef]
- Alharbe, N.; Rakrouki, M.A.; Aljohani, A. A collaborative filtering recommendation algorithm based on embedding representation. Expert Syst. Appl. 2023, 215, 119380. [Google Scholar] [CrossRef]
- Yera, R.; Alzahrani, A.A.; Martinez, L. A food recommender system considering nutritional information and user preferences. IEEE Access 2019, 7, 96695–96711. [Google Scholar] [CrossRef]
- Sahoo, A.K.; Pradhan, C.; Barik, R.K.; Dubey, H. DeepReco: Deep Learning Based Health Recommender System Using Collaborative Filtering. Computation 2019, 7, 25. [Google Scholar] [CrossRef]
- 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]
- Trattner, C.; Elsweiler, D. Food Recommender Systems: Important Contributions, Challenges and Future Research Directions. arXiv 2017, arXiv:1711.02760. [Google Scholar] [CrossRef]
- Mckensy-Sambola, D.; Rodríguez-García, M.Á.; García-Sánchez, F.; Valencia-García, R. Ontology-Based Nutritional Recommender System. Appl. Sci. 2021, 12, 143. [Google Scholar] [CrossRef]
- Rostami, M.; Oussalah, M.; Farrahi, V. A novel time-aware food recommender-system based on deep learning and graph clustering. IEEE Access 2022, 10, 52508–52524. [Google Scholar] [CrossRef]
- Chen, Y.; Guo, Y.; Fan, Q.; Zhang, Q.; Dong, Y. Health-Aware Food Recommendation Based on Knowledge Graph and Multi-Task Learning. Foods 2023, 12, 2079. [Google Scholar] [CrossRef]
- Iwendi, C.; Khan, S.; Anajemba, J.H.; Bashir, A.K.; Noor, F. Realizing an efficient IoMT-assisted Patient Diet Recommendation System through Machine Learning Model. IEEE Access 2020, 8, 28462–28474. [Google Scholar] [CrossRef]
- Mathur, A.; Juguru, S.K.; Eirinaki, M. A Graph-Based Recommender System for Food Products. In Proceedings of the 2019 First International Conference on Graph Computing, Laguna Hills, CA, USA, 25–27 September 2019. [Google Scholar] [CrossRef]
- Madani, A.; Engelbrecht, A.; Ombuki-Berman, B. Cooperative coevolutionary multi-guide particle swarm optimization algorithm for large-scale multi-objective optimization problems. Swarm Evol. Comput. 2023, 78, 101262. [Google Scholar] [CrossRef]
- Daulton, S.; Eriksson, D.; Balandat, M.; Bakshy, E. Multi-Objective Bayesian Optimization over High-Dimensional Search Spaces. arXiv 2021, arXiv:2109.10964. [Google Scholar] [CrossRef]
- Qi, S.; Wang, R.; Zhang, T.; Dong, N. Cooperative coevolutionary competition swarm optimizer with perturbation for high-dimensional multi-objective optimization. Inf. Sci. 2023, 644, 119253. [Google Scholar] [CrossRef]
- Song, Z.; Wang, H.; Xue, B.; Zhang, M. Balancing Different Optimization Difficulty Between Objectives in Multi-Objective Feature Selection. IEEE Trans. Evol. Comput. 2023, 28, 1824–1837. [Google Scholar] [CrossRef]
- Xia, H.; Zhuang, J.; Yu, D. Novel soft subspace clustering with multi-objective evolutionary approach for high-dimensional data. Pattern Recognit. 2013, 46, 2562–2575. [Google Scholar] [CrossRef]
- Gu, Q.; Xu, Q.; Li, X. An improved NSGA-III algorithm based on distance dominance relation for many-objective optimization. Expert Syst. Appl. 2022, 207, 117738. [Google Scholar] [CrossRef]
- Rivera, G.; Cruz-Reyes, L.; Fernandez, E.; Gomez-Santillan, C.; Rangel-Valdez, N. An interactive ACO enriched with an eclectic multi-criteria ordinal classifier to address many-objective optimisation problems. Expert Syst. Appl. 2023, 232, 120813. [Google Scholar] [CrossRef]
- Moazen, H.; Molaei, S.; Farzinvash, L.; Sabaei, M. PSO-ELPM: PSO with elite learning, enhanced parameter updating, and exponential mutation operator. Inf. Sci. 2023, 628, 70–91. [Google Scholar] [CrossRef]
- Qian, H.; Yu, Y. Solving high-dimensional multi-objective optimization problems with low effective dimensions. In Proceedings of the AAAI Conference on Artificial Intelligence, San Francisco, CA, USA, 4–9 February 2017; Volume 31. [Google Scholar] [CrossRef]
- Zhang, Q.; Li, H. MOEA/D: A Multiobjective Evolutionary Algorithm Based on Decomposition. IEEE Trans. Evol. Comput. 2008, 11, 712–731. [Google Scholar] [CrossRef]
- Hu, Y.; Lyu, C.; Yuan, J. Parameter optimization of Slave-Master PID controller parameters based on improved MOEAD algorithm. Appl. Res. Comput. 2024, 41, 1434–1440. [Google Scholar] [CrossRef]
- Wang, W.; Li, K.; Tao, X.; Gu, F.-H. An improved MOEA/D algorithm with an adaptive evolutionary strategy. Inf. Sci. 2020, 539, 1–15. [Google Scholar] [CrossRef]
- Zhang, Y.; Wang, G.G.; Li, K.; Yeh, W.-C.; Jian, M.; Dong, J. Enhancing MOEA/D with information feedback models for large-scale many-objective optimization. Inf. Sci. 2020, 522, 1–16. [Google Scholar] [CrossRef]
- Cao, J.; Zhang, J.; Zhao, F.; Chen, Z. A two-stage evolutionary strategy based MOEA/D to multi-objective problems. Expert Syst. Appl. 2021, 185, 115654. [Google Scholar] [CrossRef]
- Wang, Q.X.; Luo, X.; Li, Y.; Shi, X.-Y.; Gu, L.; Shang, M.-S. Incremental Slope-one recommenders. Neurocomputing 2018, 272, 606–618. [Google Scholar] [CrossRef]
- Zhou, H.; Deng, Z.; Xia, Y.; Fu, M. A new sampling method in particle filter based on Pearson correlation coefficient. Neurocomputing 2016, 216, 208–215. [Google Scholar] [CrossRef]
- Cheng, Y. Dietary Reference Intake of Nutrients for Chinese Residents, Introduction to the 2013 revision. J. Nutri. 2014, 36, 313–317. [Google Scholar] [CrossRef]
- Cheng, R.; Jin, Y.; Olhofer, M. Test problems for large-scale multiobjective and many-objective optimization. IEEE Trans. Cybern. 2016, 47, 4108–4121. [Google Scholar] [CrossRef] [PubMed]
- Xu, M.; Zhang, M.; Cai, X.; Zhang, G. Adaptive neighbourhood size adjustment in MOEA/D-DRA. Int. J. Bio-Inspired Comput. 2021, 17, 14. [Google Scholar] [CrossRef]
- Li, Y.; Liu, H.; Xie, K.; Yu, X. A method for distributing reference points uniformly along the Pareto front of DTLZ test functions in many-objective evolutionary optimization. In Proceedings of the 2015 5th International Conference on Information Science and Technology (ICIST), Changsha, China, 24–26 April 2015; IEEE: New York, NY, USA, 2015; pp. 541–546. [Google Scholar] [CrossRef]
- Cheng, R.; Li, M.; Tian, Y.; Zhang, X.; Yang, S.; Jin, Y.; Yao, X. A benchmark test suite for evolutionary many-objective optimization. Complex Intell. Syst. 2017, 3, 67–81. [Google Scholar] [CrossRef]
- He, J.; Luo, F.; Yuan, Z.; Huang, H. The application of collaborative filtering and particle swarm algorithm in dietary recommendation. Comput. Appl. Softw. 2019, 36, 36–40. [Google Scholar] [CrossRef]
- Li, H.; Zhang, Q. Multiobjective optimization problems with complicated Pareto sets, MOEA/D and NSGA-II. IEEE Trans. Evol. Comput. 2009, 13, 284–302. [Google Scholar] [CrossRef]
Meal_Id | User_Id | Date | Meal_Sequence | Food_Ids |
---|---|---|---|---|
1 | 1 | 23 September 2014 | 1 | 17, 3, 20 |
2 | 1 | 24 September 2014 | 1 | 9, 3, 13, 7 |
3 | 1 | 25 September 2014 | 1 | 16, 9, 3, 22 |
4 | 1 | 26 September 2014 | 1 | 9, 3, 13, 7 |
5 | 1 | 27 September 2014 | 1 | 3, 7 |
Food_Ids | Title |
---|---|
1 | egg_dairy__dairy_product__milk |
2 | meat__beef__eye_fillet |
3 | staple__root_and_tuber__taro |
4 | dessert__cake__eggies |
Parameter | Meaning | Value |
---|---|---|
Generations | The Quantity of Generations | 150 |
N | The Population Size | 120 |
M | The Number of Optimization Objectives | 9 |
T | The Neighbor Size | 12 |
CR | The Crossover Probability | 0.5 |
ProM | The Mutation Probability | 1/D |
Nutritional Elements | Standard | Allocate | Deviation | Error |
---|---|---|---|---|
Calories (KJ) | 6200 | 7450.4 | 1250.4 | 20.16% |
Protein (g) | 72.3 | 71.1 | −1.2 | 1.66% |
Fat (g) | 59.71 | 60.3 | 0.59 | 0.98% |
Carbohydrate (g) | 368.03 | 227.7 | −140.33 | 38.13% |
Vitamin A (μg) | 683.25 | 684.3 | 1.05 | 0.15% |
Vitamin B (mg) | 1.4 | 1.4 | 0 | 0 |
Calcium (mg) | 755.32 | 756.5 | 1.18 | 0.15% |
Iron (mg) | 20.24 | 21.4 | 1.16 | 5.73% |
Vitamin C (mg) | 97.21 | 11.6 | −85.61 | 88.07% |
Nutritional Elements | FNR-MOEA/D | MOEA/D | MOPSO | MOABC | RVEA | NSGA-II |
---|---|---|---|---|---|---|
Calories (KJ) | 20.16% | 17.72% | 18.64% | 22.61% | 20.66% | 39.16% |
Protein (g) | 1.66% | 5.14% | 12.82% | 31.42% | 5.12% | 26.83% |
Fat (g) | 0.98% | 0.54% | 6.53% | 17.23% | 2.86% | 0.70% |
Carbohydrate (g) | 38.13% | 41.03% | 43.15% | 44.87% | 37.27% | 78.07% |
Vitamin A (μg) | 0.15% | 0.04% | 19.35% | 16.55% | 1.79% | 4.17% |
Vitamin B (mg) | 0 | 17.14% | 26.19% | 92.86% | 2.86% | 3.57% |
Calcium (mg) | 0.15% | 0.44% | 20.16% | 9.57% | 0.62% | 79.65% |
Iron (mg) | 5.73% | 3.71% | 24.58% | 1.19% | 8.73% | 2.57% |
Vitamin C (mg) | 88.07% | 88.76% | 88.74% | 85.64% | 88.68% | 19.55% |
Average error | 17.22% | 19.39% | 28.91% | 35.77% | 18.73% | 27.25% |
Nutritional Elements | Standard | Allocate | Deviation | Error |
---|---|---|---|---|
Calories (KJ) | 6200 | 6131.2 | −68.8 | 1.11% |
Protein (g) | 72.3 | 73.1 | 0.8 | 1.11% |
Fat (g) | 59.71 | 16.7 | −43.01 | 72.03% |
Carbohydrate (g) | 368.03 | 273.6 | −94.43 | 25.66% |
Vitamin A (μg) | 683.25 | 218.7 | −464.55 | 67.99% |
Vitamin B (mg) | 1.4 | 1.4 | 0 | 0 |
Calcium (mg) | 755.32 | 753.2 | −2.12 | 0.28% |
Iron (mg) | 20.24 | 28.1 | 7.86 | 38.83% |
Vitamin C (mg) | 97.21 | 80.9 | −16.31 | 16.78% |
Nutritional Elements | FNR-MOEA/D | MOEA/D | MOPSO | MOABC | RVEA | NSGA-II |
---|---|---|---|---|---|---|
Calories (KJ) | 1.11% | 3.34% | 3.78% | 36.77% | 0.18% | 94.74% |
Protein (g) | 1.11% | 6.50% | 10.65% | 3.18% | 7.88% | 39.28% |
Fat (g) | 72.03% | 69.85% | 18.26% | 66.50% | 66.50% | 85.41% |
Carbohydrate (g) | 25.66% | 31.30% | 61.10% | 64.70% | 29.67% | 30.14% |
Vitamin A (μg) | 67.99% | 70.29% | 15.90% | 70.29% | 70.14% | 32.05% |
Vitamin B (mg) | 0 | 0 | 46.72% | 2.86% | 0.71% | 1.43% |
Calcium (mg) | 0.28% | 0.31% | 12.94% | 5.87% | 0.31% | 13.99% |
Iron (mg) | 38.83% | 38.34% | 44.51% | 3.75% | 48.22% | 2.37% |
Vitamin C (mg) | 16.78% | 27.99% | 47.22% | 42.39% | 29.02% | 28.80% |
Average error | 24.86% | 27.54% | 29.01% | 32.92% | 28.07% | 36.47% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Huang, S.; Wang, C.; Bian, W. A Hybrid Food Recommendation System Based on MOEA/D Focusing on the Problem of Food Nutritional Balance and Symmetry. Symmetry 2024, 16, 1698. https://doi.org/10.3390/sym16121698
Huang S, Wang C, Bian W. A Hybrid Food Recommendation System Based on MOEA/D Focusing on the Problem of Food Nutritional Balance and Symmetry. Symmetry. 2024; 16(12):1698. https://doi.org/10.3390/sym16121698
Chicago/Turabian StyleHuang, Shuchang, Cungang Wang, and Wei Bian. 2024. "A Hybrid Food Recommendation System Based on MOEA/D Focusing on the Problem of Food Nutritional Balance and Symmetry" Symmetry 16, no. 12: 1698. https://doi.org/10.3390/sym16121698
APA StyleHuang, S., Wang, C., & Bian, W. (2024). A Hybrid Food Recommendation System Based on MOEA/D Focusing on the Problem of Food Nutritional Balance and Symmetry. Symmetry, 16(12), 1698. https://doi.org/10.3390/sym16121698