Drinking water control method and system, drinking water equipment, server and storage medium
By using prediction models in drinking water equipment to predict water consumption distribution data and adjust water replenishment operations, the energy consumption problem caused by the hot tanks of drinking water equipment being filled with water for a long time is solved, achieving energy saving, consumption reduction and cost optimization.
Patent Information
- Application Number
- CN202410927834.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
AI Technical Summary
Thermal tanks in drinking water equipment remain full of water for a long time, resulting in continuous energy consumption and increased user costs.
By obtaining historical water consumption data of drinking water equipment, use a preset prediction model (such as a recurrent neural network model) to predict water consumption distribution data, adjust water replenishment operations, ensure that water replenishment matches the user's usage habits, and reduce energy consumption.
Effectively save energy consumption, reduce user costs, rationally plan water use behavior, reduce unnecessary water use, and improve water consumption prediction accuracy.
Smart Images

Figure CN118716867A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of drinking water equipment, and more specifically, to a drinking water control method, a drinking water control system, a drinking water equipment, a server and a non-volatile computer-readable storage medium. Background Art
[0002] The hot tank in the drinking water device can be used to store drinking water. Currently, after the user receives water, the drinking water device will refill the hot tank with the drinking water consumed, so that the hot tank is always full of water. Therefore, when the hot tank is always full of water for heating and constant temperature, energy consumption is continuously required, which increases user costs. Summary of the invention
[0003] A drinking water control method, a drinking water control system, a drinking water device, a server and a non-volatile computer-readable storage medium provided in the embodiments of the present invention can solve the problem that the drinking water in the hot tank of the drinking water device is in a full water state for a long time, which requires continuous energy consumption and increases user costs.
[0004] The drinking water control method of the embodiment of the present invention is used for drinking water equipment. The drinking water control method comprises obtaining the historical water consumption data of the drinking water equipment; predicting the water consumption distribution data according to the historical water consumption data of the drinking water equipment; and controlling the water replenishment operation of the drinking water equipment according to the water consumption distribution data.
[0005] In this way, based on the historical water consumption data of the drinking water equipment, the water consumption distribution data can be predicted, so that the water replenishment operation of the drinking water equipment can be controlled according to the water consumption distribution data, and then the water replenishment operation of the drinking water equipment can be adapted to the user's usage habits, which can save energy consumption to a certain extent and reduce user costs.
[0006] In certain embodiments, the water consumption distribution data is obtained by using the historical water consumption data of the drinking water equipment as an input parameter and inputting it into a preset prediction model.
[0007] In this way, by collecting the historical water usage data of the drinking water equipment and using the collected historical water usage data as the input parameter of the prediction model set in advance, the prediction model can determine the future water consumption distribution data based on the historical water usage data, so that the user can know the future water consumption distribution in advance, and the drinking water equipment can replenish water by itself, without the need for the drinking water equipment to continuously refill with drinking water.
[0008] In some embodiments, the historical water usage data of the drinking water device is the amount of water used by the drinking water device within a historical preset time period.
[0009] In this way, by obtaining the historical water use data of drinking water equipment, we can understand the user's water use habits, thereby revealing the user's water consumption and water use patterns in different time periods, and helping users better manage their water use behavior. Based on historical water use data, users can more accurately predict future water needs, thereby rationally planning the use time and frequency of drinking water equipment, which helps reduce unnecessary water use, reduce energy consumption, and thus control water costs.
[0010] In some embodiments, the water consumption distribution data includes a water replenishment period and a water replenishment amount; controlling the water replenishment operation of the drinking water device according to the water consumption distribution data includes controlling the drinking water device to replenish the drinking water device according to the water replenishment amount during the water replenishment period.
[0011] In this way, by obtaining water consumption distribution data, we can understand the future user's water replenishment period and water replenishment amount, and the drinking water equipment can perform water replenishment and heating operations in advance according to the water replenishment amount during the water replenishment period.
[0012] In certain embodiments, the preset prediction model comprises a recurrent neural network model or a long short-term memory neural network model.
[0013] In this way, by determining the preset prediction model as a recurrent neural network model, the changing trend of water consumption in different time periods can be captured in the prediction of water consumption of drinking water equipment, and the recurrent neural network model can also learn and remember the changing pattern of water consumption of drinking water equipment over a longer time span, thereby improving the accuracy of predicted water consumption distribution data.
[0014] In certain embodiments, the preset prediction model is determined by training with a training set as input parameters until convergence, and testing with a test set as input parameters, and the training set and the test set are obtained based on historical water consumption data of drinking water equipment.
[0015] In this way, by using the training set containing the water consumption data in the past period and the test set containing the water consumption data in the future period that the model needs to predict as input parameters of the preset prediction model, the model can be trained and tested, and then a prediction model with good performance can be determined to accurately predict the future water consumption of drinking water equipment.
[0016] In certain embodiments, the drinking water control method includes obtaining current water usage data within a current preset time period; and updating the preset prediction model based on the current water usage data as an input parameter.
[0017] In this way, by acquiring the water consumption data of the current period and using the water consumption data of the current period as input parameters to train the preset prediction model, the preset prediction model can be learned to improve the prediction accuracy.
[0018] The server of the embodiment of the present invention is used to communicate with the drinking water equipment. The server is configured to receive the historical water consumption data sent by the drinking water equipment, obtain water consumption distribution data according to the historical water consumption data, and send the water consumption distribution data to the drinking water equipment, so that the drinking water equipment performs a water replenishment operation according to the water consumption distribution data.
[0019] The drinking water device of the embodiment of the present invention is used for communication connection with a server. The drinking water device is configured to send historical water consumption data to the server, receive water consumption distribution data returned by the server, and perform water replenishment operation according to the water consumption distribution data, wherein the water consumption distribution data is obtained by the server according to the historical water consumption data.
[0020] The drinking water control system of the embodiment of the present invention includes a drinking water device and a server, wherein the drinking water device is communicatively connected to the server; the drinking water device is configured to send historical water usage data to the server; the server is configured to receive the historical water usage data sent by the drinking water device, and obtain water consumption distribution data based on the historical water usage data, and send the water consumption distribution data to the drinking water device; the drinking water device is configured to perform water replenishment operations based on the water consumption distribution data.
[0021] The non-volatile computer-readable storage medium containing a computer program according to an embodiment of the present invention includes a computer program. When the computer program is executed by a processor, the processor executes the drinking water control method described in any one of the above embodiments.
[0022] Additional aspects and advantages of embodiments of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through practice of embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0024] Figure 1 is a schematic flow chart of a drinking water control method according to certain embodiments of the present invention;
[0025] Figure 2 is a schematic diagram of a drinking water control system according to certain embodiments of the present invention;
[0026] Figure 3 is a line diagram of water consumption distribution data of certain embodiments of the present invention;
[0027] Figure 4is a schematic flow chart of a drinking water control method according to certain embodiments of the present invention;
[0028] Figure 5 is a schematic flow chart of a drinking water control method according to certain embodiments of the present invention;
[0029] Figure 6 is a schematic diagram of a module of a drinking water control device according to some embodiments of the present invention;
[0030] Figure 7 The diagram is a schematic diagram of the connection state between a non-volatile computer-readable storage medium and a processor according to some embodiments of the present invention. DETAILED DESCRIPTION
[0031] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present invention, and cannot be understood as limiting the embodiments of the present invention.
[0032] See also Figure 1 , Figure 2 and Figure 3 The drinking water control method provided in the embodiment of the present invention is used for the drinking water device 100, and the drinking water control method includes:
[0033] Step 011: Obtain historical water usage data of the drinking water device 100;
[0034] Step 012: predicting water consumption distribution data based on historical water consumption data of the drinking water device 100;
[0035] Step 013: Control the water replenishment operation of the drinking water equipment 100 according to the water consumption distribution data.
[0036] In this way, based on the historical water consumption data of the drinking water equipment 100, the water consumption distribution data can be predicted, so that the water replenishment operation of the drinking water equipment 100 can be controlled according to the water consumption distribution data, and then the water replenishment operation of the drinking water equipment 100 can be adapted to the user's usage habits, which can save energy consumption to a certain extent and reduce user costs.
[0037] The drinking water device 100 is a device for heating or cooling drinking water. For example, the drinking water device 100 can also be a water dispenser, a water purifier, a water purifier, or a water-using device with a heating function or a cooling function. The drinking water device 100 includes a hot tank 20, which can be used to store drinking water and heat and keep the drinking water stored in the hot tank 20 warm so that the user can get hot water at any time. The drinking water device 100 can be connected to the server 200 for communication, so that the drinking water device 100 can send data to the server 200 or receive data transmitted by the server 200.
[0038] Specifically, a liquid level sensor is provided in the hot tank 20 of the drinking water device 100. By checking the liquid level of the drinking water in the hot tank 20 through the liquid level sensor, the water consumption of the user each time the user receives water can be obtained, and the water consumption data of the user is stored in the memory of the drinking water device 100, or in the server 200 that is connected to the drinking water device 100 in communication. By storing the water consumption data of each time the user receives water in the historical preset period in the memory of the drinking water device 100, or in the server 200 that is connected to the drinking water device 100 in communication, the historical water consumption data of the drinking water device 100 can be obtained.
[0039] For example, the preset period may be 21 days, and a day may be divided into 24 time zones. The historical water usage data may be statistics and storage of the user's water usage in each time zone within 21 days to form a data table stored in a memory or a server.
[0040] In this way, by obtaining the historical water use data of the drinking water device 100, the user's water use habits can be understood, thereby revealing the user's water consumption and water use patterns in different time periods, helping the user to better manage their water use behavior. Based on the historical water use data, the user can more accurately predict future water demand, thereby reasonably planning the use time and frequency of the drinking water device 100, which helps to reduce unnecessary water use, reduce energy consumption, and thus control water costs.
[0041] The drinking water device 100 can predict the future water consumption distribution data of users by inputting the stored historical water consumption data as input parameters into the preset prediction model. Figure 3 The water consumption distribution data shown, the water consumption distribution data includes L1, which represents the probability that the user receives 300 ml of water; the water consumption distribution data includes L2, which represents the probability that the user receives 500 ml of water; the water consumption distribution data includes L3, which represents the probability that the user receives any ml of water.
[0042] Among them, the preset prediction model can be a recurrent neural network model or a long short-term memory neural network model (Long-Short Term Memory, LSTM). Among them, the long short-term memory neural network model is an extension and improvement of the recurrent neural network model, which is used to solve the long-term dependency problem of the recurrent neural network model, and is suitable for processing and predicting data with relatively long intervals and delays in time series. The preset prediction model can be built in a supervised learning mode, by setting the number of layers and core parameters of the neural network model, and using machine learning algorithms such as support vector machine (SVM) and random forest (RandomForest) for training.
[0043] When the prediction model is a recurrent neural network model, the recurrent neural network model can be single-layer or multi-layer. The single-layer recurrent neural network model is represented by one input layer, one hidden layer and one output layer; the multi-layer recurrent neural network model is represented by one input layer, multiple hidden layers and one output layer.
[0044] In some embodiments, the expression of the hidden layer of the single-layer recurrent neural network model can be expressed as ht=tanh(Whh*h t-1 +Wxh*Xt+bh); the expression of the output layer can be expressed as yt=Why*ht+by.
[0045] Among them, ht is the hidden state at time t, which contains the information of the input sequence up to now; Xt is the input at time t, which is a 24-dimensional vector representing the water consumption in each time zone on the tth day; yt is the output at time t, which is a 24-dimensional vector representing the water consumption distribution probability in each time zone on the t+1th day; Whh, Wxh, Why are weight matrices, which represent the linear transformation from hidden state to hidden state, input to hidden state, and hidden state to output respectively; bh and by are bias terms used to adjust the results after linear transformation.
[0046] In some embodiments, in a recurrent neural network model, the input Xt at each time step and the hidden state h at the previous time step are t-1 All of them will go through a series of linear transformations and nonlinear activation functions to generate the hidden state ht and output yt of the current time step.
[0047] For example, a linear transformation is an operation that performs a weighted sum on the input data, which can usually be represented as matrix multiplication and vector addition. In a recurrent neural network model, the input Xt at the current time step and the hidden state h at the previous time step are t-1 All will undergo linear transformation. Whh*ht-1 represents the hidden state h of the previous time step t-1Wxh*Xt represents the linear transformation of the input Xt of the current time step, and Wxh is the weight matrix of the input to the hidden state. Thus, the results of the two linear transformations are added together, and a bias term bh is added to obtain a new vector.
[0048] For another example, nonlinear activation functions are used to introduce nonlinear factors so that the network can fit complex functions. In the recurrent neural network model, tanh is used as the activation function. After the linear transformation, the tanh function is applied to obtain the hidden state ht of the current time step. The output yt of the current time step is based on the hidden state ht.
[0049] For the calculation of the output layer, ht will first be linearly transformed to obtain a new vector zt=Why*ht+by. Among them, Why is the weight matrix from hidden state to output, and by is the bias term of the output. Then, this vector zt will pass through the softmax function to obtain the final output yt. The expression of the softmax function is softmax(z)ii=exp(zi) / Σ_jexp(zj). Among them, zi is the i-th element of the vector z, and Σ_jexp(zj) is the sum of the exponential values of all elements. The function of the softmax function is to convert any real number vector into a probability distribution, that is, all elements are in the range [0,1], and the sum of all elements is 1.
[0050] Therefore, the water consumption distribution probability of each time zone can be obtained through the softmax function, expressed as yt = softmax(zt). Among them, yt is a 24-dimensional vector, and each element represents the water consumption probability of a time zone on the t+1 day. Therefore, based on the water consumption data of the last 21 days, the water consumption distribution probability of each time zone on the 22nd day can be predicted.
[0051] It should be noted that "time step" and "time zone" are two different concepts. "Time step" refers to each element in the sequence, corresponding to our task, it is 21 consecutive days. "Time zone" refers to 24 different time periods in a day. At each time step, we have a 24-dimensional vector representing the water usage in 24 time zones on that day.
[0052] In this way, by determining the preset prediction model as a recurrent neural network model, the changing trend of water consumption in different time periods can be captured in the prediction of water consumption of the drinking water equipment 100, and the recurrent neural network model can also learn and remember the changing pattern of water consumption of the drinking water equipment 100 over a longer time span, thereby improving the accuracy of the predicted water consumption distribution data.
[0053] In some embodiments, when the preset prediction model is a single-layer recurrent neural network model, after obtaining the historical water consumption data of the drinking water device 100, the historical water consumption data needs to be preprocessed. The preprocessing method may be normalization or cleaning, etc., so that the preset time period can be converted to obtain multiple time zones, and the water consumption of each time zone is encoded into a dimensional vector of the corresponding time zone, and the dimensional vectors of multiple time zones are combined, so that the sequence of the preset time period can be obtained.
[0054] For example, when the preset period is 21 days, each of the 21 days is divided into 24 time zones, so that the time point data of the water consumption can be converted into a 24-hour system, and then the water consumption situation in each time zone is encoded into a 24-dimensional vector, where each dimension indicates whether a water consumption action occurs in the time zone. Finally, the data of 21 consecutive days are combined into a sequence, thereby completing the historical water consumption data preprocessing process of the drinking water device 100.
[0055] After determining that the prediction model is a single-layer recurrent neural network model and preprocessing the historical water consumption data of the drinking water device 100, it is necessary to obtain a training set and a test set to train and test the prediction model to improve the prediction accuracy of the prediction model and determine the prediction model with the best performance.
[0056] The pre-processed historical water consumption data of the drinking water device 100 can be used as a training set and a test set. The training set includes a plurality of training samples, the number of which is not limited here. Each training sample at least includes the time zone and water consumption of the user receiving water.
[0057] For example, the training sample may be that the user received 500 ml of drinking water between 7 and 8 o'clock on the first day and 300 ml of drinking water between 11 and 12 o'clock on the third day. Finally, the preset prediction model is trained according to the time zone and water consumption included in each training sample, and then the accuracy of the prediction model can be obtained by detecting whether the prediction model converges and training until the prediction model converges. It should be noted that training the prediction model to convergence is represented as a process of minimizing the amount of the loss function. For example, by gradually adjusting the parameters of the prediction model (such as weights and biases in the neural network model) through training, so that the value of the loss function decreases and tends to be stable, the prediction model can be determined to converge. Among them, the loss function measures the difference between the predicted data and the real data. For example, the training of the prediction model can be carried out using the cross-entropy loss function (Cross-Entropy Loss), and the optimization goal is to minimize the gap between the predicted water distribution probability and the actual water distribution. The expression can be expressed as Cross-Entropy Loss: L = -Σ(y*log(yhat)).
[0058] Among them, y represents the actual water use distribution, and yhat is the predicted water use distribution probability.
[0059] The test set includes multiple test samples, and the number is not limited here. Each test sample includes at least the time zone and water consumption of the user. For example, the test sample can be that the user received 400 ml of drinking water between 10 and 11 on the 22nd day and the user received 300 ml of drinking water between 15 and 16 on the 23rd day. Finally, according to the time zone and water consumption included in each training sample, the preset prediction model is tested to test the generalization ability of the prediction model, which is used to evaluate the performance of the prediction model, so that the recurrent neural network model with the best performance can be determined as the prediction model.
[0060] In some embodiments, after preprocessing the historical water usage data of the drinking water device 100, the performance of the model can be determined based on a five-fold cross-validation method, which is a commonly used method for verifying the accuracy of a model in machine learning and data mining.
[0061] Specifically, after obtaining the training set and the test set, the prediction model can be trained using the five-fold cross-validation method, that is, the obtained training set and the test set are divided into five parts, one of the five parts is used as the test set, and the other four of the five parts are used as the training sets, and the preset prediction models are trained respectively to obtain five prediction models to be selected. For example, the obtained training set and test set are divided into 5 parts, namely A, B, C, D, and E. A, B, C, D, and E can be used as test sets, and the corresponding other 4 parts can be used as training sets to train the preset prediction models respectively. For example, A is used as the test set, BCDE is used as the training set, and then the preset prediction model is trained based on BCDE to obtain the corresponding candidate prediction model M1, and the candidate prediction model M1 is tested based on A to obtain the performance Q1 (such as accuracy, recall rate, F1 score, etc.) of the candidate prediction model M1; if B is used as the test set, ACDE is used as the training set, and then the preset prediction model is trained based on ACDE to obtain the corresponding candidate prediction model M2, and the candidate prediction model M2 is tested based on B to obtain the performance Q2 of the candidate prediction model M2; if C is used as the test set, ABDE is used as the training set, and then the preset prediction model is trained based on ACDE to obtain the corresponding candidate prediction model M2, and the candidate prediction model M2 is tested based on B to obtain the performance Q2 of the candidate prediction model M2; The preset prediction model is trained with ABDE to obtain the corresponding candidate prediction model M3, and the candidate prediction model M3 is tested based on C to obtain the performance Q3 of the candidate prediction model M3; if D is used as the test set and ABCE is used as the training set, then the preset prediction model is trained based on ABCE to obtain the corresponding candidate prediction model M4, and the candidate prediction model M4 is tested based on D to obtain the performance Q4 of the candidate prediction model M4; if E is used as the test set and ABCD is used as the training set, then the preset prediction model is trained based on ABCD to obtain the corresponding candidate prediction model M5, and the candidate prediction model M5 is tested based on E to obtain the performance Q5 of the candidate prediction model M5, and finally, according to the performances Q1, Q2, Q3, Q4, and Q5 of the five candidate prediction models, the candidate prediction model with the best performance is determined as the prediction model.
[0062] See also Figure 4 In some embodiments, the water consumption distribution data includes a water replenishment period and a water replenishment amount. Step 013: controlling the water replenishment operation of the drinking water device 100 according to the water consumption distribution data includes:
[0063] Step 0131: Control the drinking water device 100 to replenish water according to the replenishment amount during the water replenishment period.
[0064] In this way, by acquiring the water consumption distribution data, the user's future water replenishment period and water replenishment amount can be understood, and the drinking water device 100 can perform water replenishment and heating operations in advance according to the water replenishment amount during the water replenishment period.
[0065] Specifically, after the historical water consumption data of the drinking water device 100 is input into the preset prediction model, the prediction model can predict the water consumption distribution data. The water consumption distribution data includes the water replenishment period and the water replenishment amount, that is, the time zone in which the drinking water device 100 replenishes water and the amount of drinking water that needs to be replenished. For example, the water consumption from 7 to 8 o'clock on the 24th day is 500 ml, the water consumption from 11 to 12 o'clock is 300 ml, and the water consumption from 9 to 10 o'clock is 200 ml. The prediction model can predict that the water consumption distribution data on the 25th day is that 500 ml of water needs to be replenished from 6 to 7 o'clock, 300 ml of water needs to be replenished from 10 to 11 o'clock, and 200 ml of water needs to be replenished from 8 to 9 o'clock.
[0066] According to the water consumption distribution data predicted by the prediction model, the drinking water device 100 can be controlled to perform water replenishment operation. For example, the water consumption from 7 to 8 o'clock on the 24th day is 500 ml, the water consumption from 11 to 12 o'clock is 300 ml, and the water consumption from 9 to 10 o'clock is 200 ml. The prediction model can predict that the water consumption distribution data of the 25th day is 500 ml of water replenishment is required from 6 to 7 o'clock, 300 ml of water replenishment is required from 10 to 11 o'clock, and 200 ml of water replenishment is required from 8 to 9 o'clock, so that the drinking water device 100 replenishes 500 ml of water into the hot pot and heats it from 6 to 7 o'clock, replenishes 300 ml of water into the hot pot and heats it from 10 to 11 o'clock, and replenishes 200 ml of water into the hot pot and heats it from 8 to 9 o'clock.
[0067] See also Figure 5 In certain embodiments, the drinking water control method comprises:
[0068] Step 014: Obtain current water usage data within the current preset time period;
[0069] Step 015: Update the preset prediction model based on the current water usage data as input parameters.
[0070] In this way, by acquiring the water consumption data of the current period and using the water consumption data of the current period as input parameters to train the preset prediction model, the preset prediction model can be learned to improve the prediction accuracy.
[0071] Specifically, the drinking water device 100 can record and store the user's water usage data every day, and after a preset historical period, it can update the prediction model based on the stored current water usage data, that is, retrain the prediction model using the current water usage data as a training set.
[0072] For example, the drinking water equipment 100 determines a preset prediction model based on the historical water usage data of the previous 21 days, and then the drinking water equipment 100 stores the current water usage data from the 22nd to the 42nd day. The drinking water equipment 100 can train the preset prediction model based on the current water usage data, so that the preset prediction model can be learned and corrected, thereby improving the prediction accuracy of the preset prediction model.
[0073] It should be noted that the daily water usage data of the user collected by the drinking water device 100 can be stored in the server 200 that communicates with the drinking water device 100. Therefore, compared with the limited storage space of the drinking water device 100, the server 200 can store more water usage data. Therefore, by updating the prediction model in the server 200 with the current water usage data, the prediction accuracy of the prediction model can be further improved.
[0074] See also Figure 6 In order to better implement the drinking water control method of the embodiment of the present invention, the embodiment of the present invention further provides a drinking water control device 10. The drinking water control device 10 includes a first acquisition module 11, a prediction module 12 and a control module 13; the first acquisition module 11 is used to acquire the historical water consumption data of the drinking water device 100; the prediction module 12 is used to predict the water consumption distribution data according to the historical water consumption data of the drinking water device 100; the control module 13 is used to control the water replenishment operation of the drinking water device 100 according to the water consumption distribution data.
[0075] The control module 13 is specifically used to control the drinking water device 100 to replenish water according to the replenishment amount during the water replenishment period.
[0076] The control device 10 further includes a second acquisition module 14, which is used to acquire current water usage data within a current preset time period.
[0077] The control device 10 further includes an updating module 15, which is used to update the preset prediction model according to the current water usage data as an input parameter.
[0078] In some embodiments, the drinking water control device 10 may be disposed in the drinking water equipment 100 , so as to implement the functions of the first acquisition module 11 , the prediction module 12 , the control module 13 , the second acquisition module 14 and the update module 15 in the drinking water equipment 100 .
[0079] In some embodiments, the drinking water control device 10 can be set in a server 200 that is communicatively connected to the drinking water equipment 100, so as to implement the functions of the first acquisition module 11, the prediction module 12, the control module 13, the second acquisition module 14 and the update module 15 in the server 200.
[0080] In some embodiments, the drinking water control device 10 can be communicatively connected with the drinking water equipment 100 and the server 200 respectively, so that the drinking water equipment 100 can implement the functions of the first acquisition module 11, the control module 13 and the second acquisition module 14 included in the drinking water control device 10, and the server 200 implements the functions of the prediction module 12 and the update module 15 included in the drinking water control device 10.
[0081] In the above text, the drinking water control device 10 is described from the perspective of functional modules in conjunction with the accompanying drawings. The functional modules can be implemented in hardware form, can be implemented in software form, or can be implemented in combination with hardware and software modules. Specifically, each step of the method embodiment in the embodiment of the present invention can be completed by the hardware integrated logic circuit in the processor and / or the software form of instructions. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware coding processor to execute, or can be executed by a combination of hardware and software modules in the coding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.
[0082] Please refer again Figure 3 The drinking water control system 1000 of the embodiment of the present invention includes a drinking water device 100 and a server 200, and the drinking water device 100 is communicatively connected with the server 200; the drinking water device 100 is configured to send historical water consumption data to the server 200; the server 200 is configured to receive the historical water consumption data sent by the drinking water device 100, and obtain water consumption distribution data according to the historical water consumption data, and send the water consumption distribution data to the drinking water device 100; the drinking water device 100 is configured to perform a water replenishment operation according to the water consumption distribution data.
[0083] Specifically, the control system 1000 includes a drinking water device 100 and a server 200, and the drinking water device 100 is connected to the server 200 for communication, such as the drinking water device 100 and the server 200 can be connected via Bluetooth, WIFI, a mobile communication network or a data cable. A prediction model is preset on the drinking water device 100, and the preset prediction model can also be executed by the drinking water device 100, or the prediction model is located in the server 200 connected to the drinking water device 100 for communication, and runs on the server 200. Among them, the model file of the preset prediction model can be stored in the memory of the current drinking water device 100 and executed by the processor of the current drinking water device 100, or the model file of the prediction model can also be stored in the server 200 connected to the current drinking water device 100 for communication, and executed by the processor of the server 200.
[0084] See also Figure 7 The embodiment of the present invention further provides a computer-readable storage medium 300 on which a computer program 310 is stored. When the computer program 310 is executed by a processor 320, the steps of the drinking water control method of any of the above-mentioned embodiments are implemented. For the sake of brevity, they are not repeated here.
[0085] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0086] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.
[0087] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A drinking water control method, used for drinking water equipment, characterized in that: The drinking water control method comprises: Obtaining historical water consumption data of the drinking water equipment; Predicting water consumption distribution data based on historical water consumption data of the drinking water equipment; The water replenishment operation of the drinking water equipment is controlled according to the water consumption distribution data.
2. The drinking water control method according to claim 1, characterized in that: The water consumption distribution data is obtained by taking the historical water consumption data of the drinking water equipment as input parameters and inputting it into a preset prediction model.
3. The drinking water control method according to claim 1, characterized in that: The historical water consumption data of the drinking water equipment is the amount of water used by the drinking water equipment within a historical preset time period.
4. The drinking water control method according to claim 1, characterized in that: The water consumption distribution data includes water replenishment period and water replenishment amount; Controlling the water replenishment operation of the drinking water device according to the water consumption distribution data includes: controlling the drinking water device to replenish water according to the replenishment amount during the water replenishment period.
5. The drinking water control method according to claim 2, characterized in that: The preset prediction model includes a recurrent neural network model or a long short-term memory neural network model.
6. The drinking water control method according to claim 5, characterized in that: The preset prediction model is determined by training with a training set as an input parameter until convergence, and testing with a test set as an input parameter, wherein the training set and the test set are obtained based on historical water consumption data of drinking water equipment.
7. The drinking water control method according to claim 6, characterized in that: The drinking water control method comprises: Get the current water consumption data within the current preset time period; The preset prediction model is updated based on the current water use data as an input parameter.
8. A server for communicating with a drinking water device, characterized in that: The server configuration is: Receive the historical water consumption data sent by the drinking water device, obtain water consumption distribution data according to the historical water consumption data, and send the water consumption distribution data to the drinking water device, so that the drinking water device performs a water replenishment operation according to the water consumption distribution data.
9. A drinking water device, used for communicating with a server, characterized in that: The drinking water equipment is configured as follows: Send historical water consumption data to a server, receive water consumption distribution data returned by the server, and perform water replenishment operations according to the water consumption distribution data, wherein the water consumption distribution data is obtained by the server according to the historical water consumption data.
10. A drinking water control system, characterized in that: It includes a drinking water device and a server, wherein the drinking water device is communicatively connected with the server; The drinking water device is configured to: send historical water use data to the server; The server is configured to: receive the historical water consumption data sent by the drinking water device, obtain water consumption distribution data according to the historical water consumption data, and send the water consumption distribution data to the drinking water device; The drinking water equipment is configured to perform water replenishment operations according to the water consumption distribution data.
11. A non-volatile computer-readable storage medium containing a computer program, characterized in that: When the computer program is executed by a processor, the processor executes the drinking water control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Water age control system for direct drinking water purification equipment
CN113812851A
