Intelligent water cup management method, device, electronic equipment and program product
By switching detection modes between the connected and disconnected states of the smart water bottle and adjusting the recording based on the connection information, the high cost and low accuracy issues of low-power management of smart water bottles are solved, achieving low-power and high-accuracy drinking water recording, and improving battery life and computing performance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENYANG YUNZHI INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2025-07-09
- Publication Date
- 2026-05-22
AI Technical Summary
Existing low-power sensors in smart water bottles suffer from high cost and low accuracy, affecting the accuracy of drinking records. They are also incompatible with existing hardware designs, increasing integration costs.
By using different detection methods to detect drinking water when the base of the smart water cup is connected to and disconnected from the cup body, a first detection method with high precision and high power consumption is used when connected, and a second detection method with low precision and low power consumption is used when disconnected. Drinking records are generated and adjusted in combination with connection information, and adjustments are made through the cloud when necessary.
It achieves low-cost, low-power management while ensuring the accuracy of drinking records, avoiding the cost of additional low-power sensors, and improving the smart water bottle's battery life and computing performance.
Smart Images

Figure CN120927057B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of smart home technology, and in particular relates to management methods, devices, electronic devices and software products for smart water cups. Background Technology
[0002] A smart water bottle is a drinking device that integrates multiple smart functions. It uses built-in sensors and wireless modules to monitor drinking time and volume. A smart water bottle typically consists of a detachable base and a bottle body; some also include other components such as a lid. Since smart water bottles usually rely on a built-in battery for power, low-power management is often necessary to improve battery life and ensure a good user experience, minimizing power consumption.
[0003] Currently, the overall power consumption is usually reduced by directly using low-power sensors. However, low-power sensors have problems such as high cost and low accuracy, which may affect the accuracy of smart water cups in recording drinking status. In addition, they may be incompatible with the existing hardware design of smart water cups, and integrating them into smart water cups requires additional development work, further increasing costs. Summary of the Invention
[0004] This application provides a management method, device, electronic device, and program product for smart water cups, which can achieve low-power management of smart water cups at low cost while ensuring the accuracy of drinking records.
[0005] In a first aspect, embodiments of this application provide a method for managing a smart water cup, the smart water cup comprising a detachable base and a cup body, the method comprising:
[0006] When the base and the cup body are connected, the smart water cup is tested for drinking water using a set first detection method. The drinking water detection is used to determine the connection relationship between the base and the cup body.
[0007] When the base and the cup body switch from a connected state to a separated state, the smart water cup performs drinking detection using a pre-defined second detection method, and generates a drinking record based on the separation information.
[0008] The power consumption and detection accuracy of the second detection method are lower than those of the first detection method, and the separation information is used to reflect the time when the base separates from the cup body.
[0009] Secondly, embodiments of this application provide a smart water cup management device, comprising:
[0010] The smart water cup includes a detachable base and a cup body, and the device includes:
[0011] The first detection module is used to perform drinking detection on the smart water cup by means of a set first detection method when the base and the cup body are in a connected state. The drinking detection is used to determine the connection relationship between the base and the cup body.
[0012] The second detection module is used to perform drinking water detection on the smart water cup using a set second detection method when the base and the cup body change from the connected state to the separated state, and to generate a drinking water record based on the separation information.
[0013] The power consumption and detection accuracy of the second detection method are lower than those of the first detection method, and the separation information is used to reflect the time when the base separates from the cup body.
[0014] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the smart water cup management method described in the first aspect.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the smart water cup management method described in the first aspect.
[0016] Fifthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to execute the smart water cup management method described in the first aspect.
[0017] The beneficial effects of the embodiments in this application compared with the prior art are:
[0018] In this embodiment, since drinking detection can determine the connection between the base and the body of the smart water cup, it can effectively determine whether the base and body are separated, thus indicating whether the user is drinking. If the first detection method determines that the base and body have changed from a connected state to a separated state, it usually indicates that the user is drinking. A drinking record can then be generated based on the time of separation, and drinking detection can be performed using a lower-power second detection method. That is, when the base and body are connected, the first detection method with higher accuracy is used to ensure the accuracy of drinking detection and recording; when the base and body are separated and the user is performing actions such as drinking, the second detection method with lower power consumption is used to reduce the power consumption of the smart water cup, eliminating the need for an additional low-power sensor and effectively reducing the cost of low-power management for the smart water cup. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.
[0020] Figure 1 This is a flowchart illustrating a smart water cup management method according to an embodiment of this application;
[0021] Figure 2 This is a schematic diagram of the structure of the smart water cup management device provided in the embodiments of this application;
[0022] Figure 3 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0023] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.
[0024] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.
[0025] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0026] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0027] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0028] Example 1:
[0029] Figure 1 A flowchart illustrating a smart water cup management method according to an embodiment of this application is shown below:
[0030] S101. When the base and the cup body are connected, the smart water cup is tested for drinking water using a first detection method. The drinking water test is used to determine the connection relationship between the base and the cup body.
[0031] It should be understood that the connection between the base and the cup body usually includes two types: connected and separated (i.e., connected state and separated state).
[0032] It should be understood that when the action and the cup body are in a connected state, the drinking detection is usually used to determine whether the connection between the base and the cup body has changed from a connected state to a disconnected state, thereby determining whether the user has drunk water.
[0033] It should be understood that the first detection method can be determined based on user input or settings, or it can be determined by intelligent algorithms or set selection rules based on the feasible detection methods of the smart water cup. The specific method can be set according to actual application needs.
[0034] As an example, the first detection method could be: detection using a load cell, a temperature sensor, and an inertial measurement unit.
[0035] As another example, the first detection method could be: based on a set first frequency (e.g., once every 3 seconds), detection could be performed using a pressure sensor, a weighing sensor, a temperature sensor, an inertial measurement unit, and a water quality detection sensor.
[0036] S102. When the base and the cup body change from the connected state to the separated state, the smart water cup is tested for drinking water using the set second detection method, and a drinking water record is generated based on the separation information.
[0037] The power consumption detection accuracy of the second detection method is lower than that of the first detection method, and the separation information is used to reflect the time when the base separates from the cup.
[0038] It should be understood that the second detection method can be determined based on user input or settings, or it can be calculated through intelligent algorithms or set selection rules. The power consumption and detection accuracy of the determined second detection method are lower than those of the first detection method.
[0039] As an example, the second detection method could be detection using a weighing sensor.
[0040] It should be noted that the first and second detection methods can be different detection devices, different detection frequencies, or both. By setting different detection devices and / or detection frequencies, the power consumption and detection accuracy of the second detection method can be lower than those of the first detection method.
[0041] In some embodiments, when the smart water cup is used to detect drinking water using the second detection method, the smart water cup can cut off the power supply to the detection device in the smart water cup that is unrelated to the second detection method, so as to avoid unnecessary energy consumption of the detection device in standby mode.
[0042] In some embodiments, when a detection frequency is set in any detection method, when the smart water cup performs drinking water detection based on the target detection method (i.e., the detection method with a set detection frequency), the power supply to all detection devices can be cut off during the detection interval, and the power supply to the required detection devices can be turned on just before the detection time (e.g., 5 seconds before the detection time). By cutting off the power to the detection devices during the detection interval and turning them back on when needed for detection, the power consumption of the smart water cup is further reduced through on-demand power supply to the detection devices.
[0043] In some embodiments, the drinking water detection is also used to determine the condition of the contents in the cup. Correspondingly, the separation information may also include the condition of the contents in the cup when the base is separated from the cup.
[0044] It should be noted that different testing methods can be used to detect different conditions of the contents of the cup. For example, the first testing method can detect the type, temperature, and pH of the contents; the second testing method can detect the temperature of the contents.
[0045] In this embodiment, since drinking detection can determine the connection between the base and the body of the smart water cup, it can effectively determine whether the base and the body are separated, thus indicating whether the user is drinking. If the first detection method determines that the base and the body have changed from a connected state to a separated state, it usually indicates that the user is drinking. A drinking record can then be generated based on the time of separation, and drinking detection can be performed using a lower-power second detection method. That is, when the base and the body are connected, the first detection method with higher accuracy is used to ensure the accuracy of drinking detection and recording; when the base and the body are separated and the user is performing actions such as drinking, the second detection method with lower power consumption is used to reduce the power consumption of the smart water cup, eliminating the need for an additional low-power sensor and effectively reducing the cost of low-power management for the smart water cup.
[0046] In some embodiments, the drinking detection is further used to determine the condition of the contents in the cup. After performing drinking detection on the smart water cup using the set second detection method and generating a drinking record based on the separation information, the method further includes:
[0047] When the base and the cup body change from the separated state to the connected state, the smart water cup is tested for drinking water using the first detection method. The target drinking water record is adjusted based on the connection information to obtain and store the adjusted target drinking water record. The connection information is used to reflect the time when the base and the cup body are connected and the state of the contents in the cup body at the time of connection. The target drinking water record is a drinking water record generated based on the separation information corresponding to the connection information.
[0048] It should be understood that the condition of the contents in the cup includes, but is not limited to, the type of contents, volume (i.e., the volume or remaining amount of the contents), temperature, and pH. In some embodiments, the condition of the contents in the cup includes at least the temperature or volume of the contents.
[0049] Since the transition from a connected state to a disconnected state between the base and the cup body may occur when the user removes the cup body to drink or add water, and the transition back from a disconnected state to a connected state usually indicates that the user has completed the required operation, the cycle of the connection relationship between the base and the cup body is typically: connected state - disconnected state - connected state. Therefore, to further improve the accuracy of drinking water records, in this embodiment, when the base and the cup body transition from a disconnected state to a connected state, the connection information obtained from the drinking water detection can be acquired. Then, the previously generated target drinking water record can be adjusted based on this connection information. This target drinking water record is the drinking water record generated based on the disconnection information corresponding to the connection information. After generating a drinking water record based on the disconnection data within a change cycle, the generated drinking water record is then adjusted by combining the connection information within the same change cycle, thereby obtaining a more complete and accurate drinking water record.
[0050] Generally, connection information is usually determined based on the second detection method. However, in some embodiments, when water drinking detection is performed using the second detection method, only the connection relationship between the base and the cup body may be detected. The connection time between the base and the cup body is usually obtained based on the second detection method. At this time, since the base and the cup body have changed from a separated state to a connected state, the condition of the contents in the cup body when the base and the cup body are connected can be determined by the first detection method.
[0051] In some embodiments, the drinking water record may be structured data including the following information: start timestamp, end timestamp, event type (such as adding water or drinking water), and event data (such as water volume or water temperature). Optionally, when adjusting the drinking water record based on connection information, the user's actions can be analyzed in conjunction with the existing information in the drinking water record, thereby enabling a more accurate determination of information such as event type and event data.
[0052] In this embodiment of the application, when the base and the cup body are detected to change from a separated state to a connected state, the target drinking record is adjusted in combination with the corresponding connection information to obtain the adjusted target drinking record. The target drinking record is generated based on the separation information corresponding to the connection information. That is, the drinking record corresponding to the change cycle is determined based on the separation information and connection information within the same change cycle of the connection relationship between the base and the cup body, which can effectively improve the accuracy and reliability of the final stored drinking record.
[0053] In some embodiments, the above-mentioned adjustment of the target drinking water record based on the connection information to obtain and store the adjusted target drinking water record includes:
[0054] When the smart water cup is not in the set high power consumption state, the target drinking record is adjusted based on the connection information to obtain and store the adjusted target drinking record.
[0055] When the smart water cup is in the high power consumption state, it sends an adjustment request to the cloud, including the connection information and the target drinking record. It receives and stores the adjusted target drinking record sent by the cloud. The adjustment request is used to instruct the cloud to adjust the target drinking record according to the connection information.
[0056] High power consumption usually refers to a smart water bottle being in a state of excessive power consumption (such as power consumption being greater than or equal to the set power consumption threshold), or it can also refer to a smart water bottle being in a state of scarce computing resources (such as the number of tasks to be executed by the smart water bottle being greater than the set number threshold, such as 3).
[0057] As an example, it can be determined whether a smart water bottle is in a high-power state based on whether its power consumption at the current moment is greater than or equal to a set power consumption threshold (such as 120 milliwatts).
[0058] As another example, it can be determined whether a smart water bottle is in a high-power state by checking whether the average power consumption of the smart water bottle within a set time window (such as 20 seconds) is greater than or equal to a set power consumption threshold.
[0059] The cloud typically refers to systems that use or provide resources and services through a network.
[0060] In this embodiment, when a smart water bottle adjusts a target drinking record based on connection information, it typically requires computational analysis using a processor or other computing chip. This computational analysis usually consumes significant resources and consumes considerable power. Therefore, to avoid excessive power consumption affecting the smart water bottle's battery life and performance, if the smart water bottle is not in a high-power state, it can directly adjust the target drinking record based on the connection information and store the adjusted record. If the smart water bottle is in a high-power state, the target drinking record is adjusted via the cloud based on the connection information, without consuming the smart water bottle's resources for computation. This effectively reduces the computational resource requirements and power consumption of the smart water bottle.
[0061] In some embodiments, when the smart water bottle adjusts the target drinking record locally based on connection information, it can perform computational analysis on the target drinking record according to the connection information and a set optimization algorithm to obtain the adjusted target drinking record. This optimization algorithm is used to reduce the computational load and / or computational complexity of the computational analysis, thereby reducing the resources and power consumption required for the computational analysis.
[0062] Optionally, the optimization algorithm includes, but is not limited to, fixed-point algorithm, lookup table algorithm, and model pruning algorithm. In some embodiments, when the smart water cup is equipped with a hardware accelerator, the target drinking record can also be analyzed by the hardware accelerator, the set optimization algorithm, and connection information. This reduces the resources required for computational analysis while improving the efficiency of computational analysis, thereby further reducing the power consumption of the smart water cup.
[0063] In some embodiments, a subscription relationship may exist between the cloud and the smart water bottle. When the smart water bottle is in a high-energy-consumption state, it can publish the generated adjustment request to a set request topic. The message server can then send the adjustment request in the request topic to the cloud based on the subscription relationship between the cloud and the smart water bottle. After the cloud adjusts the target drinking record according to the adjustment request, it can publish the adjusted target drinking record as a confirmation message to a set confirmation topic. The message server can then send the confirmation message (i.e., the adjusted target drinking record) in the confirmation topic to the smart water bottle based on the subscription relationship between the smart water bottle and the cloud.
[0064] In some embodiments, before adjusting the target drinking water record based on the connection information to obtain and store the adjusted target drinking water record, the method further includes:
[0065] When the smart water bottle is not connected to a power source, and / or when the workload of the smart water bottle exceeds a set load threshold, the smart water bottle is determined to be in the high power consumption state, where the workload reflects the task pressure undertaken by the smart water bottle.
[0066] Optionally, when determining the workload of the smart water bottle, the workload can be determined based on the number and / or complexity of the smart water bottle's target tasks. The target tasks can be tasks that the smart water bottle is currently performing, tasks that the smart water bottle is about to perform, or computational tasks that the smart water bottle is about to perform, etc., without specific limitations here.
[0067] For example, the workload can be calculated based on the number of tasks the smart water bottle is currently performing, the number of tasks to be performed, and the complexity of each task.
[0068] Since smart water bottles rely on their built-in battery for power when not connected to a power source, in order to maximize the battery life of smart water bottles, it is possible to determine that the smart water bottle is in a high power consumption state when it is not connected to a power source, and then adjust the target drinking records through the cloud.
[0069] Alternatively, considering that smart water bottles typically have limited computing power due to their portable design or cost control, in order to reduce the computing resources they occupy and lower the requirements for their computing power, if the workload of the smart water bottle is set to a set load threshold, it can be determined that the smart water bottle is in a high power consumption state, and the target drinking record needs to be adjusted through the cloud.
[0070] Alternatively, if the smart water bottle is not connected to a power source and its workload exceeds the set load threshold, it can be determined that the smart water bottle is in a high power consumption state, and the target drinking water record needs to be adjusted through operation.
[0071] In this embodiment, the smart water cup is judged to be in a high power consumption state based on whether it relies on the built-in battery for power and whether the workload of the smart water cup is too high. This determines whether the smart water cup should adjust the target calculation record. By fully considering the battery life and computing power of the smart water cup, the power consumption of the smart water cup can be reduced while ensuring the battery life or computing performance of the smart water cup.
[0072] In some embodiments, when the base and the cup body are connected, the above-mentioned method of performing drinking detection on the smart water cup using a set first detection method includes:
[0073] When the base and the cup are in the above-mentioned connected state, and the current time is not within the set sleep period, the smart water cup is tested for drinking water using the first detection method.
[0074] When the base and the cup are in the above-mentioned connected state, and the current time is during the above-mentioned sleep period, the smart water cup is tested for drinking water using a set third detection method. The power consumption of the third detection method is lower than that of the first detection method.
[0075] It should be understood that the sleep period usually refers to the time period when the probability of a user using the smart water bottle is relatively low (e.g., the probability of a user using the smart water bottle is less than 10%).
[0076] Optionally, the sleep time period can be obtained through user settings or input, or it can be calculated by intelligent algorithms such as large models based on information such as the user's drinking habits or drinking needs. No specific restrictions are imposed here.
[0077] In some embodiments, the first detection method and the third detection method can be detection methods based on the same detection device but with different detection frequencies, wherein the detection frequency of the third detection method is lower than that of the first detection method. Through the above settings, the detection power consumption during sleep periods is reduced while ensuring the accuracy of water intake detection.
[0078] In other embodiments, the third detection method may be: detection based on the wake-up source.
[0079] As an example, the third detection method could be detection based on the RTC (Real-Time Clock). For instance, a first wake-up frequency for the RTC can be set (e.g., wake-up every 5 minutes). The smart water bottle is then woken up by the RTC clock based on this wake-up frequency. When the smart water bottle is woken up, it can perform drinking detection through the set first wake-up detection method (e.g., mechanical switch or optical sensor).
[0080] As another example, a third detection method could be based on the RTC clock and detection pins. For instance, a second wake-up frequency for the RTC clock can be set (e.g., wake-up every 10 minutes). The smart water bottle is then woken up by the RTC clock based on this wake-up frequency. When the smart water bottle is woken up, drinking detection can be performed using a second wake-up detection method with higher detection accuracy (e.g., a second detection method or other detection methods). When the smart water bottle is not woken up, drinking detection is performed using the GPIO pins.
[0081] In some embodiments, when the current time is during a sleep period, the power supply to detection devices in the smart water bottle unrelated to the third detection method can be cut off, and other activities or tasks unrelated to the third detection method (such as network connection, data synchronization, or data acceleration processing) can be turned off, thereby minimizing the power consumption of the smart water bottle during the sleep period. Optionally, for detection devices related to the third detection method, their power supply can be cut off during detection intervals, and the power supply can be turned on again when drinking water detection is required. In the above process, by supplying power to the detection devices on demand and turning off other tasks or activities, the power consumption of the smart water bottle is minimized, achieving microwatt-level low power management.
[0082] In this embodiment, considering that users are less likely to use the smart water bottle during certain time periods, a sleep period for the smart water bottle can be preset. If the current time is not within the sleep period, a first detection method with higher detection accuracy can be used to detect drinking water from the smart water bottle, ensuring the accuracy and timeliness of the detection. If the current time is within the sleep period, and the probability of the user using the smart water bottle is low, a third detection method with lower power consumption can be used to detect drinking water from the smart water bottle. This ensures that the user's drinking action can be detected while minimizing the power consumption of the smart water bottle and improving its management effectiveness.
[0083] In some embodiments, before performing a drinking detection on the smart water cup using a set first detection method when the base and the cup body are in the connected state, the method further includes:
[0084] The sleep period is determined based on the connection relationship change time, which includes the time when the base and the cup are separated, as predicted based on historical drinking records, and the sleep period does not include the connection relationship change time.
[0085] Alternatively, the aforementioned sleep period can be determined based on a low-demand period, which is a time when the water demand is below a set demand threshold, determined based on climate data and user activity plan data.
[0086] It should be understood that drinking water demand can be used to reflect when a user needs to drink water.
[0087] Optionally, climate data can be used to reflect the climate of the location of the target user (usually including users who are associated with the smart water bottle) within a set future time period (such as the next 24 hours). This climate data can be obtained through the cloud or other means, and this application embodiment does not impose specific limitations on it.
[0088] Optionally, the user's activity plan data can be used to reflect the target user's activity plan within a set future time period. This activity plan data can be obtained from the target user's corresponding terminal device (such as a mobile phone or wearable device) with the target user's authorization.
[0089] Optionally, historical drinking records can be obtained from drinking records stored locally on the smart water bottle, or from drinking records related to the smart water bottle stored in the cloud. In some embodiments, historical drinking records may include drinking records within a past time period (e.g., the past 10 days) set in the drinking records stored locally on the smart water bottle.
[0090] Because users typically follow certain patterns when using smart water bottles, and the historical drinking records of the smart water bottle can effectively reflect these patterns, it's possible to predict the next time a user will use the smart water bottle, specifically the time when the base separates from the bottle, thus obtaining a highly accurate connection change time. Furthermore, based on the current time and this connection change time, it's possible to quickly and accurately determine the sleep periods when the user typically doesn't use the smart water bottle.
[0091] It should be understood that the determined sleep period is usually the time between the current time and the time when the connection relationship changes, but does not include the time when the connection relationship changes.
[0092] For example, assuming the current time is 12:00 and the predicted change time of the connection relationship is 14:00, the sleep period can be determined as 12:00-13:50 based on the current time, the change time of the connection relationship, and the set reserved time (assuming it is 10 minutes). Among them, the 10 minutes reserved between 13:50 and 14:00 are reserved to deal with situations such as the user using the smart water cup in advance, so as to ensure that the user can use the first detection method with higher detection accuracy to detect drinking water when using the smart water cup.
[0093] Alternatively, in order to reduce power consumption and decrease the probability of analysis and prediction based on historical drinking water data, the user's drinking water needs in a set future time period (such as the next 24 hours) can be predicted directly based on climate data and user activity plan data. The low demand period is determined based on the time period when the user's drinking water needs are lower than the set demand threshold, and the sleep period is determined based on the low demand period when the drinking water needs are lower.
[0094] In some embodiments, to avoid the smart water cup frequently switching detection modes in a short period of time, the duration of the low-demand period can be set to be greater than or equal to the set analysis duration threshold (e.g., 2 hours).
[0095] For example, suppose that at midnight, based on climate data and user activity plan data, the user's likely water consumption times within a set future 24 hours are predicted, resulting in water demand for each time period: (8:00, 12:00, 14:00, 16:00, and 20:00). Analyzing this water demand based on a set analysis duration threshold (assumed to be 4 hours), it can be determined that the user's water demand between midnight and 11:59 is lower than the demand threshold (assumed to be 2 times). Therefore, the time period from 0:00 to 11:59 can be defined as a low-demand period, and based on this low-demand period, the sleep period can be determined to include: 0:00 to 11:30.
[0096] In some embodiments, historical drinking water records can be input into a trained time prediction model to obtain the connection change time output by the time prediction model. This time prediction model can be trained based on drinking water record data and connection change time labels. Since the time prediction model can learn the complex relationship between drinking water records and connection change time well during training, the trained time prediction model can quickly and accurately predict the connection change time with high accuracy based on historical drinking water records.
[0097] In some embodiments, climate data and user activity plan data can be input into a trained demand prediction model to obtain low-demand periods output by the model. This demand prediction model can be trained using samples including climate data and user activity plan data, along with labels for low-demand periods. Because the low-demand prediction model can effectively analyze the impact of climate data and user activity plan data on the target user's drinking water demand at various times during training, thereby learning the complex correlation between climate data, activity plan data, and low-demand periods, the trained demand prediction model can quickly and accurately predict low-demand periods based on climate data and user activity plan data with high accuracy.
[0098] In this embodiment, the system predicts the user's next use of the smart water bottle based on the user's usage patterns. It then determines the sleep period for which a lower-power detection method can be used based on the predicted connection change time. Alternatively, it analyzes the user's drinking needs to identify low-demand periods and determines the sleep period accordingly. In other words, by combining personalized user usage patterns with low-power management of the smart water bottle, the system can effectively reduce power consumption while improving the user experience.
[0099] In some embodiments, after performing a drinking detection on the smart water cup using a set second detection method when the base and the cup body change from the connected state to the separated state, the method further includes:
[0100] When the duration of the separation between the base and the cup body is greater than or equal to a set duration threshold, the smart water cup is tested for drinking water using a set fourth detection method. The power consumption of the fourth detection method is lower than that of the second detection method.
[0101] It should be understood that the fourth detection method can be determined by user input or settings, or by intelligent algorithms such as large models or other methods.
[0102] In some embodiments, the fourth detection method may be: detection based on the detection pin.
[0103] For example, detection can be performed via GPIO (General Purpose Input / Output) pin interrupts. When the cup is placed on the base, a GPIO interrupt is triggered by a set physical contact or electrical change in contact, thereby determining the transition from a separated state to a connected state based on the interrupt signal.
[0104] In other embodiments, the fourth detection method may be: detection based on RTC (Real-Time Clock) wake-up and detection pins.
[0105] It should be understood that the duration threshold can be determined by user input or setting, or it can be calculated by intelligent algorithms such as large models based on data such as the historical connection data of the smart water bottle (used to reflect the historical changes in the connection relationship of the smart water bottle).
[0106] Since the base and cup remain separated for an extended period after the user removes the cup and doesn't promptly return it, and the timing of the user's return is unpredictable, a fourth detection method can be used to detect drinking water from the smart water bottle when the duration of separation is greater than or equal to a set threshold (e.g., 2 minutes). This fourth detection method consumes less power than the second method, thus effectively reducing the smart water bottle's power consumption while simultaneously detecting drinking water.
[0107] In some embodiments, if the duration of the separation between the base and the cup body is greater than or equal to a set duration threshold, and no user interaction command is detected within a set waiting time (e.g., 3 minutes), the smart water cup can be tested for drinking water using a set fourth detection method.
[0108] In some embodiments, the smart water cup can be tested for drinking water using a fourth detection method when the base and cup body are separated for a duration greater than or equal to a set duration threshold, the available power of the smart water cup is lower than a set power threshold (e.g., 40%), and no user interaction command is detected within a set waiting time.
[0109] In this embodiment, when the base and the cup body are separated for a long time, a fourth detection method with lower power consumption is used to detect drinking water in the smart water cup. This ensures that the smart water cup can detect drinking water while minimizing its power consumption, thereby improving the management effect of the smart water cup.
[0110] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0111] Example 2:
[0112] Corresponding to the smart water cup management method described in the above embodiments, Figure 2This diagram illustrates the structure of a smart water cup management device according to an embodiment of this application. For ease of explanation, only the parts relevant to the embodiment of this application are shown.
[0113] Reference Figure 2 The device includes: a first detection module 210 and a second detection module 220. Among them,
[0114] The first detection module is used to perform drinking water detection on the smart water cup by means of a set first detection method when the base and the cup body are in a connected state. The drinking water detection is used to determine the connection relationship between the base and the cup body.
[0115] The second detection module is used to perform drinking water detection on the smart water cup using a set second detection method when the base and the cup body change from the connected state to the separated state, and to generate a drinking water record based on the separation information.
[0116] The power consumption and detection accuracy of the second detection method are lower than those of the first detection method. The separation information is used to reflect the time when the base separates from the cup.
[0117] In this embodiment, since drinking detection can determine the connection between the base and the body of the smart water cup, it can effectively determine whether the base and body are separated, thus indicating whether the user is drinking. If the first detection method determines that the base and body have transitioned from a connected state to a separated state, it usually indicates that the user is drinking. A drinking record can then be generated based on the time of separation, and drinking detection can be performed using a lower-power second detection method. That is, when the base and body are connected, the first detection method with higher accuracy is used to ensure the accuracy of drinking detection and recording. When the base and body are separated and the user is performing actions such as drinking, the lower-power second detection method is used to reduce the power consumption of the smart water cup, eliminating the need for an additional low-power sensor and effectively reducing the cost of low-power management.
[0118] In some embodiments, the above-mentioned drinking water detection is further used to determine the condition of the contents in the cup, and the management device of the smart water cup further includes:
[0119] The drinking record adjustment module is used to perform drinking detection on the smart water cup through the first detection method when the base and the cup body change from the separated state to the connected state, and to adjust the target drinking record based on the connection information to obtain and store the adjusted target drinking record. The connection information is used to reflect the time when the base and the cup body are connected and the state of the contents in the cup body at the time of connection. The target drinking record is a drinking record generated based on the separation information corresponding to the connection information.
[0120] In some embodiments, the management device for the smart water bottle further includes:
[0121] The first adjustment module is used to adjust the target drinking record based on the connection information when the smart water cup is not in the set high power consumption state, so as to obtain and store the adjusted target drinking record.
[0122] The second adjustment module is used to send an adjustment request, including the connection information and the target drinking record, to the cloud when the smart water cup is in the high power consumption state, receive the adjusted target drinking record sent by the cloud and store it, and the adjustment request is used to instruct the cloud to adjust the target drinking record according to the connection information.
[0123] In some embodiments, the management device for the smart water bottle further includes:
[0124] The high power consumption state determination module is used to determine that the smart water cup is in the high power consumption state when the smart water cup is not connected to a power source and / or when the workload of the smart water cup is greater than a set load threshold. The workload is used to reflect the task pressure undertaken by the smart water cup.
[0125] In some embodiments, the first detection module 210 includes:
[0126] The non-sleep time period detection unit is used to detect the drinking water of the smart water cup by means of the first detection method when the base and the cup body are in the above-mentioned connected state and the current time is not in the set sleep time period.
[0127] The sleep period detection unit is used to detect drinking water in the smart water cup by a set third detection method when the base and the cup body are in the connected state and the current time is in the sleep period. The power consumption of the third detection method is lower than that of the first detection method.
[0128] In some embodiments, the management device for the smart water bottle further includes:
[0129] The first sleep period determination module is used to determine the aforementioned sleep period based on the connection relationship change time. The connection relationship change time includes the time when the base and the cup are separated, which is predicted based on historical drinking records. The sleep period does not include the connection relationship change time.
[0130] The second sleep period determination module is used to determine the aforementioned sleep period based on low demand periods, which are periods when the water demand is lower than a set demand threshold, determined based on climate data and user activity plan data.
[0131] In some embodiments, the management device for the smart water bottle further includes:
[0132] The fourth detection module is used to perform drinking water detection on the smart water cup through a set fourth detection method when the duration of the separation between the base and the cup body is greater than or equal to a set duration threshold. The power consumption of the fourth detection method is lower than that of the second detection method.
[0133] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.
[0134] Example 3:
[0135] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 3 As shown, the electronic device 3 of this embodiment includes: at least one processor 30 ( Figure 3 The diagram shows only one processor, a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 executes the computer program 32 to implement the steps in any of the above method embodiments.
[0136] The electronic device 3 can be a desktop computer, laptop, handheld computer, or cloud server, etc. This electronic device may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will understand that... Figure 3 This is merely an example of electronic device 3 and does not constitute a limitation on electronic device 3. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.
[0137] The processor 30 may be a Central Processing Unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.
[0138] In some embodiments, the memory 31 may be an internal storage unit of the electronic device 3, such as a hard disk or memory of the electronic device 3. In other embodiments, the memory 31 may be an external storage device of the electronic device 3, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the electronic device 3. Furthermore, the memory 31 may include both internal and external storage units of the electronic device 3. The memory 31 is used to store the operating system, applications, bootloader, data, and other programs, such as the program code of the computer program. The memory 31 can also be used to temporarily store data that has been output or will be output.
[0139] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0140] This application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor executes the computer program to implement the steps in any of the above method embodiments.
[0141] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the above-described method embodiments.
[0142] This application provides a computer program product that, when run on an electronic device, enables the electronic device to implement the steps described in the various method embodiments above.
[0143] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.
[0144] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0145] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0146] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units 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 devices or units may be electrical, mechanical, or other forms.
[0147] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0148] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A method for managing a smart water cup, characterized in that, The smart water cup includes a detachable base and a cup body, and the method includes: When the base and the cup body are connected, the smart water cup is tested for drinking water using a set first detection method. The drinking water detection is used to determine the connection relationship between the base and the cup body. When the base and the cup body switch from a connected state to a separated state, the smart water cup performs drinking detection using a pre-defined second detection method, and generates a drinking record based on the separation information. The first detection method and the second detection method are different detection devices or different detection frequencies, or different detection devices and detection frequencies. The power consumption and detection accuracy of the second detection method are lower than those of the first detection method. The separation information is used to reflect the time when the base separates from the cup body. The drinking water detection is also used to determine the condition of the contents in the cup. After performing drinking water detection on the smart water cup using the set second detection method and generating a drinking water record based on the separation information, it further includes: When the base and the cup body transition from the separated state to the connected state, the smart water cup is tested for drinking water using the first detection method. Furthermore, the target drinking record is adjusted based on the connection information to obtain and store the adjusted target drinking record. The connection information reflects the time the base and the cup body are connected and the condition of the contents within the cup body at the time of connection. The target drinking record is a drinking record generated based on the separation information corresponding to the connection information.
2. The management method for the smart water cup as described in claim 1, characterized in that, The step of adjusting the target drinking water record based on the connection information to obtain and store the adjusted target drinking water record includes: When the smart water cup is not in the set high power consumption state, the target drinking record is adjusted based on the connection information to obtain and store the adjusted target drinking record; When the smart water cup is in the high power consumption state, it sends an adjustment request including the connection information and the target drinking record to the cloud, receives the adjusted target drinking record from the cloud and stores it. The adjustment request is used to instruct the cloud to adjust the target drinking record according to the connection information.
3. The management method for the smart water cup as described in claim 2, characterized in that, Before adjusting the target drinking water record based on the connection information to obtain and store the adjusted target drinking water record, the method further includes: When the smart water cup is not connected to a power source, and / or when the workload of the smart water cup exceeds a set load threshold, the smart water cup is determined to be in the high power consumption state, where the workload reflects the task pressure undertaken by the smart water cup.
4. The management method for the smart water cup as described in claim 1, characterized in that, When the base and the cup body are connected, the smart water cup performs a drinking detection using a pre-defined first detection method, including: When the base and the cup body are in the connected state and the current time is not within the set sleep time period, the smart water cup is tested for drinking water using the first detection method. When the base and the cup body are in the connected state and the current time is during the sleep period, the smart water cup is tested for drinking water using a set third detection method. The power consumption of the third detection method is lower than that of the first detection method.
5. The management method for the smart water cup as described in claim 4, characterized in that, Before performing a drinking test on the smart water cup using a pre-defined first detection method when the base and the cup body are connected, the following steps are also included: The sleep period is determined based on the connection relationship change time, which includes the time when the base separates from the cup body as predicted based on historical drinking records, and the sleep period does not include the connection relationship change time. Alternatively, the sleep period can be determined based on a low-demand period, which is a period of time when the water demand is below a set demand threshold, determined based on climate data and user activity plan data.
6. The management method for the smart water cup as described in any one of claims 1 to 5, characterized in that, When the base and the cup body change from the connected state to the separated state, after performing a drinking detection on the smart water cup using a set second detection method, the following steps are also included: If the duration of the separation between the base and the cup body is greater than or equal to a set duration threshold, the smart water cup is tested for drinking water using a set fourth detection method, the power consumption of which is lower than that of the second detection method.
7. A smart water cup management device, characterized in that, The smart water cup includes a detachable base and a cup body, and the device includes: The first detection module is used to perform drinking detection on the smart water cup by means of a set first detection method when the base and the cup body are in a connected state. The drinking detection is used to determine the connection relationship between the base and the cup body. The second detection module is used to perform drinking water detection on the smart water cup using a set second detection method when the base and the cup body change from the connected state to the separated state, and to generate a drinking water record based on the separation information. The first detection method and the second detection method are different detection devices or different detection frequencies, or different detection devices and detection frequencies. The power consumption and detection accuracy of the second detection method are lower than those of the first detection method. The separation information is used to reflect the time when the base separates from the cup body. The drinking water detection is also used to determine the condition of the contents in the cup. The management device also includes: The drinking record adjustment module is used to perform drinking detection on the smart water cup using the first detection method when the base and the cup body change from the separated state to the connected state, and to adjust the target drinking record based on the connection information to obtain and store the adjusted target drinking record. The connection information is used to reflect the time when the base and the cup body are connected and the state of the contents in the cup body at the time of connection. The target drinking record is a drinking record generated based on the separation information corresponding to the connection information.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method as described in any one of claims 1 to 6.
9. A computer program product, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1 to 6.