METHOD FOR MONITORING BLOOD GLUCOSE LEVEL, USER INTERFACE AND CORRESPONDING DEVICE

RU2026108373APending Publication Date: 2026-06-29HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
RU · RU
Patent Type
Applications
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-12-28
Publication Date
2026-06-29

AI Technical Summary

Technical Problem

In the prior art, the blood sugar management method of diabetic patients fails to effectively consider individual differences, resulting in the application of the food glycemic index that is not reasonable enough and cannot accurately evaluate and control blood sugar fluctuations.

Method used

By combining factors such as user's historical blood sugar value, meal time, limb movements and heart rate, electronic devices predict users' meal time and provide personalized food absorption index to help users adjust their dietary habits to control their blood sugar.

Benefits of technology

It achieves more accurate blood sugar assessment and personalized diet management, helping users effectively control blood sugar fluctuations in their daily lives and reduce the harm caused by high and low blood sugar.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

A blood glucose management method, a user interface, and a related apparatus. The blood glucose management method comprises: on the basis of historical blood glucose levels of a user, determining a first mealtime; on the basis of one or more of a mealtime inputted by the user, and body movements and the heart rate of the user, determining a second mealtime; on the basis of the first mealtime and the second mealtime, determining a third mealtime; and assessing a blood glucose health status of the user by means of the third mealtime. Historical mealtimes of a user that are determined using multiple methods are combined to predict a mealtime of the user, so that an electronic device can more accurately assess a blood glucose situation of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Blood glucose management method, user interface and related device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on December 29, 2023, with application number 202311870197.X, and priority to the Chinese patent application entitled "Blood Glucose Management Method, User Interface and Related Devices", all contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to blood glucose management methods, user interfaces, and related devices. Background Art

[0003] In recent years, the incidence of diabetes has gradually increased. As a long-term chronic disease, if blood sugar levels in the body are not controlled in time, diabetes can easily lead to chronic damage and dysfunction of various tissues, especially the eyes, kidneys, heart, blood vessels, and nerves. Users' daily behavior and self-management are key factors affecting diabetes control. Summary of the Invention

[0004] This application provides a blood sugar management method, user interface and related devices to accurately calculate the user's meal time.

[0005] In a first aspect, an embodiment of the present application provides a blood glucose management method, which is applied to an electronic device, and the method includes: determining a first meal time based on a user's historical blood glucose values; determining a second meal time based on any one or more of the following: a meal time input by the user, the user's body movements, and the user's heart rate; determining a third meal time based on the first meal time and the second meal time, and the third meal time is used by the electronic device to evaluate the user's blood glucose condition.

[0006] By implementing the method provided in the first aspect, the user's historical meal times estimated in various ways can be combined to summarize the user's dining patterns in daily diet, thereby accurately predicting the user's future meal times, making it easier for electronic devices to use the meal times to provide more accurate blood sugar assessment results.

[0007] In combination with the first aspect, in one implementation, after the electronic device determines the third meal time based on the first meal time and the second meal time, the method further includes: when the third meal time arrives, outputting a first prompt information, the first prompt information being used to indicate that the current time has arrived at the meal time predicted by the electronic device.

[0008] In this way, the user can know through the first prompt information that the meal time predicted by the electronic device has arrived.

[0009] In combination with the first aspect, in one implementation, the method also includes: detecting a first operation acting on the first prompt information, determining the third meal time as the meal time of the user's first dietary event, or determining the fourth meal time as the meal time of the user's first dietary event, the fourth meal time being different from the third meal time.

[0010] This is because the meal time predicted by the electronic device may not be the user's actual meal time. Therefore, the electronic device can remind the user to confirm or modify the predicted meal time after it reaches the predicted meal time, so that the electronic device can provide more accurate blood sugar assessment results based on the user's actual meal time.

[0011] In combination with the first aspect, in one implementation, the fourth meal time is a time input by the user or a time determined according to the third meal time.

[0012] That is, if the time predicted by the electronic device is not the user's actual meal time, the user can manually input the actual meal time, or the electronic device can determine a calibrated meal time.

[0013] In combination with the first aspect, in one implementation, the fourth meal time is determined as the meal time of the user's first dietary event. After detecting a first operation acting on the first prompt information, the method also includes: displaying the first prompt information after a first time interval; detecting a second operation acting on the first prompt information, and determining the current time as the fourth meal time.

[0014] That is, if the time predicted by the electronic device is not the user's actual meal time, the electronic device may remind the user to confirm the meal time after a period of time until the user confirms the meal time.

[0015] In combination with the first aspect, in one implementation, before or after the meal time of the first dietary event is determined, the method also includes: determining the first food and the first intake of the first food that the user will consume under the first dietary event; determining a first blood glucose curve based on the information of the first food and the first intake of the first food, as well as the blood glucose value of the user before the current time point, the first blood glucose curve being the blood glucose change of the user under the influence of the first dietary event predicted by the electronic device; and displaying the first blood glucose curve.

[0016] In this way, users can check the electronic device's prediction of possible blood sugar changes after a meal before eating, so that users can adjust the food and food intake in time during this eating event, and take timely measures to protect their health before the food intake endangers their health.

[0017] In combination with the first aspect, in one implementation, the method further includes: determining a second blood glucose curve based on the user's blood glucose value before the current time point, the second blood glucose curve being the blood glucose change of the user predicted by the electronic device in the absence of the first dietary event; and displaying the second blood glucose curve.

[0018] In this way, users can compare the future changes in blood sugar under the influence of dietary events and in the absence of dietary events, highlight the relationship between dietary events and user blood sugar, and enable users to better plan healthy eating habits, thereby effectively avoiding the harm caused by high and low blood sugar.

[0019] In combination with the first aspect, in one implementation, a first blood glucose curve is determined based on information about the first food and the first intake of the first food, as well as the blood glucose value of the user before the current time point, specifically including: determining the first blood glucose curve based on the user's absorption index of the first food and the first intake of the first food, as well as the blood glucose value of the user before the current time point, wherein the user's absorption index of the first food is related to the first food and the user's physical condition.

[0020] That is to say, the electronic device can predict the user's future blood sugar status based on the user's food absorption index and provide the user with accurate blood sugar prediction results.

[0021] In combination with the first aspect, in one implementation, the method also includes: determining the user's absorption index of the first food based on the blood sugar value and physical condition within a first time period after the user ingests the second intake of the first food, and the physical condition includes any one or more of the following: age, height, weight, type of illness and medication information.

[0022] It can be seen that this application takes into account that different people have different absorption conditions of food, and therefore calculates a personalized food absorption index suitable for the individual in combination with the user's physical condition.

[0023] In combination with the first aspect, in one implementation, the electronic device stores the user's absorption index for multiple foods.

[0024] That is to say, the electronic device can measure the absorption index of various foods and save it locally. In this way, the user can understand the impact of various foods on the user's blood sugar through the absorption index of the various foods, which helps the user to arrange his diet more reasonably.

[0025] In combination with the first aspect, in one implementation, the method further includes: determining a third intake of the user based on the blood glucose level of the user within a second period of time after the third meal time; and displaying the third intake.

[0026] In this way, users can understand their intake at each meal and then control the intake at each meal, so that users can develop regular eating habits and control stable fluctuations in blood sugar.

[0027] In combination with the first aspect, in one implementation, the method further includes: obtaining the user's blood glucose value within a third time period after the third meal time; and displaying a third blood glucose curve, where the third blood glucose curve is determined by multiple blood glucose values ​​of the user within a third time period after the third meal time.

[0028] In this way, users can understand their actual blood sugar status under the influence of dietary events after a meal, helping users to more intuitively understand the impact of diet on blood sugar, making it easier for users to control blood sugar through diet.

[0029] In combination with the first aspect, in one implementation, determining the first meal time based on the user's historical blood glucose levels specifically includes: determining the first meal time based on the rising rate of the user's historical blood glucose levels.

[0030] Since the user's blood sugar level tends to rise after a meal, the user's meal time can be accurately determined based on the rising rate of the blood sugar level.

[0031] In a second aspect, an embodiment of the present application provides a blood sugar management method, which is applied to an electronic device. The method includes: obtaining the blood sugar value within a first time period after the user ingests a second amount of the first food; determining the user's absorption index of the first food based on the blood sugar value within the first time period and the user's physical condition.

[0032] By implementing the method provided in the second aspect, a personalized food absorption index suitable for the individual can be calculated based on the user's physical condition, so that the user can develop a better diet plan based on his or her actual physical condition.

[0033] In conjunction with the second aspect, in one implementation, the physical condition includes any one or more of the following: age, height, weight, disease type, and medication information.

[0034] In combination with the second aspect, in one implementation, the method also includes: determining the first food that the user is to consume and the first intake of the first food under the first dietary event; determining a first blood glucose curve based on the user's absorption index of the first food and the first intake of the first food, as well as the user's blood glucose value before the current time point, the first blood glucose curve being the blood glucose change of the user under the influence of the first dietary event predicted by the electronic device; and displaying the first blood glucose curve.

[0035] In combination with the second aspect, in one implementation, the method further includes: determining a second blood glucose curve based on the user's blood glucose value before the current time point, the second blood glucose curve being the blood glucose change of the user predicted by the electronic device without the influence of the first dietary event; and displaying the second blood glucose curve.

[0036] In combination with the second aspect, in one implementation, the method also includes: determining a first meal time based on the user's historical blood glucose values; determining a second meal time based on any one or more of the following: a meal time input by the user, the user's body movements, and the user's heart rate; determining a third meal time based on the first meal time and the second meal time; determining a first food and a first intake of the first food that the user will consume under the first diet event, specifically including: after reaching the third meal time, determining the first food and the first intake of the first food that the user will consume under the first diet event.

[0037] In combination with the second aspect, in one implementation, the electronic device determines the first meal time based on the user's historical blood glucose levels, specifically including: determining the first meal time based on the rising rate of the user's historical blood glucose levels.

[0038] In combination with the second aspect, in one implementation, the method further includes: when the third meal time arrives, outputting first prompt information, the first prompt information being used to indicate that the current time has arrived at the meal time predicted by the electronic device.

[0039] In combination with the second aspect, in one implementation, after outputting the first prompt information, the method also includes: detecting a first operation acting on the first prompt information, determining the third meal time as the meal time of the first dietary event, or determining the fourth meal time as the meal time of the first dietary event, the fourth meal time being different from the third meal time.

[0040] In combination with the second aspect, in one implementation, the fourth meal time is a time input by the user or a time determined according to the third meal time.

[0041] In combination with the second aspect, in one implementation, the fourth meal time is determined as the meal time of the user's first dietary event. After detecting a first operation acting on the first prompt information, the method also includes: displaying the first prompt information after a first time interval; detecting a second operation acting on the first prompt information, and determining the current time as the fourth meal time.

[0042] In combination with the second aspect, in one implementation, the method further includes: determining a third intake of the user based on the blood glucose level of the user within a second period of time after the third meal time; and displaying the third intake.

[0043] In combination with the second aspect, in one implementation, the method further includes: obtaining the user's blood glucose value within a third time period after the third meal time; and displaying a third blood glucose curve, where the third blood glucose curve is determined by multiple blood glucose values ​​of the user within a third time period after the third meal time.

[0044] In combination with the second aspect, in one implementation, the electronic device stores the user's absorption index for multiple foods.

[0045] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method described in the first aspect or any one of the implementations of the first aspect, or the method described in the second aspect or any one of the implementations of the second aspect.

[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium comprising instructions, which, when executed on an electronic device, cause the electronic device to execute the method described in the first aspect or any one of the implementations of the first aspect, or the method described in the second aspect or any one of the implementations of the second aspect.

[0047] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the method described in the first aspect or any one of the implementations of the first aspect, or the method described in the second aspect or any one of the implementations of the second aspect.

[0048] For the description of the beneficial effects of the second to fifth aspects, reference may be made to the description of the beneficial effects in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] FIG1 is a schematic structural diagram of a communication system 1000 according to an embodiment of the present application;

[0050] FIG2 is a schematic diagram of the overall process of the blood sugar management method provided in an embodiment of the present application;

[0051] FIG3A-FIG3B are page contents for evaluating a user's blood sugar health status displayed by the electronic device 100 according to an embodiment of the present application;

[0052] FIG4 is a schematic diagram of a process for determining a user's meal time according to an embodiment of the present application;

[0053] 5A-5D are some user interfaces displayed by the electronic device 100 according to an embodiment of the present application after the user's meal time t0 is reached;

[0054] 6A-6F are some user interfaces involved in the process of measuring the food absorption index of the electronic device 100 provided in an embodiment of the present application;

[0055] FIG7 is a flow chart of another blood sugar management method provided in an embodiment of the present application;

[0056] FIG8 is a schematic diagram of the hardware structure of the electronic device 100 provided in an embodiment of the present application;

[0057] FIG9 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application;

[0058] FIG10 is a schematic structural diagram of a blood glucose management device 300 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0060] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0061] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.

[0062] In the user's daily behavior, diet is one of the key factors affecting blood sugar fluctuations. Paying attention to the user's meal time can use this meal time as a starting point, combined with the user's blood sugar, to evaluate the user's blood sugar status under the influence of diet, so that the user can start from diet in time, control the user's blood sugar so that it can fluctuate within the normal range and ensure the user's health.

[0063] An embodiment of the present application provides a blood glucose management method, which can obtain the blood glucose value historically collected by a continuous glucose monitoring (CGM) device, use the blood glucose value to calculate the user's historical meal time t1, and determine the user's historical meal time t2 based on any one or more of the following: the historical meal time input by the user, the user's body movements and the user's heart rate. Thereafter, the user's meal time t0 can be determined based on the historical meal time t1 and the historical meal time t2. The electronic device 100 can evaluate the user's blood glucose condition through the user's meal time t0.

[0064] Among them, the CGM device can implant a biosensor (microneedle sensor) subcutaneously to contact the tissue fluid, thereby determining the sugar concentration of the tissue fluid, and then determining the user's blood sugar level based on the sugar concentration of the tissue fluid.

[0065] Since the user's blood sugar level generally increases gradually after eating, the user's historical meal times can be calculated based on the user's historical blood sugar level changes.

[0066] In addition, the user can also manually input historical meal times based on his or her memory, or, since the user's meal usually includes body movements of the hands, or the user's heart rate may change during the meal, if the electronic device 100 is a wearable device such as a watch or a bracelet, or the electronic device 100 is connected to a wearable device such as a watch or a bracelet, the electronic device 100 can determine whether the user has a meal through the body movements, heart rate values, etc. detected by the wearable device, and record the user's meal time if it is determined that the user has a meal.

[0067] It can be seen that the embodiments of the present application can combine the user's historical meal times estimated in various ways to summarize the user's dining patterns in daily diet, thereby accurately predicting the user's meal times, making it easier for the electronic device 100 to use the meal times to provide more accurate blood sugar assessment results and opinions and suggestions, etc.

[0068] Dietary therapy is one of the most basic and important treatments for diabetes. A balanced diet can effectively control diabetes. Many official organizations recommend that people, especially those with diabetes, refer to the glycemic index (GI) chart to make informed food choices and maintain a healthy diet. They also recommend that food labels indicate the total carbohydrate content and GI value of foods.

[0069] GI is an indicator used to measure the speed and ability of a user's blood sugar to rise after consuming food. The higher the GI, the more severe the postprandial blood sugar response caused by the food. Low-GI foods are more suitable for diabetics, while high-GI foods are not suitable for diabetics. Users can choose foods that are more suitable for their health based on the GI of the food and control their blood sugar fluctuations within the normal range.

[0070] However, the existing GI values ​​of various foods are based on the assumption that the same food has the same blood sugar effect on different individuals. This makes it unreasonable for different users to control their blood sugar only through the unified GI value of food. The GI value does not take into account individual differences such as the absorption capacity of different users for food, and the absorption of food by diabetic patients under the influence of medication.

[0071] An embodiment of the present application also provides a blood sugar management method, which can obtain the user's blood sugar value over a period of time after the user ingests a second amount of a first food, and determine the user's absorption index of the first food based on the blood sugar value and the user's physical condition.

[0072] The physical condition may include one or more of the following: age, height, weight, type of illness, and medication information, etc.

[0073] Since the GI values ​​of various foods currently known are reference values ​​suitable for the general population based on measurements of healthy people, this application takes into account that different people have different absorption of food. Therefore, it combines the user's physical condition to calculate a personalized food absorption index suitable for the individual, so that the user can develop a better diet plan based on his or her actual physical condition.

[0074] FIG1 is a schematic structural diagram of a communication system 1000 provided in an embodiment of the present application.

[0075] As shown in FIG. 1 , a communication system 1000 may include an electronic device 100 and an electronic device 200 .

[0076] The electronic device 100 may be a mobile phone, computer, wearable device, or the like. The electronic device 100 may obtain the blood glucose level collected by the electronic device 200 and determine the user's historical meal time t1 and historical meal time t2 based on the blood glucose level. The historical meal time t2 may be determined based on any one or more of the following: a meal time manually entered by the user, the user's body movements, or the user's heart rate. The user's meal time t0 may be determined based on the historical meal time t1 and the historical meal time t2, and the user's blood glucose status may be assessed based on the user's meal time t0. Furthermore, the electronic device 100 may also obtain the user's blood glucose level after ingesting food through the electronic device 200 and determine the user's absorption index for the food based on the blood glucose level and the user's physical condition.

[0077] The electronic device 200 may be a CGM device, which may be worn by a user to collect the user's blood sugar level and send it to the electronic device 100 .

[0078] A communication connection may be established between the electronic device 100 and the electronic device 200. Specifically, the communication connection may refer to a wired connection or a wireless connection. The wireless connection may refer to a short-range connection such as a high-fidelity wireless communication (Wi-Fi) connection, a Bluetooth connection, an infrared connection, an NFC connection, a ZigBee connection, or a long-range connection. The long-range connection includes but is not limited to a long-range connection based on a mobile network of 2G, 3G, 4G, 5G, and subsequent standard protocols. For example, the electronic device 100 and the electronic device 200 may establish a communication connection via Bluetooth.

[0079] In some embodiments, considering that electronic device 200 is worn on the user and can contact the user's skin, if electronic device 100 can also contact the user's skin, electronic device 100 and electronic device 200 can communicate through human skin. For example, electronic device 100 can obtain a blood glucose value sent by electronic device 200 through human skin. Exemplarily, electronic device 100 and electronic device 200 may include electrodes, and electronic device 100 and electronic device 200 can communicate through human skin through the electrodes. For example, electronic device 100 can receive a blood glucose value sent by electronic device 200 through the electrodes.

[0080] It is understandable that the communication system 1000 may further include more or fewer electronic devices. For example, if the electronic device 100 is a mobile phone, the communication system 1000 may further include a wearable device such as a watch or a bracelet. The device may determine whether the user has eaten based on factors such as the user's body movements and / or heart rate, and record the user's meal time and send the meal time to the electronic device 100. The embodiment of the present application does not limit the number of electronic devices included in the communication system 1000.

[0081] FIG2 is a schematic diagram of the overall flow of the blood glucose management method provided in an embodiment of the present application.

[0082] As shown in FIG2 , the blood sugar management method may include the following steps:

[0083] S101. The electronic device 100 predicts the user's meal time.

[0084] The electronic device 100 may summarize the user's daily eating habits based on the user's historical meal times determined under historical dietary events, and further infer the user's future meal times.

[0085] For example, the electronic device 100 can combine the user's historical blood glucose levels, as well as factors such as user manual input and / or user body movements and / or user heart rate to predict the user's meal time. A detailed description of the electronic device 100 predicting the user's meal time can be found in the subsequent FIG. 4 and will not be expanded here.

[0086] S102. The electronic device 100 calibrates the meal time.

[0087] After the electronic device 100 predicts the meal time, it can be displayed to the user, and the user can calibrate the meal time.

[0088] For example, the electronic device 100 may output a prompt message when the predicted meal time arrives, prompting the user whether to start eating currently, and the user may calibrate the meal time based on the prompt message.

[0089] It is understandable that step S102 is an optional step, and the electronic device 100 does not need to calibrate the meal time after predicting the user's meal time.

[0090] S103. The electronic device 100 evaluates the user's blood sugar status based on meal times.

[0091] After the electronic device 100 obtains the meal time, the electronic device 100 can take the meal time as the starting point to record the user's food intake and blood sugar changes after the start of the meal, and evaluate the user's blood sugar status under the influence of this eating event based on the food intake, blood sugar changes, etc.

[0092] For example, the electronic device 100 can evaluate the user's blood sugar health status based on meal times in the following ways:

[0093] 1) When it is time to eat, predict the user's future blood sugar changes based on the dietary intake of this dietary event entered by the user

[0094] For example, after predicting the meal time, the electronic device 100 can output a prompt message when the meal time arrives, prompting the user to enter the amount of food to be consumed in this meal event. Before the user eats, it helps the user predict the blood sugar changes after the meal in advance. Before the meal has an adverse effect on the user's blood sugar, it promptly reminds the user to adjust his diet, helping the user to better manage his food intake.

[0095] 2) Calculate the user's intake for this dietary event based on the user's blood sugar level over a period of time after the meal and display it to the user

[0096] For example, the electronic device 100 can take meal time as the starting point, count the user's food intake within a period of time after the meal, and analyze the user's food intake to facilitate the user to adjust the food intake in time and control normal blood sugar fluctuations.

[0097] In some embodiments, the electronic device 100 can also organize and count the user's intake of multiple dietary events over a period of time, helping the user to understand their own dietary situation from a long-term perspective and control the stable fluctuation of blood sugar.

[0098] 3) Show users how their blood sugar levels fluctuate from mealtimes

[0099] Specifically, after obtaining the meal time, the electronic device 100 may obtain the user's blood glucose level within a period of time after the meal time through the electronic device 200, and display a blood glucose curve formed by connecting the blood glucose values ​​within this period to the user.

[0100] In this way, the user can learn about the changes in the user's blood sugar level after starting a meal through the electronic device 100, which helps the user to timely control the intake of food or to timely control the impact of food events on the user's blood sugar through the intervention of events such as medication or exercise.

[0101] S104. The electronic device 100 outputs suggestions to the user regarding blood sugar.

[0102] In addition, in order to enable users to have a more comprehensive understanding of their own health and make timely adjustments, in addition to evaluating the user's blood sugar status based on meal times, the electronic device 100 can also output suggestions for the user on blood sugar, such as recommending the best meal time, the best intake, and generating a personalized diet table for the user, efficiently and intelligently assisting the user in completing diet management, so that the user can adjust his or her eating habits in a timely manner, or take medication, strengthen exercise, increase physical activity, etc., to reduce the occurrence of high and low blood sugar events, control his or her own blood sugar fluctuations, and ensure his or her own health.

[0103] In some embodiments, the electronic device 100 can generate a daily diet analysis report based on the user's meal times and the user's blood sugar levels before and after meal times. The daily diet analysis report may include but is not limited to the user's total daily intake, single meal intake, blood sugar curve marked with meal times, etc.

[0104] In other embodiments, the electronic device 100 can generate multiple dietary analysis reports based on the user's meal times and the user's blood sugar before and after meal times. The multiple dietary analysis reports may include but are not limited to the user's average daily intake, single meal input, average blood sugar curve marked with meal times, daily single meal bar charts, pre-meal and post-meal blood sugar data statistics, etc.

[0105] For example, FIG3A and FIG3B are page contents displayed by the electronic device 100 provided in an embodiment of the present application for evaluating the blood sugar health status of the user.

[0106] FIG3A is a page A provided in an embodiment of the present application, which can be used to display the daily diet analysis results of the user by the electronic device 100.

[0107] As shown in FIG3A , page A may include: section A1, section A2, section A3, and section A4.

[0108] Section A1 may be used to display the user's daily carbohydrate intake. For example, it may include the user's carbohydrate intake for breakfast, lunch, and dinner, as well as the user's total carbohydrate intake for the day.

[0109] For example, the electronic device 100 can determine the carbohydrate intake of the user in this dietary event by calculating the area under the blood glucose curve within a period of time (for example, 2 hours) after the user starts eating.

[0110] In addition, section A1 can also display the user's carbohydrate intake for the two days before and after. In this way, the user can understand the changes in the user's carbohydrate intake by comparing the carbohydrate intake of the two days before and after.

[0111] Section A2 may be used to display a user's blood sugar curve after a meal, for example, a user's blood sugar curve after breakfast.

[0112] For example, after determining the user's meal time, the electronic device 100 may collect multiple blood glucose values ​​of the user within a preset time period after the meal time, thereby obtaining a blood glucose curve of the user after the meal, and marking the user's meal time on the blood glucose curve.

[0113] Section A3 may be used to display the opinions and suggestions provided by the electronic device 100 to the user based on the user's blood sugar and carbohydrate intake. For example, as shown in FIG3A , section A3 may display "Today's blood sugar is expected to rise by 2.3 mmol / L compared to yesterday, and carbohydrate intake has increased by 6 g compared to yesterday morning. A balanced diet with balanced carbohydrates is recommended."

[0114] Section A4 can be used to display the electronic device 100's estimate of the user's carbohydrate absorption. This carbohydrate absorption can be used to indicate the user's absorption of food. Specifically, the greater the increase in blood sugar levels after consuming a food, the better the user's absorption of the food. The smaller the increase in blood sugar levels after consuming a food, the worse the user's absorption of the food. For example, the electronic device 100 can determine the carbohydrate absorption based on the area under the blood sugar curve over a period of time after the user's meal. For example, as shown in Figure 3A, the electronic device 100 estimates the user's carbohydrate absorption to be 15 grams per 0.5 hour.

[0115] As can be seen from Figure 3A, the electronic device 100 can summarize and analyze the user's diet and blood sugar conditions for a single day, associate the user's diet for a day with the user's blood sugar, help the user find the correlation between diet and blood sugar changes, facilitate the user to control blood sugar through diet, and improve the user's ability to control their own blood sugar.

[0116] FIG3B is a page B provided in an embodiment of the present application, which may be used to display the diet analysis results of the user for multiple days by the electronic device 100 .

[0117] As shown in FIG3B , page B may include: section B1, section B2, section B3, section B4, and section B5.

[0118] Panel B1 may be used to display the average carbohydrate intake of the user for the same dietary event over multiple days. For example, FIG3B shows that the average carbohydrate intake of the user for breakfast over 10 days is 30 grams.

[0119] Section B2 may be used to display a post-meal blood glucose graph of the same dietary event of the user over multiple days. The post-meal blood glucose graph may be used to display the blood glucose fluctuation of the user within a period of time (eg, 2 hours) after the meal time.

[0120] Section B3 can be used to display a user's carbohydrate intake graph. This graph can be used to display the carbohydrate intake of the user for the same dietary event (e.g., breakfast) over multiple days. This allows the user to understand the changes in carbohydrate intake for each dietary event over a period of time.

[0121] Panel B4 may be used to display one or more function options provided by electronic device 100. Electronic device 100 may detect user operations on switches in these function options and enable or disable the corresponding function. For example, as shown in FIG3B , panel B4 may include switch B4-1, which may be used to enable or disable a dietary event recording function, wherein the dietary event recording function may be used to record the user's dietary events. Panel B4 may also include switch B4-2, which may be used to enable or disable an algorithm-based automatic recording function, wherein the algorithm-based automatic recording function may be used to trigger electronic device 100 to automatically record the user's dietary events using an algorithm.

[0122] Section B5 can be used to display the characteristic information obtained by the electronic device 100 for the relevant blood glucose values ​​of the user under the same dietary event for multiple days, such as blood glucose before meal, highest blood glucose after meal, blood glucose peak time, blood glucose maintenance time after meal, blood glucose 2 hours after meal, etc. Among them, the blood glucose peak time can be the time calculated relative to the meal time predicted by the electronic device 100, or it can refer to the time calculated relative to the objective and real meal time. For example, the blood glucose peak time can be displayed as a time interval relative to the meal time, such as half an hour, indicating that the user's blood glucose peaks half an hour after the meal, or it can be displayed as a specific time node, such as 8:00, indicating that the user's blood glucose peaks at 7:30. In this way, the electronic device 100 can quantify the user's blood glucose conditions before and after meals into a variety of characteristic information, evaluate the user's blood glucose health after meals, and help users better understand their own physical condition.

[0123] As can be seen from Figure 3B, the electronic device 100 can summarize and analyze the user's diet and blood sugar conditions over multiple days, associate the user's diet over multiple days with the user's blood sugar, and help the user find the correlation between the user's diet and blood sugar changes over a period of time, so that the user can summarize the dietary patterns, control blood sugar through diet, and further improve the user's ability to control his or her own blood sugar.

[0124] It can be understood that Figures 3A and 3B may be application pages provided by an application in the electronic device 100, through which the user can manage his or her diet and blood sugar. The user can intuitively understand the user's diet and blood sugar status for a certain day through page A shown in Figure 3A, and intuitively understand the user's diet and blood sugar status for multiple days through page B shown in Figure 3B.

[0125] It should be noted that the pages shown in Figures 3A and 3B are merely exemplary introductions and do not constitute a limitation to the embodiments of the present application.

[0126] It can be seen from steps S101-S104 that the electronic device 100 can use the user's meal time as a starting point to find the causal relationship between the user's dietary events and blood sugar concentration, so that the user's blood sugar changes and dietary adjustments can form positive feedback, helping the user to start from daily diet and improve the user's ability to control their own blood sugar.

[0127] FIG4 is a flow chart of determining a user's meal time according to an embodiment of the present application.

[0128] S201. The electronic device 100 determines the user's historical meal times t1 based on the user's historical blood glucose levels.

[0129] For example, the historical meal time t1 may refer to a time point or a time period.

[0130] The electronic device 100 may collect the user's blood glucose level through the electronic device 200. The historical blood glucose level may refer to the user's blood glucose level within a preset period of time, such as the blood glucose level over the past seven days. The historical meal time t1 may include the meal time of one or more dietary events determined by the electronic device 100 based on the historical blood glucose level.

[0131] Since the user's blood sugar level usually rises gradually and exceeds a certain value when eating, whether the user has a dietary event can be determined by whether the rate of increase of the user's blood sugar level exceeds a threshold. If the rate of increase of the user's blood sugar level exceeds the threshold, the preset time period before and after the collection of the blood sugar value is the user's meal time period.

[0132] For example, the following formula 1 can be used to determine whether the user has a diet event:

[0133] Among them, G t represents the user’s blood glucose value at the historical time point t, represents the rising rate of the user's blood glucose level at the historical time point t, and G represents the threshold.

[0134] If the rate of increase of the user's blood glucose level at historical time point t exceeds a threshold, the time period [t-t0, t+t0] is the user's meal time period. For example, t0 can be 15 minutes, 30 minutes, 1 hour, etc. For example, if t0 is 15 minutes, and the rate of increase of the user's blood glucose level at 11:30 exceeds the threshold, then 11:15-11:45 can be the user's meal time period.

[0135] In some implementations, if the historical meal time t1 is a time period, the electronic device 100 may determine the meal time period as the historical meal time t1.

[0136] In other implementations, if the historical meal time t1 is a time point, the electronic device 100 can find the user's historical meal time t1 within the meal time period.

[0137] For example, the electronic device 100 may directly determine the starting point of the meal time period as the user's meal time t1, or the electronic device 100 may further search for the meal time t1 in combination with the user's blood glucose value within the time period. For example, the time point when the user's blood glucose value first shows an upward trend in chronological order within the time period is the user's historical meal time t1.

[0138] It is understandable that the electronic device 100 can also determine the user's historical meal time t1 in other ways, and the embodiment of the present application is not limited to this.

[0139] S202. The electronic device 100 determines the historical meal time t2 based on any one or more of the following: the historical meal time input by the user, the user's body movements, and the user's heart rate.

[0140] For example, the historical meal time t2 may refer to a time point or a time period.

[0141] The electronic device 100 may provide an entry for the user to input historical meal times, and the user may manually input historical meal times of historical user events. The meal time may include one or more, that is, the electronic device 100 may obtain one or more historical meal times input by the user.

[0142] In some embodiments, if the historical meal times input by the user include multiple ones, after the electronic device 100 obtains the historical meal times input by the user, the electronic device 100 can further process these historical meal times and determine the historical meal time t2 representing the user's historical dietary events from these multiple historical meal times.

[0143] For example, the electronic device 100 may normalize the multiple historical meal times input by the user based on a preset duration (e.g., half an hour), and extract the historical meal time with the highest frequency of occurrence as the historical meal time t2 representing the user's historical eating event. For example, if the user inputs multiple historical meal times of 11:10, 11:34, 11:45, 11:50, and 12:10, these multiple historical meal times may be normalized to: 11:00, 11:30, 11:30, 11:30, and 12:00. It can be seen that 11:30 is the meal time with the highest frequency of occurrence, and therefore, 11:30 may be determined as the historical meal time t2 representing the user's historical eating event.

[0144] For example, the electronic device 100 may obtain the historical meal time t2 representing the user's historical dietary events by summing and averaging all the historical meal times input by the user.

[0145] In addition, since users often make physical hand movements when eating, such as waving their hands up and down, if the electronic device 100 is a wearable device worn by the user, or if the electronic device 100 is connected to a wearable device worn on the hand, the electronic device 100 can obtain historical meal times determined by the wearable device based on the user's physical movements. For example, if the wearable device detects that the user's hand has repeated preset movements over a period of time, the time when the user first initiated the movement can be determined as the meal time and stored in the electronic device 100. In this way, when the electronic device 100 needs to predict the user's future meal time based on historical data, it can use the historical meal times determined based on the user's physical movements to make the prediction.

[0146] The historical meal times determined based on the user's body movements obtained by the electronic device 100 may also include one or more. For example, the body movements may include but are not limited to one or more of the following: movement amplitude, movement trajectory, movement frequency, etc.

[0147] In some embodiments, if there are multiple historical meal times determined based on the user's body movements, the electronic device 100 can also obtain the historical meal time t2 representing the user's historical eating events based on the multiple historical meal times.

[0148] Similar to determining historical meal times based on a user's body movements, since a user's heart rate typically changes while dining, if the electronic device 100 is a wearable device, or if the electronic device 100 is connected to a wearable device, the electronic device 100 can obtain historical meal times determined by the wearable device based on the wearable device's heart rate. For example, if the wearable device detects that the user's heart rate variability is greater than a threshold, the current time can be determined as a meal time and stored in the electronic device 100. In this way, when the electronic device 100 needs to predict a user's future meal times based on historical data, it can use the historical meal times determined based on the user's heart rate to make the prediction.

[0149] The historical meal times determined based on the user's heart rate and obtained by the electronic device 100 may also include one or more.

[0150] In some embodiments, if there are multiple historical meal times determined based on the user's heart rate, the electronic device 100 can also obtain the historical meal time t2 representing the user's historical eating events based on the multiple historical meal times.

[0151] It is understood that if the historical meal times t2 obtained by the electronic device 100 include any two or more of the meal times input by the user, the meal times determined based on the user's body movements, and the meal times determined based on the user's heart rate, the electronic device 100 can determine the historical meal times t2 representing the user's historical eating events based on any of the multiple meal times obtained. The specific method for the electronic device 100 to determine the historical meal times t2 representing the user's historical eating events based on multiple historical meal times can be found in the above-mentioned section on determining the historical meal times t2 representing the user's historical user events based on multiple historical meal times input by the user, and will not be further elaborated here.

[0152] In some embodiments, the historical meal times obtained in step S201 and step S202 may refer to meal times of historical dietary events that occurred within the same historical time period. This ensures that the electronic device 100 can more accurately predict future meal times by utilizing the correlation between the user's blood sugar and meals within the same time period.

[0153] It is understandable that in addition to determining the historical meal time t2 based on the meal time input by the user, the user's body movements, and the user's heart rate, the electronic device 100 can also use other information to determine the historical meal time t2. For example, the electronic device 100 can use the user's physiological information, including but not limited to one or more of the following: skin temperature, respiration, heart rate variability, blood pressure, blood oxygen, etc., to determine the historical meal time t2. For another example, the electronic device 100 can use the user's location to determine the historical meal time t2, wherein the electronic device 100 can determine whether the user is within the range of a dining place such as a restaurant or a canteen based on the user's location, and then determine the historical meal time t2, or the electronic device 100 can determine the room location of the user based on the user's location, and then determine whether the user is in a room where dining is available, such as a restaurant, to determine the historical meal time t2, and so on. This application does not limit the way in which the electronic device 100 determines the historical meal time t2.

[0154] S203. The electronic device 100 determines the user's meal time t0 based on the historical meal time t1 and the historical meal time t2.

[0155] The historical meal time t1 may include one or more, and the historical meal time t2 may also include one or more.

[0156] In some implementations, the electronic device 100 may determine the time point with the highest frequency of occurrence between the historical meal time t1 and the historical meal time t2 as the user's meal time t0.

[0157] In other embodiments, the electronic device 100 may determine the user's meal time t0 by summing and averaging the historical meal time t1 and the historical meal time t2.

[0158] In other embodiments, the electronic device 100 may also determine the user's meal time t0 by inputting the historical meal time t1 and the historical meal time t2 into a specified model. The specified model may be a model trained using a neural network algorithm using a large amount of training data on a user's meal time t0 after a certain time point and the historical meal time t1 and the historical meal time t2 before the time point.

[0159] It is understandable that the electronic device 100 can also determine the user's meal time t0 in other ways, and the embodiment of the present application does not limit this.

[0160] S204. When the user's meal time t0 is reached, the electronic device 100 outputs a prompt message, which is used to remind the user that the predicted meal time has arrived.

[0161] After the electronic device 100 determines the user's meal time t0, the electronic device 100 can output a prompt message (e.g., a first prompt message) when the user's meal time t0 arrives, prompting the user that the predicted meal time has arrived. For example, the electronic device 100 can output the prompt message by displaying the prompt message on a display screen or playing the prompt message by voice.

[0162] In some embodiments, the electronic device 100 can detect an operation (e.g., a first operation) acting on the prompt information and determine the user meal time t0 as the meal time of a user's dietary event (e.g., a first dietary event), or determine the user meal time t3 as the meal time of a user's dietary event. The user meal time t3 can refer to a time input by the user, or a time determined based on the meal time t0. For example, the user meal time t3 can refer to a time after adding a preset time length to the meal time t0. For details, please refer to the relevant description in the subsequent FIG. 5A.

[0163] This is because the user's meal time t0 predicted by the electronic device 100 may not be the user's actual meal time. Therefore, the electronic device 100 can output a prompt message when the user's meal time t0 is reached, so that the user can correct the user's meal time according to the prompt message, so that the electronic device 100 can provide more accurate blood sugar assessment results based on the user's actual meal time.

[0164] Among them, if the electronic device 100 determines the user's meal time t3 as the meal time of the user's eating event, then after the electronic device 100 detects the operation acting on the prompt information, the electronic device 100 can display the prompt information again after a preset time interval, and the electronic device 100 can determine the current time as the user's meal time t3 after detecting the operation acting on the first prompt information (for example, the second operation).

[0165] For example, the prompt message may include two options: Option A and Option B. Option A can be used to trigger the user to set the current time as the user's actual meal time, while Option B can trigger the electronic device 100 to display the prompt message again after a certain period of time (e.g., 5 minutes). The first operation can be an operation that acts on Option B, and the second operation can be an operation that acts on Option A. For a detailed description of the prompt message, please refer to Figure 5A below.

[0166] That is to say, after the electronic device 100 outputs a prompt message to remind the user that the predicted meal time has arrived, if the current time is not the user's actual meal time, the user can control the electronic device 100 to delay displaying the prompt message for a period of time. When the user arrives at the actual meal time, the user confirms the prompt message, so that the electronic device 100 determines the current time as the user's actual meal time, and thus records the user's actual meal time.

[0167] It is understandable that if the user's actual meal time has not yet arrived, the user can postpone the time for the electronic device 100 to display the prompt information multiple times, so that the electronic device 100 can repeatedly display the prompt information multiple times until the user determines the meal time.

[0168] Furthermore, before or after the electronic device 100 determines the meal time of a dietary event of the user, the electronic device 100 can determine the food (e.g., the first food) and the intake amount of the food (e.g., the first intake) that the user is about to consume in this dietary event, and based on the information of the food and the intake amount of the food, as well as the current time point, e.g., the user's blood glucose value before the user's meal time t0, determine a blood glucose curve (e.g., the first blood glucose curve) and display it to the user for viewing. The blood glucose curve is the blood glucose change of the user under the influence of this dietary event predicted by the electronic device 100.

[0169] In this way, the user can check the blood sugar changes that may occur after the user has eaten, as predicted by the electronic device 100, before having a meal, so that the user can timely adjust the food and food intake during this eating event, so that the user can take timely measures to protect the user's health before the food intake will endanger the user's health.

[0170] Further optionally, the electronic device 100 can also determine a blood glucose curve (such as a second blood glucose curve) based on the user's blood glucose value before the current time point, and display it to the user for viewing. The blood glucose curve is the blood glucose change predicted by the electronic device 100 of the user in the absence of this dietary event.

[0171] In this way, users can compare the future changes in blood sugar under the influence of dietary events and in the absence of dietary events, highlight the relationship between dietary events and user blood sugar, and enable users to better plan healthy eating habits, thereby effectively avoiding the harm caused by high and low blood sugar.

[0172] For details about the user interface of the electronic device 100 for predicting future blood sugar, please refer to the relevant content in the subsequent Figures 5B to 5D.

[0173] In the process of determining the blood glucose curve using the food information and food intake, as well as the user's blood glucose level before the user's meal time t0, the electronic device 100 may determine the blood glucose curve using the user's absorption index of the food, the food intake, and the user's blood glucose level before the current time point. The absorption index of the food is related to the food and the user's physical condition.

[0174] The physical condition may include any one or more of the following: age, height, weight, type of illness, and medication information.

[0175] For example, the electronic device 100 can predict the user's blood glucose level after a meal by inputting the user's absorption index of the food and the amount of food consumed, as well as the user's blood glucose level before the meal, such as before the current time point, into a designated model. The predicted blood glucose levels can then be connected to form a curve in chronological order to obtain the user's blood glucose curve after the meal. The designated model can be trained using data such as known blood glucose levels before and after a meal, as well as the user's absorption index of the food and the amount of food consumed.

[0176] In addition, a user's food absorption index is an indicator used to measure the speed and extent of blood sugar rise after consuming food. Foods with a high absorption index are digested quickly after entering the gastrointestinal tract, have a high absorption rate, release glucose quickly, and achieve a high peak glucose level after entering the bloodstream, resulting in a high blood sugar rise. Foods with a low absorption index remain in the gastrointestinal tract for a long time, have a low absorption rate, and release glucose slowly, resulting in a low peak glucose level and a slow decline in blood sugar levels. Users can plan their meals based on the absorption index of different foods to regulate their blood sugar levels.

[0177] Since different users have different absorption conditions for different foods, the electronic device 100 can customize the user's absorption index for different foods for the user and store it locally. In this way, when the electronic device 100 needs to predict the user's blood sugar level after the meal before the user eats, the electronic device 100 can display different foods and the user's absorption index for different foods to the user for viewing. After the user selects a specified food, the electronic device 100 predicts the user's future blood sugar level based on the user's absorption index for the food and displays it to the user for viewing. Specifically, the electronic device 100 can determine the user's absorption index for the food based on the user's blood sugar level over a period of time (e.g., the first duration) and the user's physical condition after the user consumes a specified intake amount (e.g., the second intake amount) of the food.

[0178] For details about the process of the electronic device 100 measuring the user's absorption index of different foods, please refer to the relevant descriptions in the subsequent Figures 6A to 6F, which will not be expanded here.

[0179] In other embodiments, after the electronic device 100 calculates the user's meal time t0, the electronic device 100 can determine the user's intake (e.g., the third intake) for the current eating event (e.g., the first eating event) based on the user's blood glucose level within a period of time (e.g., the second period of time) after the user's meal time t0, and display the information to the user. In this way, the user can understand the intake amount of each meal and then control the intake amount of each meal, so that the user can develop regular eating habits and control blood glucose fluctuations.

[0180] In other embodiments, after the electronic device 100 calculates the user's meal time t0, the electronic device 100 can obtain the user's blood glucose value within a preset time period (e.g., a third time period) after the user's meal time t0, and use these blood glucose values ​​to generate a blood glucose curve (e.g., a third blood glucose curve), and display it to the user for viewing. The blood glucose curve can be determined by multiple blood glucose values ​​of the user within a preset time period after the meal time point t0.

[0181] In this way, users can understand their actual blood sugar status under the influence of dietary events after a meal, helping users to more intuitively understand the impact of diet on blood sugar, making it easier for users to control blood sugar through diet.

[0182] In order to better understand the interaction process between the electronic device 100 and the user in this solution, some user interfaces that may exist on the electronic device 100 are exemplarily introduced below with reference to FIG. 5A to FIG. 5D and FIG. 6A to FIG. 6F .

[0183] For example, FIG. 5A to FIG. 5D show some user interfaces displayed by the electronic device 100 provided in an embodiment of the present application after the user's meal time t0 is reached.

[0184] As shown in FIG5A , the user interface 10 may include prompt information 101 , which may be displayed by the electronic device 100 when the user's meal time t0 is reached. The prompt information 101 may be used to remind the user that the predicted meal time has arrived.

[0185] The prompt information 101 may include a "Remind later" option 101A and a "Confirm" option 101B. If the electronic device 100 detects a user operation on the "Remind later" option 101A, such as a click, it indicates that the current time is not the actual meal time of the user's eating event. Therefore, the electronic device 100 may display the prompt information 101 later. If the electronic device 100 detects a user operation on the "Confirm" option 101B, such as a click, it indicates that the current time is indeed the actual meal time of the user's eating event. Therefore, the electronic device 100 may determine the current time as the user's actual meal time.

[0186] For example, if the electronic device 100 detects a user operation on the later reminder option 101A, the electronic device 100 can display the prompt message 101 after a preset time interval (for example, 5 minutes). If 5 minutes later, when the electronic device 100 displays the prompt message 101 again, the electronic device 100 detects a user operation on the confirmation option 101B, the electronic device 100 can delay the user's meal time t0 calculated by the electronic device 100 by 5 minutes, and determine it as the user's actual meal time, thereby correcting the user's meal time t0.

[0187] In some embodiments, the prompt message 101 may also include a time modification option, which allows the user to manually set the user's actual meal time. The actual meal time can be earlier or later than the current time. This prevents the electronic device 100 from repeatedly displaying the prompt message 101, making it easier for the user to correct the user's meal time all at once. Furthermore, if the user's meal time t0 predicted by the electronic device 100 is later than the user's actual meal time, the user can also manually enter the time earlier than the user's meal time t0 as the user's actual meal time.

[0188] In other embodiments, the prompt information 101 may further include a postponement option, which may be used to trigger the electronic device 100 to automatically postpone the user's meal time t0 by a preset time (eg, 5 minutes) as the user's actual meal time.

[0189] If the electronic device 100 detects a user operation on the confirmation option 101B, such as a click operation, in response to the operation, the electronic device 100 can update the prompt information 101 shown in Figure 5A to the prompt information 102 shown in Figure 5B, and the prompt information 102 can be used to prompt the user to enter the details of the meal.

[0190] It is understood that after the electronic device 100 reaches the meal time point t0, it may first display the user interface 10 shown in Figure 5B to prompt the user to enter the details of the meal, and then display the user interface 10 shown in Figure 5A to prompt the user to confirm the actual meal time for this eating event. Alternatively, the prompt information 101 shown in Figure 5A may also include a prediction option. When the electronic device 100 reaches the user's meal time t0, the electronic device 100 may display the prompt information 101. If the electronic device 100 detects a user operation acting on the prediction option, the electronic device 100 may display the prompt information 101 shown in Figure 5B. In this way, when the user's meal time t0 predicted by the electronic device 100 is reached, the user may not confirm the user's meal time first, but instead first enter the details of the user's meal, predict the user's future blood sugar changes, and then confirm the user's meal time.

[0191] As shown in FIG5B , the prompt information 102 may include a text input box 102A, a photo recognition option 102B, a table lookup option 102C, a cancel option 102D, and a confirmation option 102E.

[0192] Text input box 102A can be used to input the food and quantity that the user will consume in this eating event. Electronic device 100 can detect a user operation on text input box 102A, such as a click operation, and display a keyboard in user interface 10. The user can use the keyboard to manually input the food and quantity that the user will consume in this eating event in text input box 102A.

[0193] The photo recognition option 102B can be used to trigger the electronic device 100 to automatically identify the food and quantity to be consumed in this eating event by taking a photo of the food, and enter the recognized information into the text input box 102A to display it to the user.

[0194] The table lookup option 102C may be used to trigger the electronic device 100 to display a variety of foods and their absorption indexes that are available for selection by the user, from which the user may select the food that the user is about to consume in this dietary event.

[0195] In this embodiment of the present application, taking into account that different users have different food absorption effects, the electronic device 100 can customize a personalized food absorption index table for each user. The food absorption index can be calculated by the electronic device 100 based on the blood sugar changes after the user consumes the food to be measured. The specific calculation method of the food absorption index and the user interface displayed by the electronic device 100 when measuring the food absorption index can be found in the following content and will not be elaborated here.

[0196] Cancel option 102D can be used to cancel the input of dining details. For example, when electronic device 100 detects a user operation on cancel option 102D, such as a click operation, electronic device 100 can close prompt information 102 or update prompt information 102 to prompt information 101 shown in FIG5A.

[0197] The confirmation option 102E can be used to confirm the food and quantity input by the user, and trigger the electronic device 100 to predict the blood sugar changes of the user after the meal based on the currently input food and quantity.

[0198] As can be seen from Figure 5B, the user can manually input the food and quantity to be consumed in this diet event, or identify the food and quantity to be input by the user by taking a photo, or select the food to be consumed by the user from a variety of foods by looking up a table.

[0199] For example, when the electronic device 100 detects a user operation on the table lookup option 102C, such as a click operation, in response to the operation, the electronic device 100 may display a prompt message 103 as shown in FIG5C . The prompt message 103 may be used to display a food absorption index table personalized for the user by the electronic device 100.

[0200] As shown in FIG5C , the prompt information 103 may include: a food display column 103A, a cancel option 103B, and a confirmation option 103C.

[0201] The food display bar 103A may be used to display the name and absorption index of one or more foods. The electronic device 100 may detect a selection operation on one of the foods and select it as the food that the user is about to consume in this dietary event.

[0202] Cancel option 103B can be used to cancel the food that the user is about to consume by looking up the table. For example, when electronic device 100 detects a user operation on cancel option 103B, such as a click operation, electronic device 100 can close prompt message 103, or, further, switch prompt message 103 to prompt message 102 shown in Figure 5B.

[0203] The confirmation option 103C may be used to confirm that the food selected by the user in the food display column 103A will be used as the food that the user will consume in this diet event.

[0204] It is understandable that after the user selects food through the prompt information 103, the user can also set the quantity of the food selected by the user through the prompt information 103. The embodiment of the present application does not limit the functions that the prompt information 103 can be used to implement.

[0205] For example, after the electronic device 100 detects a user operation on the confirmation option 103C, such as a click operation, the electronic device 100 can predict the user's future blood sugar curve under the influence of this dietary event based on the food and quantity input by the user and the user's absorption index of the food, thereby displaying the prompt information 104 as shown in Figure 5D. The prompt information 104 can be used to show the user's future blood sugar status predicted by the electronic device 100.

[0206] As shown in FIG5D , the prompt information 104 may include: a blood sugar display area 104A, an opinion display area 104B, a previous option 104C, and a confirmation option 104D.

[0207] Blood glucose display area 104A can be used to display the user's future blood glucose curve, predicted by the electronic device 100 based on the absorption index of the food selected by the user, under the influence of the current eating event. Furthermore, blood glucose display area 104A can also be used to display the user's future blood glucose curve, predicted by the electronic device 100, without the influence of the current eating event. This allows the user to understand future blood glucose changes with and without the current eating event through blood glucose display area 104A, highlighting the relationship between eating events and the user's blood glucose, allowing the user to better plan healthy eating habits and effectively avoid the harm caused by high and low blood glucose levels.

[0208] The opinion display area 104B can be used to display some opinions and suggestions given by the electronic device 100 based on the user's future blood sugar status. For example, the opinion display area 104B can display: "It is predicted that your meal this time may cause your blood sugar to rise rapidly and exceed the normal range. Please pay attention to blood sugar control!" It is understandable that the electronic device 100 can also display other opinions or suggestions in the opinion display area 104B, such as food recommended for the user to use for this meal or food not recommended for the user to use for this meal, etc.

[0209] The previous option 104C may be used to trigger the electronic device 100 to switch the currently displayed prompt information 104 back to the prompt information 103 shown in FIG. 5C or the prompt information 102 shown in FIG. 5B .

[0210] The confirmation option 104D may be used to trigger the electronic device 100 to close the prompt message 104 .

[0211] As can be seen from Figures 5A to 5D, the electronic device 100 can display a prompt message when the predicted user meal time t0 is reached, prompting the user whether to start eating. If the user chooses to start eating, the user can be prompted to enter the amount of food the user has consumed this time, so that the electronic device 100 can predict the user's future blood sugar value based on the meal time, which is convenient for the user to start with diet and control his or her own blood sugar fluctuations.

[0212] In an embodiment of the present application, the electronic device 100 can also measure the absorption index of the food consumed by the user, customize a personalized food absorption index library for the user, help the user measure the blood sugar rise of different foods at home, and facilitate the user to control his or her own intake of various foods by referring to the food absorption index library to achieve a good blood sugar control effect.

[0213] Exemplarily, measuring the absorption index of food generally includes the following steps:

[0214] 1) Keep fasting for a while before measurement

[0215] For example, the user should fast for 8 to 10 hours before measurement. For example, the user can take the measurement during breakfast.

[0216] 2) During the measurement process, the measured food is consumed in a fixed amount and consumed within the specified time.

[0217] For example, add 75g of anhydrous glucose powder to 300ml of water and consume it within 5 minutes.

[0218] 3) After the food is taken, the absorption index of the measured food is calculated based on the user's blood sugar level within a period of time (e.g. 2 hours) after taking the food

[0219] For example, the absorption index of food can be calculated by the following formula 2: Absorption index = F (T, S, BG[], P[]) Formula 2

[0220] Wherein, T represents the food type, such as rice, steamed bread, oatmeal, etc., S represents the food intake, BG[] represents the set of blood glucose values ​​of the user within a period of time after taking the food, P[] represents the set of user information, and the user information is used to reflect the user's physical condition, such as age, height, weight, disease type, medication information, etc., and F(·) represents a dining model. The input of the dining model includes: T, S, BG[], P[], and the output includes: absorption index. Exemplarily, the dining model can be obtained by using a multivariate linear regression algorithm and training a large amount of related data such as known foods and blood glucose. It is understandable that the dining model can also be a neural network model, and the embodiment of the present application does not limit the dining model.

[0221] As can be seen from Formula 2, the absorption index measurement method provided in the embodiment of the present application takes into account the different physical conditions of different users and introduces user information into the absorption index measurement. If the user suffers from diabetes and is taking medication, the method can take into account the effect of the medication and the patient's own pancreatic function to calculate the user's food absorption index, so that the calculated food absorption index is more in line with the user's actual blood sugar absorption, which is convenient for the user to specify a better diet plan.

[0222] It should also be noted that the electronic device 100 can also output relevant precautions for measuring the absorption index before, during, and after the measurement. For example, the electronic device 100 can remind the user to eat normally in the few days before the measurement, and the daily carbohydrate intake should be no less than 150g. For example, the electronic device 100 can also remind the user not to drink tea and coffee, not to smoke, and not to do strenuous exercise during the measurement process.

[0223] 6A-6F illustrate some user interfaces involved in the process of measuring the food absorption index of the electronic device 100 provided in an embodiment of the present application.

[0224] 6A is a user interface 20 displayed by the electronic device 100 after detecting that the user starts measuring the food absorption index.

[0225] As shown in FIG6A , the user interface 20 may include a start measurement option 201. When the electronic device 100 detects a user operation on the start measurement option 201, such as a click operation, the electronic device 100 may display a user interface 30 as shown in FIG6B . The user interface 30 may be used to display content related to step 1 of measuring the absorption index.

[0226] As shown in FIG6B , the user interface 30 may include: a cancel option 301 , a confirmation option 302 , and an information filling field 303 .

[0227] The cancel option 301 may be used to trigger a return to the previous page, for example, returning to the user interface 20 shown in FIG. 6A .

[0228] The confirmation option 302 can be used to enter the next step of measuring the absorption index after the user completes filling in the information in the information filling field 303.

[0229] The information filling field 303 may be used to display user information that needs to be filled in by the user. For example, the user information may include: age, height, weight, type of illness, medication information, and the like.

[0230] It can be understood that if the user interface 30 is the user interface displayed by the electronic device 100 when the user measures the absorption index for the first time, the user interface 30 may include an information filling field 303 for entering user information. If the user interface 30 is the user interface displayed by the electronic device 100 when the user does not measure the absorption index for the first time, the user interface 30 may not include the information filling field 303. The electronic device 100 directly uses the user information entered when the user measures the absorption index for the first time to calculate the absorption index of the food measured this time.

[0231] For example, after the user completes filling in the information in the information filling column 303, if the electronic device 100 detects a user operation acting on the confirmation option 302, such as a click operation, in response to the operation, the electronic device 100 can display the user interface 40 as shown in Figure 6C, which can be used to display the relevant content of step 2 of measuring the absorption index.

[0232] As shown in FIG6C , the user interface 40 may include: a cancel option 401 , a start countdown option 402 , and a food filling field 403 .

[0233] The cancel option 401 may be used to trigger a return to the previous page, for example, returning to the user interface 30 shown in FIG6B .

[0234] The start countdown option 402 is used to start the countdown.

[0235] The food filling field 403 may be used to display food information required to be filled in by the user for the absorption index measurement, such as the name of the food.

[0236] For example, after the user completes filling in the food name in the food filling column 403, if the electronic device 100 detects a user operation on the start countdown option 402, such as a click operation, in response to the operation, the electronic device 100 can enter step 3 of the absorption index measurement, start the countdown, and display the user interface 50 as shown in Figure 6D. The user interface 50 can be used to display the countdown time and display a prompt message to prompt the user to take the food whose absorption index needs to be measured within the countdown time.

[0237] As shown in FIG6D , the user interface 50 may include: a cancel option 501 , a completion option 502 , and a countdown 503 .

[0238] The cancel option 501 may be used to trigger a return to the previous page, for example, returning to the user interface 40 shown in FIG6C .

[0239] The Done option 502 may be used to trigger a switch to a next level page.

[0240] The countdown 503 may be used to display a countdown process of a specified duration (eg, 5 minutes) after the user interface 50 begins to be displayed.

[0241] Optionally, the user interface 50 may also display precautions for the user during the absorption index measurement process. For example, as shown in FIG6D , the user interface 50 may include a prompt message: “Precautions: Do not consume other foods or engage in strenuous exercise during the countdown time.”

[0242] For example, if the user has finished taking the food whose absorption index needs to be measured within the countdown time, the electronic device 100 can detect a user operation acting on the completion option 502, such as a click operation. In response to the operation, the electronic device 100 can display the user interface 60 as shown in Figure 6E, which can be used to display the relevant content of step 4 of measuring the absorption index.

[0243] As shown in FIG6E , the user interface 60 may include: confirmation information 601 and prompt information 602 .

[0244] The confirmation message 601 may be used to trigger closing of the user interface 60 .

[0245] The prompt message 602 may be used to prompt the user to check the absorption index measurement results again after a period of time. For example, the prompt message 602 may include: "The background is continuously monitoring your blood sugar level. Please check the absorption index measurement results after 2 hours."

[0246] Afterwards, the electronic device 100 may calculate the absorption index of the food measured by the user based on the food measured by the user, the food intake, the user information, the blood glucose level of the user, and the aforementioned formula 2.

[0247] For example, FIG6F shows a user interface 70 displayed by the electronic device 100 after the electronic device 100 calculates the absorption index of the food measured by the user.

[0248] As shown in FIG. 6F , the user interface 70 may include a table 701 , which may be used to display the name of the food measured by the user and the absorption index of the food.

[0249] Furthermore, after the electronic device 100 measures the absorption index of food, the electronic device 100 can save it locally, and the electronic device 100 can organize the absorption indexes of multiple foods measured by the user into a food absorption index library. The user can understand the degree of impact of various foods on the user's blood sugar by viewing the food absorption index library, and predict the blood sugar after eating related foods, and then arrange the diet reasonably.

[0250] As can be seen from Figures 6A to 6F, the electronic device 100 can guide the user to complete the absorption index measurement of food at home by displaying prompt information related to the absorption index measurement, and help the user customize a food absorption index library that suits his or her own physical condition so that the user can formulate a better diet plan.

[0251] It should be understood that Figures 5A-5D and Figures 6A-6F are merely exemplary introductions and do not constitute a limitation to the present application.

[0252] FIG7 is a flow chart of another blood sugar management method provided in an embodiment of the present application.

[0253] As shown in FIG7 , the method may include the following steps:

[0254] S301. The electronic device 100 obtains the blood glucose level within a first period of time after the user inputs a second intake amount of the first food.

[0255] The electronic device 100 may obtain the user's blood sugar level through the electronic device 200 .

[0256] The second intake amount may refer to a preset intake amount when measuring the user's food absorption index, such as 50 grams. The first duration may refer to a preset duration when measuring the food absorption index, such as 2 hours. The first food may refer to any food, such as rice, steamed bread, oatmeal, etc.

[0257] For example, the electronic device 100 can guide the user to measure the absorption index of food at home by displaying a relevant user interface, and during the measurement process, prompt the user to pay attention to the relevant matters related to measuring the absorption index.

[0258] Specific details about the user interface displayed by the electronic device 100 during the process of measuring the absorption index of food can be found in FIG. 6A to FIG. 6F .

[0259] S302. The electronic device 100 determines the user's absorption index of the first food based on the blood glucose level within the first period of time and the user's physical condition.

[0260] The user's physical condition may include any one or more of the following: age, height, weight, disease type, and medication information, etc.

[0261] Specifically, the electronic device 100 can obtain the user's absorption index for the first food by inputting the food type of the first food, the second intake amount, the blood glucose level within the first time period, and user information reflecting the user's physical condition into the user model. The user model can be a model obtained by training a large amount of known food and blood glucose related data.

[0262] Specific details about how the electronic device 100 determines the user's absorption index of the first food can be found in the relevant content of the aforementioned formula 2, which will not be repeated here.

[0263] In some embodiments, after the electronic device 100 determines the user's absorption index of the first food, if the electronic device 100 determines that the food to be ingested under the first dietary event is the first food, and determines that the intake of the first food is the first intake, then the electronic device 100 can determine a first blood glucose curve based on the user's absorption index of the first food, the first intake of the first food, and the user's blood glucose value before the current time point. The first blood glucose curve is the blood glucose change of the user under the influence of the first dietary event predicted by the electronic device 100, and the electronic device 100 can display the first blood glucose curve.

[0264] For example, the first blood glucose curve may refer to a predicted blood glucose curve under the influence of a diet event, as displayed in the blood glucose display area 104A shown in FIG5D .

[0265] In this way, before the user eats a meal, the electronic device 100 can predict the user's blood sugar status under the influence of this meal event based on the user's absorption index and intake of the food to be consumed in this meal, as well as the user's historical blood sugar status, so that the user can control the food intake in time before the eating event affects the user's blood sugar fluctuations to ensure his or her own health.

[0266] Further optionally, the electronic device 100 can also determine a second blood glucose curve based on the user's blood glucose value before the current time point. The second blood glucose curve is the blood glucose change of the user predicted by the electronic device 100 without the influence of the first diet event. The electronic device 100 can display the second blood glucose curve.

[0267] For example, the second blood glucose curve may refer to a predicted blood glucose curve displayed in the blood glucose display area 104A shown in FIG5D without the influence of a dietary event.

[0268] In this way, users can compare the changes in user's blood sugar in the future under the influence of dietary events and in the presence of dietary events, highlight the relationship between dietary events and user's blood sugar, and enable users to better plan healthy eating habits, thereby effectively avoiding the harm caused by high and low blood sugar.

[0269] In some embodiments, the electronic device 100 may determine a first meal time based on the user's historical blood glucose values, determine a second meal time based on any one or more of the following: a meal time input by the user, the user's body movements, and the user's heart rate, and determine a third meal time based on the first meal time and the second meal time; wherein, the electronic device 100 determines the first food and the first intake of the first food that the user will ingest under the first diet event, which may mean that the electronic device 100 determines the first food and the first intake of the first food that the user will ingest under the first diet event after reaching the third meal time.

[0270] That is to say, the electronic device 100 can summarize the user's dining patterns in daily diet by combining the user's historical meal times estimated in various ways, thereby accurately predicting the user's meal times. After the meal time arrives, based on the food and intake amount that the user will consume, as well as the user's blood sugar condition, the electronic device 100 predicts the blood sugar changes that will occur in the user's upcoming diet event, so that the user can control the food intake in time before eating and control the fluctuation of his or her own blood sugar within the normal range.

[0271] The electronic device 100 may determine the first meal time based on the user's historical blood glucose level increase rate. For example, when the blood glucose level increase rate is greater than a threshold, the electronic device 100 may determine the time point a certain period of time before the blood glucose level as the user's historical meal time, i.e., the first meal time.

[0272] It is understandable that the electronic device 100 can also determine the first meal time in other ways. For specific details about the electronic device 100 determining the first meal time and the second meal time and the third meal time determined based on the first meal time and the second meal time, please refer to the aforementioned description about determining the historical meal time t1, the historical meal time t2, and determining the user's meal time t0 based on the historical meal time t1 and the historical meal time t2, which will not be repeated here.

[0273] Furthermore, the electronic device 100 may output first prompt information when the third meal time is reached, where the first prompt information is used to indicate that the current time has reached the meal time predicted by the electronic device 100 .

[0274] In this way, the user can know through the first prompt information that the meal time predicted by the electronic device 100 has arrived.

[0275] Further, after the electronic device 100 outputs the first prompt information, the electronic device 100 can detect a first operation acting on the first prompt information, determine the third meal time as the meal time of the first dietary event, or determine the fourth meal time as the meal time of the first dietary event, and the fourth meal time is different from the third meal time.

[0276] The fourth meal time may be a time input by the user, or a time determined based on the third meal time. For example, the fourth meal time may be a time obtained by adding a preset time period to the third meal time.

[0277] This is because the meal time predicted by the electronic device 100 may not be the user's actual meal time. Therefore, the electronic device 100 can remind the user to confirm or modify the time after the predicted meal time is reached, so that the electronic device 100 can provide more accurate blood sugar assessment results based on the user's actual meal time.

[0278] In some embodiments, if the electronic device 100 determines the fourth meal time as the meal time of the user's first dietary event, after the electronic device 100 detects a first operation acting on the first prompt information, the electronic device 100 may display the first prompt information after a first time interval, and after detecting a second operation acting on the first prompt information, determine the current time as the fourth meal time.

[0279] Exemplarily, in this case, the first prompt information may refer to the prompt information 101 shown in FIG. 5A , the first operation may refer to an operation acting on the later reminder option 101A, and the second operation may refer to an operation acting on the confirmation option 101B.

[0280] In some embodiments, after the electronic device 100 determines the third meal time, the electronic device 100 may further determine a third intake of the user based on the blood glucose level of the user within a second period of time after the third meal time.

[0281] In this way, users can understand their intake at each meal and then control the intake at each meal, so that users can develop regular eating habits and control stable fluctuations in blood sugar.

[0282] In some embodiments, after the electronic device 100 determines the third meal time, the electronic device 100 can also obtain the user's blood glucose value within a third time period after the third meal time and display a third blood glucose curve, which is determined by multiple blood glucose values ​​of the user within a third time period after the third meal time.

[0283] In this way, users can understand their actual blood sugar status under the influence of dietary events after a meal, helping users to more intuitively understand the impact of diet on blood sugar, making it easier for users to control blood sugar through diet.

[0284] In some embodiments, the electronic device 100 can measure and store the user's absorption index for various foods. Thus, if the electronic device 100 needs to predict the user's blood sugar level after a meal, the electronic device 100 can display different foods and the user's absorption index for each food to the user. After the user selects a specific food, the electronic device 100 can predict the user's future blood sugar level based on the user's absorption index for that food.

[0285] FIG8 shows a schematic diagram of the hardware structure of the electronic device 100 .

[0286] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device, and / or a smart city device. The embodiments of the present application do not impose any particular restrictions on the specific type of the electronic device.

[0287] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0288] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0289] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0290] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0291] In some embodiments, the processor 110 may be configured to determine a historical meal time t1 based on the user's historical blood glucose levels, determine a historical meal time t2 based on one or more of a meal time input by the user, the user's body movements, and the user's heart rate, determine the user's meal time t0 based on the historical meal time t1 and the historical meal time t2, and assess the user's blood glucose health status based on the user's meal time t0. Alternatively, the processor 110 may be configured to determine a user's absorption index for a food based on the user's blood glucose levels over a period of time and the user's physical condition after the user has consumed a certain input amount of food.

[0292] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0293] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0294] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0295] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0296] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0297] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0298] In some embodiments, the electronic device 100 can establish a communication connection with the electronic device 200 through the mobile communication module 150 or the wireless communication module 160 and obtain the blood glucose value collected by the electronic device 200.

[0299] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0300] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0301] In some embodiments, the display screen 194 can be used to display a prompt message when the user's meal time t0 determined by the electronic device 100 is reached, prompting the user that the predicted meal time has been reached, and to display the blood glucose curve predicted by the electronic device 100, the blood glucose curve actually monitored by the electronic device 200 after the user has eaten, and so on.

[0302] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.

[0303] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0304] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0305] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.

[0306] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .

[0307] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0308] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.

[0309] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.

[0310] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.

[0311] In some embodiments, the electronic device 100 can detect the user's body movements through the gyro sensor 180B and the acceleration sensor 180E, and determine the user's meal time when the user's body movements meet preset conditions.

[0312] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.

[0313] In some embodiments, the electronic device 100 can detect the user's heart rate through the bone conduction sensor 180M, and determine the user's meal time when the user's heart rate meets a preset condition.

[0314] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0315] The electronic device can be a portable terminal device equipped with Harmony, iOS, Android, Microsoft or other operating systems, such as a mobile phone, tablet computer, wearable device, etc., and can also be a non-portable terminal device such as a laptop computer with a touch-sensitive surface or touch panel, a desktop computer with a touch-sensitive surface or touch panel. The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present invention takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100.

[0316] FIG9 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0317] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0318] The application layer can include a series of application packages.

[0319] As shown in FIG9 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.

[0320] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0321] As shown in FIG9 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.

[0322] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.

[0323] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0324] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.

[0325] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).

[0326] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0327] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.

[0328] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.

[0329] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0330] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0331] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0332] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0333] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0334] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0335] A 2D graphics engine is a drawing engine for 2D drawings.

[0336] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.

[0337] The following describes the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0338] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture a still image or video through the camera 193.

[0339] FIG10 is a schematic structural diagram of a blood glucose management device 300 provided in an embodiment of the present application.

[0340] As shown in FIG10 , the blood glucose management device 300 may be the electronic device 100 in the above-mentioned embodiment. The blood glucose management device 300 may include components such as a processor 3001, a memory 3002, and a communication module 3003. These components may be connected via a bus 3004 or other means. FIG10 uses a bus connection as an example. The bus 3004 is used to implement communication between the processor 3001, the memory 3002, and the communication module 3003. Specifically:

[0341] The processor 3001 may include one or more processing units. The processor 3001 may be used to provide computing and control capabilities to support the operation of the entire blood glucose management device 300.

[0342] Memory 3002 can be used for storing various software programs and / or multiple groups of instructions. Specifically, memory 3002 can include a high-speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices or other non-volatile solid-state storage devices.

[0343] The communication module 3003 can be used to enable the blood glucose management device 300 to communicate with other communication devices. Specifically, the communication module 3003 may include a communication interface, which may be a 3G communication interface, a Long Term Evolution (LTE) or (4G) communication interface, a 5G communication interface, a WLAN communication interface, a WAN communication interface, a human skin communication interface, etc. The blood glucose management device 300 is not limited to a wireless communication interface; it may also be configured with a wired communication interface to support wired communication.

[0344] In some embodiments, the processor 3001 can be used to determine a historical meal time t1 based on the user's historical blood glucose values, and determine a historical meal time t2 based on one or more of the meal time input by the user, the user's body movements, and the user's heart rate, and determine the user's meal time t0 based on the historical meal time t1 and the historical meal time t2, and evaluate the user's blood glucose health status based on the user's meal time t0, etc.

[0345] In other embodiments, the processor 3001 may be configured to determine the user's absorption index for the food based on the user's blood glucose level over a period of time and the user's physical condition after the user has ingested a certain input amount of the food.

[0346] In some embodiments, the memory 3002 may be used to store the software or program code required for all or part of the functions of the electronic device 100 in the above-described method embodiments. Additionally, the memory 3002 may be used to store historical meal times t1, t2, and user meal times t0. Alternatively, the memory 3002 may be used to store the user's absorption index for one or more foods.

[0347] In some embodiments, the communication module 3003 may be used to communicate with the electronic device 200 to obtain the blood glucose value collected by the electronic device 200 .

[0348] The specific operations and beneficial effects of each unit in the blood glucose management device 300 shown in FIG10 can be found in the corresponding descriptions in the above method embodiments, which will not be repeated here.

[0349] It is understood that the embodiment shown in FIG10 is merely an example. In the embodiments of the present application, the blood glucose management device 300 may also include more, fewer, or different components than those shown in the embodiment of FIG10 , and the present application does not limit this. It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly implemented as execution by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0350] The present application also provides an electronic device, which may include a memory and a processor. The memory may be used to store a computer program, and the processor may be used to call the computer program in the memory so that the electronic device executes the method executed by the electronic device 100 in any of the above embodiments.

[0351] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method performed by the electronic device 100 in any of the above embodiments.

[0352] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0353] The chip system can be composed of chips, or can include chips and other discrete devices.

[0354] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0355] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.

[0356] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0357] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute any method executed by the electronic device 100 in any of the above embodiments.

[0358] The present application also provides a computer-readable storage medium storing a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by any one of the electronic devices 100 in any of the above embodiments.

[0359] It should be understood that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above-mentioned method embodiment can be completed by hardware integrated logic circuits in the processor or by software instructions. The above-mentioned processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above-mentioned method.

[0360] In addition, embodiments of the present application further provide a device. Specifically, the device may be a component or module, and may include one or more processors and a memory connected to each other. The memory is configured to store a computer program. When the computer program is executed by one or more processors, the device performs the methods described in each of the above method embodiments.

[0361] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0362] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.

[0363] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0364] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

[0365] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for monitoring blood glucose levels for use in an electronic device, characterized in that determine the first meal time based on the user's previous blood glucose levels; determining a second meal time based on one or more of the following: a meal time input by the user, the user's hand movement, and the user's heart rate; and determining a third meal time based on the first meal time and the second meal time, wherein the third meal time is used by an electronic device to evaluate the user's condition based on the blood glucose level criterion.

2. The method of claim 1, wherein after the electronic device determines the third meal time based on the first meal time and the second meal time, the method further comprises the following: displaying a first cue when the third meal time arrives, wherein the first cue indicates that the current time corresponds to the meal time predicted by the electronic device.

3. The method according to claim 2, characterized in that it further comprises the following: detecting the first operation performed on the basis of the first hint information, and determining a third meal time as the meal time of the first event concerning the user's diet, or determining a fourth meal time as the meal time of the first event concerning the user's diet, wherein the fourth meal time is different from the third meal time.

4. The method of claim 2, wherein the fourth meal time is a time entered by the user or a time determined based on the third meal time.

5. The method according to claim 2, wherein after determining the fourth meal time as the meal time of the first event concerning the user's diet, and detecting the first operation performed with respect to the first hint information, the method further comprises the following: display the first hint information after the first time interval; detect the second operation performed on the first cue information and determine the current time as the fourth meal time.

6. The method according to any one of paragraphs 3-5, in which before or after determining the time of eating of the first event concerning the diet, the method further comprises the following: determine the first food product to be consumed by the user and the first intake of the first food product in the first dietary event; determining a first blood glucose level curve based on information on the first food product, the first intake of the first food product and based on the value of the user's blood glucose level up to the current point in time, wherein the first blood glucose level curve represents a change in the user's blood glucose level predicted by the electronic device, taking into account the influence of the said first event concerning the diet; display the first curve of blood glucose levels.

7. The method according to paragraph 6, characterized in that it additionally contains the following: determining a second blood glucose level curve based on the user's blood glucose level value up to the current time, wherein the second blood glucose level curve represents a change in the user's blood glucose level predicted by the electronic device in the absence of the said first dietary event; display a second curve of blood glucose levels.

8. The method according to claim 6 or 7, in which determining the first blood glucose level curve based on information about the first food product, the first intake of the first food product and based on the value of the blood glucose level of the user up to the current point in time comprises the following: determining the first blood glucose level curve based on the assimilation index of the first food product for the user, the first intake of the first food product and the value of the blood glucose level of the user up to the current point in time, wherein the assimilation index of the first food product for the user relates to the first food product and the physical condition of the user.

9. The method of claim 8, further comprising: determining an index of assimilation of the first food product for the user based on the blood glucose level during the first period of time and the physical condition after the user has taken the second intake of the first food product, wherein the physical condition comprises one or more of the following: age, height, weight, type of disease and information about medications taken.

10. The method according to any one of claims 1-9, wherein the electronic device stores for the user digestibility indices of a plurality of food products.

11. The method according to any one of paragraphs 1-10, characterized in that it additionally contains the following: determining the user's third meal based on the user's blood glucose level during a second time period after the third meal time; display the third technique.

12. The method according to any one of paragraphs 1-11, characterized in that it additionally contains the following: obtaining a value of the user's blood glucose level during a third time interval after the third meal time; and displaying a third blood glucose level curve, wherein the third blood glucose level curve is determined based on a plurality of blood glucose level values ​​of the user during a third time interval after the third meal time.

13. The method according to any one of claims 1-12, wherein determining the first time of eating based on the previous values ​​of the user's blood glucose level comprises the following: determining the first time of eating based on the rate of increase of the previous values ​​of the user's blood glucose level.

14. An electronic device comprising a memory, one or more processors and one or more programs, wherein when one or more processors execute one or more programs, the electronic device is capable of implementing the method according to any one of paragraphs 1-13.

15. A machine-readable storage medium containing instructions, wherein when the instructions are executed on an electronic device, the electronic device is capable of implementing the method according to any one of paragraphs 1-13.