Water intake monitoring method and device, intelligent terminal and storage medium

By using an acceleration sensor in the water cup to measure the moving data, calculate the amount of water to drink and generate a reminder message, the problem that traditional water cups cannot measure the amount of water to drink and remind users is solved, and intelligent drinking water management is realized.

CN119413247AInactive Publication Date: 2025-02-11胥思盈
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411560225.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, traditional water cups do not have the function of measuring water consumption and reminding, which causes users to forget to drink water, which affects their health.

Method used

The movement data of the water cup is measured by the acceleration sensor, the single drinking volume is calculated, and the drinking volume report and reminder message are generated.

Benefits of technology

It realizes that the moving state of the water cup is accurately detected without affecting the function and cost of the water cup, infer the amount of water drinking, provides intelligent detection and reminder functions, and improves the user's drinking habits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119413247A_ABST
    Figure CN119413247A_ABST
Patent Text Reader

Abstract

The invention discloses a water intake monitoring method and device, an intelligent terminal and a storage medium, and the method comprises the steps: measuring the movement data of a water cup through an acceleration sensor, the movement data being the pose, movement speed and acceleration data of the water cup during the period from getting rid of the horizontal plane to returning to the horizontal plane; calculating a single water intake according to the mobile data; and generating a water intake report and a reminding message according to the single water intake. The method for detecting the water intake is high in accuracy, water intake management can be achieved only through the low-cost acceleration sensor, and the method has wide application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home appliances, and in particular to a method and device for monitoring water intake, a smart terminal and a storage medium. Background Art

[0002] Water is a major component of our body, accounting for about 60% of body weight. It plays a key role in maintaining body temperature, digesting food, excreting waste, lubricating joints and maintaining normal body functions. Therefore, adequate water intake is essential for the health of the body. Generally, the recommended daily water intake for adults is about two liters, and the actual demand is also affected by many factors, including age, gender, weight, activity level, climatic conditions, etc. However, with the accelerated pace of life, people often forget to drink water, resulting in dehydration of the body and affecting physical health. Traditional water cups do not have the function of measuring water intake, so they cannot remind people to replenish water intake in time when they forget to drink water.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method, device, intelligent terminal and storage medium for monitoring water intake in view of the above-mentioned defects of the prior art, aiming to solve the problem that traditional water cups in the prior art do not have the function of measuring water intake and reminding.

[0005] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0006] In a first aspect, the present invention provides a method for monitoring water intake, wherein the method comprises:

[0007] Measuring movement data of the water cup by an acceleration sensor, wherein the movement data includes the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane;

[0008] Calculate a single drinking amount of water according to the movement data;

[0009] Generate a water intake report and a reminder message based on the single water intake.

[0010] In one implementation, before measuring the movement data of the water cup by using the acceleration sensor, the method further includes:

[0011] A user ID is established, and the action template corresponding to the user ID is updated through teaching and learning, wherein the action template includes the user ID, an action trajectory curve and a preset error threshold, wherein the action trajectory curve is used to represent the relationship between the drinking action and the cup posture, moving speed and acceleration, and the user ID is the identity identification mark of the current user of the water cup.

[0012] In one implementation, updating the action template corresponding to the user ID through teaching learning includes:

[0013] Obtain configuration instructions, and guide the user to complete corresponding demonstration actions multiple times according to the configuration instructions and obtain action data, wherein the action data is the position, movement speed and acceleration of the water cup, and the configuration instructions include starting to drink water, drinking water, and ending drinking water;

[0014] Analyze the motion data to obtain a motion trajectory curve corresponding to the configuration instruction, wherein the motion trajectory curve includes a starting drinking motion trajectory curve, a drinking motion trajectory curve, and an ending drinking motion trajectory curve;

[0015] The motion trajectory curve is updated in the motion template corresponding to the user ID.

[0016] In one implementation, analyzing the motion data to obtain the motion trajectory curve includes:

[0017] A dynamic time warping algorithm is used to align the motion data, and a spline function is used to fit the motion data to obtain the motion trajectory curve.

[0018] In one implementation, the calculating the single water intake amount according to the movement data includes:

[0019] Matching the movement data with the action template to determine a start drinking action and an end drinking action;

[0020] According to the drinking start action, the position of the water cup at the drinking start time is obtained, and according to the position of the water cup at the drinking start time, the tilt angle of the water cup at the drinking start time is obtained;

[0021] According to the drinking end action, the position of the water cup at the drinking end moment is obtained, and according to the position of the water cup at the drinking end moment, the tilt angle of the water cup at the drinking end moment is obtained;

[0022] The amount of water drunk in a single time is calculated according to the difference between the tilt angle of the water cup at the start time of drinking water and the tilt angle of the water cup at the end time of drinking water.

[0023] In one implementation, matching the movement data with the action template to determine the start and end of the drinking action includes:

[0024] Draw a real-time action curve according to the movement data;

[0025] Calculating the distance difference between the real-time action curve and the starting drinking action trajectory curve to obtain a first distance difference value;

[0026] If the first distance difference is less than the error threshold, it is determined that the user starts drinking water, the start drinking action is obtained, and the distance difference between the real-time action curve and the end drinking action trajectory curve is continued to be calculated to obtain a second distance difference;

[0027] If the second distance difference is smaller than the error threshold, it is determined that the user has finished drinking water, and the drinking end action is obtained.

[0028] In one implementation, generating a water intake report and a reminder message according to the single water intake includes:

[0029] According to the user ID, the user's physical indicators are obtained, wherein the physical indicators include height, weight, age and health indicators;

[0030] Calculate the amount of water you should drink every day based on the above physical indicators;

[0031] Calculate the total daily water intake based on the single water intake, and generate a water intake report based on the total daily water intake;

[0032] The difference between the daily water intake and the total daily water intake is calculated. If the absolute value of the difference is greater than a preset water intake threshold, a reminder message is generated to adjust the water intake. If the absolute value of the difference is less than or equal to the preset water intake threshold, a reminder message is generated to adjust the water intake.

[0033] In a second aspect, an embodiment of the present invention further provides a water intake monitoring device, wherein the device comprises:

[0034] A movement data acquisition module, used to measure the movement data of the water cup through an acceleration sensor, wherein the movement data is the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane;

[0035] A single drinking water volume calculation module, used to calculate a single drinking water volume according to the movement data;

[0036] The message reminder module is used to generate a water drinking amount report and a reminder message according to the single water drinking amount.

[0037] In a third aspect, an embodiment of the present invention further provides a smart terminal, wherein the smart terminal includes a memory, a processor, and a water intake monitoring program stored in the memory and executable on the processor, and when the processor executes the water intake monitoring program, the steps of the water intake monitoring method as described in any one of the above items are implemented.

[0038] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein a water intake monitoring program is stored on the computer-readable storage medium, and when the water intake monitoring program is executed by a processor, the steps of the water intake monitoring method as described in any one of the above items are implemented.

[0039] Beneficial effects: Compared with the prior art, the present invention provides a method for monitoring water intake. The movement data of a water cup is measured by an acceleration sensor. The acceleration sensor has the characteristics of low cost, can be installed at any position, and has high sensing accuracy. It can realize accurate detection of the movement state of the water cup without affecting the function and cost of the water cup. The acquired movement data is the posture, movement speed and acceleration data from the time when the water cup escapes from the horizontal plane to the time when it returns to the horizontal plane. The movement state of the water cup is calculated by the movement data, and the amount of water intake can be inferred, so that intelligent detection can be realized. A water intake report and reminder message are generated based on the single water intake, so as to realize intelligent statistics and timely reminders of the user's water intake, which helps to improve the user's drinking habits. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a schematic flow chart of a method for monitoring water intake provided in an embodiment of the present invention.

[0042] Figure 2 It is a principle block diagram of the water intake monitoring device provided in an embodiment of the present invention.

[0043] Figure 3 It is a block diagram of the internal structure principle of the intelligent terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0046] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0047] Water is the source of life. Adults need to drink about 2 liters of water every day. However, with the accelerated pace of modern life, people often forget to drink water. On the one hand, there is no regular reminder, so people ignore drinking water. On the other hand, the thirst signal of the human body is delayed. When you drink water when you are thirsty, your body is already moderately dehydrated.

[0048] Ordinary water cups cannot remind people to drink water regularly. Water cups are of different sizes, and the naked eye cannot directly detect the amount of water drunk each time. In view of the edible nature of water, contact liquid level sensors cannot be used to ensure hygiene. The cost of non-contact sensors is too high, and they can only be used in industry, and consumer products cannot be popularized. The present invention can count the amount of water drunk every day (accurate to milliliters) through a low-cost acceleration sensor, and can also intelligently set the amount of water drunk at different times of the day. If the amount is not reached, it reminds people to drink water, which greatly improves the quality of drinking water for users.

[0049] Exemplary Methods

[0050] This embodiment provides a method for monitoring water intake, which can be applied to a water cup. Figure 1 As shown, the method comprises the following steps:

[0051] Step S100, measuring movement data of the water cup by an acceleration sensor, wherein the movement data is the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane;

[0052] In one embodiment, a capacitive MEMS (Micro-Electro Mechanical System) acceleration sensor is used as an acceleration sensor. The capacitive MEMS acceleration sensor is a 3D acceleration sensor that can measure three-dimensional velocity and acceleration. MEMS integrates micro-machining technology and sensor technology, and can realize miniaturization, low power consumption and high-precision tilt sensor, acceleration sensor and posture measurement. The capacitive MEMS acceleration sensor is connected to a fixed electrode through a spring through an internal movable micro-mass block. When the sensor is subjected to acceleration, the mass block will move due to inertia, causing the distance between the mass block and the fixed electrode to change. In this way, the MEMS acceleration sensor determines the acceleration of the water cup from breaking away from the horizontal plane to returning to the horizontal plane by measuring the capacitance change between the mass block and the fixed electrode. At the same time, the moving speed of the water cup can be calculated by recording the acceleration. MEMS posture measurement is to measure the acceleration and angular velocity of the object through sensors such as accelerometers and gyroscopes, and then calculate the position, velocity and posture of the object through mathematical algorithms (such as integration).

[0053] In one embodiment, the capacitive MEMS acceleration sensor can be placed at any position in the water cup. If the capacitive MEMS acceleration sensor is not placed horizontally, it only needs to be corrected for the horizontal plane to monitor the drinking action. Specifically, before using the capacitive MEMS acceleration sensor to measure the movement data of the water cup, it is necessary to first establish a coordinate system for the capacitive MEMS acceleration sensor, that is, determine the positions of the three axes X, Y, and Z, and confirm that the surface in the horizontal direction is a horizontal plane, that is, the initial state when the water cup is placed flat. When the water cup is placed flat and no displacement occurs, it is considered that the user has not drunk water, so there is no need to collect movement data. When the water cup breaks away from the horizontal plane, it is considered that the user has picked up the water cup to prepare or is drinking water, and the movement data at this time needs to be collected until the user puts down the water cup, that is, when the water cup returns to the horizontal plane, it is considered that the user has finished drinking water, and the collection of movement data can be ended.

[0054] In one implementation, the following steps are included before step S100 in this embodiment:

[0055] Step M100, establish a user ID, and update the action template corresponding to the user ID through teaching and learning, wherein the action template includes the user ID, an action trajectory curve and a preset error threshold, wherein the action trajectory curve is used to represent the relationship between the drinking action and the cup posture, moving speed and acceleration, and the user ID is the identity identification mark of the current user of the water cup.

[0056] Specifically, the age, weight, health status and living habits of users of water cups are different, which will lead to different drinking habits of users. Therefore, a separate file should be established for each user by identifying the user ID to analyze the drinking situation in a personalized way. At the same time, the actions of each user from picking up the water cup to drinking water will also be different. This embodiment establishes an action template for each user ID, which helps to more accurately capture the user's drinking action and calculate the user's drinking amount.

[0057] Specifically, through the teaching learning method, action templates are established and updated for each user. The teaching learning method provides a simple and direct way of trajectory planning: by observing the user's action demonstration, combined with appropriate machine learning methods for modeling and learning, the ability to complete the corresponding task is acquired. This method can greatly reduce the user's learning and use costs. The teaching learning method includes the following processes: before learning, the movement data of the water cup is measured by an acceleration sensor as teaching data; during the learning stage, due to the mismatch between the size and movement ability of humans and robots, it is necessary to solve the human-machine correspondence problem of teaching data; then, the teaching data is modeled to obtain the most suitable motion model in different scenarios; finally, the learned model is used to generate a motion trajectory that adapts to the new task scenario, that is, the motion trajectory curve.

[0058] In this embodiment, the action trajectory curve obtained by teaching and learning is stored in the action template in a one-to-one correspondence with the user ID. The action trajectory curve is the motion model of the user drinking water. It records the cup posture, movement speed and acceleration data during the user's drinking process, from picking up the cup, starting to drink water, drinking water, finishing drinking water to putting the cup flat. Because each action will be different, the error threshold is set to allow fuzzy recognition of the user's drinking action.

[0059] In one implementation, step M100 in this embodiment includes the following steps:

[0060] Step M101, obtaining configuration instructions, guiding the user to complete corresponding demonstration actions multiple times according to the configuration instructions and obtaining action data, wherein the action data is the position, movement speed and acceleration of the water cup, and the configuration instructions include starting to drink water, drinking water and ending to drink water;

[0061] Specifically, a complete drinking process may include holding the cup, drinking in small sips, drinking in large gulps, drinking all at once, finishing drinking, and putting the cup down. Configuration instructions may also be configured to start drinking, drinking, and finishing drinking. By configuring instructions to guide users to complete drinking demonstration actions step by step and multiple times and obtain action data, it is conducive to more accurate capture of action features.

[0062] For example, the configuration instruction can be to start drinking water, set the execution number to 10 times, and guide the user to complete the action of holding the cup with the left or right hand, standing, sitting or lying according to the demonstration action, and measure the position, movement speed and acceleration of the cup as teaching data through the acceleration sensor. For example, when the user picks up the cup, the acceleration sensor measures that the cup begins to move, and records the position, movement speed and acceleration of the cup. These action data represent the action of holding the cup in the hand. When the cup is close to the mouth, the speed will slow down and finally stop. At this time, the collected action data represents that the cup has reached the mouth. Through teaching learning, the control system can learn the user's position, movement speed and acceleration when holding the cup, drinking water in small sips, drinking water in large gulps, drinking all at once, finishing drinking water and putting the cup down. By learning the above data, the user's common actions of drinking water can be mastered. Configuration instructions can be issued from the control end, and the control end and the cup are connected through the resume Bluetooth to transmit control instructions, action data and movement data.

[0063] Step M102, analyzing the motion data to obtain a motion trajectory curve corresponding to the configuration instruction, wherein the motion trajectory curve includes a starting drinking motion trajectory curve, a drinking motion trajectory curve, and an ending drinking motion trajectory curve;

[0064] Step M103: update the motion trajectory curve in the motion template corresponding to the user ID.

[0065] Specifically, because the action data is discrete data, it is also necessary to abstract it into a linear function (mathematical expression) in order to discover the characteristic laws of the action. In this embodiment, by analyzing the action data, the discrete action data can be fitted into an action trajectory curve. Through the action trajectory curve, a continuous function is obtained, which is more conducive to mathematical expression. Because when calculating the amount of water a user drinks, the node for starting to drink water and the node for ending to drink water need to be clear, so by fitting the start drinking action trajectory curve and the end drinking action trajectory curve, preparations can be made for subsequent action judgments. In addition, the drinking action trajectory curve also helps to improve the accuracy of drinking action judgments. By storing the action trajectory curve obtained from a user's action data in the action template of this user, an action archive can be established for the user to improve the accuracy of recognition.

[0066] In one implementation, step M102 in this embodiment includes the following steps:

[0067] Step M1021: Use a dynamic time warping algorithm to align the motion data, and use a spline function to fit the motion data to obtain the motion trajectory curve.

[0068] Specifically, the dynamic time warping algorithm finds the best match between two sequences by elastically stretching or compressing the time series, allowing nonlinear time alignment, so that even sequences that are offset on the time axis can be effectively compared and matched. The dynamic time warping algorithm performs data alignment on the action data and then performs data fitting, which can not only provide accurate fitting of the data points, but also ensure the smooth transition of the action trajectory curve at the connection point. In this embodiment, cubic splines are used to fit the start drinking action trajectory curve, the drinking action trajectory curve, and the end drinking action trajectory curve from the action data. Each curve is in a three-dimensional coordinate system, the x-axis of the coordinate system represents the acceleration of the water cup movement, the y-axis represents the speed of the water cup movement, and the z-axis represents the inclination angle between the water cup and the horizontal plane.

[0069] Step S200, calculating a single drinking amount of water according to the movement data;

[0070] Specifically, after determining the start and end times of drinking water, the change in the water cup's tilt angle can be obtained from the mobile data. The change in the amount of water in the cup can be calculated through the tilt angle of the water cup, and the user's single drinking amount can be obtained.

[0071] For example, in the process of fitting curves as described in the above example, the accelerometer is fixed at any position of the cup. When the cup is tilted 5 degrees, it stops. The accelerometer is connected to the control end via Bluetooth. The control end sends configuration instructions to let the cup learn the user's drinking action and recognize the various states of the cup. During the learning process, the data of the accelerometer is recorded to determine the horizontal placement state, movement state (speed, acceleration) and time of the cup, and the tilt angle when the movement stops. During the drinking process, if the cup is just picked up without drinking, the tilt angle changes in a small range. The action trajectory curve can be used to determine that the user has not drunk. If the cup is drunk in one gulp, the tilt angle is equal to or greater than 90 degrees. The action trajectory curve can be used to determine that the user has drunk in one gulp. The movement state (speed, acceleration) and time are obtained again, and then it is placed horizontally. The action trajectory curve can be used to determine that the user has finished drinking. This is a complete drinking process. The amount of water drunk is calculated from the tilt angle difference when the movement stops.

[0072] In one embodiment, the amount of water a user drinks at a time can also be calculated based on the tilt angle of the water cup. First, measure the capacity of the water cup. When the water cup is tilted and the water in the cup begins to flow out, record the tilt angle, that is, the angle of the cup when the cup is full of water, so as to obtain the tilt angle of the water cup with 100% water. In the same way, increase the tilt angle of the water cup to obtain the tilt angles of the water cup at different water volumes, such as 80% water volume, 50% water volume, and 30% water volume. Summarize the tilt angles of the water cup at different water volumes to obtain the corresponding relationship between the angle and the amount of water. When the user drinks water, the maximum value of the tilt angle of the water cup each time the user drinks water can be obtained based on the position of the water cup in the mobile data, and then compare the maximum value of the tilt angle of the water cup when the user drinks water with the corresponding relationship between the above angle and the amount of water to obtain the amount of water remaining in the water cup. By calculating the difference in the amount of remaining water each time you drink water, you can get the amount of water a user drinks at a time.

[0073] It should be noted that the tilt angle when drinking water is usually slightly larger than the angle when sampling. Therefore, when summarizing the correspondence between the angle and the amount of water, this embodiment adds a preset compensation angle Δθ to the tilt angle of the water cup for correction.

[0074] In one implementation, step S200 in this embodiment includes the following steps:

[0075] Step S201, matching the movement data with the action template to determine the start and end of a drinking action;

[0076] Step S202: obtaining the position of the water cup at the time of starting to drink water according to the drinking action, and obtaining the tilt angle of the water cup at the time of starting to drink water according to the position of the water cup at the time of starting to drink water;

[0077] Step S203, obtaining the position of the water cup at the time of ending drinking according to the drinking action, and obtaining the tilt angle of the water cup at the time of ending drinking according to the position of the water cup at the time of ending drinking;

[0078] Step S204: Calculate the amount of water drunk at a single time according to the difference between the tilt angle of the water cup at the start of drinking and the tilt angle of the water cup at the end of drinking.

[0079] For example, after obtaining the mobile data, a number of data blocks are obtained from the mobile data through a sliding time window, where the time window should be consistent with the action execution time of the action trajectory curve. When the data block matches the start drinking action trajectory curve in the action template, this time window is determined to be the user's start drinking time. The mobile data occurring at this time represents the start drinking action, and the position of the water cup at this time is recorded to obtain the tilt angle of the water cup at the start drinking time.

[0080] For example, when the data block matches the trajectory curve of the drinking action in the matching of the action template, this time window is determined to be the user's drinking time, and the movement data generated at this time represents the drinking action. The movement data generated at this time represents the drinking action, and the position of the water cup at this time is recorded to obtain the tilt angle of the water cup at the drinking time.

[0081] Specifically, a water cup is usually a cylinder, so the amount of water reduced in the water cup, that is, the amount of water drunk, can be calculated through the bottom area, height, and the difference between the tilt angle of the water cup when drinking starts and when drinking ends.

[0082] In one implementation, step S201 in this embodiment includes the following steps:

[0083] Step S2011, drawing a real-time action curve according to the movement data;

[0084] Step S2012, calculating the distance difference between the real-time action curve and the starting drinking action trajectory curve to obtain a first distance difference value;

[0085] Step S2013: if the first distance difference is less than the error threshold, it is determined that the user starts drinking water, the drinking start action is obtained, and the distance difference between the real-time action curve and the drinking end action trajectory curve is continuously calculated to obtain a second distance difference;

[0086] Step S2014: If the second distance difference is less than the error threshold, it is determined that the user has finished drinking water, and the drinking end action is obtained.

[0087] Specifically, a number of curves of the same length as the time window of the starting drinking action trajectory curve are intercepted in the real-time action curve by sliding the time window, and the distance difference between the intercepted real-time action curve and the starting drinking action trajectory curve is calculated in the sliding order. In this embodiment, an area graph is used to represent the first distance difference. When the area of ​​the area graph in a single time window is less than a preset error threshold, it can be considered that the user has started drinking water. After determining the drinking time, it is necessary to continue to monitor when the user stops drinking water. The same method is used to calculate the distance difference between the real-time action curve intercepted in the sliding order and the ending drinking action trajectory curve to obtain a second distance difference. The second distance difference is represented by an area graph. When the area of ​​the area graph in a single time window is less than a preset error threshold, it can be considered that the user has finished drinking water. In this way, intelligent judgment of drinking water actions is achieved.

[0088] Step S300: Generate a water intake report and a reminder message based on the single water intake.

[0089] In one implementation, step S300 in this embodiment includes the following steps:

[0090] Step S301: Obtain the user's physical indicators according to the user ID, wherein the physical indicators include height, weight, age and health indicators;

[0091] Step S302, calculating the amount of water to be consumed daily according to the physical indicators;

[0092] Step S303, calculating the total daily water intake based on the single water intake, and generating a water intake report based on the total daily water intake;

[0093] Step S304, calculate the difference between the daily water intake and the total daily water intake, and if the absolute value of the difference is greater than the preset water intake threshold, generate a reminder message that the water intake should be adjusted; if the absolute value of the difference is less than or equal to the preset water intake threshold, generate a reminder message that the water intake should be adjusted.

[0094] Specifically, a professional doctor can formulate a drinking plan based on the user's height, weight, age and health indicators. The drinking plan may include the amount of water that should be drunk every day. In a natural day, the user's full-day drinking amount can be calculated by summarizing the single drinking amount. The full-day drinking amount, single drinking amount, drinking frequency and other data can be summarized to generate a drinking report, which is convenient for users or doctors to check their daily drinking situation. When the user's drinking amount does not meet the requirements of the drinking plan, a reminder message to adjust the drinking amount will be issued to remind the user to drink water in time.

[0095] Exemplary Devices

[0096] like Figure 2 As shown in , this embodiment also provides a water intake monitoring device, the device comprising:

[0097] A movement data acquisition module 10 is used for the movement data acquisition module, and is used to measure the movement data of the water cup through an acceleration sensor, wherein the movement data is the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane;

[0098] A calculation module 20, used for a single drinking water amount calculation module, is used to calculate a single drinking water amount according to the movement data;

[0099] The reminder module 30 is used as a message reminder module, which is used to generate a water drinking amount report and a reminder message according to the single water drinking amount.

[0100] The teaching and learning module 40 is used to establish a user ID and update the action template corresponding to the user ID through teaching and learning, wherein the action template includes the user ID, an action trajectory curve and a preset error threshold, wherein the action trajectory curve is used to represent the relationship between the drinking action and the cup posture, moving speed and acceleration, and the user ID is the identity identification mark of the current user of the water cup.

[0101] In one implementation, the teaching learning module 40 includes:

[0102] A teaching and learning unit, used to obtain configuration instructions, guide the user to complete corresponding demonstration actions multiple times according to the configuration instructions and obtain action data, wherein the action data is the position, movement speed and acceleration of the water cup, and the configuration instructions include starting to drink water, drinking water and ending drinking water;

[0103] A trajectory curve acquisition unit, used for analyzing the action data to obtain an action trajectory curve corresponding to the configuration instruction, wherein the action trajectory curve includes a starting drinking action trajectory curve, a drinking action trajectory curve and an ending drinking action trajectory curve;

[0104] The template updating unit is used to update the motion trajectory curve in the motion template corresponding to the user ID.

[0105] In one implementation, the trajectory curve acquisition unit includes:

[0106] The trajectory curve acquisition subunit is used to align the motion data using a dynamic time warping algorithm, and fit the motion data using a spline function to obtain the motion trajectory curve.

[0107] In one implementation, the calculation module 20 includes:

[0108] A template matching unit, used for matching the movement data with the action template to determine the start and end of the drinking action;

[0109] A first tilt angle acquisition unit is used to obtain the position of the water cup at the time of starting to drink water according to the drinking action, and obtain the tilt angle of the water cup at the time of starting to drink water according to the position of the water cup at the time of starting to drink water;

[0110] A second tilt angle acquisition unit is used to obtain the position of the water cup at the moment of ending drinking according to the ending drinking action, and obtain the tilt angle of the water cup at the moment of ending drinking according to the position of the water cup at the moment of ending drinking;

[0111] The single drinking water volume calculation unit is used to calculate the single drinking water volume according to the difference between the tilt angle of the water cup at the start of drinking and the tilt angle of the water cup at the end of drinking.

[0112] In one implementation, the template matching unit includes:

[0113] A real-time action curve drawing unit, used for drawing a real-time action curve according to the movement data;

[0114] A first distance difference calculation unit is used to calculate the distance difference between the real-time action curve and the starting drinking action trajectory curve to obtain a first distance difference;

[0115] a second distance difference calculation unit, configured to determine that the user starts drinking water if the first distance difference is less than the error threshold, obtain the start drinking action, and continue to calculate the distance difference between the real-time action curve and the end drinking action trajectory curve to obtain a second distance difference;

[0116] The drinking water ending action determination unit is used to determine that the user has finished drinking water if the second distance difference is less than the error threshold, thereby obtaining the drinking water ending action.

[0117] In one implementation, the reminder module 30 includes:

[0118] A body index obtaining unit, used to obtain the user's body index according to the user ID, wherein the body index includes height, weight, age and health index;

[0119] A daily water intake calculation unit, used to calculate the daily water intake according to the physical index;

[0120] A water intake report generating unit, configured to calculate the total daily water intake based on the single water intake, and generate a water intake report based on the total daily water intake;

[0121] The reminder unit is used to calculate the difference between the daily water intake and the total daily water intake. If the absolute value of the difference is greater than a preset water drinking threshold, a reminder message is generated to adjust the water intake. If the absolute value of the difference is less than or equal to the preset water drinking threshold, a reminder message is generated to adjust the water intake.

[0122] Based on the above embodiments, the present invention further provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 3As shown. The smart terminal includes a processor, a memory, a network interface, a display screen, and a temperature sensor connected through a system bus. Among them, the processor of the smart terminal is used to provide computing and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the smart terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for monitoring water intake is implemented. The display screen of the smart terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the smart terminal is pre-set inside the smart terminal to detect the operating temperature of the internal equipment.

[0123] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the smart terminal to which the scheme of the present invention is applied. A specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In one embodiment, a smart terminal is provided. The smart terminal includes a memory, a processor, and a water intake monitoring program stored in the memory and executable on the processor. When the processor executes the water intake monitoring program, the following operation instructions are implemented:

[0125] Measuring movement data of the water cup by an acceleration sensor, wherein the movement data includes the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane;

[0126] Calculate a single drinking amount of water according to the movement data;

[0127] Generate a water intake report and a reminder message based on the single water intake.

[0128] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, operating database or other media used in the embodiments provided by the present invention may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double operational data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0129] In summary, the present invention discloses a method, device, intelligent terminal and storage medium for monitoring drinking water, the method comprising: measuring the movement data of a water cup by an acceleration sensor, wherein the movement data is the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane; calculating the single drinking water amount according to the movement data; generating a drinking water amount report and a reminder message according to the single drinking water amount. The method for detecting drinking water amount in the present application has high accuracy, and drinking water amount management can be achieved by only using a low-cost acceleration sensor, and has broad application prospects.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for monitoring water intake, characterized in that: The method comprises: Measuring movement data of the water cup by an acceleration sensor, wherein the movement data includes the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane; Calculate a single drinking amount of water according to the movement data; Generate a water intake report and a reminder message based on the single water intake.

2. The method for monitoring water intake according to claim 1, characterized in that: Before measuring the movement data of the water cup by the acceleration sensor, the method further includes: A user ID is established, and the action template corresponding to the user ID is updated through teaching and learning, wherein the action template includes the user ID, an action trajectory curve and a preset error threshold, wherein the action trajectory curve is used to represent the relationship between the drinking action and the cup posture, moving speed and acceleration, and the user ID is the identity identification mark of the current user of the water cup.

3. The method for monitoring water intake according to claim 2, characterized in that: The updating of the action template corresponding to the user ID through teaching learning includes: Obtain configuration instructions, and guide the user to complete corresponding demonstration actions multiple times according to the configuration instructions and obtain action data, wherein the action data is the position, movement speed and acceleration of the water cup, and the configuration instructions include starting to drink water, drinking water, and ending drinking water; Analyze the motion data to obtain a motion trajectory curve corresponding to the configuration instruction, wherein the motion trajectory curve includes a starting drinking motion trajectory curve, a drinking motion trajectory curve, and an ending drinking motion trajectory curve; The motion trajectory curve is updated in the motion template corresponding to the user ID.

4. The method for monitoring water intake according to claim 3, characterized in that: The analyzing the motion data to obtain the motion trajectory curve includes: A dynamic time warping algorithm is used to align the motion data, and a spline function is used to fit the motion data to obtain the motion trajectory curve.

5. The method for monitoring water intake according to claim 4, characterized in that: The calculating a single drinking amount of water according to the movement data comprises: Matching the movement data with the action template to determine a start drinking action and an end drinking action; According to the drinking start action, the position of the water cup at the drinking start time is obtained, and according to the position of the water cup at the drinking start time, the tilt angle of the water cup at the drinking start time is obtained; According to the drinking end action, the position of the water cup at the drinking end moment is obtained, and according to the position of the water cup at the drinking end moment, the tilt angle of the water cup at the drinking end moment is obtained; The amount of water drunk in a single time is calculated according to the difference between the tilt angle of the water cup at the start time of drinking water and the tilt angle of the water cup at the end time of drinking water.

6. The method for monitoring water intake according to claim 5, characterized in that: The step of matching the movement data with the action template to determine the start and end of the drinking action includes: Draw a real-time action curve according to the movement data; Calculating the distance difference between the real-time action curve and the starting drinking action trajectory curve to obtain a first distance difference value; If the first distance difference is less than the error threshold, it is determined that the user starts drinking water, the start drinking action is obtained, and the distance difference between the real-time action curve and the end drinking action trajectory curve is continued to be calculated to obtain a second distance difference; If the second distance difference is smaller than the error threshold, it is determined that the user has finished drinking water, and the drinking end action is obtained.

7. The method for monitoring water intake according to claim 2, characterized in that: The generating of the water drinking amount report and the reminder message according to the single water drinking amount includes: According to the user ID, the user's physical indicators are obtained, wherein the physical indicators include height, weight, age and health indicators; Calculate the amount of water you should drink every day based on the above physical indicators; Calculate the total daily water intake based on the single water intake, and generate a water intake report based on the total daily water intake; The difference between the daily water intake and the total daily water intake is calculated. If the absolute value of the difference is greater than a preset water intake threshold, a reminder message is generated to adjust the water intake. If the absolute value of the difference is less than or equal to the preset water intake threshold, a reminder message is generated to adjust the water intake.

8. A water intake monitoring device, characterized in that: The device comprises: A movement data acquisition module, used to measure the movement data of the water cup through an acceleration sensor, wherein the movement data is the position, movement speed and acceleration data from when the water cup escapes from the horizontal plane to when it returns to the horizontal plane; A single drinking water volume calculation module, used to calculate a single drinking water volume according to the movement data; The message reminder module is used to generate a water drinking amount report and a reminder message according to the single water drinking amount.

9. An intelligent terminal, characterized in that: The smart terminal includes a memory, a processor, and a water intake monitoring program stored in the memory and executable on the processor. When the processor executes the water intake monitoring program, the steps of the water intake monitoring method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a water intake monitoring program, and when the water intake monitoring program is executed by the processor, the steps of the water intake monitoring method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Intelligent water cup system and intelligent water cup

    CN120877420A