A diet data recording method and device, electronic equipment and storage medium
By displaying historical food entries in the food recording method and supporting one-click addition, the problem of excessive operations in existing technologies is solved, thus improving the efficiency of food recording.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN CHENBEI TECH CO LTD
- Filing Date
- 2022-11-29
- Publication Date
- 2026-08-04
AI Technical Summary
The existing food recording method requires users to search and add each food item separately, which involves many operations and affects recording efficiency.
This paper provides a method for recording dietary data. By detecting the date and time of eating selected by the user, it displays historical food entries and supports one-click addition, reducing the number of operations required by the user.
With the one-click addition feature, users can complete their food records in fewer steps than with existing technologies, improving recording efficiency.
Smart Images

Figure CN115831321B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of dietary data management, and more specifically, to a dietary data recording method, apparatus, electronic device, and storage medium. Background Technology
[0002] Dietary control is currently a relatively effective way to manage weight / health on the market, and manually recording dietary data is an important means of achieving dietary control.
[0003] However, with existing food recording methods, users need to search and record each food item they've eaten individually. For example, if a user ate apples, ramen, and steak for lunch today, after determining the date (today) and meal (lunch), the user needs to search (even for previously recorded foods), select, and add these three foods to today's lunch. For each food item, at least three operations (search, select, and add) are required. Recording all three requires at least nine (3 x 3) operations, which severely impacts the efficiency of food recording. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a method, apparatus, electronic device and storage medium for recording dietary data, which can reduce the number of operations performed by the user in the process of recording dietary data, thereby improving the efficiency of the user's dietary data recording.
[0005] In a first aspect, embodiments of this application provide a method for recording dietary data, the method comprising:
[0006] After detecting that the target user has selected a target eating date and a target eating session, the target user is shown historical food entries that the target user has added.
[0007] If it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target food item is added to the target meal for the target eating date.
[0008] In one possible implementation, the method further includes:
[0009] After detecting that the target user has selected the target meal and the target eating date, if the target user is detected to have performed a search operation on a reference food entry whose name includes the text of the target food, then in response to the search operation, the reference food entry is searched from the food entry library and displayed to the target user.
[0010] If it is detected that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then the target user is shown the associated historical food items that were added together with the target reference food item.
[0011] If it is detected that the target user has selected at least one target candidate food item from the candidate food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target candidate food item is added to the target meal for the target eating date, wherein the candidate food item includes: the target reference food item and the associated historical food item.
[0012] In one possible implementation, the method further includes:
[0013] For each adjustable food item, if the target user selects the adjustable food item, a modification box is displayed to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include the historical food items and the reference food items. The eating parameters include the eating date, the number of meals, the amount of food eaten, and the eating time accurate to at least the hour.
[0014] In one possible implementation, displaying the reference food entry to the target user includes:
[0015] The target user is shown a first food item recommendation box and a remaining food item box. The first food item recommendation box includes: the first reference food items added by the target user among all the reference food items. The remaining food item boxes include: the second reference food items other than the first reference food items among all the reference food items.
[0016] In one possible implementation, if the number of the first reference food items is 0, the method further includes:
[0017] The target user is shown a second food item recommendation box, wherein the second food item recommendation box includes m third reference food items that have been added by all users in total, where m is a preset positive integer;
[0018] If it is detected that the target user has selected at least one target third reference food item from all the third reference food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target third reference food item is added to the target meal for the target eating date.
[0019] Secondly, embodiments of this application also provide a diet data recording device, the device comprising:
[0020] The first processing module is used to display the historical food entries added by the target user to the target user after detecting that the target user has selected a target eating date and a target eating meal.
[0021] The second processing module is configured to, when it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, and if it is detected that the target user has performed a one-click add operation, respond to the target user's one-click add operation and add the at least one target food item to the target meal for the target eating date.
[0022] In one possible implementation, the device further includes:
[0023] The third processing module is configured to, upon detecting that the target user has selected the target meal and the target eating date, if it detects that the target user has performed a search operation on a reference food item whose name includes the text "target food", then respond to the search operation by retrieving the reference food item from the food item library and displaying the reference food item to the target user; if it detects that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then display the associated historical food items that were added together with the target reference food item to the target user; if it detects that the target user has selected at least one target candidate food item from the candidate food items, and if it detects that the target user has performed a one-click add operation, then respond to the one-click add operation by adding the at least one target candidate food item to the target meal under the target eating date, wherein the candidate food items include: the target reference food item and the associated historical food items.
[0024] In one possible implementation, the device further includes:
[0025] The fourth processing module is used to, for each adjustable food item, if the target user selects the adjustable food item, display a modification box to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include: the historical food items and the reference food items. The eating parameters include: eating date, number of meals, amount of food, and eating time accurate to at least the hour.
[0026] In one possible implementation, when the third processing module displays the reference food entry to the target user, it specifically performs the following functions:
[0027] The target user is shown a first food item recommendation box and a remaining food item box. The first food item recommendation box includes: the first reference food items added by the target user among all the reference food items. The remaining food item boxes include: the second reference food items other than the first reference food items among all the reference food items.
[0028] In one possible implementation, the device further includes:
[0029] The fifth processing module is configured to, if the number of the first reference food items is 0, display a second food item recommendation box to the target user, wherein the second food item recommendation box includes m third reference food items with a relatively large total number added by all users, where m is a preset positive integer; if it is detected that the target user has selected at least one target third reference food item from all the third reference food items, and if it is detected that the target user has performed a one-click add operation, then respond to the one-click add operation of the target user and add the at least one target third reference food item to the target meal for the target eating date.
[0030] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the dietary data recording method described in any of the first aspects.
[0031] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the dietary data recording method as described in any of the first aspects.
[0032] The present application provides a method, apparatus, electronic device, and storage medium for recording dietary data, which can reduce the number of operations a user performs during the dietary recording process, thereby improving the efficiency of the user's dietary recording. Attached Figure Description
[0033] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 A flowchart of a dietary data recording method provided in an embodiment of this application is shown;
[0035] Figure 2 A flowchart of another dietary data recording method provided in an embodiment of this application is shown;
[0036] Figure 3 This illustration shows a structural schematic diagram of a diet data recording device provided in an embodiment of this application;
[0037] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0039] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0040] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0041] To facilitate understanding of this embodiment, a detailed description will be provided of a dietary data recording method, apparatus, electronic device, and storage medium provided in this application embodiment.
[0042] Reference Figure 1 The diagram shown is a flowchart of a dietary data recording method provided in an embodiment of this application. The method includes:
[0043] S101. After detecting that the target user has selected a target eating date and a target eating meal, display the historical food entries added by the target user to the target user.
[0044] Target users can select target eating dates from the eating date page displayed to them, and select target eating times from the eating meal page displayed to them. Eating times can include: breakfast, lunch, dinner, and can also include snacks and late-night snacks.
[0045] The eating date associated with a historical food entry can be after the target eating date.
[0046] S102. If it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target food item is added to the target meal under the target eating date.
[0047] For example, a one-click add button can be displayed to the target user. If the target user clicks the one-click add button, it is considered that the target user has performed a one-click add operation.
[0048] Using this application method, you can also add 3 food items. If you have added these 3 food items before, you only need 4 steps to complete the food record (3 selections and 1 one-click addition).
[0049] Preferably, displaying the target user's historical food entries to the target user may include:
[0050] According to the target order, the historical food entries added by the target user are displayed to the target user, wherein the target order is any of the following: the order of the latest addition time from late to early, the order of addition frequency from high to low, the order of the first letter of the food name from A to Z, and the order of the first letter of the food name from Z to A.
[0051] The latest addition time is the time when it was last added. For example, if strawberries were added twice, once for lunch on October 10, 2022 (eaten at 12 pm) and once for dinner on October 18, 2022 (eaten at 6 pm), then the latest addition time for strawberries is 6 pm on October 18, 2022.
[0052] Food names can be in English or in Chinese pinyin.
[0053] Target users can choose to use different target sequences as needed.
[0054] Reference Figure 2 The diagram shown is a flowchart of another dietary data recording method provided in an embodiment of this application. In one possible implementation, the method further includes:
[0055] S201. After detecting that the target user has selected the target meal and the target eating date, if the target user is detected to perform a search operation on a reference food item whose name includes the text of the target food, then in response to the search operation, the reference food item is searched from the food item library and displayed to the target user.
[0056] For example, if the target food item is described as "apple," then the target user will be shown food items whose names contain "apple," such as Fuji apples or yellow banana apples.
[0057] For example, a food entry search box (the food entry search box and the historical food entries described in step S101 can be displayed simultaneously or separately) and a search button can be displayed to the target user. After detecting that the target user enters the target food text into the food entry search box and clicks the search button, it is determined that the target user has performed the above search operation.
[0058] S202. If it is detected that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then the target user is shown the associated historical food items that were added together with the target reference food item.
[0059] For example, if a user selects Fuji apples, and Fuji apples have been added three times before: first, alone, for lunch on October 1, 2022; second, together with pasta, for dinner on October 2, 2022; and third, together with Japanese ramen, for lunch on October 3, 2022, then the associated food entries for Fuji apples would include: pasta and Japanese ramen.
[0060] S203. If it is detected that the target user has selected at least one target candidate food item from the candidate food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target candidate food item is added to the target meal under the target eating date, wherein the candidate food item includes: the target reference food item and the associated historical food item.
[0061] In one possible implementation, the method further includes:
[0062] For each adjustable food item, if the target user selects the adjustable food item, a modification box is displayed to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include the historical food items and the reference food items. The eating parameters include the eating date, the number of meals, the amount of food eaten, and the eating time accurate to at least the hour.
[0063] For portion sizes, you can set a default value; for meal times, you can leave them blank by default.
[0064] For example, meal times can be accurate to the minute.
[0065] The edit box allows you to set a save edit button. For each adjustable food item, once the user has modified the eating parameters of that adjustable food item and clicked the save edit button, the original eating parameters of that adjustable food item will be replaced with the modified eating parameters.
[0066] In existing technologies, once a user selects the wrong eating parameters when adding a food item, they cannot modify them and must delete the food item and add it again (i.e., it can only be adjusted before adding, that is, during the adding process). However, in this application, users can directly modify the eating parameters through the editing box after adding the food item.
[0067] Therefore, in step S102, if the target user is detected to have performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target food item is added to the target meal number under the target eating date. That is: if the target user is detected to have performed a one-click add operation, then in response to the target user's one-click add operation, for each target food item, if the target user has not adjusted the eating date and meal number of the target food item, then the target food item is added to the target meal number under the adjusted eating date of the target food item.
[0068] Therefore, in step S204, if a target user is detected to have performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target candidate food item is added to the target meal number under the target eating date. That is: if a target user is detected to have performed a one-click add operation, then in response to the target user's one-click add operation, for each target candidate food item, if the target user has not adjusted the eating date and meal number of the target candidate food item, the target candidate food item is added to the target meal number under the target eating date; if the target user has adjusted the eating date and meal number of the target candidate food item, then the target candidate food item is added to the adjusted meal number under the adjusted eating date of the target candidate food item.
[0069] Preferably, the display order of historical food entries associated with the target meal is higher than the display order of historical food entries associated with meals other than the target meal. For any two historical food entries associated with the same meal, the historical food entries associated with the same meal with higher addition frequency are displayed higher than the historical food entries associated with the same meal with lower addition frequency. For any two historical food entries associated with the same meal and the same frequency, the historical food entries associated with the same frequency and the same meal with a later addition time are displayed higher than the historical food entries associated with the same frequency and the same meal with an earlier addition time.
[0070] In one possible implementation, displaying the reference food entry to the target user includes:
[0071] The target user is shown a first food item recommendation box and a remaining food item box. The first food item recommendation box includes: the first reference food items added by the target user among all the reference food items. The remaining food item boxes include: the second reference food items other than the first reference food items among all the reference food items.
[0072] The first reference food item added by the target user in all the reference food items can be a preset number of first reference food items added by the target user in all the reference food items. The preset number can be 3. For example, if there are a total of 7 first reference food items, then only 3 will be displayed in the first food item recommendation box, and the remaining 4 will be placed in the remaining food item boxes.
[0073] For example, the first food item recommendation box can be displayed before the other food item boxes.
[0074] The order in which the first reference food entries are displayed can be sorted from latest to earliest based on the time they were last added.
[0075] The second reference food entries can be displayed in the order of food names from A to Z.
[0076] The first food item recommendation box and the other food item boxes can be displayed simultaneously, or they can be switched to be displayed separately.
[0077] In one possible implementation, if the number of the first reference food items is 0, the method further includes:
[0078] The target user is shown a second food item recommendation box, wherein the second food item recommendation box includes m third reference food items that have been added by all users in total, where m is a preset positive integer;
[0079] If it is detected that the target user has selected at least one target third reference food item from all the third reference food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target third reference food item is added to the target meal for the target eating date.
[0080] For example, there are a total of 5 users (including: user 1, user 2, user 3 and user 4). User 1 has added the noodles with soybean paste 3 times, user 2 has added the noodles with soybean paste 2 times, user 3 has added the noodles with soybean paste 4 times, user 4 has added the noodles with soybean paste 10 times, and user 5 (the target user) has added the noodles with soybean paste 0 times. Then, the total number of times the noodles with soybean paste have been added by all users is 19 (3+2+4+10).
[0081] For example, the second food item recommendation box can be displayed together with the first food item recommendation box and the other food item boxes, and the display order can be before the first food item recommendation box and the other food item boxes.
[0082] The dietary data recording method provided in this application embodiment can reduce the number of operations a user needs to perform during the dietary recording process, thereby improving the efficiency of the user's dietary recording.
[0083] Reference Figure 3 The diagram shown is a structural schematic of a dietary data recording device provided in an embodiment of this application. The device includes:
[0084] The first processing module 301 is used to display the historical food entries added by the target user to the target user after detecting that the target user has selected a target eating date and a target eating meal.
[0085] The second processing module 302 is configured to, when it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, if it is detected that the target user has performed a one-click add operation, respond to the one-click add operation of the target user and add the at least one target food item to the target meal for the target eating date.
[0086] In one possible implementation, the device further includes:
[0087] The third processing module is configured to, upon detecting that the target user has selected the target meal and the target eating date, if it detects that the target user has performed a search operation on a reference food item whose name includes the text "target food", then respond to the search operation by retrieving the reference food item from the food item library and displaying the reference food item to the target user; if it detects that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then display the associated historical food items that were added together with the target reference food item to the target user; if it detects that the target user has selected at least one target candidate food item from the candidate food items, and if it detects that the target user has performed a one-click add operation, then respond to the one-click add operation by adding the at least one target candidate food item to the target meal under the target eating date, wherein the candidate food items include: the target reference food item and the associated historical food items.
[0088] In one possible implementation, the device further includes:
[0089] The fourth processing module is used to, for each adjustable food item, if the target user selects the adjustable food item, display a modification box to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include: the historical food items and the reference food items. The eating parameters include: eating date, number of meals, amount of food, and eating time accurate to at least the hour.
[0090] In one possible implementation, when the third processing module displays the reference food entry to the target user, it specifically performs the following functions:
[0091] The target user is shown a first food item recommendation box and a remaining food item box. The first food item recommendation box includes: the first reference food items added by the target user among all the reference food items. The remaining food item boxes include: the second reference food items other than the first reference food items among all the reference food items.
[0092] In one possible implementation, the device further includes:
[0093] The fifth processing module is configured to, if the number of the first reference food items is 0, display a second food item recommendation box to the target user, wherein the second food item recommendation box includes m third reference food items with a relatively large total number added by all users, where m is a preset positive integer; if it is detected that the target user has selected at least one target third reference food item from all the third reference food items, and if it is detected that the target user has performed a one-click add operation, then respond to the one-click add operation of the target user and add the at least one target third reference food item to the target meal for the target eating date.
[0094] The dietary data recording device provided in this application embodiment can reduce the number of operations a user needs to perform during the dietary recording process, thereby improving the efficiency of the user's dietary recording.
[0095] Reference Figure 4 As shown in the embodiment of this application, an electronic device 400 includes a processor 401, a memory 402, and a bus. The memory 402 stores machine-readable instructions executable by the processor 401. When the electronic device is running, the processor 401 communicates with the memory 402 via the bus, and the processor 401 executes the machine-readable instructions to perform the steps of the dietary data recording method described above.
[0096] Specifically, the memory 402 and processor 401 mentioned above can be general-purpose memory and processor, without any specific limitations. When the processor 401 runs the computer program stored in the memory 402, it can execute the above-mentioned method for recording dietary data.
[0097] Corresponding to the above-described method for recording dietary data, this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described method for recording dietary data.
[0098] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, methods, and procedures can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces; the indirect coupling or communication connection of devices or modules may be electrical, mechanical, or other forms.
[0099] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0100] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0101] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0102] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of recording dietary data, characterized by, The method includes: After detecting that the target user has selected a target eating date and a target meal, the system displays historical food entries added by the target user. These historical food entries include reference food entries found by the target user based on their own eating records, as well as related historical food entries added together with the reference food entries, to display the food the user has eaten. The display order of the historical food entries is the target order, which includes any of the following: the order of the latest added time from latest to earliest, or the order of the frequency of addition from high to low. If it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target food item is added to the target meal under the target eating date, so that at least one target food item in the historical food items is recorded again as the eaten content of the target eating date and the target meal.
2. The dietary data recording method according to claim 1, wherein The method further includes: After detecting that the target user has selected the target meal and the target eating date, if the target user is detected to have performed a search operation on a reference food entry whose name includes the text of the target food, then in response to the search operation, the reference food entry is searched from the food entry library and displayed to the target user. If it is detected that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then the target user is shown the associated historical food items that were added together with the target reference food item. If it is detected that the target user has selected at least one target candidate food item from the candidate food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target candidate food item is added to the target meal for the target eating date, wherein the candidate food item includes: the target reference food item and the associated historical food item.
3. The dietary data recording method according to claim 2, characterized by, The method further includes: For each adjustable food item, if the target user selects the adjustable food item, a modification box is displayed to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include the historical food items and the reference food items. The eating parameters include the eating date, the number of meals, the amount of food eaten, and the eating time accurate to at least the hour.
4. The dietary data recording method according to claim 2, wherein Displaying the reference food entry to the target user includes: The target user is shown a first food item recommendation box and a remaining food item box. The first food item recommendation box includes: the first reference food items added by the target user among all the reference food items. The remaining food item boxes include: the second reference food items other than the first reference food items among all the reference food items.
5. The dietary data recording method according to claim 4, wherein If the number of the first reference food items is 0, the method further includes: The target user is shown a second food item recommendation box, wherein the second food item recommendation box includes m third reference food items that have been added by all users in total, where m is a preset positive integer; If it is detected that the target user has selected at least one target third reference food item from all the third reference food items, and if it is detected that the target user has performed a one-click add operation, then in response to the target user's one-click add operation, the at least one target third reference food item is added to the target meal for the target eating date.
6. A dietary data recording apparatus characterized by comprising: The device includes: The first processing module is used to display historical food entries added by the target user to the target user after detecting that the target user has selected a target eating date and a target eating meal. The historical food entries include reference food entries found by the target user based on their own eating records, as well as related historical food entries that have been added together with the reference food entries, so as to display the food that the user has eaten. The display order of the historical food entries is a target order, which includes any of the following: the order of the latest addition time from late to early, or the order of the addition frequency from high to low. The second processing module is configured to, when it is detected that the target user has selected at least one target food item that needs to be added again from the historical food items, if it is detected that the target user has performed a one-click add operation, respond to the target user's one-click add operation and add the at least one target food item to the target meal under the target eating date, so as to record at least one target food item in the historical food items as the eaten content of the target eating date and the target meal again.
7. The dietary data recording apparatus according to claim 6, wherein The device further includes: The third processing module is configured to, upon detecting that the target user has selected the target meal and the target eating date, if it detects that the target user has performed a search operation on a reference food item whose name includes the text "target food", then respond to the search operation by retrieving the reference food item from the food item library and displaying the reference food item to the target user; if it detects that the target user has selected a target reference food item from all the reference food items, and the target reference food item has been added by the target user, then display the associated historical food items that were added together with the target reference food item to the target user; if it detects that the target user has selected at least one target candidate food item from the candidate food items, and if it detects that the target user has performed a one-click add operation, then respond to the one-click add operation by adding the at least one target candidate food item to the target meal under the target eating date, wherein the candidate food items include: the target reference food item and the associated historical food items.
8. The dietary data recording apparatus according to claim 7, wherein The device further includes: The fourth processing module is used to, for each adjustable food item, if the target user selects the adjustable food item, display a modification box to the target user to allow the target user to adjust the eating parameters of the adjustable food item. The adjustable food items include: the historical food items and the reference food items. The eating parameters include: eating date, number of meals, amount of food, and eating time accurate to at least the hour.
9. An electronic device, comprising: include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the dietary data recording method as described in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the dietary data recording method as described in any one of claims 1 to 5.