Data processing method for nutritional scale, nutritional scale, and terminal device
By connecting the nutrition scale with a terminal device and leveraging the powerful computing capabilities and database of the terminal device, the problem of low calculation accuracy of the nutrition scale is solved, enabling the nutrition scale and the terminal device to display consistent nutritional information, thereby improving user experience and trust.
Patent Information
- Application Number
- PCT/CN2026/094222
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-09
- Filing Date
- 2026-04-30
- Publication Date
- 2026-11-12
AI Technical Summary
Nutrition scales have limited computing power, resulting in low accuracy in nutrient calculations. Furthermore, discrepancies exist between the nutrient data displayed on the terminal device and the nutrition scale, impacting user experience and trust.
The nutrition scale establishes a communication connection with the terminal device, utilizing the powerful computing capabilities and database of the terminal device to calculate and feed back accurate nutritional data to the nutrition scale, ensuring that the nutrition scale and the terminal device display consistent nutritional information.
It improves the accuracy of nutritional data display, reduces user confusion and misleading information, and enhances user experience and trust.
Smart Images

Figure CN2026094222_12112026_PF_FP_ABST
Abstract
Description
Data processing methods for nutrition scales, nutrition scales and terminal equipment
[0001] This application claims priority to Chinese patent application filed on May 9, 2025, with application number 202510600298.8 and entitled "Data Processing Method, Nutrition Scale and Terminal Equipment for Nutrition Scale", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of electronic scale technology, and in particular to a data processing method for a nutrition scale, a nutrition scale, and a terminal device. Background Technology
[0003] A nutrition scale is a device used to measure the weight of food and calculate its nutritional content. It can be used in home kitchens, the catering industry, and the health and fitness sector.
[0004] After the nutrition scale uses its built-in local food database to calculate the nutritional components of food, it can display the results on the scale's screen. Users can then view the specific values for each nutrient, which typically include calories, protein, fat, and carbohydrates.
[0005] However, nutrition scales typically have limited calculation capabilities, and the accuracy of nutrient calculations using them is low, making it difficult for users to accurately understand the nutrients they are ingesting. Summary of the Invention
[0006] This application provides a data processing method for a nutrition scale, a nutrition scale, and a terminal device. The data calculated by the terminal device is used as the standard, which solves the problem of low accuracy in calculating nutritional components by the nutrition scale, improves the accuracy of nutritional component data display, and allows users to see consistent nutritional information on the nutrition scale and the terminal device.
[0007] In a first aspect, this application provides a data processing method for a nutrition scale, applied to a nutrition scale; the method includes:
[0008] Once the weight of the food is determined and a communication connection is established between the nutrition scale and the terminal device, the weight of the food is sent to the terminal device.
[0009] Receive the first nutrient data fed back by the terminal device, and update the nutrient display information of the nutrition scale based on the first nutrient data;
[0010] The first nutritional data is determined by the terminal device based on the weight and type of food.
[0011] Secondly, this application provides a nutrition scale that can establish a communication connection with a terminal device; the nutrition scale is used to perform the method described in the first aspect.
[0012] Thirdly, this application provides a data processing method for a nutrition scale, applied to a terminal device; the method includes:
[0013] When the terminal device establishes a communication connection with the nutrition scale, it receives the food weight sent by the nutrition scale and determines the first nutrient component data based on the food weight and food type.
[0014] The first nutrient data is sent to the nutrition scale so that the nutrition scale updates its nutrient display information based on the first nutrient data.
[0015] Fourthly, this application provides a terminal device that establishes a communication connection with a nutrition scale, and the terminal device is used to perform the method described in the third aspect.
[0016] Fifthly, this application provides an electronic device, including: a memory and a processor;
[0017] The memory stores computer-executed instructions;
[0018] The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of the first or second aspects.
[0019] In a sixth aspect, this application provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the method as described in any one of the first or second aspects.
[0020] In a seventh aspect, this application provides a computer program product, including a computer program that, when executed by a processor, implements the method as described in any one of the first or second aspects.
[0021] In summary, this application provides a data processing method for a nutrition scale, a nutrition scale, and a terminal device. When the nutrition scale establishes a communication connection with the terminal device, the nutrition scale sends the measured food weight to the terminal device. The terminal device, utilizing its more powerful computing capabilities and more comprehensive database, calculates accurate first nutrient component data based on the food weight and type. The terminal device then feeds back the calculated first nutrient component data to the nutrition scale. Upon receiving this data, the nutrition scale updates its displayed information, displaying the first nutrient component data, ensuring consistency between the nutrient component data seen by the user on the nutrition scale and that displayed on the terminal device. This method ensures that the nutrition scale and terminal device always display consistent nutrient component data, avoiding discrepancies caused by different data sources or calculation methods. Because the terminal device has more powerful processing capabilities, using the data calculated by the terminal device as the standard improves the accuracy of nutrient component data display. Furthermore, the consistent nutritional information seen by the user on both the nutrition scale and terminal device reduces confusion and misleading information, enhancing user experience and trust. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0023] Figure 1 is a schematic diagram of an application scenario of a nutrition scale provided in an embodiment of this application;
[0024] Figure 2 is a flowchart illustrating a data processing method for a nutrition scale provided in an embodiment of this application;
[0025] Figure 3 is an interactive schematic diagram of updating a local food database according to an embodiment of this application;
[0026] Figure 4 is a schematic diagram of another interaction for updating a local food database provided in an embodiment of this application;
[0027] Figure 5 is a schematic diagram of another interaction for updating a local food database provided in an embodiment of this application;
[0028] Figure 6 is a schematic diagram of another interaction for updating a local food database provided in an embodiment of this application;
[0029] Figure 7 is an interactive schematic diagram of offline weighing record synchronization provided in an embodiment of this application;
[0030] Figure 8 is a schematic diagram of the state switching of a nutrition scale provided in an embodiment of this application;
[0031] Figure 9 is a schematic diagram of data fluctuation under a button state provided in an embodiment of this application;
[0032] Figure 10 is a schematic diagram of the interaction between a nutrition scale and a terminal device for precision alignment provided in an embodiment of this application;
[0033] Figure 11 is an interactive schematic diagram of the real-time weighing record synchronization process of a nutrition scale provided in an embodiment of this application;
[0034] Figure 12 is a flowchart illustrating another data processing method for a nutrition scale provided in an embodiment of this application;
[0035] Figure 13 is a schematic diagram of the data processing device of a nutrition scale provided in an embodiment of this application;
[0036] Figure 14 is a schematic diagram of the data processing device for another nutrition scale provided in an embodiment of this application;
[0037] Figure 15 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0038] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0039] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and purpose. For example, "first device" and "second device" are merely used to distinguish different devices and do not limit their order of execution. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0040] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0041] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0042] Currently, many nutrition scales rely on applications (APPs) on terminal devices such as smartphones to provide nutritional information about food. This means that when offline, i.e. without connection to the APP or without an internet connection, nutrition scales can usually only perform basic weighing functions and cannot provide nutritional information about food.
[0043] One possible implementation involves embedding a local food database into the nutrition scale, or sending the nutritional composition of a selected food to the scale via an app. This allows the scale to calculate the nutritional components of the food using the local food database or nutritional composition data, and then display the results on the scale's screen, enabling users to view the specific values for each nutrient.
[0044] However, nutritional scales typically have limited calculation capabilities, and the accuracy of nutrient calculations using them is relatively low.
[0045] It should be noted that there may be some minor differences between nutrition scales and terminal devices in unit conversion or nutrient calculation, which may lead to differences in accuracy. For example, some nutrition scales may not support floating-point operations and can only perform integer operations. When performing floating-point operations, the number of bits is limited, and some calculation results may need to be rounded to the nearest representable value, which can lead to the accumulation of small errors.
[0046] It is understandable that differences in the underlying implementation details, development languages, and algorithm implementation details of nutrition scales and terminal devices may also lead to differences in accuracy. Therefore, the calculation accuracy of terminal devices is usually greater than that of nutrition scales.
[0047] In another possible implementation, after the nutrition scale weighs the food, the terminal device can obtain the weight information and type of the food, and then calculate the nutritional composition of the food based on the weight information and type of food, and display it visually on the terminal device.
[0048] However, due to the different calculation accuracy of the terminal device and the nutrition scale, the terminal device and the nutrition scale display different nutritional data for the same food. That is, the terminal device may display one calculated nutritional data 1, while the nutrition scale displays another nutritional data 2 calculated based on the local food database. The difference between nutritional data 1 and nutritional data 2 may confuse and mislead users, thus affecting the user experience. Users may be confused about which data is more accurate or how to use it, which in turn affects their judgment and decision-making regarding food intake.
[0049] To address the aforementioned issues, this application provides a data processing method for a nutrition scale. When the nutrition scale establishes a communication connection with a terminal device, the scale sends the measured food weight to the terminal device. The terminal device, utilizing its superior computing power and comprehensive database, calculates accurate first nutrient component data based on the food weight and type. The terminal device then feeds back the calculated first nutrient component data to the nutrition scale. Upon receiving this data, the nutrition scale updates its displayed information, displaying the first nutrient component data, ensuring consistency between the nutrient component data seen by the user on the scale and that displayed on the terminal device. This method ensures that the nutrition scale and terminal device always display consistent nutrient component data, avoiding discrepancies caused by different data sources or calculation methods. Because the terminal device has superior processing power, using its calculated data improves the accuracy of nutrient component data display. Furthermore, the consistent nutritional information seen by the user on both the scale and terminal device reduces confusion and misleading information, enhancing user experience and trust.
[0050] For example, Figure 1 is a schematic diagram of an application scenario of a nutrition scale provided in an embodiment of this application. As shown in Figure 1, the application scenario includes a nutrition scale 100 and a terminal device 200. The nutrition scale 100 can establish a communication connection with the terminal device 200.
[0051] Specifically, the user places the food to be measured on the nutrition scale 100, which can automatically measure the weight of the food. Furthermore, when the nutrition scale 100 establishes a communication connection with the terminal device 200, the nutrition scale 100 sends the measured food weight to the terminal device 200 through the communication connection. On the terminal device 200, the user can select the type of food, or the user can send the information from the nutrition scale 100 to the terminal device 200 to determine the type of food. This application embodiment does not specifically limit the method for determining the type of food.
[0052] Furthermore, the terminal device 200 can calculate the first nutrient content data of the food based on the received food weight and the type of food selected by the user, using its database and computing power. The terminal device 200 feeds back the calculated first nutrient content data to the nutrition scale 100. After receiving the first nutrient content data fed back by the terminal device 200, the nutrition scale 100 updates the nutritional information on its display screen, so that the user can view the accurate first nutrient content data on the nutrition scale 100.
[0053] In some embodiments, users can make dietary decisions based on the first nutrient data displayed on the terminal device 200, such as adjusting food intake or choosing other foods. In addition, users can choose to save the measurement data on the terminal device 200 for long-term dietary management and analysis.
[0054] In some embodiments, the nutrition scale 100 has multiple button options, and users can operate the corresponding button options to make the nutrition scale 100 enter different function modes, such as weighing function, tare function, nutrition analysis function, unit conversion function, voice prompt function, counting function, etc. The embodiments of this application do not specifically limit the function modes corresponding to different button options.
[0055] The term "terminal device" can also be referred to as User Equipment (UE), Mobile Station (MS), Mobile Terminal, Terminal, Smart Terminal, etc. In practical applications, terminal devices include, for example, desktop computers, laptops, Personal Digital Assistants (PDAs), smartphones, tablets, in-vehicle devices, wearable devices (such as smartwatches and smart bracelets), and smart home devices (such as smart display devices). This application does not specifically limit the type of terminal device.
[0056] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0057] Figure 2 is a flowchart illustrating a data processing method for a nutritional scale according to an embodiment of this application. As shown in Figure 2, this data processing method for a nutritional scale is applied to a nutritional scale; the data processing method for a nutritional scale includes the following steps:
[0058] S201. Determine the food weight. If the nutrition scale establishes a communication connection with the terminal device, send the food weight to the terminal device.
[0059] In this embodiment, the nutrition scale can transmit the measured food weight data to a connected terminal device via wireless communication. This wireless communication method may include Bluetooth, mobile communication, Wireless Fidelity (Wi-Fi), etc. This embodiment does not specifically limit the communication connection method between the nutrition scale and the terminal device.
[0060] In this step, the user places the food on the nutrition scale, which measures the weight of the food using its built-in sensors. Furthermore, if the nutrition scale establishes a wireless communication connection with the terminal device, the nutrition scale transmits the measured food weight data to the connected terminal device via wireless communication.
[0061] S202. Receive the first nutrient data fed back by the terminal device, and update the nutrient display information of the nutrition scale based on the first nutrient data, wherein the first nutrient data is determined by the terminal device based on the food weight and food type.
[0062] In this step, the nutrition scale receives the first nutrient data fed back by the terminal device through the communication connection with the terminal device. After receiving this first nutrient data, the nutrition scale updates the first nutrient data on its display screen. In this way, the user can see the updated nutrient information on the nutrition scale interface, such as specific numerical information such as calories, protein, fat, and carbohydrates.
[0063] The first nutrient data is determined by the terminal device based on the food weight and food type. That is, after the nutrition scale executes S201, the terminal device can receive the food weight data, and then calculate the first nutrient data of the food based on the food weight and the food type using its built-in APP food database and computing power.
[0064] It should be noted that the food type can be selected by the user on the terminal device. For example, the user can select the corresponding food type from a predefined APP food database through an APP interface, or the user can operate on the nutrition scale to select the corresponding food type from the local food database and send the food type to the terminal device via wireless communication. Alternatively, the nutrition scale can take an image of the food based on the built-in camera sensor and send it to the terminal device to determine the food type. This application embodiment does not specifically limit the method of determining the food type, which can be determined based on the actual application scenario requirements, product performance settings, or user settings.
[0065] The APP food database is used to store commonly used food types and information. The terminal device can establish a communication connection with the cloud. When the APP food database cannot identify the food type that the user needs, it can respond to the user's operation, retrieve it from the cloud and add it to the APP food database. In other words, the user can also add new food types to the APP food database through the APP.
[0066] The local food database is used to store frequently used food types and information. Users can add new food types to the local food database through the APP. Even without a network or server connection, users can still use the APP to enter local food data into the local food database, or use the APP's food database to synchronize part of the food database to the nutrition scale so that the nutrition scale can update the local food database.
[0067] For example, Figure 3 is an interactive schematic diagram of updating a local food database provided in an embodiment of this application. As shown in Figure 3, the nutrition scale has a built-in local food database, and the APP of the terminal device has a built-in APP food database. The nutrition scale can weigh food in real time. If, in response to the user's touch operation, the food type information of the food is not found in the local food database, it can send a query request to the APP of the terminal device in response to the user's query operation on the nutrition scale, so as to find the food type information of the food from the APP food database of the terminal device and feed the food type information back to the nutrition scale. Then, the nutrition scale updates the local food database based on the food type information.
[0068] In this application, the user's query operation at the nutrition scale can be performed by the user through the keyboard formed by the touch screen of the nutrition scale, or by the user through voice input. This application embodiment does not specifically limit the query operation of the user at the nutrition scale.
[0069] In some embodiments, if the food type information of a food is not found in the local food database, it can be queried directly in the APP of the terminal device to determine the food type information. For example, Figure 4 is an interactive schematic diagram of updating the local food database provided in an embodiment of this application. The difference from Figure 3 is that, in response to the user's touch operation, if the food type information of a food is not found in the local food database, the user can operate the APP of the terminal device. The APP responds to the user's query operation, finds the food type information of the food in the APP food database, and then feeds the food type information back to the nutrition scale.
[0070] In this application, the query operation of the user on the APP can be performed by the user through the keyboard input formed by the display interface of the APP, or by the user through voice input. This application embodiment does not specifically limit the query operation of the user on the APP.
[0071] It should be noted that if the food category information for a particular food is not found in the APP's food database, the terminal device can also send a query request to the cloud to retrieve the food category information from the cloud's overall food database. For example, Figure 5 is another interactive schematic diagram of updating the local food database provided in this application embodiment. As shown in Figure 5, the nutrition scale can weigh food in real time. In response to the user's touch operation, if the food category information for a particular food is not found in the local food database, it can respond to the user's query operation on the nutrition scale by sending a query request to the APP on the terminal device to retrieve the food category information from the APP's food database. If the food category information is not found in the APP's food database, the user can operate the APP on the terminal device. In response to the user's query, the APP sends a query request to the cloud to find the food category information from the cloud's total food database. The cloud has a total food database that stores all food categories and information. Furthermore, the cloud feeds back the food category information to the terminal device's APP, and the terminal device's APP updates its food database based on the food category information. Correspondingly, the terminal device's APP feeds back the food category information to the nutrition scale so that the nutrition scale updates its local food database based on the food category information.
[0072] It is understandable that if the food category information is not found in the local food database or the APP food database, the user can also query the food category information by operating the APP on the terminal device. For example, Figure 6 is an interactive schematic diagram of updating the local food database provided in this application embodiment. The difference from Figure 5 is that, in response to the user's touch operation, if the food category information is not found in the local food database, the user can operate the APP on the terminal device. The APP responds to the user's query operation and searches for the food category information in the APP food database. If the food category information is not found in the APP food database either, the user can operate the APP on the terminal device again. The APP responds to the user's query operation and sends a query request to the cloud to search for the food category information in the total food database in the cloud, and then feeds back the food category information to the APP on the terminal device and the nutrition scale for updating.
[0073] It should be noted that the types and information of food stored in a food storage facility may include: food name, food type, nutritional components per unit weight of food, etc. The nutritional components may include carbohydrate weight, protein weight, fat weight, calories, etc. The embodiments of this application do not limit the content corresponding to the nutritional components.
[0074] For example, the first nutrient data can be calculated using a predefined formula. For instance, if a unit food weighs 100g, contains 10g of carbohydrates, and 5.1g of protein, then 100g of the food contains 10g of carbohydrates and 5.1g of protein; 200g of the food contains 20g of carbohydrates and 10.2g of protein. Accordingly, based on this ratio, when calculating the first nutrient data for the food, it is only necessary to scale the nutrient composition proportionally according to the weight measurement result of the nutrition scale. This application does not specifically limit the method for calculating the first nutrient data; the above is merely an example.
[0075] In this way, by sending the food weight to the terminal device for processing and utilizing the powerful computing capabilities of the terminal device, the accuracy of the primary nutrient data is ensured. Since the primary nutrient data is calculated uniformly on the terminal device, the consistency of data between different devices is ensured, avoiding display discrepancies. Therefore, by receiving and displaying the primary nutrient data fed back from the terminal device, the nutrition scale can ensure that the nutritional information seen by the user is consistent across different devices, reducing potential user misunderstandings caused by data inconsistencies between devices. Moreover, users can directly view the accurate primary nutrient data on the nutrition scale without switching between multiple devices, thus improving the user experience.
[0076] Furthermore, since complex computational tasks are handled by the terminal device, the hardware design of the nutrition scale can remain simple, thereby reducing cost and power consumption.
[0077] The following examples use a nutrition scale as the implementing entity for explanation.
[0078] In some embodiments, the method further includes:
[0079] During the first time period, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated, visualized, and the weighing time is recorded. During the first time period, the terminal device does not establish a communication connection with the nutritional scale.
[0080] If the nutrition scale establishes a communication connection with the terminal device after the first time period, it sends the food weight, food type, and weighing time of at least one of the weighed foods during the first time period to the terminal device, so that the terminal device can calculate the first nutritional component data of the at least one weighed food and generate a list of weighing information of the nutrition scale during the first time period.
[0081] In this embodiment, the weighing information list may include the food weight, food type, weighing time recorded by the nutrition scale during a first time period, and the first nutrient content data calculated by the terminal device. The weighing information list may be in the form of a table, with each column or row representing the food weight, food type, and first nutrient content data corresponding to a weighing time, or it may be in the form of a list, with each entry containing all relevant information for one weighing. This embodiment does not specifically limit the form of the weighing information list. The weighing information list is used to help users analyze their diet and avoid data omissions over a period of time.
[0082] During the first time period, the nutrition scale can operate independently even without establishing a communication connection with the terminal device. At this time, the nutrition scale is offline. In this embodiment of the application, the length of the first time period is not specifically limited, but can be determined based on the actual offline time of the nutrition scale.
[0083] It should be noted that when the nutrition scale is offline, since it has a default local food database, users can select the corresponding food type on the scale and weigh the food to obtain its weight. The scale calculates and displays the secondary nutrient data based on the weight and type of the food. At this time, to facilitate subsequent data synchronization with the terminal device, users can click the button on the nutrition scale to save the weight data of the food. In this way, the nutrition scale can record the weight data of the food multiple times even when it is disconnected from the terminal device.
[0084] The weighing data may include: food type, food weight, weight of each nutrient component of the food, index of the data, timestamp, i.e. weighing time, etc. The embodiments of this application do not specifically limit the content of the weighing data.
[0085] For example, Figure 7 is an interactive schematic diagram of offline weighing record synchronization provided by an embodiment of this application. As shown in Figure 7, when the nutrition scale is offline, the user puts food on the nutrition scale, the nutrition scale measures the weight of the food, the user can select to switch the food type on the nutrition scale, and then the nutrition scale calculates and visualizes the second nutrient data of the food, namely nutrient 1, based on the measured weight and the food type selected by the user, based on the local physical database. Furthermore, the user can click to save the weighing data.
[0086] After the nutrition scale is connected to the terminal device's APP, the APP can query the food weight, food type, and weighing time within a first time period. In other words, the nutrition scale can send a historical list of food weight, food type, and weighing time recorded within the first time period to the terminal device's APP. After receiving the historical list, the terminal device's APP uses its more powerful processing capabilities and APP food database to calculate the primary nutritional data of these foods, and then regenerates a new list, namely the weighing information list. Correspondingly, the APP deletes the obtained historical list.
[0087] In some embodiments, after the data within the first time period is successfully synchronized by the APP, the APP can also notify the nutrition scale to delete the corresponding stored record data in order to free up memory.
[0088] It should also be noted that after the app generates a new list, the data of that list can also be reported to the cloud for storage, so as to facilitate subsequent querying or use.
[0089] It is understandable that after calculating the primary nutrient data of these foods, users can refer to this primary nutrient data for health management, dietary planning, etc., and this application embodiment does not specifically limit this.
[0090] The nutrition scale can calculate the first nutrient data based on a local food database and a predefined formula. The calculation process can refer to the calculation method of the terminal device in the above embodiment. This application embodiment does not make specific limitations on this, except that the calculation accuracy of the nutrition scale and the terminal device is different.
[0091] Therefore, allowing users to use the nutrition scale without a terminal device connection provides greater flexibility and continuity, especially when users cannot immediately connect to a terminal device. Furthermore, after connection, nutritional data can be recalculated via the terminal device, ensuring that users ultimately obtain accurate data calculated based on the APP's food database. Moreover, after connection, the nutrition scale's data can be synchronized to the terminal device, ensuring data integrity and consistency and avoiding data loss or inconsistency caused by offline operation. Through these methods, users can use the nutrition scale at any time without worrying about connectivity issues, improving its usability and user experience. Thus, by supporting both offline and online modes, the nutrition scale's functionality is enhanced, enabling it to adapt to more usage scenarios.
[0092] In some embodiments, the method further includes, prior to determining the weight of the food:
[0093] Acquire first sampling data from multiple sensors in the nutrition scale during the second time period;
[0094] Based on the first sampling data from the plurality of sensors, determine the first average sampling data for each sensor;
[0095] If the difference between any two first average sampled data within the second time period is less than the first threshold, then the mean of the first average sampled data within the second time period is updated to the zero point value of the nutrition scale; if the difference between any two first average sampled data within the second time period is greater than the first threshold, then the zero point value of the nutrition scale is not updated.
[0096] The second sampling data of the plurality of sensors after updating the zero point value is obtained, and the weight display information and / or nutrition display information of the nutrition scale is updated based on the updated zero point value and the second sampling data of the plurality of sensors.
[0097] It should be noted that, as shown in Figure 1, for nutrition scales with buttons located above the sensors, the weight data may fluctuate for a period of time when the user presses the zeroing button. Therefore, after detecting the zeroing button operation, the weight data can be collected temporarily, but only after the button operation is confirmed to be completed. At this time, the weight data is not displayed, but the zero point value is captured.
[0098] In this embodiment, multiple sensors can be located at different positions on the nutrition scale to accurately weigh the food. The second time period can refer to a specific time interval during which the multiple sensors of the nutrition scale collect data to determine the zero point value. The selection of the second time period may be based on the design and usage scenario of the nutrition scale to ensure that the collected data can reflect the stable state of the sensors. This embodiment does not specifically limit the length of the second time period; for example, the second time period can be within 5 seconds after the zeroing button operation is detected.
[0099] In this step, during the second time period, the nutrition scale acquires first sampling data from its multiple sensors. Then, based on the first sampling data of each sensor, it calculates the first average sampling data of each sensor. This step helps to smooth the sensor data and reduce the impact of instantaneous fluctuations on the measurement results. Furthermore, the difference between the first average sampling data of any two sensors during the second time period is compared: if the difference is less than a first threshold, it indicates that the sensor data is stable, and the mean of these average sampling data can be updated to the zero point value of the nutrition scale; if the difference is greater than the first threshold, it indicates that the sensor data is unstable, and the zero point value is not updated to avoid inaccurate calibration.
[0100] Furthermore, the system acquires second sampling data from multiple sensors after updating the zero-point value. Based on the updated zero-point value and second sampling data, it updates the weight display information and / or nutrition display information of the nutrition scale, which ensures the accuracy of the displayed data.
[0101] The weight display information can refer to the weight data of the food displayed on the nutrition scale and / or the weight data displayed when no food is placed on it. In other words, after determining the zero point value, the weight display information of the nutrition scale and the weight of the food sent to the terminal device can be the difference between the average sampled data of all second sampled data and the zero point value.
[0102] For example, if the sensor sampling frequency is 10Hz, that is, 10 data points are sampled per second, then there will be a maximum of 50 data points within 5 seconds. If there are N consecutive data points that are equal, the zero point value can be captured. Taking a nutrition scale with 4 sensors as an example, AD1, AD2, AD3, AD4, AD5, and AD6 refer to the first average sampling data of the 4 sensors at 6 different times and in continuous time. As long as AD1≈AD2≈AD3≈AD4≈AD5≈AD6, that is, the difference between any two first average sampling data points is less than the first threshold, then the average value of the 6 first average sampling data points is taken as the new zero point value.
[0103] If the data continues to fluctuate, and after 5 seconds, the first average sample data of the latest 6 records still does not meet the condition AD1≈AD2≈AD3≈AD4≈AD5≈AD6, then the capture of the zero point value fails and the zero point value is not refreshed.
[0104] In this way, by dynamically determining and updating the zero point value, the impact of environmental changes and sensor drift on the measurement results is reduced, improving the accuracy of weight measurement. By using data from multiple sensors, this application can better resist the error or failure of a single sensor, enhancing overall stability. Furthermore, by updating the zero point value under stable conditions, measurement errors that may accumulate during long-term use are reduced. In addition, the mechanism of automatically updating the zero point value reduces the need for manual calibration by users, simplifies the operation process, and improves the user experience.
[0105] In some embodiments, the nutrition scale has at least a weighing state, a button state, and a temporary state; the method further includes:
[0106] After the nutrition scale is started, it enters the weighing state, and the nutrition scale updates the display of weight information and / or nutrition information based on the sampling data of multiple sensors.
[0107] When the nutrition scale is in weighing mode, it enters the button mode in response to the user's button operation; when the nutrition scale is in the button mode, the nutrition scale does not update the weight display information and / or nutrition display information.
[0108] After the button press state ends, the system enters the temporary state; while the nutrition scale is in the temporary state, the system resumes updating the weight display information and / or nutrition display information of the nutrition scale.
[0109] In this step, when the nutrition scale is turned on, it enters the weighing state by default. At this time, it will continuously collect data until it is turned off. In the weighing state, the nutrition scale can update and display weight and / or nutrition information in real time based on the sampling data of multiple sensors. If the user presses a button in the weighing state, the nutrition scale will enter the button state. In the button state, the nutrition scale will pause the update and display of weight and / or nutrition information to avoid the confusion caused by frequent changes in the displayed information when the user makes settings or selections. When the user finishes the button operation, the nutrition scale will enter a temporary state. In the temporary state, the nutrition scale will resume updating and displaying weight and / or nutrition information.
[0110] For example, Figure 8 is a schematic diagram of the state switching of a nutrition scale provided in an embodiment of this application. As shown in Figure 8, after the nutrition scale is started, it enters the weighing state. In the weighing state, the sensor sampling data continues, and the nutrition scale can display the real-time weight. That is, it can update the displayed weight information and / or nutrition information based on the sampling data of multiple sensors. In response to the user's button operation, the nutrition scale enters the button state. In the button state, the sensor sampling data continues, but the nutrition scale does not update the weight display. That is, the nutrition scale does not update the displayed weight information and / or nutrition information. After the button state ends, the nutrition scale can enter a temporary state. In the temporary state, the nutrition scale can update the weight display. That is, it can update the displayed weight information and / or nutrition information.
[0111] It is understandable that the weight display on the nutrition scale can be updated and then returned to the button state, or the weighing state can be returned after the button state ends. This application embodiment does not specifically limit the subsequent operation state triggered by the button state, but the temporary state can only be entered from the button state.
[0112] Therefore, pausing information updates during button operation avoids user interference and improves the user experience. Pausing display updates while pressing buttons also prevents accidental operations due to display changes when adjusting settings, improving accuracy. The switching between different states allows the nutrition scale to better respond to user needs, thus enhancing its interactivity and flexibility. For example, users can focus on settings or selections while pressing buttons without worrying about changes in displayed information, simplifying the operation process. Resuming information updates in the temporary state ensures that users see the latest measurement results after completing settings, improving information accuracy.
[0113] In some embodiments, restoring the updated display of the weight display information and / or nutrition display information of the nutrition scale when the nutrition scale is in the temporary state includes:
[0114] Acquire third sampling data from multiple sensors in the nutrition scale during the third time period;
[0115] Based on the third sampling data from the multiple sensors, a second average sampling data for each sensor is determined;
[0116] If the difference between any two second average sampled data within the third time period is less than the second threshold, the weight display information and / or nutrition display information of the nutrition scale will be updated based on the third sampled data from the multiple sensors.
[0117] In this embodiment, the third time period may refer to a pre-set time interval during which multiple sensors of the nutrition scale collect data to determine whether the weight display information and / or nutrition display information can be restored and updated. The selection of the third time period can be set based on the response speed of the nutrition scale and user experience. This embodiment does not limit the specific value corresponding to the third time period.
[0118] In this step, after the nutrition scale enters the temporary state, it begins to acquire third sampling data from multiple sensors within the third time period. Based on the third sampling data, the second average sampling data of each sensor is calculated. This step helps to smooth the data and reduce the impact of instantaneous fluctuations on the measurement results. Furthermore, the difference between the second average sampling data of any two sensors within the third time period is compared: if the difference is less than a second threshold, it indicates that the sensor data is stable, and the nutrition scale can update the weight display information and / or nutrition display information based on these data; if the difference is greater than the second threshold, it indicates that the sensor data is unstable, and the nutrition scale may delay updating the display information until the data is stable, or it may not update the weight display information and / or nutrition display information. This application embodiment does not specifically limit this.
[0119] For example, as shown in Figure 8, taking a nutrition scale with 4 sensors as an example, by judging the latest few sampling data, AD0, AD1, AD2, and AD3 refer to the second average sampling data of the 4 sensors at 4 different times and in continuous time. As long as AD0≈AD1≈AD2≈AD3, that is, the difference between any two second average sampling data is less than the second threshold, it can be determined that the nutrition scale data is stable. At this time, the weight display information and / or nutrition display information of the nutrition scale can be updated based on the third sampling data of multiple sensors.
[0120] In this way, when the data is stable, the nutrition scale updates the weight display and / or nutritional information based on the third sampling data, ensuring that the user sees accurate and up-to-date measurement results.
[0121] Therefore, by updating the displayed information when the data is stable, display errors caused by sensor fluctuations are reduced, improving the accuracy of the information. Through the analysis and judgment of sensor data, the nutrition scale can better resist the influence of environmental changes and sensor noise, enhancing overall stability. It should also be noted that by ensuring the accuracy of the displayed information, the risk of users being misled by incorrect displays can be reduced. In addition, this automatic judgment of data stability and updating of displayed information reduces the need for manual calibration by users, simplifies the operation process, and allows users to see accurate measurement results in real time even in temporary situations, improving the user experience.
[0122] In some embodiments, the button state includes a pre-shake phase, a stable closure phase, and a post-shake phase, which are sequentially entered; the method further includes:
[0123] During the stable closing phase, the trigger operation type of the button is identified based on the sampling data from the sensor;
[0124] The function mode of the nutrition scale is switched based on the identified trigger operation type;
[0125] The operation type includes at least one of the following: single-click operation, long-press operation, and double-click operation; different trigger operation types correspond to their respective functional modes; the fluctuation of the sensor's sampling data in the pre-shake phase is greater than the fluctuation in the stable closure phase, and / or, the fluctuation of the sensor's sampling data in the post-shake phase is greater than the fluctuation in the stable closure phase.
[0126] In this embodiment, the button state is divided into three stages: the pre-shaking stage, the stable closing stage, and the post-shaking stage. The pre-shaking stage is the shaking state that begins after the user starts pressing the button, the post-shaking stage is the shaking state that begins after the user releases the button, and the stable closing stage is the stable state that continues for a preset duration after the user presses the button.
[0127] For example, Figure 9 is a schematic diagram of data fluctuation in a button state provided by an embodiment of this application. As shown in Figure 9, when the user starts to press the button, the system enters the pre-shaking stage. At this time, the data collected by the sensor will have large fluctuations because the button may shake in the initial stage. When the button is pressed stably, the data fluctuations collected by the sensor decrease and enter a relatively stable closed stage. When the user releases the button, the sensor data fluctuates again. At this time, the system enters the post-shaking stage, which is due to the shaking caused when the button is released.
[0128] During the stable closure phase, the user's key operation type can be identified based on the sensor's sampling data. This operation type includes: single click, which is to quickly press and release the key; long press, which is to press and hold the key for a period of time; and double click, which is to quickly press the key twice in succession.
[0129] In this step, the function mode of the nutrition scale is switched according to the trigger operation type identified in the stable closure phase. Different operation types correspond to different function modes. For example, a single click may be used to reset or perform a tare operation, a long press may be used to enter the settings menu, and a double click may be used to switch the display units. This application embodiment does not specifically limit the function mode corresponding to each operation type, and it can be designed based on the product performance.
[0130] In this way, by supporting multiple button operation types, users can interact with the nutrition scale more intuitively and efficiently, improving the user experience. Since different button operation types correspond to different function modes, the nutrition scale can support more functions without adding physical buttons. Moreover, by recognizing button operations during the stable closing phase, it can reduce misoperations caused by shaking, improve the accuracy of operation, and ensure that the nutrition scale can respond quickly to user operations, thus improving the response speed of the nutrition scale.
[0131] In some embodiments, the method further includes:
[0132] In the absence of a communication connection between the nutrition scale and the terminal device, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated and displayed visually.
[0133] After the nutrition scale establishes a communication connection with the terminal device, the weight and type of the food to be weighed are sent to the terminal device so that the terminal device can calculate the first nutritional component data of the food to be weighed.
[0134] The system receives the first nutrient composition data of the weighed food from the terminal device and replaces the second nutrient composition data displayed on the nutrition scale with the first nutrient composition data.
[0135] It should be noted that when converting units and calculating nutrients, if floating-point arithmetic is involved, the nutrition scale and terminal device may have errors in floating-point calculations. This means that the second nutrient data calculated by the nutrition scale may differ from the first nutrient data calculated by the terminal device's APP. Therefore, when the nutrition scale and terminal device display data at the same time, users may be confused by the difference. Therefore, it is necessary to align the accuracy of the data calculated by the nutrition scale and terminal device.
[0136] For example, Figure 10 is an interactive schematic diagram of a nutrition scale and a terminal device for precision alignment provided in an embodiment of this application. As shown in Figure 10, when the nutrition scale and the APP of the terminal device have not established a communication connection, the user can use the nutrition scale to calculate the second nutrient data. That is, the user puts food on the nutrition scale, the scale weighs the food, the user switches the food type on the nutrition scale, and then the nutrition scale calculates the second nutrient data of the food based on the weighed food weight and food type, and displays the nutrient 1 on the display screen. When the nutrition scale and the APP of the terminal device establish a communication connection, the nutrition scale sends the recorded food weight and food type data to the terminal device. The APP of the terminal device uses its more powerful computing power and APP food database to recalculate the first nutrient data of the food and send the first nutrient data to the nutrition scale. Furthermore, the nutrition scale can receive the first nutrient data fed back by the APP of the terminal device and display the nutrient 2 on the display screen. In this way, by using the more accurate first nutrient data provided by the APP of the terminal device to replace the original second nutrient data displayed on the nutrition scale, it can be ensured that the user sees the latest and most accurate information.
[0137] It should be noted that the above scenario applies when the nutrition scale is not connected and initially displays the second nutrient data calculated by itself. Then, when a connection is suddenly established with the terminal device, it switches to displaying the first nutrient data calculated by the terminal device. This avoids the possibility of the nutrition scale's chip having insufficient precision, which could lead to a loss of accuracy.
[0138] It should also be noted that after the app on the terminal device calculates the primary nutrient content data of the food, it can respond to the user's operation on the terminal device and save data such as the weight and primary nutrient content data of the food. Furthermore, the app on the terminal device can also upload the data to the cloud for storage.
[0139] However, after the nutrition scale stores multiple records offline, once the nutrition scale is connected to the terminal device's APP, the weight and food type of each record can be sent to the APP. The APP calculates the first nutrient data for each record based on the weight and food type. For example, Figure 11 is an interactive schematic diagram of the real-time weighing record synchronization process of a nutrition scale provided in an embodiment of this application. As shown in Figure 11, since it takes a certain amount of time for the nutrition scale and the terminal device's APP to establish a connection, if the user uses the nutrition scale to calculate nutrient data during this period, the second nutrient data, i.e., nutrient 1, may be displayed, calculated by the nutrition scale based on the weighed food weight and food type and local food data. During this period, the nutrition scale sends the food weight and food type information to the terminal device's APP in real time. Furthermore, if the two suddenly establish a connection, the APP calculates the first nutrient data of the food, i.e., nutrient 2, based on the food weight and food type sent by the nutrition scale and the APP's food database, and sends nutrient 2 to the nutrition scale. In this way, the nutrition scale can replace nutrient 1 displayed on the screen with nutrient 2, and the user can click the button on the nutrition scale to save the weighing record.
[0140] It should be noted that during this period, the nutrition scale may have calculated the nutritional components of multiple foods and saved multiple food weighing records. After the nutrition scale establishes a communication connection with the terminal device's APP, the APP sends a query request to the nutrition scale to query the multiple food weighing records saved by the nutrition scale. Then, the nutrition scale sends the historical record list corresponding to the multiple food weighing records to the terminal device's APP so that the APP can calculate the first nutritional component data. The subsequent processing flow is similar to the flow shown in Figure 7, and will not be repeated here. For details, please refer to the description of Figure 7.
[0141] It's also worth noting that when the nutrition scale is used for real-time weighing, the second nutrient data can be saved by clicking on the scale itself, rather than directly by the app on the terminal device. This is because when the app is in certain interfaces or running in the background, even though the terminal device remains connected to the nutrition scale, the data may not be processed and saved in a timely manner. Therefore, to ensure data integrity and timely saving, data is saved on the nutrition scale itself. When the user clicks save on the app, the data is saved by the app.
[0142] In this way, even without a communication connection, the nutrition scale can independently determine the weight and type of food and calculate and display the secondary nutrient data. This function ensures that users can still obtain basic nutritional information even without a terminal device, enhancing the scale's independence and convenience. Once a communication connection is established with a terminal device, the scale can send the food weight and type information to the terminal device. Terminal devices typically have stronger computing power and richer databases, thereby improving the accuracy and reliability of calculating the primary nutrient data by leveraging the terminal device's computational advantages. Furthermore, through the connection with the terminal device, the nutrition scale can also achieve data synchronization, ensuring the integrity and consistency of data between different devices and avoiding data inconsistencies caused by offline operation.
[0143] Therefore, users can use the nutrition scale at any time without worrying about connectivity issues, improving the usability and user experience of the nutrition scale.
[0144] Correspondingly, the terminal device, as the peer device interacting with the nutrition scale, also has a corresponding data processing method. Figure 12 is a flowchart illustrating another data processing method for a nutrition scale provided in an embodiment of this application. As shown in Figure 12, this data processing method for the nutrition scale is applied to the terminal device, and the data processing method includes the following steps:
[0145] S1201. When the terminal device establishes a communication connection with the nutrition scale, it receives the food weight sent by the nutrition scale and determines the first nutrient component data based on the food weight and food type.
[0146] It should be noted that the process of S1201 is similar to that of S201. For details, please refer to the description of S201. It will not be repeated here. The difference between the two is that the executing entities are different.
[0147] For example, the terminal device receives food weight data from the nutrition scale via wireless communication. The user can select the type of food on the terminal device. The terminal device combines the received food weight and the type of food selected by the user, and uses its built-in APP food database and computing power to calculate the first nutritional component data of the food.
[0148] S1202. The first nutrient data is sent to the nutrition scale so that the nutrition scale updates its nutrient display information based on the first nutrient data.
[0149] For example, after calculating the nutritional data of the food, the terminal device sends this data back to the nutrition scale via wireless communication. This process ensures that the nutrition scale can obtain the latest first nutrient data for display updates. After receiving the first nutrient data from the terminal device, the nutrition scale updates the nutritional information on its display screen so that users can directly view accurate and up-to-date nutrient data on the nutrition scale.
[0150] It should be noted that the process of S1202 is similar to that of S202. For details, please refer to the description of S202. It will not be repeated here. The difference between the two is that the executing entities are different.
[0151] Because terminal devices typically have more powerful processing capabilities and more comprehensive databases, they can provide more accurate nutritional data. Therefore, by uniformly calculating nutritional data on terminal devices, consistency between data across different devices is ensured, avoiding display discrepancies. Furthermore, the terminal device sends the calculated initial nutritional data back to the nutrition scale, ensuring that the information seen by the user on the nutrition scale is consistent with the information on the terminal device. This accurate and consistent display of food nutritional information enhances user trust in the nutrition scale, reduces the risk of user misguidance due to erroneous displays, and helps improve user satisfaction.
[0152] Furthermore, by delegating complex calculation tasks to terminal devices, the hardware design of the nutrition scale can remain simple, reducing costs and power consumption while ensuring the accuracy of the displayed information. Moreover, users do not need to switch between multiple devices to view information, simplifying the operation process and improving ease of use. Since users can directly view the latest food nutrition information on the nutrition scale, they can make timely dietary decisions.
[0153] It should be noted that the terminal device also has a corresponding processing procedure during the processing of the above embodiments. For details, please refer to the description of the terminal device in the above embodiments, which will not be repeated here.
[0154] In the foregoing embodiments, the data processing method of the nutrition scale provided in this application has been described. To implement the functions of the methods provided in the embodiments of this application, the nutrition scale or terminal device, as the executing entity, may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0155] For example, Figure 13 is a schematic diagram of the structure of a data processing device for a nutrition scale provided in an embodiment of this application. As shown in Figure 13, the data processing device 1300 for the nutrition scale is applied to the nutrition scale, and the data processing device 1300 for the nutrition scale includes:
[0156] The first sending module 1301 is used to determine the weight of the food and, when the nutrition scale establishes a communication connection with the terminal device, send the weight of the food to the terminal device.
[0157] The first receiving module 1302 is used to receive the first nutrient data fed back by the terminal device, and update the nutrient display information of the nutrition scale based on the first nutrient data; the first nutrient data is determined by the terminal device based on the weight and type of food.
[0158] As one possible implementation of this application, the data processing device 1300 of the nutrition scale further includes a calculation processing module, which is used for:
[0159] During the first time period, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated, visualized, and the weighing time is recorded. During the first time period, the terminal device does not establish a communication connection with the nutritional scale.
[0160] If the nutrition scale establishes a communication connection with the terminal device after the first time period, it sends the food weight, food type, and weighing time of at least one of the weighed foods during the first time period to the terminal device, so that the terminal device can calculate the first nutritional component data of the at least one weighed food and generate a list of weighing information of the nutrition scale during the first time period.
[0161] As one possible implementation of this application, the data processing device 1300 of the nutrition scale further includes an update module, the update module being used for:
[0162] Before determining the weight of the food, first sampling data from multiple sensors in the nutrition scale are acquired during a second time period;
[0163] Based on the first sampling data from the plurality of sensors, determine the first average sampling data for each sensor;
[0164] If the difference between any two first average sampled data within the second time period is less than the first threshold, then the mean of the first average sampled data within the second time period is updated to the zero point value of the nutrition scale; if the difference between any two first average sampled data within the second time period is greater than the first threshold, then the zero point value of the nutrition scale is not updated.
[0165] The second sampling data of the plurality of sensors after updating the zero point value is obtained, and the weight display information and / or nutrition display information of the nutrition scale is updated based on the updated zero point value and the second sampling data of the plurality of sensors.
[0166] As one possible implementation of this application, the nutrition scale has at least a weighing state, a button state, and a temporary state; the data processing device 1300 of the nutrition scale further includes a state switching module, the state switching module being used for:
[0167] After the nutrition scale is started, it enters the weighing state, and the nutrition scale updates the display of weight information and / or nutrition information based on the sampling data of multiple sensors.
[0168] When the nutrition scale is in weighing mode, it enters the button mode in response to the user's button operation; when the nutrition scale is in the button mode, the nutrition scale does not update the weight display information and / or nutrition display information.
[0169] After the button press state ends, the system enters the temporary state. While the nutrition scale is in the temporary state, the system resumes updating the weight display information and / or nutrition display information of the nutrition scale.
[0170] As one possible implementation of this application, the state switching module includes an update display unit, which is used for:
[0171] Acquire third sampling data from multiple sensors in the nutrition scale during the third time period;
[0172] Based on the third sampling data from the multiple sensors, a second average sampling data for each sensor is determined;
[0173] If the difference between any two second average sampled data within the third time period is less than the second threshold, the weight display information and / or nutrition display information of the nutrition scale will be updated based on the third sampled data from the multiple sensors.
[0174] As one possible implementation of this application, the button state includes a pre-shaking stage, a stable closing stage, and a post-shaking stage that are sequentially entered; the data processing device 1300 of the nutrition scale also includes a mode switching module, which is used for:
[0175] During the stable closing phase, the trigger operation type of the button is identified based on the sampling data from the sensor;
[0176] The function mode of the nutrition scale is switched based on the identified trigger operation type;
[0177] The operation type includes at least one of the following: single-click operation, long-press operation, and double-click operation; different trigger operation types correspond to their respective functional modes; the fluctuation of the sensor's sampling data in the pre-shake phase is greater than the fluctuation in the stable closure phase, and / or, the fluctuation of the sensor's sampling data in the post-shake phase is greater than the fluctuation in the stable closure phase.
[0178] As one possible implementation of this application, the data processing device 1300 of the nutrition scale further includes a replacement module, the replacement module being used for:
[0179] In the absence of a communication connection between the nutrition scale and the terminal device, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated and displayed visually.
[0180] After the nutrition scale establishes a communication connection with the terminal device, the weight and type of the food to be weighed are sent to the terminal device so that the terminal device can calculate the first nutritional component data of the food to be weighed.
[0181] The system receives the first nutrient composition data of the weighed food from the terminal device and replaces the second nutrient composition data displayed on the nutrition scale with the first nutrient composition data.
[0182] It should be noted that the specific implementation principle and effect of the data processing device 1300 of the above-mentioned nutrition scale can be found in the relevant description and effect of the above embodiments, and will not be elaborated further here.
[0183] For example, Figure 14 is a schematic diagram of another data processing device for a nutrition scale provided in an embodiment of this application. As shown in Figure 14, the data processing device 1400 for the nutrition scale is applied to a terminal device, and the data processing device 1400 for the nutrition scale includes:
[0184] The second receiving module 1401 is used to receive the food weight sent by the nutrition scale when the terminal device establishes a communication connection with the nutrition scale, and determine the first nutrient component data based on the food weight and food type.
[0185] The second sending module 1402 is used to send the first nutrient data to the nutrition scale so that the nutrition scale updates the nutrition display information based on the first nutrient data.
[0186] It is understood that the specific implementation principle and effect of the data processing device 1400 of the above-mentioned nutrition scale can be found in the relevant description and effect of the above embodiments, and will not be elaborated further here.
[0187] For example, this application embodiment also provides an electronic device. FIG15 is a schematic diagram of the structure of an electronic device provided in this application embodiment. As shown in FIG15, the electronic device includes: a processor 1501 and a memory 1502 communicatively connected to the processor 1501.
[0188] The memory 1502 stores computer-executed instructions;
[0189] The processor 1501 executes computer execution instructions stored in the memory 1502 to implement the method as described in any of the above embodiments.
[0190] The memory 1502 can be either independent or integrated with the processor 1501.
[0191] In addition, the memory 1502 and the processor 1501 can be connected via bus 1503.
[0192] The implementation principle and technical effects of the electronic device provided in this application can be found in the foregoing embodiments, and will not be repeated here.
[0193] This application also provides a nutrition scale, which is capable of establishing a communication connection with a terminal device; the nutrition scale is used to implement any of the methods described in the above embodiments where the nutrition scale acts as the executing subject.
[0194] It should be noted that the implementation principle and technical effects of the nutrition scale provided in this application embodiment can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0195] This application embodiment also provides a terminal device, which establishes a communication connection with a nutrition scale, and is used to implement any of the methods described in the above embodiments where the terminal device acts as the execution subject.
[0196] It should be noted that the implementation principle and technical effects of the terminal device provided in this application embodiment can be found in the relevant descriptions of the above embodiments, and will not be repeated here.
[0197] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described in any of the foregoing embodiments.
[0198] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the methods described in any of the foregoing embodiments.
[0199] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0200] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.
[0201] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The aforementioned modular unit can be implemented in hardware or in a combination of hardware and software functional units.
[0202] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.
[0203] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0204] The memory may include high-speed random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.
[0205] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0206] The aforementioned storage media can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage media can be any available medium accessible to general-purpose or special-purpose computers.
[0207] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.
[0208] The above description is merely a specific implementation of the embodiments of this application, but the protection scope of the embodiments of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the embodiments of this application should be covered within the protection scope of the embodiments of this application. Therefore, the protection scope of the embodiments of this application should be determined by the protection scope of the claims.
Claims
1. A data processing method for a nutrition scale, characterized in that, Used in nutrition scales; The method includes: Once the weight of the food is determined and a communication connection is established between the nutrition scale and the terminal device, the weight of the food is sent to the terminal device. Receive the first nutrient data fed back by the terminal device, and update the nutrient display information of the nutrition scale based on the first nutrient data; The first nutritional data is determined by the terminal device based on the weight and type of food.
2. The method according to claim 1, characterized in that, The method further includes: During the first time period, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated, visualized, and the weighing time is recorded. During the first time period, the terminal device does not establish a communication connection with the nutritional scale. If the nutrition scale establishes a communication connection with the terminal device after the first time period, it sends the food weight, food type, and weighing time of at least one of the weighed foods during the first time period to the terminal device, so that the terminal device can calculate the first nutritional component data of the at least one weighed food and generate a list of weighing information of the nutrition scale during the first time period.
3. The method according to claim 1 or 2, characterized in that, Before determining the weight of the food, the method further includes: Acquire first sampling data from multiple sensors in the nutrition scale during the second time period; Based on the first sampling data from the plurality of sensors, determine the first average sampling data for each sensor; If the difference between any two first average sampled data within the second time period is less than the first threshold, then the mean of the first average sampled data within the second time period is updated to the zero point value of the nutrition scale; if the difference between any two first average sampled data within the second time period is greater than the first threshold, then the zero point value of the nutrition scale is not updated. The second sampling data of the plurality of sensors after updating the zero point value is obtained, and the weight display information and / or nutrition display information of the nutrition scale is updated based on the updated zero point value and the second sampling data of the plurality of sensors.
4. The method according to any one of claims 1-3, characterized in that, The nutrition scale has at least a weighing state, a button state, and a temporary state; the method further includes: After the nutrition scale is started, it enters the weighing state, and the nutrition scale updates the display of weight information and / or nutrition information based on the sampling data of multiple sensors. When the nutrition scale is in weighing mode, it enters the button mode in response to the user's button operation; when the nutrition scale is in the button mode, the nutrition scale does not update the weight display information and / or nutrition display information. After the button press state ends, the system enters the temporary state; while the nutrition scale is in the temporary state, the system resumes updating the weight display information and / or nutrition display information of the nutrition scale.
5. The method according to claim 4, characterized in that, The step of restoring the updated display of the weight display information and / or nutrition display information of the nutrition scale when the nutrition scale is in the temporary state includes: Acquire third sampling data from multiple sensors in the nutrition scale during the third time period; Based on the third sampling data from the multiple sensors, a second average sampling data for each sensor is determined; If the difference between any two second average sampled data within the third time period is less than the second threshold, the weight display information and / or nutrition display information of the nutrition scale will be updated based on the third sampled data from the multiple sensors.
6. The method according to claim 4 or 5, characterized in that, The button state includes a pre-shake phase, a stable closing phase, and a post-shake phase, which are sequentially entered; the method further includes: During the stable closing phase, the trigger operation type of the button is identified based on the sampling data from the sensor; The function mode of the nutrition scale is switched based on the identified trigger operation type; The operation type includes at least one of the following: single-click operation, long-press operation, and double-click operation; different trigger operation types correspond to their respective functional modes; the fluctuation of the sensor's sampling data in the pre-shake phase is greater than the fluctuation in the stable closure phase, and / or, the fluctuation of the sensor's sampling data in the post-shake phase is greater than the fluctuation in the stable closure phase.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: In the absence of a communication connection between the nutrition scale and the terminal device, the weight and type of the food to be weighed are determined. Based on the weight and type of the food, the second nutritional component data of the food is calculated and displayed visually. After the nutrition scale establishes a communication connection with the terminal device, the weight and type of the food to be weighed are sent to the terminal device so that the terminal device can calculate the first nutritional component data of the food to be weighed. The system receives the first nutrient composition data of the weighed food from the terminal device and replaces the second nutrient composition data displayed on the nutrition scale with the first nutrient composition data.
8. A nutrition scale, characterized in that, The nutrition scale is capable of establishing a communication connection with a terminal device; the nutrition scale is used to perform the method as described in any one of claims 1-7.
9. A data processing method for a nutrition scale, characterized in that, Applied to terminal devices; the method includes: When the terminal device establishes a communication connection with the nutrition scale, it receives the food weight sent by the nutrition scale and determines the first nutrient component data based on the food weight and food type. The first nutrient data is sent to the nutrition scale so that the nutrition scale updates its nutrient display information based on the first nutrient data.
10. A terminal device, characterized in that, The terminal device establishes a communication connection with the nutrition scale, and the terminal device is used to perform the method as described in claim 9.
11. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-7, or to perform the method as described in claim 9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7, or to implement the method as described in claim 9.
13. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1-7, or, when executed by a processor, implements the method as described in claim 9.
