Prediction method and system for pregnancy dietary inflammation potential
By designing a dietary inflammatory potential prediction system during pregnancy and automatically processing and analyzing user data, the problem of inaccurate dietary assessment in the existing technology is solved, and more efficient and personalized dietary recommendations are achieved to meet the health and taste needs of users.
Patent Information
- Application Number
- CN202411140167.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-09-17
AI Technical Summary
Existing methods for predicting dietary inflammatory potential during pregnancy are difficult to accurately estimate the user's dietary intake and nutrient intake, and cannot automatically process and analyze the user's dietary data, resulting in inaccurate and inefficient assessments.
A prediction system for dietary inflammation potential during pregnancy is designed, including a user basic data collection module, a dietary inflammation index calculation module, a food type and portion estimation module, a user dietary inflammation level calculation module and a user pregnancy diet recommendation module. Through automated processing and analysis of users Basic data and meal image data to achieve accurate calculation and recommendation of dietary inflammation index, dietary inflammation level and food preferences.
It improves data processing efficiency, reduces human errors, provides more accurate and personalized dietary suggestions, can promptly detect and improve users' dietary problems, and meet users' taste and health needs.
Smart Images

Figure CN118658587A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and system for predicting dietary inflammatory potential during pregnancy. Background Art
[0002] Dietary inflammatory potential during pregnancy refers to the potential for the nutrients and food choices in the diet to affect the level of inflammation in the body during pregnancy. Conventional methods for predicting dietary inflammatory potential during pregnancy often combine the knowledge and guidance of medical staff to conduct detailed analysis and evaluation of the potential for the nutrients and food choices in the diet to affect the level of inflammation in the body, and help pregnant women to reasonably adjust their diet structure. In this process, it is difficult to accurately estimate the user's dietary intake, nutrient intake, and dietary preferences because users cannot accurately report their dietary intake or preferences. With the development of the Internet and computers, advanced Internet technology and the vibrant artificial intelligence are playing an increasingly important role in different industries. How to combine the prediction method of dietary inflammatory potential during pregnancy with computer technology has become a problem. Summary of the invention
[0003] In order to solve the above technical problems, the present invention proposes a method and system for predicting the inflammatory potential of diet during pregnancy, so as to solve at least one of the above technical problems.
[0004] The present application provides a prediction system for dietary inflammatory potential during pregnancy, the system comprising a user basic data collection module, a dietary inflammatory index calculation module, a food type and portion estimation module, a user dietary inflammatory level calculation module and a user pregnancy diet recommendation module, wherein: A user basic data collection module is used to obtain user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data and user dietary preference data; A dietary inflammation index calculation module is used to calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; A food type and quantity estimation module is used to obtain user meal image data, and estimate food types and quantities based on the user meal image data to obtain food type and quantity data; A user dietary inflammation level calculation module, used to calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data, and obtain the user's dietary inflammation level data; The user pregnancy diet recommendation module is used to calculate preferences based on food types and portion data to obtain user food preference data, and to make diet recommendations based on user food preference data and user dietary inflammation level data to obtain user pregnancy diet recommendation data in order to perform dietary inflammation potential prediction operations during pregnancy.
[0005] The present invention realizes automatic processing and analysis of user basic data and meal image data, improves the efficiency of data processing, saves human resources, and reduces the possibility of human error. It can realize high-speed processing and accurate calculation of large amounts of data, help improve the accuracy and precision of user dietary inflammation index, dietary inflammation level and food preference data, and facilitate more accurate assessment of user's diet, and provide dietary recommendations that meet user needs. User basic data and meal image data are integrated and analyzed to form accurate user dietary information. The present invention realizes real-time processing and analysis of data, can promptly discover problems in user's diet, and promptly make suggestions for improvement.
[0006] Preferably, the dietary inflammation index is calculated according to the user basic data to obtain the user dietary inflammation index data, which is specifically used for: S21: performing user data preprocessing on user basic data to obtain user preprocessed data; S22: extracting age and weight factors from the user preprocessed data to obtain age and weight factor data; S23: extracting pregnancy cycle factors from the user preprocessed data to obtain pregnancy cycle factor data; S24: extracting dietary preference factors from the user preprocessed data to obtain dietary preference factor data; S25: Calculate the dietary inflammation index for the age and weight factor data, the pregnancy period factor data, and the dietary preference factor data to obtain the user's dietary inflammation index data.
[0007] In the present invention, by preprocessing the user's basic data, the data can be cleaned and standardized, noise and outliers can be removed, the quality and reliability of the data can be improved, and the accuracy and credibility of the subsequent calculation process can be improved. By extracting factors from the user's preprocessed data, the complex original data is converted into more abstract and high-dimensional factor data, which helps to more comprehensively describe the user's characteristics and status, and improves the expression and abstraction capabilities of the information. Calculating the dietary inflammation index based on the extracted factor data can more scientifically evaluate the user's dietary status and potential inflammation level. The present invention can improve data quality, abstraction ability and analysis efficiency, and provide reliable data support for providing users with personalized and scientific dietary recommendations.
[0008] Preferably, S21 is specifically: Perform missing value processing on user basic data to obtain missing value processed data, wherein the missing value processed data includes text missing processed data, image missing processed data and numerical missing processed data; When it is determined that the missing value processing data is text missing processing data or image missing processing data, the missing value processing data is determined as user pre-processing data; When it is determined that the missing value processing data is numerical missing processing data, historical user basic data is acquired based on the user basic data to obtain the historical user basic data, and the historical user basic data is used to perform statistical feature judgment on the missing value processing data to obtain user preprocessing data; The specific steps for handling missing values are: Perform missing value judgment on user basic data to obtain missing value judgment data, wherein the missing value judgment data includes text missing data, image missing data and numerical missing data; When it is determined that the missing value judgment data is text missing data, a text completion operation is performed to obtain text missing processing data; When it is determined that the missing value judgment data is image missing data, an image completion operation is performed to obtain image missing processing data; When it is determined that the missing value judgment data is numerical missing data, the user basic data is supplemented with a predicted value to obtain first numerical missing processing data; Filling the user basic data with neighboring data to obtain second value missing processing data; A weighted calculation is performed on the first missing value processing data and the second missing value processing data to obtain the missing value processing data.
[0009] The present invention proposes different processing methods for missing data of text, image and numerical types existing in user basic data, so that the missing value processing is more comprehensive and comprehensive. For different types of missing data, the present invention proposes personalized processing strategies, while the existing technology often only processes a certain type of missing data, lacking comprehensiveness and integration. For text missing data and image missing data, they are directly determined as user preprocessing data, reducing additional processing steps; and for numerical missing data, statistical feature judgment is performed based on historical user basic data or neighbor data is used to fill in to ensure the integrity and accuracy of the data. The present invention can more accurately predict missing data of numerical types by using historical user basic data for missing value processing, thereby improving the accuracy and credibility of data processing. For numerical missing value processing data, the present invention adopts a weighted calculation method, using the first missing value processing data and the second missing value processing data to obtain a more reasonable and accurate filling result, thereby improving the effect of data filling.
[0010] Preferably, the acquiring of the user's meal image data and the estimation of the food type and quantity based on the user's meal image data to obtain the food type and quantity data are specifically used for: S31: Acquire user meal image data; S32: Performing food object detection on the user's meal image data to obtain food object detection data; S33: classifying the food target detection data to obtain food classification data; S34: performing instance segmentation on the user's meal image data according to the food classification data to obtain food instance segmentation data; S35: performing portion estimation on the food instance segmentation data to obtain food portion estimation data; S36: Generate vectors of the food classification data and the food portion estimation data to obtain food type and portion data.
[0011] The present invention can collect the user's dietary information, including the types and quantities of various foods, by acquiring the user's meal image data, thereby providing a richer data basis for subsequent analysis and evaluation. Through food target detection and classification technology, the food in the image can be automatically identified and classified, realizing the automated processing of the user's meal image data, saving manpower and time costs. Through instance segmentation and component estimation technology, the food in the image can be accurately segmented and its component can be estimated, improving the accuracy and credibility of data processing. Vectorizing food classification data and component estimation data can better express food types and component information, providing a more efficient and convenient data form for subsequent data analysis and modeling. By obtaining accurate food types and component information, the user's dietary situation can be more accurately evaluated.
[0012] Preferably, S35 is specifically: S351: performing food size analysis on the food instance segmentation data to obtain food size data; S352: Calculate the food volume based on the food size data to obtain food volume data; S353: Obtaining food density data according to the food classification data, and estimating the food type according to the food density data and the food volume data to obtain food weight data; S354: Calculate the food calories according to the food weight data through the preset food calorie association table data to obtain food calorie data; S355: Integrate the food size data, food volume data, food weight data and food calorie data to obtain food portion estimation data.
[0013] In the present invention, by performing food size analysis and volume calculation on the food instance segmentation data, the size and volume of the food can be better understood, providing accurate basic data for subsequent analysis and estimation. By obtaining food density data and estimating food types, the weight of the food can be estimated more accurately, improving the accuracy and credibility of the food weight data. According to the preset food calorie association table data, the calories of the food can be quickly calculated through the food weight data, providing an effective basis for evaluation and analysis of the calorie intake of the user. By integrating the food size data, food volume data, food weight data and food calorie data, the nutritional components and calorie content of the food can be better understood, providing more comprehensive and accurate data support for the user's dietary health management. Conventional technical means often adopt rule estimation methods including food classification and volume / weight, and use empirical formulas or standard values to estimate the calories or other nutritional components of food based on known food types and volume / weight information. It is simple and direct, but the accuracy is limited and it is easily affected by factors such as food shape and density. The present invention performs instance segmentation on user meal image data by utilizing food classification data, and then combines steps such as food size analysis, volume calculation, food density estimation and calorie calculation to achieve in-depth estimation of food portions, thereby obtaining more accurate and comprehensive food portion estimation results.
[0014] Preferably, S351 is specifically: Performing contour extraction on the food instance segmentation data to obtain food contour data; Obtaining food shooting parameter data corresponding to the user's meal image data; Calculate the perspective transformation matrix according to the food shooting parameter data to obtain the perspective transformation matrix data; Using perspective transformation matrix data to transform food outline data, obtain food signature perspective transformation data; Measure the size of the food contour data to obtain food size measurement data; The food size measurement data is converted into size units according to the image resolution data corresponding to the user's meal image data to obtain the food size data.
[0015] In the present invention, by extracting the contour of the food instance segmentation data and performing perspective transformation in combination with the food shooting parameter data, the contour data of the food can be accurately obtained, thereby providing a reliable basis for subsequent size measurement. By using perspective transformation matrix data to perform perspective transformation on the food contour data, the perspective distortion in the food image can be eliminated, and the accuracy and reliability of the measured size can be improved. By measuring the size of the food contour data and converting the size into units based on the image resolution data, more accurate food size data can be obtained. By accurately measuring and converting the food size data, more precise and accurate dietary recommendations can be provided to users, thereby improving the user's trust and satisfaction with the dietary inflammatory potential prediction system during pregnancy.
[0016] Preferably, the user's dietary inflammation level is calculated by a user's dietary inflammation level calculation formula, wherein the user's dietary inflammation level calculation formula is specifically: ; Provides users with dietary inflammation data. is the food ordinal item data, For food quantity data, The food type and portion data Food intake data, For the Standard food intake data, is the weight item data of food intake types, For the Data on the inflammatory potential of foods The data of food intake inflammatory potential coefficient, Provides dietary inflammation index data for users.
[0017] The present invention takes into account the type of food consumed by the user, the amount of food consumed, the inflammatory potential of the food consumed, and the difference between the food consumed and the standard intake, and calculates the dietary inflammatory level data of the user. , thereby comprehensively evaluating the impact of the user's diet on inflammatory response. The various parameters in the formula, such as the weight of food intake type 、Inflammatory potential coefficient of food intake Etc., reflects the importance and influence of different foods in the inflammatory response. By adjusting these parameters, the contribution of different foods to inflammation can be more accurately assessed, which helps to make more reasonable dietary recommendations. In the formula, various mathematical parameters such as food intake, intake inflammatory potential, and intake type weight terms interact with each other. The combination of these parameters can more accurately assess the user's dietary inflammation level. For example, food intake and the inflammatory potential of intake The product term between them can reflect the contribution of different foods to inflammation, while the intake type weight term adjusts the relative importance of different foods. The present invention combines the knowledge of medical experts to improve and construct mathematical models, thereby providing accurate and reliable data on the user's dietary inflammation level.
[0018] Preferably, the preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and a diet recommendation is performed based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy diet recommendation data, so as to perform a pregnancy dietary inflammation potential prediction operation, specifically for: S51: sorting the food portions according to the food types and portion data to obtain food portion sorting data; S52: weighting the food portion ranking data using preset food knowledge graph data to obtain user food preference data; S53: Make dietary recommendations based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
[0019] The present invention sorts and weights foods based on the user's food type and portion data combined with preset food knowledge graph data, thereby obtaining the user's food preference data, and realizing personalized dietary recommendations tailored to the user's personal taste and preference, thereby improving the user's acceptance and satisfaction with the dietary plan. The user's food preference data is combined with the dietary inflammation level data to make dietary recommendations, taking into account the user's personal taste preferences and dietary health status, and providing users with more comprehensive and scientific dietary suggestions.
[0020] Preferably, the dietary recommendations in S53 are specifically: Generate associated diet recommendations based on the user's food preference data to obtain associated diet recommendation data; The associated dietary recommendation data are screened and processed according to the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data.
[0021] In the present invention, by generating associated dietary recommendation data according to the user's food preference data, more personalized dietary recommendations can be provided. Taking into account the user's preferences and tastes, the generated recommendations are more in line with the user's preferences, increasing the user's acceptance and willingness to implement the recommendations. After obtaining the associated dietary recommendation data, the recommended data is screened and processed by considering the user's dietary inflammation level data, the user's personal preferences and health status, and more comprehensive and scientific dietary recommendations can be provided.
[0022] Preferably, the present invention also provides a method for predicting dietary inflammatory potential during pregnancy, which is used to implement the system for predicting dietary inflammatory potential during pregnancy as described above, and the method for predicting dietary inflammatory potential during pregnancy comprises: Step S1: Obtaining user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data, and user dietary preference data; Step S2: Calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; Step S3: obtaining the user's meal image data, and estimating the food type and quantity based on the user's meal image data to obtain the food type and quantity data; Step S4: Calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data to obtain the user's dietary inflammation level data; Step S5: Preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and dietary recommendations are made based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
[0023] The beneficial effect of the present invention is that by collecting the basic data and dietary preferences of the user, the system can generate a personalized diet plan based on the individual's actual situation and preferences. This customized plan can better meet the user's tastes and needs, and improve the user's satisfaction and willingness to implement. Not only the user's personal characteristics, such as age, weight, etc., are taken into account, but also the food type and portion data and the user's dietary inflammation index data are combined to comprehensively consider the user's dietary inflammation level and health status. Image processing and analysis of the user's meal image data can accurately identify food types and portions, improve the accuracy and reliability of the data, ensure that the recommended food types and portions are consistent with the actual situation, and improve the practicality and feasibility of the recommendation. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting implementations made with reference to the following drawings: Figure 1 A functional module diagram of a system for predicting dietary inflammatory potential during pregnancy according to an embodiment is shown; Figure 2 A flowchart showing the steps of a method for predicting dietary inflammatory potential during pregnancy according to an embodiment of the present invention is provided; Figure 3 A flowchart of a dietary inflammation index calculation module according to an embodiment is shown; Figure 4 A flow chart of a user data preprocessing submodule according to an embodiment is shown. DETAILED DESCRIPTION
[0025] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0026] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0027] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0028] See also Figures 1 to 4 The present application provides a prediction system for dietary inflammatory potential during pregnancy, the system comprising a user basic data collection module, a dietary inflammatory index calculation module, a food type and portion estimation module, a user dietary inflammatory level calculation module and a user pregnancy diet recommendation module, wherein: A user basic data collection module is used to obtain user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data and user dietary preference data; Specifically, the user basic data collection module collects the user's personal information through database query or mobile application. For example, the user fills out a questionnaire about age, weight, pregnancy cycle and dietary preferences through an online website or mobile application, and the system automatically collects and records the data provided by the user. This data includes but is not limited to age, weight, pregnancy cycle stage (before pregnancy, during pregnancy, after pregnancy), types of food that the user likes or avoids, etc.
[0029] A dietary inflammation index calculation module is used to calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; Specifically, the dietary inflammation index calculation module calculates the user's dietary inflammation index based on the basic data provided by the user. For example, the user's dietary inflammation index is calculated using the existing dietary inflammation index calculation formula based on the user's age, weight, pregnancy period, and dietary preferences. This index can be used to assess the potential inflammatory impact of the user's diet on the body. , Provides dietary inflammation index data for users. The user's preferred food order data, For user preference food quantity data, For the types of user preference food inflammation association data, For the types of user preference food data, is the age adjustment factor data, is the weight adjustment factor data, is the gestational cycle adjustment factor data, Adjust factor data for dietary preferences.
[0030] A food type and quantity estimation module is used to obtain user meal image data, and estimate food types and quantities based on the user meal image data to obtain food type and quantity data; Specifically, the food type and portion estimation module uses image processing technology to analyze the meal image data provided by the user. For example, the system identifies the various foods in the image through image recognition algorithms, and estimates the portion of each food based on the size and quantity of the food in the image. Such as object detection, instance segmentation and portion estimation.
[0031] A user dietary inflammation level calculation module, used to calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data, and obtain the user's dietary inflammation level data; Specifically, the user dietary inflammation level calculation module combines the user's food type and portion data and the dietary inflammation index data to calculate the user's dietary inflammation level. For example, by combining the various foods consumed by the user with their inflammatory potential and intake, the impact of the user's overall diet on the body's inflammation level is calculated.
[0032] The user pregnancy diet recommendation module is used to calculate preferences based on food types and portion data to obtain user food preference data, and to make diet recommendations based on user food preference data and user dietary inflammation level data to obtain user pregnancy diet recommendation data in order to perform dietary inflammation potential prediction operations during pregnancy.
[0033] Specifically, the user pregnancy diet recommendation module generates personalized pregnancy diet recommendations for users based on the user's food preference data and dietary inflammation level data. For example, based on the user's preference for different foods and sensitivity to inflammation, it recommends a diet combination suitable for the user during pregnancy to achieve a scientific diet and provide reliable data support for the prediction of dietary inflammation potential during pregnancy.
[0034] The present invention realizes automatic processing and analysis of user basic data and meal image data, improves the efficiency of data processing, saves human resources, and reduces the possibility of human error. It can realize high-speed processing and accurate calculation of large amounts of data, help improve the accuracy and precision of user dietary inflammation index, dietary inflammation level and food preference data, and facilitate more accurate assessment of user's diet, and provide dietary recommendations that meet user needs. User basic data and meal image data are integrated and analyzed to form accurate user dietary information. The present invention realizes real-time processing and analysis of data, can promptly discover problems in user's diet, and promptly make suggestions for improvement.
[0035] Preferably, the dietary inflammation index is calculated according to the user basic data to obtain the user dietary inflammation index data, which is specifically used for: S21: performing user data preprocessing on user basic data to obtain user preprocessed data; Specifically, the user basic data contains missing values, outliers, or data that needs to be standardized. The preprocessing process includes data cleaning, filling missing values, outlier processing, feature standardization, and other operations. For example, for the processing of missing values, the method of filling missing values can be used, such as using the mean, median, or mode for filling. For the processing of outliers, truncation or shrinking methods can be used. Finally, through preprocessing, clean and standardized user basic data are obtained for subsequent factor extraction and calculation.
[0036] S22: extracting age and weight factors from the user preprocessed data to obtain age and weight factor data; Specifically, factors related to age and weight are extracted from the preprocessed user data, such as by adopting feature engineering of the data, for example, extracting an age factor from the user's age data and extracting a weight factor from the user's weight data.
[0037] S23: extracting pregnancy cycle factors from the user preprocessed data to obtain pregnancy cycle factor data; Specifically, factors related to the pregnancy period are extracted from the pre-processed user data, such as processing the user's pregnancy period data, for example, converting the pregnancy period into numerical data or performing encoding processing.
[0038] S24: extracting dietary preference factors from the user preprocessed data to obtain dietary preference factor data; Specifically, factors related to dietary preferences are extracted from pre-processed user data, such as analyzing and processing the user dietary preference data, for example, converting the dietary preferences into numerical data or performing encoding processing.
[0039] S25: Calculate the dietary inflammation index for the age and weight factor data, the pregnancy period factor data, and the dietary preference factor data to obtain the user's dietary inflammation index data.
[0040] Specifically, the extracted age and weight factor data, pregnancy period factor data, and dietary preference factor data are input into the dietary inflammation index calculation formula for calculation, such as assigning and combining various parameters in the calculation formula to obtain the final user dietary inflammation index data.
[0041] In the present invention, by preprocessing the user's basic data, the data can be cleaned and standardized, noise and outliers can be removed, the quality and reliability of the data can be improved, and the accuracy and credibility of the subsequent calculation process can be improved. By extracting factors from the user's preprocessed data, the complex original data is converted into more abstract and high-dimensional factor data, which helps to describe the user's characteristics and status in depth and improve the expression and abstraction capabilities of the information. The dietary inflammation index is calculated based on the extracted factor data, which can more scientifically evaluate the user's dietary status and potential inflammation level. The present invention can improve data quality, abstraction ability and analysis efficiency, and provide users with reliable data support for individualized and scientific dietary recommendations.
[0042] Preferably, S21 is specifically: Perform missing value processing on user basic data to obtain missing value processed data, wherein the missing value processed data includes text missing processed data, image missing processed data and numerical missing processed data; Specifically, missing value processing is performed on user basic data, including text, image and numerical data. Different processing methods can be used for different types of missing data. Text missing data processing: For text data, the missing values are filled or deleted. If the text data of a field is missing, it can be filled with the default value or the most common value. Image missing data processing: For image data, the processing of missing values involves image reconstruction or compensation, and the image restoration algorithm is used to fill the missing areas in the image. For numerical data, common processing methods include filling with the mean, median, mode, or using a regression model to supplement the predicted value.
[0043] When it is determined that the missing value processing data is text missing processing data or image missing processing data, the missing value processing data is determined as user pre-processing data; Specifically, when determining the missing value processing data type, if the missing values mainly involve text or image data, the missing value processing data is directly determined as user pre-processed data.
[0044] When it is determined that the missing value processing data is numerical missing processing data, historical user basic data is acquired based on the user basic data to obtain the historical user basic data, and the historical user basic data is used to perform statistical feature judgment on the missing value processing data to obtain user preprocessing data; Specifically, if the missing value processing data is numerical data, the historical user basic data can be obtained based on the user basic data. The historical user basic data is feature extracted to obtain the historical user feature data, and the historical user feature data and the user basic data are compared. If they are within the error range, they are regarded as user preprocessing data. Otherwise, they are weighted according to the historical user feature data to obtain the user preprocessing data.
[0045] The specific steps for handling missing values are: Perform missing value judgment on user basic data to obtain missing value judgment data, wherein the missing value judgment data includes text missing data, image missing data and numerical missing data; Specifically, text missing data: suppose you need to obtain the user's address information, but some users do not provide address information. In this case, mark the missing address information as "Not Provided" or "N / A". Image missing data: suppose you need to obtain the user's photo or avatar, but some users have not uploaded photos (or after image detection, it is found that the image is in a state of missing information, such as too blurry pixels). In this case, use the default placeholder image to replace the missing photo, or mark the missing image data as "No photo". Numerical missing data: suppose you need to obtain the user's weight information, but some users do not provide weight information. In this case, mark the missing weight data as "Unknown" or use statistics such as mean and median to fill the missing value.
[0046] When it is determined that the missing value judgment data is text missing data, a text completion operation is performed to obtain text missing processing data; Specifically, if it is found that there is missing text data in the user's basic data, the missing part can be filled through text completion tasks. Semantic-based methods such as text similarity matching or language model-based generation methods are used to predict missing text data.
[0047] When it is determined that the missing value judgment data is image missing data, an image completion operation is performed to obtain image missing processing data; Specifically, when it is found that there is missing image data in the user's basic data, an image completion operation can be performed to fill the missing part. The missing image data can be restored through image processing techniques such as image restoration or generative adversarial network (GAN).
[0048] When it is determined that the missing value judgment data is numerical missing data, the user basic data is supplemented with a predicted value to obtain first numerical missing processing data; Specifically, if the missing value is determined to be missing data, the predicted value is used to supplement it: by using machine learning or statistical methods to predict the missing values, such as building a regression model or using a proximity-based method to estimate the missing values.
[0049] Filling the user basic data with neighboring data to obtain second value missing processing data; Specifically, neighbor data filling: use the values of similar samples in the user's basic data to fill in the missing data. The nearest neighbors are found by calculating the similarity between samples (such as Euclidean distance, cosine similarity, etc.), and their values are applied to the missing data.
[0050] A weighted calculation is performed on the first missing value processing data and the second missing value processing data to obtain the missing value processing data.
[0051] Specifically, for the data with missing values, the results obtained by supplementing the predicted value and filling the neighboring data can be weighted to obtain the final data with missing values. The weighted calculation can determine the weight according to the credibility of the data, the error range or other relevant factors. For example, the weight can be assigned according to the accuracy of the prediction model or the similarity between the neighboring data.
[0052] The present invention proposes different processing methods for missing data of text, image and numerical types existing in user basic data, so that the missing value processing is more comprehensive and comprehensive. For different types of missing data, the present invention proposes personalized processing strategies, while the existing technology often only processes a certain type of missing data, lacking comprehensiveness and integration. For text missing data and image missing data, they are directly determined as user preprocessing data, reducing additional processing steps; and for numerical missing data, statistical feature judgment is performed based on historical user basic data or neighbor data is used to fill in to ensure the integrity and accuracy of the data. The present invention can more accurately predict missing data of numerical types by using historical user basic data for missing value processing, thereby improving the accuracy and credibility of data processing. For numerical missing value processing data, the present invention adopts a weighted calculation method, using the first missing value processing data and the second missing value processing data to obtain a more reasonable and accurate filling result, thereby improving the effect of data filling.
[0053] Preferably, the acquiring of the user's meal image data and the estimation of the food type and quantity based on the user's meal image data to obtain the food type and quantity data are specifically used for: S31: Acquire user meal image data; Specifically, through mobile phone applications or dedicated devices, users can take photos of their meals. These photos can be collected through the upload function in the application or automatically synchronized to the system.
[0054] S32: Performing food object detection on the user's meal image data to obtain food object detection data; Specifically, deep learning technology is used, such as a target detection model based on a deep convolutional neural network, to process the user's meal images, identify food targets in the images, and obtain the location and bounding box information of each food target.
[0055] S33: classifying the food target detection data to obtain food classification data; Specifically, food targets are classified using a trained deep learning model, such as a convolutional neural network (CNN) or a transfer learning model, and each detected food target is classified into a specific food category, such as fruits, vegetables, staple foods, etc.
[0056] S34: performing instance segmentation on the user's meal image data according to the food classification data to obtain food instance segmentation data; Specifically, image segmentation techniques, such as Mask R-CNN, are used to perform pixel-level segmentation on each detected food target to generate food instance segmentation data, that is, to accurately segment each food instance for further analysis and estimation.
[0057] S35: performing portion estimation on the food instance segmentation data to obtain food portion estimation data; Specifically, deep learning or traditional computer vision algorithms are used to combine food instance segmentation data and reference objects in the image (such as the edge of a plate or cutlery) to estimate the amount of each food. The actual amount of food is estimated by the number of pixels of the object or the ratio of the actual size to the reference object.
[0058] Collect a dataset of images containing various foods and annotate each food instance with bounding boxes and portion information. To obtain portion information, the annotator needs to label the bounding box of each food instance and add an additional tag to indicate the portion information of the food, such as using a number or a descriptive word (such as "a small amount", "a moderate amount", "a large amount", etc.). Use object detection and instance segmentation models such as Faster R-CNN, Mask R-CNN, or YOLO to train a model to detect various food instances in the image. During the training process, the model needs to learn to recognize various foods and segment them into separate instances, and also learn to recognize the portion information of the food. For each food instance detected, the model can not only provide its bounding box and segmentation mask, but also output information about the food portion. Use the output of the deep learning model, combined with image processing techniques, to estimate the portion of each food instance. For example, use the pixel-level segmentation mask and bounding box information of the food instance, combined with the food portion information learned by the model, to calculate the specific portion of the food.
[0059] More importantly, in another embodiment, a preset food portion estimation model is used to perform portion estimation on food instance segmentation data to obtain food portion estimation data; wherein the step of constructing the preset food portion estimation model includes the following steps: obtaining historical food image data, historical food bounding box data, and food portion label data; performing segmentation mask processing based on historical food image data and historical food bounding box data to obtain historical food segmentation data; performing model training based on historical food segmentation data and food portion label data to obtain a food portion estimation model. wherein the model training may adopt a neural network algorithm, a decision tree generation algorithm, or an ensemble learning algorithm; The steps of model training by neural network algorithm are as follows: divide the data set according to the historical food segmentation data to obtain the historical food segmentation training set data and the historical food segmentation test set data; perform convolution layer processing on the historical food segmentation training set data to obtain the historical food segmentation convolution layer data; perform pooling layer processing on the historical food segmentation convolution layer data to obtain the historical food segmentation pooling layer data; perform full connection layer processing on the historical food segmentation pooling layer data to obtain the historical food segmentation full connection layer data; perform index calculation on the historical food segmentation full connection layer data to obtain the historical food segmentation index data; perform iterative training according to the historical food segmentation test set data, the historical food segmentation index data and the food portion label data to obtain the food portion estimation model; according to the food portion information learned by the model, the number of pixels in the area can be converted into specific food portions. For example, the number of pixels can be converted into portions in units such as weight or volume through the proportional relationship between the number of pixels and the actual portion.
[0060] The steps of performing segmentation mask processing according to the historical food image data and the historical food bounding box data to obtain the historical food segmentation data are specifically as follows: performing instance segmentation according to the historical food image data and the historical food bounding box data to obtain the first historical food segmentation data; obtaining food parameter data according to the historical food image data; constructing a three-dimensional model according to the food parameter data and the first historical food segmentation data to obtain the historical food segmentation three-dimensional model data; estimating the food volume according to the historical food segmentation three-dimensional model data and the first historical food segmentation data to obtain the historical food volume data; semantically annotating the first historical food segmentation data according to the historical food volume data to obtain the second historical food segmentation data; and integrating the first historical food segmentation data and the second historical food segmentation data to obtain the historical food segmentation data.
[0061] S36: Generate vectors of the food classification data and the food portion estimation data to obtain food type and portion data.
[0062] Specifically, the classification information and estimated portion information of each food are combined into a vector, each vector containing a food type and a corresponding portion estimate. These vectors constitute food type and portion data, which can be used for subsequent user diet analysis and recommendations.
[0063] The present invention can collect the user's dietary information, including the types and quantities of various foods, by acquiring the user's meal image data, thereby providing a richer data basis for subsequent analysis and evaluation. Through food target detection and classification technology, the food in the image can be automatically identified and classified, realizing the automated processing of the user's meal image data, saving manpower and time costs. Through instance segmentation and component estimation technology, the food in the image can be accurately segmented and its component can be estimated, improving the accuracy and credibility of data processing. Vectorizing food classification data and component estimation data can better express food types and component information, providing a more efficient and convenient data form for subsequent data analysis and modeling. By obtaining accurate food types and component information, the user's dietary situation can be more accurately evaluated.
[0064] Preferably, S35 is specifically: S351: performing food size analysis on the food instance segmentation data to obtain food size data; Specifically, image processing technology is used to analyze the food instance segmentation data to extract the bounding box or outline of each food instance. Then, by calculating indicators such as the width and height of the bounding box or the area of the outline, the size data of the food, such as length and width, is obtained.
[0065] S352: Calculate the food volume based on the food size data to obtain food volume data; Specifically, the volume of the food is estimated based on the size data of the food. The volume of the food can be calculated based on a simple geometric model (such as a sphere, a cuboid, etc.) or a complex three-dimensional model of the shape of the food, for example, by using a volume formula for calculation or performing three-dimensional reconstruction.
[0066] S353: Obtaining food density data according to the food classification data, and estimating the food type according to the food density data and the food volume data to obtain food weight data; Specifically, density information of different foods is obtained based on a pre-established food database or literature data. Then, the weight of the food is calculated based on the volume and density of the food. The weight of the food is calculated using basic physical formulas such as density equals mass divided by volume.
[0067] S354: Calculate the food calories according to the food weight data through the preset food calorie association table data to obtain food calorie data; Specifically, according to the weight data of the food, a preset food calorie association table is queried, which contains the calorie information of various foods. Then, according to the weight of the food and the corresponding data in the calorie association table, the calorie of the food is calculated.
[0068] S355: Integrate the food size data, food volume data, food weight data and food calorie data to obtain food portion estimation data.
[0069] Specifically, the food size, volume, weight and calorie data obtained above are integrated together to form food portion estimation data.
[0070] In the present invention, by performing food size analysis and volume calculation on the food instance segmentation data, the size and volume of the food can be better understood, providing accurate basic data for subsequent analysis and estimation. By obtaining food density data and estimating food types, the weight of the food can be estimated more accurately, improving the accuracy and credibility of the food weight data. According to the preset food calorie association table data, the calories of the food can be quickly calculated through the food weight data, providing an effective basis for evaluation and analysis of the calorie intake of the user. By integrating the food size data, food volume data, food weight data and food calorie data, the nutritional components and calorie content of the food can be better understood, providing more comprehensive and accurate data support for the user's dietary health management. Conventional technical means often adopt rule estimation methods including food classification and volume / weight, and use empirical formulas or standard values to estimate the calories or other nutritional components of food based on known food types and volume / weight information. It is simple and direct, but the accuracy is limited and it is easily affected by factors such as food shape and density. The present invention performs instance segmentation on user meal image data by utilizing food classification data, and then combines steps such as food size analysis, volume calculation, food density estimation and calorie calculation to achieve in-depth estimation of food portions, thereby obtaining more accurate and comprehensive food portion estimation results.
[0071] Preferably, S351 is specifically: Performing contour extraction on the food instance segmentation data to obtain food contour data; Specifically, image processing techniques, such as edge detection algorithms (such as Canny edge detection) or morphological operations (such as dilation and erosion), are used to process the food instance segmentation data to extract the contour data of the food.
[0072] Obtaining food shooting parameter data corresponding to the user's meal image data; Specifically, when a user captures an image, the shooting parameters of each image are recorded, such as the focal length, aperture size, shutter speed, and other information of the camera.
[0073] Calculate the perspective transformation matrix according to the food shooting parameter data to obtain the perspective transformation matrix data; Specifically, according to the geometric correction principle of the camera, the perspective transformation matrix is calculated using the shooting parameter data to convert the food image into a top view or a standard viewing angle. A perspective transformation algorithm can be used, such as the cv2.getPerspectiveTransform() function in OpenCV to calculate the perspective transformation matrix.
[0074] Using perspective transformation matrix data to transform food outline data, obtain food signature perspective transformation data; Specifically, the perspective transformation matrix data obtained in the previous step is used to perform perspective transformation on the outline data of the food so that it is displayed in a top view or a standard viewing angle. The cv2.warpPerspective() function in OpenCV can be used to implement perspective transformation.
[0075] Measure the size of the food contour data to obtain food size measurement data; Specifically, the size of the food is measured on the perspective transformed image using image processing technology, and the length, width and other size data of the food can be measured by calculating the bounding box of the outline or using a shape analysis method.
[0076] The food size measurement data is converted into size units according to the image resolution data corresponding to the user's meal image data to obtain the food size data.
[0077] Specifically, based on the image resolution data, the food size data is converted from pixel units to actual physical units, such as centimeters or millimeters. This can be achieved by the known proportional relationship between the image resolution and the actual size of the object.
[0078] In the present invention, by extracting the contour of the food instance segmentation data and performing perspective transformation in combination with the food shooting parameter data, the contour data of the food can be accurately obtained, thereby providing a reliable basis for subsequent size measurement. By using perspective transformation matrix data to perform perspective transformation on the food contour data, the perspective distortion in the food image can be eliminated, and the accuracy and reliability of the measured size can be improved. By measuring the size of the food contour data and converting the size into units based on the image resolution data, more accurate food size data can be obtained. By accurately measuring and converting the food size data, more precise and accurate dietary recommendations can be provided to users, thereby improving the user's trust and satisfaction with the dietary inflammatory potential prediction system during pregnancy.
[0079] Preferably, the user's dietary inflammation level is calculated by a user's dietary inflammation level calculation formula, wherein the user's dietary inflammation level calculation formula is specifically: ; Provides users with dietary inflammation data. is the food ordinal item data, For food quantity data, The food type and portion data Food intake data, For the Standard food intake data, is the weight item data of food intake types, For the Data on the inflammatory potential of foods The data of food intake inflammatory potential coefficient, Provides dietary inflammation index data for users.
[0080] Specifically, #data F=[10,20,30]#food intake data, SF=[15,25,35]#standard food intake data, g=[0.5,0.6,0.7]#food inflammation potential data, #parameter a=0.8#food intake type weight item, b=0.9#food intake inflammation potential coefficient, w=0.1#user dietary inflammation index data, #calculation D=sum(((F[i] / SF[i])**a*g[i] / b)foriinrange(len(F)))+w, print("User dietary inflammation level data D:",D).
[0081] The present invention takes into account the type of food consumed by the user, the amount of food consumed, the inflammatory potential of the food consumed, and the difference between the food consumed and the standard intake, and calculates the dietary inflammatory level data of the user. , thereby comprehensively evaluating the impact of the user's diet on inflammatory response. The various parameters in the formula, such as the weight of food intake type 、Inflammatory potential coefficient of food intake Etc., reflects the importance and influence of different foods in the inflammatory response. By adjusting these parameters, the contribution of different foods to inflammation can be more accurately assessed, which helps to make more reasonable dietary recommendations. In the formula, various mathematical parameters such as food intake, intake inflammatory potential, and intake type weight terms interact with each other. The combination of these parameters can more accurately assess the user's dietary inflammation level. For example, food intake and the inflammatory potential of intake The product term between them can reflect the contribution of different foods to inflammation, while the intake type weight term adjusts the relative importance of different foods. The present invention combines the knowledge of medical experts to improve and construct mathematical models, thereby providing accurate and reliable data on the user's dietary inflammation level.
[0082] Preferably, the preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and a diet recommendation is performed based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy diet recommendation data, so as to perform a pregnancy dietary inflammation potential prediction operation, specifically for: S51: sorting the food portions according to the food types and portion data to obtain food portion sorting data; Specifically, according to the food types and portion data of the user's meal intake, the food is sorted according to the intake amount. The food types and portion data of the user are sorted in descending order according to the portion size to obtain food portion sorting data.
[0083] S52: weighting the food portion ranking data using preset food knowledge graph data to obtain user food preference data; Specifically, based on the user's intake of different foods, the user's food preference data is generated. According to the user's food intake, combined with the preset food knowledge graph data, each food is weighted and sorted to obtain the user's food preference data.
[0084] S53: Make dietary recommendations based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
[0085] Specifically, a diet is recommended based on the user's food preference data and dietary inflammation level data. Based on the user's food preference data and dietary inflammation level data, combined with nutrition knowledge and pregnancy diet guidelines, pregnancy diet recommendation data is generated for the user.# Step S51: Food quantity sorting def sort_food_intake(food_intake_data): sorted_food_intake = sorted(food_intake_data, key=lambda x: x['intake'],reverse=True) return sorted_food_intake # Step S52: Food preference data generation defgenerate_food_preference(sorted_food_intake): food_preference = {} for food_data in sorted_food_intake: food_name = food_data['name'] food_preference[food_name] = food_data['intake']* food_data['weight'] # Weight sorting returnfood_preference # Step S53: Diet recommendation def recommend_diet(food_preference,inflammation_level): # Recommend based on user's food preference data and inflammation level # Here, rules can be used to make recommendations based on food preferences and inflammation levels, such as reducing the intake of inflammatory foods, etc. return recommended_diet # data food_intake_data = [{'name': 'Vegetables', 'intake': 200, 'weight': 0.8},{'name': 'Fruits', 'intake': 150, 'weight': 0.7},{'name': 'Meat','intake': 100, 'weight': 0.9}] inflammation_level = 0.6 # Step S51: Sorting food portions sorted_food_intake = sort_food_intake(food_intake_data) # Step S52: Generate food preference data food_preference = generate_food_preference(sorted_food_intake) # Step S53: Diet recommendation recommended_diet = recommend_diet(food_preference, inflammation_level).
[0086] The present invention sorts and weights foods based on the user's food type and portion data combined with preset food knowledge graph data, thereby obtaining the user's food preference data, and realizing personalized dietary recommendations tailored to the user's personal taste and preference, thereby improving the user's acceptance and satisfaction with the dietary plan. The user's food preference data is combined with the dietary inflammation level data to make dietary recommendations, taking into account the user's personal taste preferences and dietary health status, and providing users with more comprehensive and scientific dietary suggestions.
[0087] Preferably, the dietary recommendations in S53 are specifically: Generate associated diet recommendations based on the user's food preference data to obtain associated diet recommendation data; Specifically, based on the user's food preference data, combined with nutrition guidelines and food relevance information, a dietary recommendation that matches the user's preferences is generated. For example, if the user likes to eat vegetables and fruits, the system will recommend a combination of vegetables and fruits that are rich in vitamins and fiber.
[0088] The associated dietary recommendation data are screened and processed according to the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data.
[0089] Specifically, based on the user's dietary inflammation level data, foods that cause inflammatory responses, such as high-sugar, high-fat, and high-salt foods, are filtered out to obtain dietary recommendation data that meets the health needs of pregnancy. # Step S531: Generate associated diet recommendations def generate_associated_diet_recommendation(food_preference): # Generate related diet recommendations based on the user's food preference data # Here, diet recommendations can be generated based on nutrition knowledge and food relevance information, such as recommending matching ingredients or recipes return associated_diet_recommendation # Step S532: Filtering def filter_diet_recommendation(associated_diet_recommendation, inflammation_level): # Filter the associated diet recommendation data according to the user's dietary inflammation level data # Filter out unsuitable foods according to the user's inflammation level to obtain suitable diet recommendations return filtered_diet_recommendation # data food_preference = {'vegetables': 0.8, 'fruits': 0.7, 'meat': 0.9} inflammation_level = 0.6 # Step S531: Generate associated diet recommendations associated_diet_recommendation = generate_associated_diet_recommendation(food_preference)# Step S532: filtered_diet_recommendation = filter_diet_recommendation(associated_diet_recommendation, inflammation_level).
[0090] In the present invention, by generating associated dietary recommendation data according to the user's food preference data, more personalized dietary recommendations can be provided. Taking into account the user's preferences and tastes, the generated recommendations are more in line with the user's preferences, increasing the user's acceptance and willingness to implement the recommendations. After obtaining the associated dietary recommendation data, the recommended data is screened and processed by considering the user's dietary inflammation level data, the user's personal preferences and health status, and more comprehensive and scientific dietary recommendations can be provided.
[0091] Preferably, the present invention also provides a method for predicting dietary inflammatory potential during pregnancy, which is used to implement the system for predicting dietary inflammatory potential during pregnancy as described above, and the method for predicting dietary inflammatory potential during pregnancy comprises: Step S1: Obtaining user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data, and user dietary preference data; Step S2: Calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; Step S3: obtaining the user's meal image data, and estimating the food type and quantity based on the user's meal image data to obtain the food type and quantity data; Step S4: Calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data to obtain the user's dietary inflammation level data; Step S5: Preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and dietary recommendations are made based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
[0092] The beneficial effect of the present invention is that by collecting the basic data and dietary preferences of the user, the system can generate a personalized diet plan based on the individual's actual situation and preferences. This customized plan can better meet the user's tastes and needs, and improve the user's satisfaction and willingness to implement. Not only the user's personal characteristics, such as age, weight, etc., are taken into account, but also the food type and portion data and the user's dietary inflammation index data are combined to comprehensively consider the user's dietary inflammation level and health status. Image processing and analysis of the user's meal image data can accurately identify food types and portions, improve the accuracy and reliability of the data, ensure that the recommended food types and portions are consistent with the actual situation, and improve the practicality and feasibility of the recommendation.
[0093] Therefore, from any point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the attached application documents rather than the above description, and it is intended that all changes falling within the meaning and scope of equivalent elements of the application documents are included in the present invention.
[0094] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A prediction system for dietary inflammatory potential during pregnancy, characterized in that: The system includes a user basic data collection module, a dietary inflammation index calculation module, a food type and portion estimation module, a user dietary inflammation level calculation module, and a user pregnancy diet recommendation module, wherein: A user basic data collection module is used to obtain user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data and user dietary preference data; A dietary inflammation index calculation module is used to calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; A food type and quantity estimation module is used to obtain user meal image data, and estimate food types and quantities based on the user meal image data to obtain food type and quantity data; A user dietary inflammation level calculation module, used to calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data, and obtain the user's dietary inflammation level data; The user pregnancy diet recommendation module is used to calculate preferences based on food types and portion data to obtain user food preference data, and to make diet recommendations based on user food preference data and user dietary inflammation level data to obtain user pregnancy diet recommendation data in order to perform dietary inflammation potential prediction operations during pregnancy.
2. The system according to claim 1, characterized in that The dietary inflammation index is calculated based on the user's basic data to obtain the user's dietary inflammation index data, which is specifically used for: S21: performing user data preprocessing on user basic data to obtain user preprocessed data; S22: extracting age and weight factors from the user preprocessed data to obtain age and weight factor data; S23: extracting pregnancy cycle factors from the user preprocessed data to obtain pregnancy cycle factor data; S24: extracting dietary preference factors from the user preprocessed data to obtain dietary preference factor data; S25: Calculate the dietary inflammation index for the age and weight factor data, the pregnancy period factor data, and the dietary preference factor data to obtain the user's dietary inflammation index data.
3. The system according to claim 2, characterized in that S21 is specifically: Perform missing value processing on user basic data to obtain missing value processed data, wherein the missing value processed data includes text missing processed data, image missing processed data and numerical missing processed data; When it is determined that the missing value processing data is text missing processing data or image missing processing data, the missing value processing data is determined as user pre-processing data; When it is determined that the missing value processing data is numerical missing processing data, historical user basic data is acquired based on the user basic data to obtain the historical user basic data, and the historical user basic data is used to perform statistical feature judgment on the missing value processing data to obtain user preprocessing data; The specific steps for handling missing values are: Perform missing value judgment on user basic data to obtain missing value judgment data, wherein the missing value judgment data includes text missing data, image missing data and numerical missing data; When it is determined that the missing value judgment data is text missing data, a text completion operation is performed to obtain text missing processing data; When it is determined that the missing value judgment data is image missing data, an image completion operation is performed to obtain image missing processing data; When it is determined that the missing value judgment data is numerical missing data, the user basic data is supplemented with a predicted value to obtain first numerical missing processing data; Filling the user basic data with neighboring data to obtain second value missing processing data; A weighted calculation is performed on the first missing value processing data and the second missing value processing data to obtain the missing value processing data.
4. The system according to claim 1, characterized in that The obtaining of the user's meal image data and estimating the food type and quantity based on the user's meal image data to obtain the food type and quantity data are specifically used for: S31: Acquire user meal image data; S32: Performing food object detection on the user's meal image data to obtain food object detection data; S33: classifying the food target detection data to obtain food classification data; S34: performing instance segmentation on the user's meal image data according to the food classification data to obtain food instance segmentation data; S35: performing portion estimation on the food instance segmentation data to obtain food portion estimation data; S36: Generate vectors of the food classification data and the food portion estimation data to obtain food type and portion data.
5. The system according to claim 4, characterized in that S35 is specifically: S351: performing food size analysis on the food instance segmentation data to obtain food size data; S352: Calculate the food volume based on the food size data to obtain food volume data; S353: Obtaining food density data according to the food classification data, and estimating the food type according to the food density data and the food volume data to obtain food weight data; S354: Calculate the food calories according to the food weight data through the preset food calorie association table data to obtain food calorie data; S355: Integrate the food size data, food volume data, food weight data and food calorie data to obtain food portion estimation data.
6. The system according to claim 5, characterized in that S351 is as follows: Performing contour extraction on the food instance segmentation data to obtain food contour data; Obtaining food shooting parameter data corresponding to the user's meal image data; Calculate the perspective transformation matrix according to the food shooting parameter data to obtain the perspective transformation matrix data; Using perspective transformation matrix data to transform food outline data, obtain food signature perspective transformation data; Performing size measurement on the food contour data to obtain food size measurement data; The food size measurement data is converted into size units according to the image resolution data corresponding to the user's meal image data to obtain the food size data.
7. The system according to claim 1, characterized in that The user's dietary inflammation level is calculated using the user's dietary inflammation level calculation formula, where the user's dietary inflammation level calculation formula is specifically: ; Provides users with dietary inflammation data. is the food ordinal item data, For food quantity data, The food type and portion data Food intake data, For the Standard food intake data, is the weight item data of food intake types, For the Data on the inflammatory potential of foods The inflammatory potential coefficient of food intake, Provides dietary inflammation index data for users.
8. The system according to claim 1, characterized in that The preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and a diet recommendation is performed based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy diet recommendation data, so as to perform a pregnancy dietary inflammation potential prediction operation, which is specifically used for: S51: sorting the food portions according to the food types and portion data to obtain food portion sorting data; S52: weighting the food portion ranking data using preset food knowledge graph data to obtain user food preference data; S53: Make dietary recommendations based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
9. The system according to claim 8, characterized in that The specific dietary recommendations in S53 are: Generate associated diet recommendations based on the user's food preference data to obtain associated diet recommendation data; The associated dietary recommendation data are screened and processed according to the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data.
10. A method for predicting the inflammatory potential of a diet during pregnancy, characterized in that: The method for predicting the inflammatory potential of a diet during pregnancy according to claim 1 comprises: Step S1: Obtaining user basic data, wherein the user basic data includes user age data, user weight data, user pregnancy cycle data, and user dietary preference data; Step S2: Calculate the dietary inflammation index according to the user's basic data to obtain the user's dietary inflammation index data; Step S3: obtaining the user's meal image data, and estimating the food type and quantity based on the user's meal image data to obtain the food type and quantity data; Step S4: Calculate the user's dietary inflammation level according to the food type and quantity data and the user's dietary inflammation index data to obtain the user's dietary inflammation level data; Step S5: Preference calculation is performed based on the food type and portion data to obtain the user's food preference data, and dietary recommendations are made based on the user's food preference data and the user's dietary inflammation level data to obtain the user's pregnancy dietary recommendation data to perform a pregnancy dietary inflammation potential prediction operation.
Citation Information
Patent Citations
Dietary management system based on human body inflammation biological clock
CN113284580A
Health monitoring and diet management method
CN113963776A
Nutrition management method and system based on deep learning food image recognition model
CN114550018A
Joint model training method and object information processing method, device and system
CN114556444A
Dietary management method and system based on inflammatory dietary evaluation and anti-inflammatory recipe pushing
CN116417112A
Cited By
User portrait generation system based on patient proinflammatory dietary behavior analysis
CN120977588A
