Dietary pattern making method, device and equipment and readable storage medium

By dividing food into portions by weight and arranging them on a graduated background board, and combining reference objects and image processing technology to generate a dietary atlas, the problem of inaccurate food intake assessment in existing methods is solved, enabling precise dietary management and rapid recovery for patients.

CN120878070APending Publication Date: 2025-10-31THE FIRST AFFILIATED HOSPITAL OF SOOCHOW UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510959341.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

Existing dietary survey methods are difficult to accurately record the food intake of stroke patients. Traditional methods are costly, complex to operate, prone to errors, and subject to memory bias, and cannot help patients accurately assess their daily food intake.

Method used

By dividing food into portions of different weights, weighing them, arranging them according to weight on a graduated background board, and taking photos with reference objects, a dietary atlas is generated. Edge detection and color clustering algorithms are used to identify food regions and label their weights, generating electronic or physical dietary atlases.

Benefits of technology

This allows patients to accurately determine their daily food intake, helping them recover quickly and improving the accuracy and ease of dietary assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120878070A_ABST
    Figure CN120878070A_ABST
Patent Text Reader

Abstract

The invention discloses a dietary pattern making method, device and equipment and a readable storage medium, and relates to the technical field of medical care. Comprising the following steps: firstly, obtaining candidate food, and for each kind of candidate food, dividing the candidate food into a plurality of parts with different masses; weighing the plurality of parts of candidate food to obtain the mass of each part of candidate food; according to the mass of each part of candidate food, sequentially arranging each part of candidate food on a target background plate with scales according to the mass; a reference object is also arranged on the target background plate; and finally, shooting the target background plate on which the candidate food and the reference object are placed to obtain a background plate image, and generating a dietary graph according to the background plate image. The food, the background plate and the reference substance are placed together to make the dietary pattern, so that a patient can accurately grasp the food intake everyday according to the dietary pattern, and then the patient is helped to rapidly recover.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical and nursing technology, and more specifically to a method, apparatus, device, and readable storage medium for creating a dietary chart. Background Technology

[0002] Poor dietary habits are common among stroke patients, and intervening in these habits can effectively reduce the risk of stroke recurrence and is of great significance in changing patients' clinical outcomes.

[0003] Conducting dietary surveys requires participants to have a certain level of calculation and literacy skills. Weighing or estimating the total amount of food consumed is a challenging task. Most participants' estimations of daily food intake remain at a rather crude level, making it difficult to accurately estimate the amount of food consumed and reduce the error in food intake estimation. Traditional dietary survey methods include accounting methods, dietary history methods, chemical analysis methods, dietary frequency surveys, 24-hour dietary recall methods, and internet-based dietary records. Accounting methods can only investigate the dietary consumption of families or groups, making it difficult to accurately investigate individual diets. Chemical analysis methods, also known as nutrient analysis, involve preparing two identical portions of food. One portion is consumed by the research subject, while the other is used as a food sample to determine its nutrient composition. This method is costly and complex, and therefore rarely used. The 24-hour dietary recall method, which records a researcher's food intake over the past 24 hours, significantly underestimates the researcher's total dietary intake. Retrospective questionnaires also have a time lag, leading to memory and experience biases. Stroke patients' memory impairment and other medical conditions can amplify recall bias in retrospective questionnaires. Existing online dietary recording methods, such as "Mint Health," offer shorter time intervals compared to retrospective questionnaires, potentially improving accuracy. However, these tools mostly require patients to manually input their total food intake, lacking portion size references to help patients accurately assess food portions. The discrepancy between the reported total intake and actual intake is significant, indicating limitations in functionality and accuracy.

[0004] Therefore, there is an urgent need for a method for creating dietary charts that can overcome the above-mentioned shortcomings. Summary of the Invention

[0005] The purpose of this invention is to provide a method, apparatus, device, and readable storage medium for creating a dietary chart. By placing food, a background board, and a reference object together, a dietary chart is created, enabling patients to accurately determine the amount of food they should consume each day, thereby helping them to recover quickly.

[0006] To achieve the above objectives, the present invention provides the following technical solution:

[0007] In a first aspect, the present invention provides a method for creating a dietary atlas, the method comprising:

[0008] Obtain candidate foods, and for each candidate food, divide the candidate food into several portions of different weights;

[0009] Weigh several candidate food samples to obtain the mass of each sample;

[0010] Based on the quality of each candidate food item, each candidate food item is arranged in order of weight on a graduated target background board; the target background board is also provided with reference objects.

[0011] A target background board containing candidate foods and reference objects is photographed to obtain a background board image, and a dietary atlas is generated based on the background board image.

[0012] In some embodiments, generating a dietary atlas based on the background image includes:

[0013] A first region and a second region are identified from the background image using a joint recognition algorithm of edge detection and color clustering; the first region is the region where the candidate food is located, and the second region is the background region corresponding to the first region.

[0014] The quality of candidate foods in the first region is labeled in the second region to obtain a labeled image;

[0015] The dietary atlas is generated based on the labeled image.

[0016] In some embodiments, generating the dietary atlas based on the labeled image includes:

[0017] The labeled images are printed as physical dietary atlases and / or electronic dietary atlases are generated based on the labeled images.

[0018] In some embodiments, the method further includes:

[0019] Based on the color of the candidate food, a target background board is selected from candidate background boards of different colors.

[0020] In some embodiments, the method further includes:

[0021] For each candidate food, select candidate foods for different body types.

[0022] In some embodiments, the method further includes:

[0023] Based on the size of each candidate food, arrange the candidate foods in order of size on the target background board with scales.

[0024] Secondly, the present invention also provides a dietary atlas production apparatus, the apparatus comprising:

[0025] The food segmentation module is used to acquire candidate foods and, for each candidate food, divide the candidate food into several portions of different qualities.

[0026] The food weighing module is used to weigh several candidate food portions and obtain the mass of each candidate food portion.

[0027] The food arrangement module is used to arrange each candidate food in order of its weight on a graduated target background board; the target background board is also provided with reference objects.

[0028] The atlas generation module is used to photograph a target background board on which candidate foods and reference objects are placed, obtain a background board image, and generate a dietary atlas based on the background board image.

[0029] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the dietary chart creation method provided in the first aspect.

[0030] Fourthly, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the dietary chart creation method provided in the first aspect.

[0031] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the dietary chart creation method provided in the first aspect.

[0032] The beneficial effects of this invention are as follows: The dietary atlas production method provided in this invention first obtains candidate foods, and for each candidate food, divides it into several portions of different weights; then, weighs these portions to obtain the mass of each portion; then, according to the mass of each portion, arranges them sequentially on a graduated target background board; the target background board also includes reference objects; finally, the target background board with the candidate foods and reference objects is photographed to obtain an image of the background board, and a dietary atlas is generated based on the image. By placing the food, background board, and reference objects together to create a dietary atlas, patients can accurately determine their daily food intake based on the dietary atlas, thereby helping them recover quickly.

[0033] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Attached Figure Description

[0034] Figure 1 This is a schematic flowchart illustrating a method for creating a dietary atlas according to an embodiment of the present invention;

[0035] Figure 2 This is a schematic flowchart illustrating another method for creating a dietary atlas according to an embodiment of the present invention;

[0036] Figure 3 This is a schematic diagram of a dietary atlas production device according to an embodiment of the present invention;

[0037] Figure 4 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0038] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0039] It should be noted that references to "an embodiment," "embodiment," "example embodiment," etc., in this specification refer to the described embodiment including specific features, structures, or characteristics; however, not every embodiment must include these specific features, structures, or characteristics. Furthermore, such expressions do not refer to the same embodiment. Moreover, when describing specific features, structures, or characteristics in conjunction with embodiments, whether or not explicitly described, it is indicated that incorporating such features, structures, or characteristics into other embodiments is within the knowledge of those skilled in the art.

[0040] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0041] In some embodiments, such as Figure 1 The diagram shows a flowchart of a method for creating a dietary atlas, the specific method including:

[0042] S101, Obtain candidate foods, and for each candidate food, divide the candidate food into several portions of different quality.

[0043] The candidate foods are common local foods, such as grains, vegetables, and fruits.

[0044] For example, when the candidate food is rice, the rice can be divided into three portions of different sizes.

[0045] Optionally, different body types can be selected for each candidate food.

[0046] For example, when the candidate food is apples, three apples of different sizes can be selected.

[0047] S102, Weigh several candidate food samples to obtain the mass of each candidate food sample.

[0048] For example, when the candidate food is rice, three portions of rice are weighed, for example, the weights of the three portions of rice are 100 grams, 200 grams, and 300 grams respectively; when the candidate food is apples, three apples of different sizes are weighed, for example, the weights of the three apples are 80 grams, 100 grams, and 120 grams respectively.

[0049] S103, based on the quality of each candidate food, arrange each candidate food in order of its weight on the target background plate with scale.

[0050] The target background board also includes reference objects, which are usually common items such as beverage bottles.

[0051] Optionally, each candidate food can be arranged in order of size on a graduated target background board.

[0052] For example, when the candidate food is an apple and the reference is a beverage bottle, each apple and the reference can be arranged in order of apple size onto a graduated background board with graduations accurate to the millimeter. This way, when patients use the final generated atlas, they have both graduations and references to refer to, enabling them to more accurately grasp the amount of food.

[0053] Optionally, before arranging each candidate food item in order of weight and size on the graduated target background board, the target background board can be selected from candidate background boards of different colors based on the color of the candidate food items.

[0054] For example, when the food is a light-colored food like rice, a black background can be selected as the target background; when the food is a dark-colored food like apples, a white background can be selected as the target background. This increases the contrast between the food and the background, making it easier for users to assess the amount of food.

[0055] S104, take a picture of the target background board on which candidate foods and reference objects are placed to obtain a background board image, and generate a dietary atlas based on the background board image.

[0056] Specifically, after placing the candidate food and reference objects on the target background board, the entire target background board is photographed using a camera to obtain the background board image, which can be directly used as a dietary atlas.

[0057] Optionally, a joint recognition algorithm of edge detection and color clustering can be used to identify a first region and a second region from the background image; the first region is the region where the candidate food is located, and the second region is the background region corresponding to the first region; the quality of the candidate food in the first region is marked in the second region to obtain a labeled image; and the dietary atlas is generated based on the labeled image.

[0058] Specifically, the background image can be divided using Canny edge detection and K-means clustering algorithms to obtain a first region containing candidate foods and a second region corresponding to the first region. The second region is usually located below the first region. The quality of each candidate food in the first region can be labeled in the second region, thus obtaining a labeled image. The labeled image can be directly used as a dietary atlas. Since the dietary atlas contains the quality of each food, it is easier for users to evaluate their own recipes.

[0059] Optionally, the labeled images can be printed as physical dietary charts and / or electronic dietary charts can be generated based on the labeled images.

[0060] Specifically, according to user needs, the labeled images can be printed as physical dietary charts. Some users may use their mobile phones to view the dietary charts, so electronic dietary charts can be generated based on the labeled images.

[0061] The dietary atlas creation method in the above embodiments involves first acquiring candidate foods, then dividing each candidate food into several portions of varying weights; weighing each portion to obtain its mass; arranging each portion of candidate food in order of mass onto a graduated target background board; a reference object is also placed on the target background board; photographing the target background board with the candidate foods and reference object to obtain an image of the background board, and generating a dietary atlas based on the image. By placing the food, background board, and reference object together to create a dietary atlas, patients can accurately determine their daily food intake based on the dietary atlas, thereby helping them recover quickly.

[0062] To more comprehensively demonstrate this solution, this embodiment provides an optional method for creating a dietary atlas, such as... Figure 2 As shown:

[0063] S201, Obtain candidate foods, and for each candidate food, divide the candidate food into several portions of different qualities.

[0064] Optionally, for each candidate food, different body types can be selected as candidate foods.

[0065] S202, Weigh several candidate food samples to obtain the mass of each candidate food sample.

[0066] S203, Select a target background board from candidate background boards of different colors according to the color of the candidate food.

[0067] S204, based on the quality of each candidate food, arrange each candidate food in order of its weight on the target background plate with scale.

[0068] Optionally, based on the size of each candidate food item, the candidate foods are arranged sequentially on a graduated target background board. The target background board also includes reference objects.

[0069] S205, take a picture of the target background board on which candidate food and reference objects are placed, and obtain the background board image.

[0070] S206, using a joint recognition algorithm of edge detection and color clustering, the first region and the second region are identified from the background image.

[0071] S207, mark the quality of the candidate food in the first region in the second region to obtain a marked image.

[0072] S208, the labeled image is printed as a physical dietary chart and / or an electronic dietary chart is generated based on the labeled image.

[0073] The specific processes of S201-S208 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar, and will not be repeated here.

[0074] Based on the same inventive concept, this application also provides a dietary chart production apparatus for implementing the dietary chart production method described above. The solution provided by this apparatus is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the dietary chart production apparatus provided below can be found in the limitations of the dietary chart production method described above, and will not be repeated here.

[0075] In one embodiment, such as Figure 3 As shown, a dietary atlas production apparatus is provided, the apparatus comprising:

[0076] The food segmentation module 30 is used to acquire candidate foods and, for each candidate food, divide the candidate food into several portions of different qualities.

[0077] The food weighing module 31 is used to weigh several candidate foods and obtain the mass of each candidate food.

[0078] The food arrangement module 32 is used to arrange each candidate food in order of its weight on a target background plate with scales; the target background plate is also provided with reference objects.

[0079] The atlas generation module 33 is used to photograph a target background board on which candidate foods and reference objects are placed, obtain a background board image, and generate a dietary atlas based on the background board image.

[0080] In another embodiment, the above Figure 3 The map generation module 33 includes:

[0081] The region segmentation unit is used to identify a first region and a second region from the background image using a joint recognition algorithm of edge detection and color clustering;

[0082] A quality annotation unit is used to annotate the quality of candidate food in the first region in the second region to obtain an annotated image;

[0083] The atlas generation unit is used to generate the dietary atlas based on the labeled image.

[0084] In another embodiment, the atlas generation unit in the above embodiments is specifically used to: print the labeled image as a physical dietary atlas and / or generate an electronic dietary atlas based on the labeled image.

[0085] In another embodiment, the above Figure 3 The dietary atlas making device is also used to: select a target background board from candidate background boards of different colors based on the color of the candidate food.

[0086] In another embodiment, the above Figure 3 The dietary atlas creation device is also used to select candidate foods for different body types for each candidate food.

[0087] In another embodiment, the above Figure 3 The dietary atlas creation device is also used to: arrange each candidate food in order of size on a graduated target background plate according to the size of each candidate food.

[0088] This application also provides an electronic device, in some embodiments, referring to... Figure 4 As shown, the electronic device 700 includes an input unit 710, a memory 720, a processor 730, and an output unit 740. The memory 720 stores program instructions that can be executed on the processor 730. The processor 730 can execute the dietary chart production method and / or technical solution based on the foregoing embodiments by calling the program instructions. The electronic device 700 can be a mobile terminal device such as a mobile phone or a computer.

[0089] Furthermore, embodiments of this application also provide a computer-readable storage medium for storing a computer program that performs a method for creating a dietary chart. For example, computer program instructions, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions that invoke the methods of this application may be stored in a fixed or removable storage medium, and / or transmitted via data streams in broadcast or other signal carrying media, and / or stored in a storage medium that operates according to the program instructions.

[0090] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0091] The technical features of the above embodiments can be arbitrarily integrated. For the sake of brevity, not all possible integrations of the technical features in the above embodiments are described. However, as long as the integration of these technical features does not contradict each other, they should be considered to be within the scope of this specification.

[0092] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A method for creating a dietary atlas, characterized in that, The method includes: Obtain candidate foods, and for each candidate food, divide the candidate food into several portions of different weights; Weigh several candidate food samples to obtain the mass of each sample; Based on the quality of each candidate food item, each candidate food item is arranged in order of weight on a graduated target background board; the target background board is also provided with reference objects. A target background board containing candidate foods and reference objects is photographed to obtain a background board image, and a dietary atlas is generated based on the background board image.

2. The method for creating a dietary atlas as described in claim 1, characterized in that, And generate a dietary atlas based on the background image, including: A first region and a second region are identified from the background image using a joint recognition algorithm of edge detection and color clustering; the first region is the region where the candidate food is located, and the second region is the background region corresponding to the first region. The quality of candidate foods in the first region is labeled in the second region to obtain a labeled image; The dietary atlas is generated based on the labeled image.

3. The method for preparing a dietary atlas as described in claim 2, characterized in that, Generating the dietary atlas based on the labeled image includes: The labeled images are printed as physical dietary atlases and / or electronic dietary atlases are generated based on the labeled images.

4. The method for preparing a dietary atlas as described in claim 1, characterized in that, The method further includes: Based on the color of the candidate food, a target background board is selected from candidate background boards of different colors.

5. The method for preparing a dietary atlas as described in claim 1, characterized in that, The method further includes: For each candidate food, select candidate foods for different body types.

6. The method for preparing a dietary atlas as described in claim 5, characterized in that, The method further includes: Based on the size of each candidate food, arrange the candidate foods in order of size on the target background board with scales.

7. A dietary atlas production device, characterized in that, The device includes: The food segmentation module is used to acquire candidate foods and, for each candidate food, divide the candidate food into several portions of different qualities. The food weighing module is used to weigh several candidate food portions and obtain the mass of each candidate food portion. The food arrangement module is used to arrange each candidate food in order of its weight on a graduated target background board; the target background board is also provided with reference objects. The atlas generation module is used to photograph a target background board on which candidate foods and reference objects are placed, obtain a background board image, and generate a dietary atlas based on the background board image.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the dietary chart production method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the dietary chart preparation method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the method for creating a dietary chart as described in any one of claims 1 to 6.