CN111435609A - Nutrient information generation method and device, computer equipment and storage medium - Google Patents
Nutrient information generation method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN111435609A CN111435609A CN201910027083.6A CN201910027083A CN111435609A CN 111435609 A CN111435609 A CN 111435609A CN 201910027083 A CN201910027083 A CN 201910027083A CN 111435609 A CN111435609 A CN 111435609A
- Authority
- CN
- China
- Prior art keywords
- nutrient
- information
- user
- identifier
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H20/00—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
- G16H20/60—ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to nutrition control, e.g. diets
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16H—HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
- G16H50/00—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
- G16H50/30—ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for calculating health indices; for individual health risk assessment
Landscapes
- Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Public Health (AREA)
- Engineering & Computer Science (AREA)
- Primary Health Care (AREA)
- General Health & Medical Sciences (AREA)
- Epidemiology (AREA)
- Nutrition Science (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Pathology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Medical Treatment And Welfare Office Work (AREA)
Abstract
The application relates to a nutrient information generation method, a nutrient information generation device, computer equipment and a storage medium. Because the first nutrient information is generated according to the first target nutrient identification, the generated first nutrient information can be more accurate, and the individual requirements can be met.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for generating nutrient information, a computer device, and a storage medium.
Background
With the progress of society and the development of science and technology, more and more people begin to pay attention to physical health. There are many ways to maintain health, and it is more common to administer various nutrients to provide various nutrients needed by the body. The nutrients are various substances required for maintaining human health and providing growth, development and labor, and for example, the nutrients may be vitamins, minerals, amino acids, unsaturated fatty acids, etc. Various nutrients for administration are commercially available, and for example, vitamin C tablets, vitamin E soft capsules, calcium tablets, and the like are commercially available. The nutrient information may be used to guide the user to supplement nutrients, for example, the nutrient information of the vitamin C tablet may be oral, one tablet per day, etc.
However, different organisms have different requirements on nutrients, and the existing nutrient information has the problem of being single.
Disclosure of Invention
In view of the above, it is necessary to provide a nutrient information generation method, apparatus, computer device and storage medium for solving the above technical problems.
A method of generating nutrient information, the method comprising:
acquiring first user demand information, and acquiring first user characterization information according to the relationship between the user demand information and the user characterization information, wherein the first user characterization information corresponds to the first user demand information;
obtaining first nutrient identification set information according to the relationship between user characterization information and nutrient identification, wherein the first nutrient identification set information corresponds to the first user characterization information;
performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and generating first nutrient information according to the first target nutrient identification, wherein the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identification.
In one embodiment, the performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier includes:
respectively acquiring nutrient weights corresponding to nutrient identifiers corresponding to the first user characteristic information in the first nutrient identifier set information;
acquiring nutrient fractions corresponding to the nutrient identifications according to the nutrient weight and the first nutrient identification set information;
obtaining a first target nutrient mark according to the nutrient fraction corresponding to each nutrient mark;
the obtaining a first target nutrient identifier according to the nutrient score corresponding to each nutrient identifier may further include:
sequencing the nutrient identifications according to the nutrient fractions corresponding to the nutrient identifications to obtain sequenced nutrient identifications;
and acquiring the first target nutrient identifier from the sequenced nutrient identifiers.
In one embodiment, the method further comprises:
acquiring user characteristic information;
according to the user characteristic information, adjusting the nutrient weight corresponding to the nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information to obtain the adjusted nutrient weight;
the obtaining of the nutrient score corresponding to each nutrient identifier according to the nutrient weight and the first nutrient identifier set information includes:
and performing cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information, and acquiring nutrient scores corresponding to all the nutrient identifiers.
In one embodiment, the method further comprises:
acquiring physiological information of a user;
obtaining second nutrient identifier set information according to the relation between the user physiological information and the nutrient identifiers, wherein the second nutrient identifier set information corresponds to the user physiological information;
performing clustering analysis on the second nutrient identification set information to obtain physiological target nutrient identifications;
the generating process of the first nutrient information further comprises:
generating first nutrient information according to the first target nutrient identification and the physiological target nutrient identification; or
And extracting a common nutrient identifier in the first target nutrient identifier and the physiological target nutrient identifier, and generating first nutrient information according to the common nutrient identifier.
In one embodiment, after generating first nutrient information according to the first user demand information and the first target nutrient identifier, the method further includes:
acquiring the use duration, wherein the use duration is used for representing the duration of supplementing nutrients to a user according to the first nutrient information;
when the use duration is greater than a duration threshold, second user demand information is acquired;
acquiring difference data between the first user demand information and the second user demand information;
when the difference data is less than or equal to a difference threshold, instructing the user to supplement the corresponding nutrient according to the first nutrient information;
and when the difference data is larger than a difference threshold value, generating a second target nutrient identifier according to the second user demand information, generating second nutrient information according to the second target nutrient identifier, and further instructing the user to supplement corresponding nutrients according to the second nutrient information, wherein the second nutrient information is used for instructing the user to supplement the nutrients corresponding to the second target nutrient identifier.
In one embodiment, after generating the second target nutrient identifier according to the second user demand information, the method further includes:
acquiring differential nutrient marks between the first target nutrient mark and the second target nutrient mark, and counting the number of the differential nutrient marks;
when the number of the differential nutrient identifications is smaller than a number threshold, instructing the user to supplement the corresponding nutrient according to the first nutrient information;
when the number of differential nutrient identifications is greater than a number threshold, instructing the user to supplement the corresponding nutrient according to the second nutrient information.
In one embodiment, after generating first nutrient information according to the first user demand information and the first target nutrient identifier, the method further includes:
acquiring index data, wherein the index data is used for representing various body indexes of a user after nutrients are supplemented according to the first nutrient information;
when the index data does not fall into a preset data range, acquiring third user demand information according to the index data, referring to a method for generating first nutrient information from the first user demand information, and generating third nutrient information according to the third user demand information; or
When the index data does not fall into a preset data range, acquiring a first endpoint value and a second endpoint value of the preset data range; wherein the first endpoint value is less than the second endpoint value;
when the index data is smaller than the first endpoint value, acquiring a first difference value between the index data and the first endpoint value, and adjusting the first nutrient information according to the first difference value;
when the index data is larger than the second endpoint value, acquiring a second difference value between the index data and the second endpoint value, and adjusting the first nutrient information according to the second difference value;
and obtaining third nutrient information according to the adjusted first nutrient information.
A nutrient information generating apparatus, the apparatus comprising:
the user representation information acquisition module is used for acquiring first user requirement information and acquiring first user representation information according to the relationship between the user requirement information and the user representation information, wherein the first user representation information corresponds to the first user requirement information;
the nutrient identification set information acquisition module is used for acquiring first nutrient identification set information according to the relationship between user representation information and nutrient identifications, wherein the first nutrient identification set information corresponds to the first user representation information;
the cluster analysis module is used for carrying out cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and the nutrient information generating module is used for generating first nutrient information according to the first target nutrient identifier, and the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identifier.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring first user demand information, and acquiring first user characterization information according to the relationship between the user demand information and the user characterization information, wherein the first user characterization information corresponds to the first user demand information;
obtaining first nutrient identification set information according to the relationship between user characterization information and nutrient identification, wherein the first nutrient identification set information corresponds to the first user characterization information;
performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and generating first nutrient information according to the first target nutrient identification, wherein the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identification.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring first user demand information, and acquiring first user characterization information according to the relationship between the user demand information and the user characterization information, wherein the first user characterization information corresponds to the first user demand information;
obtaining first nutrient identification set information according to the relationship between user characterization information and nutrient identification, wherein the first nutrient identification set information corresponds to the first user characterization information;
performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and generating first nutrient information according to the first target nutrient identification, wherein the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identification.
According to the nutrient information generation method, the nutrient information generation device, the computer equipment and the storage medium, first user characteristic information is obtained according to the relation between the user requirement information and the user characteristic information by obtaining the first user requirement information, the first user characteristic information corresponds to the first user requirement information, first nutrient identifier set information is obtained according to the relation between the user characteristic information and nutrient identifiers, the first nutrient identifier set information corresponds to the first user characteristic information, clustering analysis is carried out on the first nutrient identifier set information to obtain a first target nutrient identifier, first nutrient information is generated according to the first target nutrient identifier, and the first nutrient information is used for indicating a user to supplement nutrients corresponding to the first target nutrient identifier. The first target nutrient identification is obtained by performing cluster analysis on the first nutrient identification set information, and the first nutrient information is generated according to the first target nutrient identification, so that the generated first nutrient information is more accurate, and the individual requirements are met.
Drawings
FIG. 1 is a diagram showing an environment in which a nutrient information generation method is applied in one embodiment;
FIG. 2 is a schematic flow chart diagram of a method for generating nutrient information in one embodiment;
FIG. 3 is a schematic diagram of a process for generating second nutrient information in one embodiment;
FIG. 4 is a block diagram showing the structure of a nutrient information generating apparatus according to an embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, the first user demand information may be referred to as second user demand information, and similarly, the second user demand information may be referred to as first user demand information, without departing from the scope of the present application. The first user requirement information and the second user requirement information are both user requirement information, and may be user requirement information of the same user, but are not user requirement information in the same time period.
The nutrient information generation method provided by the embodiment of the application can be applied to an application environment shown in fig. 1, where the application environment includes a computer device 110, as shown in fig. 1. The computer device 110 may obtain the first user requirement information, and according to a relationship between the user requirement information and the user representation information, the computer device 110 may obtain the first user representation information corresponding to the first user requirement information. The computer device 110 may derive first nutrient identification set information corresponding to the first user characterization information from a relationship between the user characterization information and the nutrient identification. The computer device 110 may perform cluster analysis on the first nutrient signature set information to obtain a first target nutrient signature. The computer device 110 may generate first nutrient information based on the first target nutrient identification. Wherein the first nutrient information may be used to instruct the user to replenish the nutrient corresponding to the first target nutrient identification. It is understood that the computer device 110 can be, but is not limited to, various personal computers, laptops, smartphones, tablets and portable wearable devices, and the computer device 110 can also be implemented with a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for generating nutrient information is provided, which is illustrated by applying the method to the computer device in fig. 1, and comprises the following steps:
step 202, obtaining first user requirement information, and obtaining first user characterization information according to a relationship between the user requirement information and user characterization information, where the first user characterization information corresponds to the first user requirement information.
The user requirement information may be requirement information input by the user through a computer device for representing the requirement of the user. For example, the user demand information may be user demands for acne removal or acne resistance, whitening, moisturizing, anti-aging, barrier repair, and the like. The first user demand information may be one or more of user demand information.
The user characterization information may be a physiological function phenotype of the user; the user's physiological function phenotype may be further divided into a first type phenotype and a second type phenotype, and the second type phenotype may be a refinement of the first type phenotype; for example, a first phenotype can be vaccinia, wrinkles, spots, etc., while a second phenotype of vaccinia can be keratosis, hyperplasia, acne, pore blockage, follicular papules, seborrheic dermatitis, keratinization, follicular hyperkeratosis, etc. The first user characterization information may be one or more of user characterization information.
The computer device may store a relationship between the user requirement information and the user characterization information, where the first type of phenotype in the user characterization information corresponds to the second type of phenotype, respectively. For example, the user requirement information is acne removal or acne resistance, the corresponding first phenotype is acne, pores and sebum, and the corresponding second phenotype of the first phenotype is keratinization, hyperplasia, acne, pore blockage, hair follicle pimple, seborrheic dermatitis, keratinization and hair follicle hyperkeratosis; the second phenotype corresponding to the pore of the first phenotype is keratinization and hyperplasia; the second phenotype corresponding to sebum of the first phenotype is sebum, sebaceous gland secretion. The computer device may store the relationship between the user demand information and the user characterization information in the form of a table, and a part of the table is as follows:
after the computer device obtains the first user demand information, the first user representation information can be obtained according to the stored relation between the user demand information and the user representation information, wherein the first user representation information corresponds to the first user demand information.
And 204, obtaining first nutrient identification set information according to the relationship between the user characterization information and the nutrient identification, wherein the first nutrient identification set information corresponds to the first user characterization information.
The nutrient identifier set information may include at least one nutrient identifier, and information such as a corresponding relationship between the nutrient identifier and the user characterization information. The first nutrient identifier set information may include nutrient identifiers and association conditions between the nutrient identifiers and the first user characterization information, where one nutrient identifier may be associated with one user characterization information or may be associated with multiple user characterization information, and it is understood that one user characterization information may be associated with one nutrient identifier or may be associated with multiple nutrient identifiers, which is not limited herein. For example, when the first user characterization information indicates that the first phenotype is acne and the second phenotype is acne, the corresponding nutrients are identified as vitamin a, vitamin B6, vitamin C, zinc, and selenium. The computer device may store the relationship between the user characterization information and the nutrient identification in the form of a table, some of which are shown below:
after the computer device obtains the first user requirement information, the first user representation information corresponding to the first user requirement information can be found in the stored relation table between the user requirement information and the user representation information. Then, the computer device may find, according to the stored relationship table between the user characterization information and the nutrient identifier, first nutrient identifier set information corresponding to the first user characterization information corresponding to the first user demand information, so as to obtain the first nutrient identifier set information.
The computer equipment acquires first user requirement information according to a relationship between the pre-established user requirement information and user representation information by acquiring the first user requirement information, acquires first user representation information corresponding to the first user requirement information, and acquires first nutrient identifier set information corresponding to the first user representation information according to a relationship between the pre-established user representation information and nutrient identifiers. Because the relation between the user demand information and the user representation information and the relation between the user representation information and the nutrient identifier are stored in the computer device, after the computer device obtains the first user demand information, the corresponding first nutrient identifier set information can be quickly searched, and the efficiency of searching the first nutrient identifier set information is improved.
The nutrients may be chemical components for providing energy to the human body, constituting the body and tissue repair, and having physiological regulation functions, and may be used to maintain the health of the human body and provide various substances required for growth, development and labor. For example, the nutrients may be vitamins, minerals, amino acids, unsaturated fatty acids, proteins, lipids, carbohydrates, water, cellulose, and the like. The nutrients can participate in various physiological and biochemical reactions of the body, and the deficiency of the nutrients can cause the body to have physiological manifestations, such as color spots, acne, lip dryness, anorexia, osteoporosis and the like.
The nutrient identifier can be the name of the nutrient and also can be the number corresponding to the nutrient, and the nutrient identifier can be used for distinguishing different nutrients. The nutrient identifier set information may include a plurality of nutrient identifiers, and the plurality of nutrient identifiers included in the nutrient identifier set information may include different nutrient identifiers of the same type. Taking the name of the nutrient identifier as a nutrient as an example, the nutrient identifiers contained in the nutrient identifier set information may include vitamin a, vitamin B6, vitamin C, zinc and selenium, wherein the vitamin a, the vitamin B6 and the vitamin C belong to different nutrient identifiers of the same category.
The computer device may store a corresponding relationship between the user requirement information and the nutrient identifier, for example, when the user requirement information is acne removal, the corresponding nutrient identifier may include vitamin a, vitamin B2, vitamin B6, vitamin B7, vitamin C, zinc, and selenium; when the user demand information is whitening, the corresponding nutrient identifiers may be vitamin a, vitamin E, vitamin C, vitamin K, vitamin D, vitamin B3, vitamin B1, vitamin B6, vitamin B7, vitamin B9, vitamin B12, selenium, chromium, and iron.
And step 206, performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier.
Clustering analysis, also known as group analysis, point group analysis, ethnic group analysis, etc., is a statistical method for classifying samples or indicators, and classifies objects into classes that tend to be similar to each other in the same class but dissimilar from each other.
The first target nutrient designation may be all or a portion of the nutrient designations in the first nutrient designation set information.
After the computer device finds the first nutrient identifier set information corresponding to the first user demand information, the computer device may perform cluster analysis on each nutrient identifier in the first nutrient identifier set information according to the first user demand information. The computer device may perform cluster analysis on the first nutrient identifier set information by using a web library software Cytoscape for analysis and visualization, may also perform cluster analysis on the first nutrient identifier set information by using statistical analysis software SPSS and analysis software NTSYS, and may also perform cluster analysis by using an analysis algorithm, which is not limited herein.
And step 208, generating first nutrient information according to the first target nutrient identifier, wherein the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identifier.
The first nutrient information may include a nutrient corresponding to the first target nutrient identifier and supplement information of the nutrient corresponding to the first target nutrient identifier. Taking the nutrient corresponding to the first target nutrient identifier as vitamin a as an example, the first nutrient information may include vitamin a, a method for supplementing vitamin a, and a time for supplementing vitamin a.
In this embodiment, the computer device obtains first user characteristic information according to a relationship between the user requirement information and user characteristic information by obtaining the first user requirement information, where the first user characteristic information corresponds to the first user requirement information, obtains first nutrient identifier set information according to the relationship between the user characteristic information and a nutrient identifier, where the first nutrient identifier set information corresponds to the first user characteristic information, performs cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier, and generates first nutrient information according to the first target nutrient identifier, where the first nutrient information is used to instruct a user to supplement nutrients corresponding to the first target nutrient identifier. The first target nutrient identification is obtained by performing cluster analysis on the first nutrient identification set information, and the first nutrient information is generated according to the first target nutrient identification, so that the generated first nutrient information is more accurate, and the individual requirements are met.
In an embodiment, the provided method for generating nutrient information may further include a process of cluster analysis and obtaining a first target nutrient identifier, which specifically includes: respectively acquiring nutrient weights corresponding to nutrient identifiers corresponding to all first user characteristic information in the first nutrient identifier set information; acquiring nutrient fractions corresponding to the nutrient identifications according to the nutrient weight and the first nutrient identification set information; and obtaining a first target nutrient mark according to the fraction of each nutrient.
The computer device may obtain, respectively, a nutrient weight corresponding to a nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information. For example, in the first nutrient identifier set information searched by the computer device, when the first user characterization information is keratinized, the corresponding nutrient identifier is vitamin a, and the weight of the nutrient corresponding to vitamin a is 2; when the first user characterization information is hair follicle pimples, the corresponding nutrient marks are vitamin A and vitamin B7, the weight of the nutrient corresponding to vitamin A is 1, and the weight of the nutrient corresponding to vitamin B7 is 1.2; when the first user characterization information is sebum, the corresponding nutrient identifier is vitamin B6, and the weight of the corresponding nutrient of vitamin B6 is 1; when the first user characterization information is sebaceous gland secretion, the corresponding nutrient mark is zinc, and the weight of the nutrient corresponding to the zinc is 1.8. The nutrient identifier corresponding to the user characterization information and the nutrient weight corresponding to the nutrient identifier are partially shown in the following table,
the computer device can obtain nutrient scores corresponding to the nutrient identifications according to the nutrient weights and the first nutrient identification set information. The nutrient score can be calculated according to the number of times of occurrence of the nutrient identifier in the first nutrient identifier set information and the nutrient weight. For example, when the first user characterization information is keratinized, the corresponding nutrient identifier is vitamin a, and the weight of the corresponding nutrient of vitamin a is 2; when the first user characterization information is hair follicle pimple, the corresponding nutrients are identified as vitamin A and vitamin B7, the weight of the vitamin A corresponding to the nutrient is 1, and the weight of the vitamin B7 corresponding to the nutrient is 1.2. Wherein, the number of the occurrences of the vitamin A is 2, the number of the occurrences of the vitamin B7 is 1, the nutrient fraction corresponding to the vitamin A is 1 x 2+1 x 1 ═ 3, and the nutrient fraction corresponding to the vitamin B7 is 1 x 1.2 ═ 1.2.
Further, the computer device can sort each nutrient identifier according to the nutrient score corresponding to each nutrient identifier to obtain the sorted nutrient identifiers; and acquiring a first target nutrient identifier from the sequenced nutrient identifiers.
The computer device may rank the individual nutrient identifiers according to the obtained nutrient scores corresponding to the individual nutrient identifiers. Specifically, the computer device may rank the nutrient identifiers in order of the obtained nutrient scores from high to low, and the computer device may rank the nutrient identifiers in order of the obtained nutrient scores from low to high. Taking as an example that the respective nutrient identities are sorted in order of the obtained nutrient scores from high to low, the nutrient scores obtained by the computer device are respectively vitamin a score of 3, vitamin B6 score of 1, zinc score of 1.8, and vitamin B7 score of 1.2, the computer device may rank vitamin a with nutrient score of 3 at the first place, zinc with nutrient score of 1.8 at the second place, vitamin B7 with nutrient score of 1.2 at the third place, and vitamin B6 with nutrient score of 1 at the fourth place.
The computer device may obtain a first target nutrient identifier from the sorted nutrient identifiers, where the first target nutrient identifier obtained by the computer device may be one first target nutrient identifier or multiple first target nutrient identifiers, which is not limited herein. Specifically, when the nutrient identifiers are sorted in the order of the obtained nutrient scores from high to low, the computer device may obtain one or more first target nutrient identifiers ranked in the front from the sorted nutrient identifiers; when the nutrient identifiers are ranked in order of the obtained nutrient scores from low to high, the computer device may obtain one or more first target nutrient identifiers ranked in the following from the ranked nutrient identifiers. In one embodiment, the computer device may output a preset number of nutrient identifiers from the sorted nutrient identifiers as the first target nutrient identifier. The preset number may be a specific value, and the preset number may be set by a user through a computer device. For example, when the preset number is 3, the computer device may output the top 3 nutrient identifiers from the sorted nutrient identifiers as the first target nutrient identifier.
In this embodiment, the computer device may obtain, respectively, a nutrient weight corresponding to a nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information, obtain, according to the nutrient weight and the nutrient identifier set information, a nutrient score corresponding to each nutrient identifier, sort, according to the nutrient score corresponding to each nutrient identifier, to obtain a sorted nutrient identifier, and obtain, from the sorted nutrient identifier, the first target nutrient identifier. Because the first target nutrient identification is obtained according to the nutrient fraction corresponding to each nutrient identification, the first target nutrient identification obtained by the computer equipment can be more accurate.
In an embodiment, the provided method for generating nutrient information may further include a process of adjusting the weight of the nutrient, specifically including: acquiring user characteristic information; according to the user characteristic information, adjusting the nutrient weight corresponding to the nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information to obtain the adjusted nutrient weight; and performing cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information, and acquiring nutrient scores corresponding to all the nutrient identifiers.
The user characteristic information may be used to indicate the environment, lifestyle, race, etc. where the user is located. The living habits can be rest habits, eating habits, working habits and the like input by the user through the computer equipment. The environment of the user can be living environment, geographical position, climate characteristic, water quality, soil quality, air quality, ultraviolet intensity and the like.
The computer device may adjust, according to the user characteristic information, a nutrient weight corresponding to a nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information. Specifically, the computer device may adjust the weight of the nutrient to be higher or lower according to the user characteristic information, which is not limited herein. The adjusted nutrient weights can be obtained by the computer device. The computer device can perform cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information, and obtain nutrient scores corresponding to the nutrient identifiers.
In an embodiment, the provided nutrient information generating method may further include a process of obtaining a physiological target nutrient identifier, specifically including: acquiring physiological information of a user; obtaining second nutrient identifier set information according to the relation between the user physiological information and the nutrient identifiers, wherein the second nutrient identifier set information corresponds to the user physiological information; and performing cluster analysis on the second nutrient identification set information to obtain physiological target nutrient identifications.
The user physiological information may include user biochemical index information, user characterization information, and the like. Wherein, the biochemical index information can be protein content, bilirubin content, cholesterol content, blood sugar content and other information.
The physiological target nutrient identifier may be all or part of the nutrient identifiers in the second nutrient identifier set information.
The second nutrient identifier set information may include nutrient identifiers and association conditions between the nutrient identifiers and the user physiological information, where one nutrient identifier may be associated with one user physiological information or may be associated with multiple user physiological information, and it can be understood that one user physiological information may be associated with one nutrient identifier or may be associated with multiple nutrient identifiers, which is not limited herein. The computer device may have stored therein a correspondence between the physiological information of the user and the nutrient identification. After the computer device obtains the physiological information of the user, second nutrient identifier set information can be obtained according to the corresponding relation between the physiological information of the user and the nutrient identifiers, and the second nutrient identifier set information corresponds to the physiological information of the user. And the computer equipment can perform cluster analysis on the second nutrient identification set information to obtain the physiological target nutrient identification.
In an embodiment, the provided method for generating nutrient information may further include a process of generating first nutrient information, specifically including: and generating first nutrient information according to the first target nutrient identification and the physiological target nutrient identification.
The computer device may generate first nutrient information after obtaining the first target nutrient identifier and the physiological target nutrient identifier. In particular, the computer device may generate the first nutrient information based on all of the first target nutrient identifications and all of the physiological target nutrient identifications. For example, the nutrients corresponding to all the first target nutrient identifiers include vitamin a, vitamin B and vitamin C, the nutrients corresponding to all the physiological target nutrient identifiers include vitamin B7, vitamin B6 and zinc, and the generated first nutrient information may include vitamin a, a method for supplementing vitamin a and a time for supplementing vitamin a; vitamin B, a method for supplementing vitamin B and a time for supplementing vitamin B; vitamin C, a method for supplementing vitamin C and a time for supplementing vitamin C; vitamin B7, a method of supplementing vitamin B7, and a time for supplementing vitamin B7; vitamin B6, a method of supplementing vitamin B6, and a time for supplementing vitamin B6; zinc, a method for supplementing vitamin zinc and a time for supplementing vitamin zinc.
In another embodiment, the provided method for generating nutrient information may further include a process of generating first nutrient information, specifically including: and extracting a common nutrient identifier in the first target nutrient identifier and the physiological target nutrient identifier, and generating first nutrient information according to the common nutrient identifier.
The computer device may extract a co-nutrient identifier of the first target nutrient identifier and the physiological target nutrient identifier and generate first nutrient information from the co-nutrient identifier. For example, the nutrients corresponding to all the first target nutrient identifiers include vitamin a, vitamin B and vitamin C, the nutrients corresponding to all the physiological target nutrient identifiers include vitamin a, vitamin B6 and zinc, the common nutrient identifier in the first target nutrient identifiers and the physiological target nutrient identifiers is vitamin a, and the generated first nutrient information may include vitamin a, a method for supplementing vitamin a and a time for supplementing vitamin a.
In another embodiment, the provided method for generating nutrient information may further include a process of generating first nutrient information, specifically including: acquiring the nutrient weight corresponding to the first target nutrient identifier and the nutrient weight corresponding to the physiological target nutrient identifier; acquiring nutrient fractions corresponding to the first target nutrient identifications and nutrient fractions corresponding to the physiological target nutrient identifications according to the nutrient weights corresponding to the first target nutrient identifications and the nutrient weights corresponding to the physiological target nutrient identifications; sequencing each first target nutrient identifier according to the nutrient fraction corresponding to each first target nutrient identifier, and sequencing each physiological target nutrient identifier according to the nutrient fraction corresponding to each physiological target nutrient identifier; and generating first nutrient information according to the sorted first target nutrient identification and the sorted physiological target nutrient identification.
In another embodiment, the provided method for generating nutrient information may further include a process of generating first nutrient information, specifically including: and generating first nutrient information according to the preset number of first target nutrient marks and physiological target nutrient marks from the sorted first target nutrient marks and the sorted physiological target nutrient marks.
In another embodiment, the provided method for generating nutrient information may further include a process of generating first nutrient information, specifically including: and selecting part of nutrient marks in the first target nutrient marks and part of nutrient marks in the physiological target nutrient marks, and generating first nutrient information according to the selected part of nutrient marks.
The computer device may select a partial nutrient signature of the first nutrient signature of interest and a partial nutrient signature of the physiological nutrient signature of interest, and generate first nutrient information based on the selected partial nutrient signature. For example, the nutrients corresponding to all the first target nutrient identifiers include vitamin a, vitamin B and vitamin C, the nutrients corresponding to all the physiological target nutrient identifiers include vitamin B7, vitamin B6 and zinc, part of the first target nutrient identifiers selected by the computer device are vitamin a and vitamin B, part of the physiological target nutrient identifiers selected by the computer device are vitamin B7, and the generated first nutrient information may include vitamin a, a method for supplementing vitamin a and a time for supplementing vitamin a; vitamin B, a method for supplementing vitamin B and a time for supplementing vitamin B; vitamin B7, a method for supplementing vitamin B7, and a time for supplementing vitamin B7.
As shown in fig. 3, in an embodiment, the provided nutrient information generating method may further include a process of generating second nutrient information, and the specific steps include:
step 302, obtaining a usage duration, wherein the usage duration is used for representing a duration for supplementing nutrients according to the first nutrient information by the user.
The computer device may obtain a length of time of use entered by the user in accordance with the first nutrient information. Wherein the usage duration is used for representing the duration of the user supplementing the nutrients according to the first nutrient information. For example, the length of use may be 7 days, 10 days, 30 days, etc. The user may enter, in the computer device, a length of time to replenish the nutrient corresponding to the first target nutrient identification under the direction of the first nutrient information. For example, the user may enter a 15 day usage period in the computer device, with 15 days of nutrient supplementation corresponding to the first target nutrient identification as directed by the first nutrient information.
And 304, when the using time length is greater than a time length threshold value corresponding to the first target nutrient identifier, acquiring second user demand information.
The duration threshold may be a length of time value set by the user via the computer device. The computer device may compare the obtained usage duration input by the user with a duration threshold, and obtain a comparison result. For example, the duration threshold corresponding to the first target nutrient identifier is 30 days, the usage duration input by the user and obtained by the computer device is 35 days, and the computer device may obtain a comparison result that the usage duration is greater than the duration threshold.
The second user demand information may be one or more of the user demand information. The second user demand information may be used to represent the demand information after the user has supplemented the nutrient corresponding to the first target nutrient identifier according to the indication of the first nutrient information. For example, when the first user requirement information is acne removal, the computer device may acquire the second user requirement information for whitening after the user is supplemented with vitamin a and vitamin B6 according to the first nutrient information.
And when the comparison result obtained by the computer equipment indicates that the use duration is greater than the duration threshold, the computer equipment can obtain the second user requirement information.
Step 306, obtaining difference data between the first user requirement information and the second user requirement information.
The computer device can extract the demand information, the biochemical indexes of the user and the habits of the user from the first user demand information and the second user demand information. The difference data may be a specific numerical value. The computer device can calculate a first difference between demand information in the first user demand information and the second user demand information, a second difference between biochemical indicators of the users, and a third difference between habits of the users, calculate an average value among the first difference, the second difference, and the third difference, and use the calculated average value as difference data between the first user demand information and the second user demand information. For example, the first difference degree between the demand information in the first user demand information and the second user demand information calculated by the computer device is 8%, the second difference degree between the biochemical indicators of the users is 7%, the third difference degree between the habits of the users is 11%, and the average value between 8%, 7% and 11% calculated by the computer device is 8.7%, so that the difference data between the first user demand information and the second user demand information acquired by the computer device is 8.7%.
And step 308, when the difference data is smaller than the difference threshold value, instructing the user to supplement the corresponding nutrient according to the first nutrient information.
The difference threshold may be set by a user through a computer device, and the difference threshold may be used to represent a difference value between the first user requirement information and the second user requirement information. For example, the difference threshold may be 10%, 13%, 14%, etc. in value. After obtaining the difference data between the first user demand information and the second user demand information, the computer device may compare the obtained difference data with a difference threshold.
When the difference data is less than the difference threshold, indicating that the difference between the first user demand information and the second user demand information is small, at this point, the computer device may continue to instruct the user to replenish the nutrient corresponding to the first target nutrient identifier according to the first nutrient information.
And 310, when the difference data is larger than the difference threshold, generating a second target nutrient identifier according to the second user demand information, generating second nutrient information according to the second target nutrient identifier, and further instructing the user to supplement corresponding nutrients according to the second nutrient information, wherein the second nutrient information is used for instructing the user to supplement nutrients corresponding to the second target nutrient identifier.
When the difference data is greater than the difference threshold, it indicates that the difference between the first user demand information and the second user demand information is large. The computer device may generate a second target nutrient identifier from the second user demand information with reference to the method of generating the first target nutrient identifier from the first user demand information. For example, when the first user demand information is acne removal, and the second user demand information is whitening, the difference data between the first user demand information and the second user demand information is greater than a difference threshold, and the computer device may obtain, according to the second user demand information, second target nutrient identifiers, which are vitamin C, vitamin D, vitamin B3, and vitamin E. The computer device may generate second nutrient information based on the second user demand information and the second target nutrient identification, the second nutrient information being used to instruct the user to replenish the nutrient corresponding to the second target nutrient identification.
In this embodiment, the computer device obtains the usage duration, where the usage duration is used to indicate a duration in which the user supplements nutrients corresponding to the first target nutrient identifier, obtains the second user demand information when the usage duration is greater than a duration threshold, obtains difference data between the first user demand information and the second user demand information, instructs the user to supplement corresponding nutrients according to the first nutrient information when the difference data is less than the difference threshold, generates the second target nutrient identifier according to the second user demand information when the difference data is greater than the difference threshold, and generates the second nutrient information according to the second target nutrient identifier. The second nutrient information is used to instruct the user to replenish the nutrient corresponding to the second target nutrient identification. Further, the user can be instructed to supplement the corresponding nutrient according to the second nutrient information. The computer equipment obtains different target nutrient marks according to different user demand information, so that different nutrient information is generated to indicate the user to supplement nutrients, and personalized demands can be met.
In another embodiment, the provided method for generating nutrient information may further include a process of generating second nutrient information, where the specific process includes: acquiring differential nutrient marks between the first target nutrient mark and the second target nutrient mark, and counting the number of the differential nutrient marks; when the number of differential nutrient identifications is less than the number threshold, instructing the user to supplement the corresponding nutrient according to the first nutrient information; when the number of differential nutrient identifications is greater than the number threshold, instructing the user to replenish the corresponding nutrient according to the second nutrient information.
For example, the first target nutrient designation includes vitamin A, vitamin B6, and vitamin E, the second target nutrient designation includes vitamin A, β -carotene, selenium, and calcium, and the differential nutrient designation between the first target nutrient designation and the second target nutrient designation is vitamin B6, vitamin E, β -carotene, selenium, and calcium.
The quantity threshold may be user entered via a computer device to indicate the quantity of the differential nutrient designation, for example, the quantity threshold may be a specific number of 1, 4, 6, 19, etc., and the computer device may count the quantity of the differential nutrient designation, for example, the differential nutrient designations are vitamin B6, vitamin E, β -carotene, selenium, and calcium, and the computer device may count the quantity of the differential nutrient designation to 5.
The computer device may compare the counted number of differential nutrient identifications with a number threshold, and when the number of differential nutrient identifications is smaller than the number threshold, it indicates that the difference between the nutrient corresponding to the first target nutrient identification and the nutrient corresponding to the second target nutrient identification is smaller, and the computer device may continue to instruct the user to supplement the corresponding nutrient according to the first nutrient information. When the number of the differential nutrient identifications is larger than the number threshold, the difference between the nutrients corresponding to the first target nutrient identification and the nutrients corresponding to the second target nutrient identification is larger, the computer device can generate second nutrient information according to the second user demand information and the second target nutrient identification, and instruct the user to supplement corresponding nutrients according to the second nutrient information.
In this embodiment, the computer device obtains whether to continue to instruct the user to supplement the nutrients corresponding to the first target nutrient identifier according to the first nutrient information or to generate the second nutrient information to instruct the user to supplement the nutrients corresponding to the second target nutrient identifier by counting the number of the differential nutrient identifiers between the first target nutrient identifier and the second target nutrient identifier and comparing the number of the differential nutrient identifiers with a number threshold, so that the personalized demand can be met.
In an embodiment, the provided method for generating nutrient information may further include a process of generating third nutrient information, specifically including: acquiring index data, wherein the index data is used for representing various body indexes of a user after nutrients are supplemented according to the first nutrient information; and when the index data does not fall into the preset data range, acquiring third user demand information according to the index data, referring to a method for generating first nutrient information from the first user demand information, and generating third nutrient information according to the third user demand information.
For example, the index data can be hemoglobin 150 g/L, fasting blood glucose 5.6 mmol/L, urea 7.0 mmol/L, pantothenic acid 50ng/m L and riboflavin 18ng/m L, and it should be noted that the index data relates to, but is not limited to, the above physical indexes.
For example, the index data input by the user through the computer device is 100 g/L of hemoglobin, the preset data range is 110 g/L-150 g/L of hemoglobin, and the content of the hemoglobin meets the preset data range.
The computer device may obtain third user demand information according to the index data, for example, the index data obtained by the computer device is hemoglobin 100 g/L, the third user demand information obtained by the computer device is anemia, the computer device may obtain a third target nutrient identifier according to the third user demand information, and thereby generate third nutrient information.
In this embodiment, when the index data does not fall within the preset data range, the computer device acquires third user demand information according to the index data, and generates third nutrient information with reference to a method of generating the first nutrient information from the first user demand information. The computer equipment generates corresponding third nutrient information according to the body indexes of the user, and the pertinence of nutrient supplement can be improved.
In one embodiment, when the index data does not fall within the preset data range, a first endpoint value and a second endpoint value of the preset data range are acquired; wherein the first endpoint value is less than the second endpoint value; when the index data is smaller than the first endpoint value, acquiring a first difference value between the index data and the first endpoint value, and adjusting first nutrient information according to the first difference value; when the index data is larger than the second endpoint value, acquiring a second difference value between the index data and the second endpoint value, and adjusting the first nutrient information according to the second difference value; and obtaining third nutrient information according to the adjusted first nutrient information.
The computer device may obtain a first endpoint value and a second endpoint value of the preset data range and the first endpoint value is less than the second endpoint value, for example, the preset data range of fasting blood glucose is 3.9 mmol/L-5.6 mmol/L, the first endpoint value is 3.9 mmol/L, and the second endpoint value is 5.6 mmol/L, the computer device may compare the obtained index data with the first endpoint value and the second endpoint value, the computer device may obtain a first difference between the index data and the first endpoint value when the index data is less than the first endpoint value, and adjust the first nutrient information according to the first difference, the preset data range of fasting blood glucose is 3.9 mmol/L-5.6 mmol/L, the index data obtained by the computer device is 3.7 mmol/L, the computer device may obtain a first difference between the index data and the first endpoint value of 0.2 mmol/L, and the computer device may obtain a third nutrient information after adjusting the content of the first nutrient information according to the first difference.
In one embodiment, when the indicator data is greater than the second endpoint value, a second difference between the indicator data and the second endpoint value is obtained, and the first nutrient information is adjusted according to the second difference, and adjusted third nutrient information is obtained.
For example, the predetermined data range of fasting blood glucose is 3.9 mmol/L-5.6 mmol/L, the first endpoint value is 3.9 mmol/L, and the second endpoint value is 5.6 mmol/L. the computer device may compare the acquired index data with the first endpoint value and the second endpoint value, and when the index data is greater than the second endpoint value, the computer device may acquire a second difference between the index data and the second endpoint value, and adjust the first nutrient information according to the second difference value, for example, the predetermined data range of fasting blood glucose is 3.9 mmol/L-5.6 mmol/L, the index data acquired by the computer device is 5.7 mmol/L, the computer device may acquire a second difference value between the index data and the second endpoint value of 0.1 mmol/64, and the computer device may adjust the content of the second nutrient information according to the second difference value, and obtain a third nutrient information after adjusting the content of the second nutrient information.
It should be understood that, although the steps in the respective flowcharts described above are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in each of the flowcharts described above may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a nutrient information generating apparatus including: a user characterization information acquisition module 410, a nutrient identification set information acquisition module 420, a cluster analysis module 430, and a nutrient information generation module 440, wherein:
a user representation information obtaining module 410, configured to obtain first user requirement information, and obtain first user representation information according to a relationship between the user requirement information and the user representation information, where the first user representation information corresponds to the first user requirement information;
a nutrient identifier set information obtaining module 420, configured to obtain first nutrient identifier set information according to a relationship between the user characterization information and the nutrient identifier, where the first nutrient identifier set information corresponds to the user characterization information;
the cluster analysis module 430 is configured to perform cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and a nutrient information generating module 440, configured to generate first nutrient information according to the first target nutrient identifier, where the first nutrient information is used to instruct the user to supplement the nutrient corresponding to the first target nutrient identifier.
In one embodiment, the cluster analysis module 430 includes: the nutrient weight acquisition module, the nutrient fraction acquisition module and the nutrient identification acquisition module. Wherein:
the nutrient weight acquisition module is used for respectively acquiring the nutrient weight corresponding to the nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information;
the nutrient score acquisition module is used for acquiring nutrient scores corresponding to all the nutrient identifiers according to the nutrient weight and the first nutrient identifier set information;
the nutrient identifier acquisition module is used for acquiring a first target nutrient identifier according to the nutrient fraction corresponding to each nutrient identifier;
the nutrient identifier acquisition module can also be used for sequencing each nutrient identifier according to the nutrient score corresponding to each nutrient identifier to obtain the sequenced nutrient identifiers; and acquiring a first target nutrient identifier from the sequenced nutrient identifiers.
In one embodiment, the nutrient identifier obtaining module is further configured to output a preset number of nutrient identifiers from the sorted nutrient identifiers as the first target nutrient identifier.
In one embodiment, the nutrient information generating apparatus further includes: user characteristic information acquisition module and nutrient weight adjustment module, wherein:
the user characteristic information acquisition module is used for acquiring user characteristic information;
the nutrient weight adjusting module is used for adjusting the nutrient weight corresponding to the nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information according to the user characteristic information to obtain the adjusted nutrient weight;
the nutrient identifier acquisition module is further used for carrying out cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information and acquiring nutrient scores corresponding to all the nutrient identifiers.
In one embodiment, the nutrient information generating apparatus further includes: the system comprises a user physiological information acquisition module, a second nutrient identification set information acquisition module and a physiological target nutrient identification acquisition module, wherein:
the user physiological information acquisition module is used for acquiring user physiological information;
the second nutrient identifier set information acquisition module is used for acquiring second nutrient identifier set information according to the relationship between the user physiological information and the nutrient identifier set information, wherein the second nutrient identifier set information corresponds to the user physiological information;
the physiological target nutrient identifier acquisition module is used for carrying out cluster analysis on the second nutrient identifier set information to obtain a physiological target nutrient identifier;
the nutrient information generation module is also used for generating first nutrient information according to the first target nutrient identification and the physiological target nutrient identification.
In one embodiment, the nutrient information generation module is further configured to extract a co-nutrient identifier of the first target nutrient identifier and the physiological target nutrient identifier, and generate the first nutrient information according to the co-nutrient identifier.
In one embodiment, the nutrient information generation module is further configured to obtain a nutrient weight corresponding to the first target nutrient identifier and a nutrient weight corresponding to the physiological target nutrient identifier; acquiring nutrient fractions corresponding to the first target nutrient identifications and nutrient fractions corresponding to the physiological target nutrient identifications according to the nutrient weights corresponding to the first target nutrient identifications and the nutrient weights corresponding to the physiological target nutrient identifications; sequencing each first target nutrient identifier according to the nutrient fraction corresponding to each first target nutrient identifier, and sequencing each physiological target nutrient identifier according to the nutrient fraction corresponding to each physiological target nutrient identifier; and generating first nutrient information according to the sorted first target nutrient identification and the sorted physiological target nutrient identification.
In one embodiment, the nutrient information generation module is further configured to generate the first nutrient information according to a preset number of the first target nutrient identifiers and the physiological target nutrient identifiers from the sorted first target nutrient identifiers and the sorted physiological target nutrient identifiers.
In one embodiment, the nutrient information generation module is further configured to select a partial nutrient identifier of the first target nutrient identifier and a partial nutrient identifier of the physiological target nutrient identifier, and generate the first nutrient information according to the selected partial nutrient identifier.
In one embodiment, the nutrient information generating apparatus further includes: duration acquisition module, second user demand information acquisition module, difference data acquisition module, first nutrient information indicating module and second nutrient information indicating module, wherein:
the duration acquisition module is used for acquiring the use duration which is used for expressing the duration of supplementing the nutrients according to the first nutrient information by the user;
the second user demand information acquisition module is used for acquiring second user demand information when the using time length is greater than the time length threshold;
the difference data acquisition module is used for acquiring difference data between the first user requirement information and the second user requirement information;
the first nutrient information indicating module is used for indicating the user to supplement corresponding nutrients according to the first nutrient information when the difference data is smaller than or equal to the difference threshold value;
and the second nutrient information indicating module is used for generating a second target nutrient identifier according to the second user demand information and generating second nutrient information according to the second target nutrient identifier when the difference data is larger than the difference threshold, wherein the second nutrient information is used for indicating the user to supplement nutrients corresponding to the second target nutrient identifier.
Further, the second nutrient information indication module is further used for indicating the user to supplement the corresponding nutrient according to the second nutrient information.
In one embodiment, the nutrient information generating device further comprises a quantity counting module for acquiring a differential nutrient identifier between the first target nutrient identifier and the second target nutrient identifier, and counting the quantity of the differential nutrient identifiers;
the first nutrient information indicating module is further used for indicating the user to supplement corresponding nutrients according to the first nutrient information when the number of the differential nutrient identifications is smaller than the number threshold;
the second nutrient information indication module is further used for indicating the user to supplement the corresponding nutrient according to the second nutrient information when the number of the differential nutrient identifications is larger than the number threshold.
In one embodiment, the nutrient information generating apparatus further includes: index data acquisition module and third nutrient information generation module, wherein:
the index data acquisition module is used for acquiring index data, and the index data is used for representing various body indexes of the user after the nutrients are supplemented according to the first nutrient information;
the third nutrient information generation module is used for acquiring third user demand information according to the index data when the index data does not fall into the preset data range, generating the third nutrient information according to the third user demand information by referring to a method for generating the first nutrient information from the first user demand information; or
The third nutrient information generation module is used for acquiring a first endpoint value and a second endpoint value of the preset data range when the index data does not fall into the preset data range; wherein the first endpoint value is less than the second endpoint value; when the index data is smaller than the first endpoint value, acquiring a first difference value between the index data and the first endpoint value, and adjusting first nutrient information according to the first difference value; when the index data is larger than the second endpoint value, acquiring a second difference value between the index data and the second endpoint value, and adjusting the first nutrient information according to the second difference value; and obtaining third nutrient information according to the adjusted first nutrient information.
For specific limitations of the nutrient information generation device, reference may be made to the above limitations of the nutrient information generation method, which are not described herein again. The modules in the nutrient information generation device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal or an electronic device, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and an input device connected through a system bus, and when the computer device is a terminal, the computer device may include a display screen. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a nutrient information generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the nutrient information generation method.
It will be understood by those of ordinary skill in the art that all or a portion of the processes of the methods of the embodiments described above may be implemented by a computer program that may be stored on a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (16)
1. A method of generating nutrient information, the method comprising:
acquiring first user demand information, and acquiring first user characterization information according to the relationship between the user demand information and the user characterization information, wherein the first user characterization information corresponds to the first user demand information;
obtaining first nutrient identification set information according to the relationship between user characterization information and nutrient identification, wherein the first nutrient identification set information corresponds to the first user characterization information;
performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and generating first nutrient information according to the first target nutrient identification, wherein the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identification.
2. The method of claim 1, wherein the performing cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier comprises:
respectively acquiring nutrient weights corresponding to nutrient identifiers corresponding to the first user characteristic information in the first nutrient identifier set information;
acquiring nutrient fractions corresponding to the nutrient identifications according to the nutrient weight and the first nutrient identification set information;
obtaining a first target nutrient mark according to the nutrient fraction corresponding to each nutrient mark;
the obtaining a first target nutrient identifier according to the nutrient score corresponding to each nutrient identifier may further include:
sequencing the nutrient identifications according to the nutrient fractions corresponding to the nutrient identifications to obtain sequenced nutrient identifications;
and acquiring the first target nutrient identifier from the sequenced nutrient identifiers.
3. The method of claim 2, further comprising:
acquiring user characteristic information;
according to the user characteristic information, adjusting the nutrient weight corresponding to the nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information to obtain the adjusted nutrient weight;
the obtaining of the nutrient score corresponding to each nutrient identifier according to the nutrient weight and the first nutrient identifier set information includes:
and performing cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information, and acquiring nutrient scores corresponding to all the nutrient identifiers.
4. The method of claim 1, further comprising:
acquiring physiological information of a user;
obtaining second nutrient identifier set information according to the relation between the user physiological information and the nutrient identifiers, wherein the second nutrient identifier set information corresponds to the user physiological information;
performing clustering analysis on the second nutrient identification set information to obtain physiological target nutrient identifications;
the generating process of the first nutrient information further comprises:
generating first nutrient information according to the first target nutrient identification and the physiological target nutrient identification; or
And extracting a common nutrient identifier in the first target nutrient identifier and the physiological target nutrient identifier, and generating first nutrient information according to the common nutrient identifier.
5. The method of claim 1, wherein after generating first nutrient information based on the first target nutrient identification, further comprising:
acquiring the use duration, wherein the use duration is used for representing the duration of supplementing nutrients to a user according to the first nutrient information;
when the use duration is greater than a duration threshold, second user demand information is acquired;
acquiring difference data between the first user demand information and the second user demand information;
when the difference data is less than or equal to a difference threshold, instructing the user to supplement the corresponding nutrient according to the first nutrient information;
and when the difference data is larger than a difference threshold value, generating a second target nutrient identifier according to the second user demand information, generating second nutrient information according to the second target nutrient identifier, and further instructing the user to supplement corresponding nutrients according to the second nutrient information, wherein the second nutrient information is used for instructing the user to supplement the nutrients corresponding to the second target nutrient identifier.
6. The method of claim 5, wherein after generating a second target nutrient identification from the second user demand information, further comprising:
acquiring differential nutrient marks between the first target nutrient mark and the second target nutrient mark, and counting the number of the differential nutrient marks;
when the number of the differential nutrient identifications is smaller than a number threshold, instructing the user to supplement the corresponding nutrient according to the first nutrient information;
when the number of the differential nutrient identifications is larger than a number threshold, instructing the user to supplement the corresponding nutrient according to the second nutrient information.
7. The method of claim 1, wherein after generating first nutrient information based on the first target nutrient identification, further comprising:
acquiring index data, wherein the index data is used for representing various body indexes of a user after nutrients are supplemented according to the first nutrient information;
when the index data does not fall into a preset data range, acquiring third user demand information according to the index data, referring to a method for generating first nutrient information from the first user demand information, and generating third nutrient information according to the third user demand information; or
When the index data does not fall into a preset data range, acquiring a first endpoint value and a second endpoint value of the preset data range; wherein the first endpoint value is less than the second endpoint value;
when the index data is smaller than the first endpoint value, acquiring a first difference value between the index data and the first endpoint value, and adjusting the first nutrient information according to the first difference value;
when the index data is larger than the second endpoint value, acquiring a second difference value between the index data and the second endpoint value, and adjusting the first nutrient information according to the second difference value;
and obtaining third nutrient information according to the adjusted first nutrient information.
8. A nutrient information generation apparatus, characterized in that the apparatus comprises:
the user representation information acquisition module is used for acquiring first user requirement information and acquiring first user representation information according to the relationship between the user requirement information and the user representation information, wherein the first user representation information corresponds to the first user requirement information;
the nutrient identification set information acquisition module is used for acquiring first nutrient identification set information according to the relationship between user representation information and nutrient identifications, wherein the first nutrient identification set information corresponds to the first user representation information;
the cluster analysis module is used for carrying out cluster analysis on the first nutrient identifier set information to obtain a first target nutrient identifier;
and the nutrient information generating module is used for generating first nutrient information according to the first target nutrient identifier, and the first nutrient information is used for instructing a user to supplement the nutrient corresponding to the first target nutrient identifier.
9. The apparatus of claim 8, wherein the cluster analysis module comprises:
a nutrient weight obtaining module, configured to obtain, respectively, a nutrient weight corresponding to a nutrient identifier corresponding to each first user characteristic information in the first nutrient identifier set information;
a nutrient score obtaining module, configured to obtain, according to the nutrient weight and the first nutrient identifier set information, a nutrient score corresponding to each nutrient identifier;
the nutrient identifier acquisition module is used for acquiring a first target nutrient identifier according to the nutrient fraction corresponding to each nutrient identifier;
the nutrient identifier acquisition module can be further used for sequencing each nutrient identifier according to the nutrient fraction corresponding to each nutrient identifier to obtain the sequenced nutrient identifiers; and acquiring the first target nutrient identifier from the sequenced nutrient identifiers.
10. The apparatus of claim 9, further comprising:
the user characteristic information acquisition module is used for acquiring user characteristic information;
a nutrient weight adjusting module, configured to adjust, according to the user feature information, a nutrient weight corresponding to a nutrient identifier corresponding to each first user feature information in the first nutrient identifier set information to obtain an adjusted nutrient weight;
the nutrient identifier obtaining module is further configured to perform cluster analysis on the adjusted nutrient weight and the first nutrient identifier set information, and obtain a nutrient score corresponding to each nutrient identifier.
11. The apparatus of claim 8, further comprising:
the user physiological information acquisition module is used for acquiring user physiological information;
the second nutrient identifier set information acquisition module is used for acquiring second nutrient identifier set information according to the relationship between the user physiological information and the nutrient identifier set information, wherein the second nutrient identifier set information corresponds to the user physiological information;
the physiological target nutrient identifier acquisition module is used for carrying out cluster analysis on the second nutrient identifier set information to obtain a physiological target nutrient identifier;
the nutrient information generation module is further used for generating first nutrient information according to the first target nutrient identification and the physiological target nutrient identification; or the first nutrient information is used for extracting a common nutrient mark in the first target nutrient mark and the physiological target nutrient mark and generating first nutrient information according to the common nutrient mark.
12. The apparatus of claim 8, further comprising:
the duration obtaining module is used for obtaining the duration of use, and the duration of use is used for representing the duration of supplementing nutrients for a user according to the first nutrient information;
the second user demand information acquisition module is used for acquiring second user demand information when the using time length is greater than a time length threshold;
the difference data acquisition module is used for acquiring difference data between the first user requirement information and the second user requirement information;
a first nutrient information indicating module for indicating the user to supplement corresponding nutrients according to the first nutrient information when the difference data is less than or equal to a difference threshold;
and the second nutrient information indicating module is used for generating a second target nutrient identifier according to the second user demand information when the difference data is larger than the difference threshold, generating second nutrient information according to the second target nutrient identifier, and further indicating the user to supplement corresponding nutrients according to the second nutrient information, wherein the second nutrient information is used for indicating the user to supplement the nutrients corresponding to the second target nutrient identifier.
13. The apparatus of claim 12, further comprising:
the quantity counting module is used for acquiring a differential nutrient identifier between the first target nutrient identifier and the second target nutrient identifier and counting the quantity of the differential nutrient identifiers;
the first nutrient information indicating module is further used for indicating a user to supplement corresponding nutrients according to the first nutrient information when the number of the differential nutrient identifications is smaller than a number threshold;
the second nutrient information indicating module is further used for indicating the user to supplement corresponding nutrients according to the second nutrient information when the number of the differential nutrient identifications is larger than a number threshold.
14. The apparatus of claim 8, further comprising:
the index data acquisition module is used for acquiring index data, and the index data is used for representing various body indexes of the user after nutrients are supplemented according to the first nutrient information;
the third nutrient information generation module is used for acquiring third user demand information according to the index data when the index data does not fall into a preset data range, generating the third nutrient information according to the third user demand information by referring to a method for generating the first nutrient information from the first user demand information; or
The third nutrient information generation module is used for acquiring a first endpoint value and a second endpoint value of a preset data range when the index data does not fall into the preset data range; wherein the first endpoint value is less than the second endpoint value; when the index data is smaller than the first endpoint value, acquiring a first difference value between the index data and the first endpoint value, and adjusting the first nutrient information according to the first difference value; when the index data is larger than the second endpoint value, acquiring a second difference value between the index data and the second endpoint value, and adjusting the first nutrient information according to the second difference value; and obtaining third nutrient information according to the adjusted first nutrient information.
15. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
16. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910027083.6A CN111435609B (en) | 2019-01-11 | 2019-01-11 | Nutrient information generation method, nutrient information generation device, nutrient information generation computer equipment and nutrient information storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910027083.6A CN111435609B (en) | 2019-01-11 | 2019-01-11 | Nutrient information generation method, nutrient information generation device, nutrient information generation computer equipment and nutrient information storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111435609A true CN111435609A (en) | 2020-07-21 |
CN111435609B CN111435609B (en) | 2023-05-30 |
Family
ID=71580505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910027083.6A Active CN111435609B (en) | 2019-01-11 | 2019-01-11 | Nutrient information generation method, nutrient information generation device, nutrient information generation computer equipment and nutrient information storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111435609B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111883230A (en) * | 2019-12-18 | 2020-11-03 | 深圳数字生命研究院 | Method and device for generating diet data, storage medium and electronic device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006302304A (en) * | 2006-06-01 | 2006-11-02 | Nutrition Act Co Ltd | Device, method and program for determining composition |
CN103455699A (en) * | 2012-05-31 | 2013-12-18 | 杨玉峰 | Method and system for generating personalized lifestyle intervention scheme automatically |
CN105426374A (en) * | 2014-09-19 | 2016-03-23 | 重庆倚铭健康管理咨询有限公司 | Health data processing method, apparatus, and system |
JPWO2017085777A1 (en) * | 2015-11-17 | 2017-11-24 | 株式会社日立製作所 | Ingredient proposal device, ingredient proposal method and ingredient proposal program |
CN108364677A (en) * | 2018-03-13 | 2018-08-03 | 汤臣倍健股份有限公司 | A kind of evaluating method and its device based on various dimensions health control model |
CN108461124A (en) * | 2018-03-27 | 2018-08-28 | 周梦杰 | Nutrition Management method based on personalized precision and diet guide system |
CN108492876A (en) * | 2018-03-13 | 2018-09-04 | 汤臣倍健股份有限公司 | A kind of evaluating method and evaluating apparatus based on health control model |
CN109102855A (en) * | 2018-07-03 | 2018-12-28 | 北京康夫子科技有限公司 | Drug recommended method |
-
2019
- 2019-01-11 CN CN201910027083.6A patent/CN111435609B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006302304A (en) * | 2006-06-01 | 2006-11-02 | Nutrition Act Co Ltd | Device, method and program for determining composition |
CN103455699A (en) * | 2012-05-31 | 2013-12-18 | 杨玉峰 | Method and system for generating personalized lifestyle intervention scheme automatically |
CN105426374A (en) * | 2014-09-19 | 2016-03-23 | 重庆倚铭健康管理咨询有限公司 | Health data processing method, apparatus, and system |
JPWO2017085777A1 (en) * | 2015-11-17 | 2017-11-24 | 株式会社日立製作所 | Ingredient proposal device, ingredient proposal method and ingredient proposal program |
US20190027060A1 (en) * | 2015-11-17 | 2019-01-24 | Hitachi, Ltd. | Food proposing system, food proposing method and food proposing program |
CN108364677A (en) * | 2018-03-13 | 2018-08-03 | 汤臣倍健股份有限公司 | A kind of evaluating method and its device based on various dimensions health control model |
CN108492876A (en) * | 2018-03-13 | 2018-09-04 | 汤臣倍健股份有限公司 | A kind of evaluating method and evaluating apparatus based on health control model |
CN108461124A (en) * | 2018-03-27 | 2018-08-28 | 周梦杰 | Nutrition Management method based on personalized precision and diet guide system |
CN109102855A (en) * | 2018-07-03 | 2018-12-28 | 北京康夫子科技有限公司 | Drug recommended method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111883230A (en) * | 2019-12-18 | 2020-11-03 | 深圳数字生命研究院 | Method and device for generating diet data, storage medium and electronic device |
CN111883230B (en) * | 2019-12-18 | 2024-05-07 | 深圳数字生命研究院 | Diet data generation method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN111435609B (en) | 2023-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Rabbi et al. | Automated personalized feedback for physical activity and dietary behavior change with mobile phones: a randomized controlled trial on adults | |
Langs et al. | VISCERAL: towards large data in medical imaging—challenges and directions | |
Hodges et al. | Changes in coordination, control and outcome as a result of extended practice on a novel motor skill | |
Szwoch et al. | Facial emotion recognition using depth data | |
CN110085318A (en) | Predict the method, apparatus and computer equipment of future blood glucose value | |
JP2007097625A (en) | Apparatus for evaluating skin condition, program for evaluating skin condition, and storage medium readable by computer for storing this program | |
CN109978738B (en) | Class-dividing method and device, computer equipment and storage medium | |
US11984215B2 (en) | Methods and systems for informing product decisions | |
WO2021029332A1 (en) | Genetic testing method for implementing skin care counseling | |
CN111435609A (en) | Nutrient information generation method and device, computer equipment and storage medium | |
CN109726713A (en) | User's area-of-interest detection system and method based on consumer level Eye-controlling focus instrument | |
de Beeck | Category trumps shape as an organizational principle of object space in the human occipitotemporal cortex | |
Georgievskaya | Artificial intelligence confirming treatment success: the role of gender-and age-specific scales in performance evaluation | |
CN109310475A (en) | System and method for automatically generating facial repair capsule and application scheme to solve the facial deviation of observable | |
Zhou et al. | Bidirectional understanding and cooperation: interbrain neural synchronization during social navigation | |
Egeonu et al. | A systematic literature review of computer vision-based biomechanical models for physical workload estimation | |
CN114209288B (en) | Skin state prediction method, skin state prediction device, apparatus, and storage medium | |
KR20230142876A (en) | System and method for providing hair care service based on analysis information of user's hair and scalp | |
JP6616541B1 (en) | A measurement method for displaying the degree of color of makeup glue on an image by AI judgment. | |
CN113780339A (en) | Model training, predicting and content understanding method and electronic equipment | |
Deng et al. | Advancing Saliency Ranking with Human Fixations: Dataset Models and Benchmarks | |
Jiminez et al. | Use of Artificial Intelligence in Skin Aging | |
Guhe et al. | Towards an affective cognitive architecture | |
KR20200076821A (en) | Vibration Pattern Information Generation System and Method for Improving Efficiency of Applied Vibration in Skin | |
EP4439437A1 (en) | Information processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20221102 Address after: Room 1401, Building 1, Yinxing Zhijie, No. 1301-70, Sightseeing Road, Xinlan Community, Guanlan Street, Longhua District, Shenzhen, Guangdong 518000 Applicant after: Shenzhen Micro companion Medical Laboratory Address before: 518053 310, Floor 3, B #, AVIC Shahe Industrial Zone, No. 4018, Qiaoxiang Road, Nanshan District, Shenzhen, Guangdong Applicant before: SHENZHEN ICARBONX INTELLIGENT DIGITAL LIFE HEALTH MANAGEMENT Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |