Font Size: a A A

Research On System Of Diets Planning Based On PSO

Posted on:2018-09-17Degree:MasterType:Thesis
Country:ChinaCandidate:J C WuFull Text:PDF
GTID:2348330533466268Subject:Computer technology
Abstract/Summary:PDF Full Text Request
With the growth of the national economy, the residents in China have played more and more attention to scientific diets. Healthy and scientific diets should be balanced diets, that means the body's intakes of various nutrients have reached a certain level. In other words, there is no excess of a nutrient intake. Considering this, diets planning, which is able to provide reasonable diets advices, came up in recent years. Diet planning is a multi-target optimization problem because all nutrients absorbed must be in allowable range, so it needs massive computation. The common used method to solve the problem is multi-objective optimization.The application scope of diets planning is very narrow because multi-objective optimization is too complicated. In this paper, the mathematical model of diets planning is improved as a system of under-determined linear equations. The model is much simpler and the amount of computation reduces a lot.System of underdetermined linear equations has an infinite number of solutions, and each solution is a feasible solution for diets planning. Most commonly used methods to solve linear equation systems are Gussian elimination, Jacobi iteration method, Gauss-Seidel iteration method and the more general Krylov subspace methods. However, both of them are not suitable methods to diets planning because solution they find is unique, and diet planning must give different solution for variety users. So cosine similarity is used to transform linear equation system to a multi-model function. Finding maximums is equal to finding solutions for diets planning. Particle swarm optimization, a computational method which optimizes problem by iteratively, is used to find feasible solutions of diets planning. And Experiment proves that it is a usable method for diets planning.Before the system is coded, it is needs to get the core data. The core data of diet management includes recommended dietary allowance for Chinese residents, foods information about nutrients. Recommended dietary allowance gives recommended intakes of nutrients for different people and it is authoritative reference published by department of health. The nutrient information shows nutrients composition in foods, and users can query information.After that, requirement analysis is carried on before designing the diet management information. The system is consisted of three modular, and the modular are personnel information module, dietary knowledge management module, and diet planning module. In personnel information module, users can upload their body information such as weight, height,blood pressure, age and hobbies to server. Users also can query their dietary log from server in this module by their mobile phone. Dietary knowledge management module manages the core data of the diet management system. This module is deployed in server, the permission of users is only access the core data to get dietary knowledge they care about. Only server can modify and delete data. Diet planning module is the core module of the diet management system. If user want to get a dietary suggestion, he can select some foods and commit them to server, and then diet planning module provide feasible solution, after that the solution is push into users' mobile phone.Besides knowledge information, the system also manages other data, and these data are indispensible to satisfy diet management system normal operation. So a database is designed.User body information and dietary information are storage in database.Finally, the dietary management system is built. The integrated development environments are Visual Studio 2010 and Eclipse with android studio. Dietary management module and diet planning module is developed in Visual Studio 2010, and the program language is C#. They are designed as web services and deployed in server. The database is also deployed in server, the database management system is Microsoft SQL Server 2008. An App is designed for users, and they can install it in their mobile phones. The integrated development environment for App is Eclipse with android development tools, and the development language is Java. User can apply for diet planning through App and App call web services to get diet plans.
Keywords/Search Tags:Balanced diet, Nutrient constituent, Diets planning, Cosine similarity, Particle swarm optimization
PDF Full Text Request
Related items