Sterilization method and device of water supply device, water supply device and storage medium
By obtaining and analyzing the water quality parameters of the water supply device in real time, automatically judging the sterilization signal and setting target sterilization parameters, the problem of lack of automation and intelligence of the sterilization methods of the existing water supply device is solved, and efficient and safe water quality management is achieved.
Patent Information
- Application Number
- CN202510112338.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-06
AI Technical Summary
The sterilization methods of existing water supply devices lack automation and intelligence, making it difficult to monitor changes in water quality parameters in real time and flexibly adjust sterilization measures, resulting in increased water quality risks and waste of resources.
By obtaining water quality parameters in real time, judging the sterilization signal, and setting the target sterilization parameters based on the correspondence between the preset status information and the sterilization parameters, and sterilizing the sterilizer. The method includes obtaining historical status information, calculating water quality vectors, standardizing processing, constructing the correspondence between status information and sterilization parameters, and realizing automated and intelligent sterilization operations.
It has achieved rapid judgment of abnormal water quality, promptly triggered sterilization signals, reduced the risk of water quality pollution, flexibly adjusted sterilization parameters based on historical data and real-time water quality status, ensuring the effectiveness of sterilization operations, avoiding unnecessary excessive sterilization, and improving the efficiency, safety and economics of the water quality management system.
Smart Images

Figure CN119933232A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sterilization of water supply devices, and in particular to a sterilization method and device for water supply devices, a water supply device and a storage medium. Background Art
[0002] The use of water supply devices is becoming more and more common. Water supply devices are widely used in homes, businesses and public places to provide convenient drinking water supply. However, water supply devices often face water pollution problems during daily use. For example, the growth of microorganisms, the reproduction of bacteria and the accumulation of other harmful substances may cause water quality deterioration and affect the health of residents.
[0003] The sterilization methods of existing water supply devices mainly rely on manual monitoring and regular maintenance, and usually lack automated and intelligent water quality monitoring and sterilization mechanisms. Users often cannot grasp the changes in water quality parameters in real time, and it is difficult to adjust sterilization measures in time according to the actual water quality conditions. This passive management method not only increases water quality risks, but may also lead to unnecessary waste of resources.
[0004] There are already some smart water supply devices with sterilization functions on the market, but most devices still have limitations in setting sterilization parameters, making it difficult to flexibly adjust for different water quality conditions. In addition, existing water quality monitoring technologies generally cannot achieve high-frequency real-time data acquisition, which often leads to detection lags, thus affecting the sterilization effect. Summary of the invention
[0005] Based on this, it is necessary to address the sterilization problem of existing water supply devices and propose a sterilization method for water supply devices.
[0006] A method for sterilizing a water supply device, the method comprising:
[0007] Obtain water quality parameters in real time at preset intervals;
[0008] Determine whether the sterilization signal is triggered;
[0009] When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0010] Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information;
[0011] The object to be sterilized is sterilized based on the target sterilization parameters.
[0012] Furthermore, before the step of setting the target sterilization parameter corresponding to the current state information based on the preset correspondence between the state information and the sterilization parameter, the method further includes:
[0013] Get multiple historical status information;
[0014] Calculate the water quality vector X of each historical state information i ={(Q t,t-1 ), (Q t,t-2 ),...,(Q t,z )..., (Q t,2 ), (Q t,1 )}, where t represents the tth time point, X i The water quality vector representing the i-th historical state information, (Q t,z ) represents the rate of change of water quality parameters between the t-th time point and the z-th time point, t, z, i are positive integers, and t>z, i≤n;
[0015] Performing standardization processing on each of the water quality vectors according to a preset method to obtain a standard data set;
[0016] The standard data set and the sterilization parameters corresponding to the standard data set are input into a preset model, and the preset model is trained according to the optimal hyperparameter method to obtain a target model to achieve a corresponding relationship between the construction state information and the sterilization parameters.
[0017] Furthermore, the step of inputting the standard data set and the sterilization parameters corresponding to the standard data set into a preset model, training the preset model according to the optimal hyperparameter method, and obtaining a target model to realize the step of constructing a corresponding relationship between state information and sterilization parameters includes:
[0018] Get initial models with multiple different hyperparameter combinations;
[0019] Dividing the standard data set into a training set and a validation set according to a preset ratio;
[0020] Inputting the training set and the corresponding sterilization parameters into each of the initial models for training to obtain a corresponding plurality of temporary models;
[0021] Verifying each of the temporary models using the verification set to obtain verification results of each of the temporary models;
[0022] Based on the verification result, the temporary model with the best verification result is selected as the preset model.
[0023] Furthermore, the step of performing standardization processing on each of the water quality vectors according to a preset method to obtain a standard data set includes:
[0024] Extracting the maximum and minimum points in each of the water quality vectors, and arranging them in chronological order to obtain an extreme value sequence;
[0025] The extreme value sequence is fitted using a cubic spline interpolation function to obtain the upper envelope X max (t) and the lower envelope X min (t);
[0026] The average of the upper envelope and the lower envelope is recorded as the envelope mean m(t); where,
[0027] Subtract the envelope mean from the water quality vector to obtain a target sequence;
[0028] Determining whether the target sequence passes an intrinsic mode function test;
[0029] If the test is passed, the target sequence is recorded as the target function; otherwise, the target sequence is recorded as the first water quality vector and the target sequence is recalculated until the target function is obtained;
[0030] Subtracting the first water quality vector from the water quality vector to obtain a second water quality vector, and repeatedly obtaining multiple objective functions until the calculated envelope is symmetrical and the mean of the envelope is 0, thereby obtaining multiple objective functions;
[0031] The objective functions of each water quality vector are aggregated to obtain the standard data corresponding to each water quality vector, and then a standard data set composed of the various standard data is obtained.
[0032] Furthermore, after the step of sterilizing the object to be sterilized based on the target sterilization parameters, the method further includes:
[0033] Detect target water quality parameters after sterilization;
[0034] Determining whether the water quality parameters meet preset standards;
[0035] If the preset standard is not reached, the object to be sterilized is subjected to secondary sterilization based on the target water quality parameter.
[0036] Furthermore, after the step of obtaining water quality parameters in real time according to a preset interval, the method further includes:
[0037] Determining whether at least one of the water quality parameters exceeds a preset parameter value;
[0038] If at least one of the preset parameter values is exceeded, water in the object to be sterilized is extracted and discharged through a preset water pump.
[0039] Furthermore, before the step of sterilizing the object to be sterilized based on the target sterilization parameters, the step further includes:
[0040] Determine whether the current water quality parameters meet the drinking standards;
[0041] If the current water quality parameters meet the drinking standards, the user's historical sterilization time period is obtained;
[0042] The current time is obtained, and the sterilization time is selected according to the user's historical sterilization time period and the current time.
[0043] A sterilizing device for a water supply device, the device comprising:
[0044] A first acquisition module, used to acquire water quality parameters in real time according to a preset interval;
[0045] A judgment module, used to judge whether the sterilization signal is triggered;
[0046] The second acquisition module is used to acquire the current state information of the object to be sterilized in the water supply device when the sterilization signal is triggered; wherein the current state information includes the water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0047] A setting module, used for setting the target sterilization parameter corresponding to the current state information based on the correspondence between the preset state information and the sterilization parameter;
[0048] A sterilization module is used to sterilize the object to be sterilized based on the target sterilization parameters.
[0049] A water supply device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0050] Obtain water quality parameters in real time at preset intervals;
[0051] Determine whether the sterilization signal is triggered;
[0052] When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0053] Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information;
[0054] The object to be sterilized is sterilized based on the target sterilization parameters.
[0055] A computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following steps:
[0056] Obtain water quality parameters in real time at preset intervals;
[0057] Determine whether the sterilization signal is triggered;
[0058] When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0059] Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information;
[0060] The object to be sterilized is sterilized based on the target sterilization parameters.
[0061] The beneficial effects of the present invention are as follows: by acquiring water quality parameters in real time, the system can quickly determine whether the water quality is abnormal, trigger the sterilization signal in time, reduce the risk of water pollution, flexibly adjust the target sterilization parameters according to historical data and real-time water quality status, ensure the effectiveness of the sterilization operation, and avoid unnecessary over-sterilization, significantly improve the efficiency, safety and economy of the water quality management system, provide a modern solution for the water treatment industry, and also bring greater convenience and trust to users. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] in:
[0064] Figure 1 This is a schematic diagram of the water circuit structure of a water supply device in one embodiment;
[0065] Figure 2 A schematic diagram of the waterway structure of a water supply device in another embodiment;
[0066] Figure 3 This is a schematic diagram of the water circuit structure of a water supply device in another embodiment;
[0067] Figure 4 This is a schematic diagram of the overall structure of the water circuit of a water supply device in one embodiment;
[0068] Figure 5A flow chart of a method for sterilizing a water supply device in one embodiment;
[0069] Figure 6 It is a structural block diagram of a sterilizing device of a water supply device in one embodiment;
[0070] Figure 7 It is a structural block diagram of a water supply device in one embodiment. DETAILED DESCRIPTION
[0071] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0072] Reference Figure 1-4 The water supply device water circuit includes: a first water circuit pipeline 80, a second water circuit pipeline 90, a third water circuit pipeline 130, a control unit 70, and a refrigeration unit 20 and a heating unit 30 controlled by the control unit 70; the first water circuit pipeline 80 and the second water circuit pipeline 90 are respectively connected to the third water circuit pipeline 130; the first water circuit pipeline 80 is connected to the heating unit 30, and the heating unit 30 is used to heat the liquid in the first water circuit pipeline 80; the second water circuit pipeline 90 is connected to the refrigeration unit 20, and the refrigeration unit 20 is used to cool the liquid in the second water circuit pipeline 90; a first valve 40 is provided on the first water circuit pipeline 80, and a second valve 50 is provided on the second water circuit pipeline 90, and the first valve 40 and the second valve 50 are controlled by the control unit 70.
[0073] The heating unit 30 includes a heating and heat storage module, a heat exchange module 301 and a fourth water pipeline. The heating and heat storage module is connected to the heat exchange module 301 through the fourth water pipeline. The heat exchange module 301 is connected to the first water pipeline 80 and the fourth water pipeline respectively. The heating and heat storage module is a module that heats and stores the heated liquid. The heating and heat storage module includes a heater 303 and a hot tank 302. The heater 303 is connected to the hot tank 302 and is used to heat the liquid in the hot tank 302. The hot tank 302 is connected to the heat exchange module 301 through the fourth water pipeline. A first water pump 150 is provided on the fourth water pipeline. The first water pump 150 is used to extract the liquid in the heating and heat storage module. The first water pump 150 is connected to the control unit 70. One end of the fourth water pipeline is connected to the water outlet 60 of the heating and heat storage module, and the other end of the fourth water pipeline is connected to the water inlet of the heating and heat storage module. The refrigeration unit 20 includes a cold tank and a refrigeration device, the refrigeration device is connected to the cold tank and is used to refrigerate the water in the cold tank, and the cold tank is connected to the second water pipe 90. The water channel structure of the water supply device also includes a water outlet unit, and the water outlet unit is in communication with the third water pipe 130. The water channel structure of the water supply device also includes a fourth water pipe, one end of the fourth water pipe is connected to the water supply port 10, and the other end is connected to the third water pipe 130, and a third valve is provided on the fourth water pipe. In one embodiment, the water channel structure of the water supply device also includes a temperature detection unit 120, and the temperature detection unit 120 is connected to the control unit 70, and the temperature detection unit 120 is connected to the third water pipe 130, and is used to detect the temperature of the liquid in the third water channel.
[0074] like Figure 5 As shown, in one embodiment, a method for sterilizing a water supply device is provided. The method can be applied to both a terminal and a server. This embodiment is illustrated by applying the method to a terminal. The method for sterilizing a water supply device specifically includes the following steps:
[0075] S1: Obtain water quality parameters in real time according to the preset interval time;
[0076] S2: Determine whether the sterilization signal is triggered;
[0077] S3: when the sterilization signal is triggered, obtaining the current state information of the object to be sterilized in the water supply device; wherein the current state information includes the water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0078] S4: Based on the correspondence between the preset state information and the sterilization parameters, setting the target sterilization parameters corresponding to the current state information;
[0079] S5: Sterilize the object to be sterilized based on the target sterilization parameters.
[0080] As described in step S1 above, water quality parameters are obtained in real time at preset intervals. The step of obtaining water quality parameters can be to monitor water quality in real time using various sensors (such as temperature sensors, turbidity sensors, conductivity sensors, pH sensors, etc.), and can also be measured by optical methods, such as optical principles such as light transmission and reflection, such as turbidity, color, dissolved oxygen and other parameters of water.
[0081] As described in step S2 above, determine whether the sterilization signal is triggered. The condition for triggering the sterilization signal may be manual input by the user. A user interface (UI) or control panel may be provided to allow the operator to manually input the sterilization signal. The user may also input the sterilization signal through a corresponding APP. In some embodiments, the sterilization signal may be automatically triggered when the water quality parameter exceeds the normal range.
[0082] As described in the above step S3, when the sterilization signal is triggered, the current state information of the object to be sterilized of the water supply device is obtained; wherein, the current state information includes the water quality parameters of the object to be sterilized at a preset number of time points before the current time. The number of time points to be traced back is set according to specific needs, such as "3 time points" or "5 time points". The previous water quality parameters will be stored in the corresponding database, and can be directly obtained here, and the obtained data will be integrated into a structured state information object, that is, the current state information, so as to facilitate the subsequent execution of the corresponding sterilization process based on the current state information.
[0083] As described in step S4 above, based on the correspondence between the preset state information and the sterilization parameters, the target sterilization parameters corresponding to the current state information are set. Based on historical data and laboratory research, target sterilization parameters for different water quality states are set. For example: when the turbidity is higher than a specific value, increase the sterilization time or increase the sterilization intensity (such as UV intensity or ozone concentration). When the pH value is lower or higher than the optimal range, adjust the corresponding amount of chemical sterilizer. The corresponding relationship is a pre-set relationship. After obtaining the current state information, the corresponding sterilization parameters can be obtained.
[0084] As described in step S5 above, the object to be sterilized is sterilized based on the target sterilization parameters. Specifically, the sterilization parameters may include sterilization intensity, time, sterilization dosage used, etc. Then, according to the target sterilization parameters, the corresponding sterilization equipment is started: for example, ultraviolet sterilization can set the ultraviolet intensity and sterilization time. Ozone sterilization can adjust the output of the ozone generator and the sterilization duration. Hot water sterilization can set the heating temperature and holding time. By acquiring water quality parameters in real time, the system can quickly determine whether the water quality is abnormal, trigger the sterilization signal in time, reduce the risk of water pollution, and flexibly adjust the target sterilization parameters according to historical data and real-time water quality status to ensure the effectiveness of the sterilization operation, while avoiding unnecessary over-sterilization, significantly improving the efficiency, safety and economy of the water quality management system, and providing a modern solution for the water treatment industry, while also bringing greater convenience and trust to users. The object to be sterilized can specifically be Figure 4 The hot tank 302 or the refrigeration unit 20 in the refrigeration unit 20, the refrigeration unit 20 can specifically be a cold tank.
[0085] In one embodiment, before the step S4 of setting the target sterilization parameter corresponding to the current state information based on the preset correspondence between the state information and the sterilization parameter, the method further includes:
[0086] S301: Acquire multiple historical status information;
[0087] S302: Calculate the water quality vector X of each historical state information i ={(Q t,t-1 ), (Q t,t-2 ),...,(Q t,z )..., (Q t,2 ), (Q t,1 )}, where t represents the tth time point, X i The water quality vector representing the i-th historical state information, (Q t,z ) represents the rate of change of water quality parameters between the t-th time point and the z-th time point, t, z, i are positive integers, and t>z, i≤n;
[0088] S303: performing standardization processing on each of the water quality vectors according to a preset method to obtain a standard data set;
[0089] S304: Input the standard data set and the sterilization parameters corresponding to the standard data set into a preset model, train the preset model according to the optimal hyperparameter method, and obtain a target model to achieve a corresponding relationship between the construction state information and the sterilization parameters.
[0090] As described in the above step S301, a plurality of historical status information is obtained, wherein the historical status information is the same as the above current status information, that is, previous status information, and can be obtained by obtaining it from a corresponding database.
[0091] As described in step S302 above, the water quality vector of each of the historical state information is calculated. The water quality vector at each time point is defined to be related to the water quality vector at the previous time point, that is, the change of the water quality parameters can be detected. If the water quality parameters change rapidly, it means that the corresponding bacterial colony reproduces rapidly, so it is necessary to increase the sterilization intensity, so that the change rate of the water quality parameters between the t-th time point and the z-th time point is used as the value in the water quality vector for subsequent calculations.
[0092] As described in step S303 above, each of the water quality vectors is standardized according to a preset method to obtain a standard data set. The standardized processing may be dimensionality reduction, denoising, and removal of unnecessary data, etc. The preset method may be to process the data using a sliding window, or to reduce the dimensionality of the data, transform the data, etc. A preferred standardized processing method is provided later, which will not be described here.
[0093] As described in step S304 above, the standard data set and the sterilization parameters corresponding to the standard data set are input into the preset model, and the preset model is trained according to the optimal hyperparameter method to obtain the target model to achieve the corresponding relationship between the state information and the sterilization parameters. Among them, the preset model is an SVM model or an ANN model, wherein SVM (support vector machine) is one of the most popular machine learning technologies and an approximate representation of structural risk minimization. It seeks the best combination point between the generalization performance and the fitting performance of the model, rather than the traditional empirical risk minimization, and cleverly solves the dimensionality problem, and can process the standardized data. Its training method is the same as the existing model training method, which will not be repeated here.
[0094] In one embodiment, the step S304 of inputting the standard data set and the sterilization parameters corresponding to the standard data set into a preset model, training the preset model according to the optimal hyperparameter method, and obtaining a target model to implement the corresponding relationship between the state information and the sterilization parameters includes:
[0095] S3041: Obtaining initial models of multiple different hyperparameter combinations;
[0096] S3042: Dividing the standard data set into a training set and a validation set according to a preset ratio;
[0097] S3043: inputting the training set and the corresponding sterilization parameters into each of the initial models for training to obtain a corresponding plurality of temporary models;
[0098] S3044: verifying each of the temporary models using the verification set to obtain verification results of each of the temporary models;
[0099] S3045: Based on the verification results, the temporary model with the best verification results is selected as the preset model.
[0100] As described in the above steps S3041-S3045, if the preset model is an SVM model, since its generalization ability depends on the original parameters, multiple different hyperparameter combinations can be set for joint training, and then the optimal model is selected for processing. First, multiple different initial SVM models are created by selecting multiple sets of hyperparameters (such as penalty parameter C, kernel function type, γ value, etc.). The standard data set is divided into a training set and a validation set, usually using a ratio of 70% training set and 30% validation set, or other reasonable ratios. The selected training set and its corresponding sterilization parameters are input into the previously created initial SVM model for training, and finally multiple temporary models are obtained. Each model will learn a specific pattern according to different hyperparameter combinations, capture the features in the training data, and use the validation set to evaluate each temporary model. Usually, some performance indicators (such as accuracy, precision, recall rate, F1 score, etc.) are used to measure the effectiveness of the model, compare the performance of each temporary model on the validation set, and select the model with the best performance as the final preset model. It can effectively build and select suitable machine learning models to meet specific water quality monitoring and sterilization parameter prediction business needs.
[0101] In one embodiment, the step S303 of performing standardization processing on each of the water quality vectors according to a preset method to obtain a standard data set includes:
[0102] S3031: extracting the maximum value point and the minimum value point in each of the water quality vectors, and arranging them in chronological order to obtain an extreme value sequence;
[0103] S3032: Fit the extreme value sequence using a cubic spline interpolation function to obtain an upper envelope X max (t) and the lower envelope X min (t);
[0104] S3033: Take the average of the upper envelope and the lower envelope as the envelope average m(t); where,
[0105] S3034: Subtract the envelope mean from the water quality vector to obtain a target sequence;
[0106] S3035: Determine whether the target sequence passes the intrinsic mode function test;
[0107] S3036: If the test is passed, the target sequence is recorded as the target function; otherwise, the target sequence is recorded as the first water quality vector and the target sequence is recalculated until the target function is obtained;
[0108] S3037: subtract the first water quality vector from the water quality vector to obtain a second water quality vector, and repeat to obtain multiple objective functions until the calculated envelope is symmetrical and the mean of the envelope is 0, thereby obtaining multiple objective functions;
[0109] S3038: Aggregate the objective functions of each water quality vector to obtain standard data corresponding to each water quality vector, and then obtain a standard data set composed of the various standard data.
[0110] As described in the above steps S3031-S3038, in order to improve the judgment ability of the model, the implicit features can be extracted. In order to improve the judgment ability of the model, the implicit features can be extracted. The specific steps are: decompose the feature vector, extract the minimum and maximum points in each feature vector, and arrange them in chronological order to form an extreme value sequence. The extreme value sequence is fitted using a cubic spline interpolation function to obtain the upper and lower envelopes. The mean of the upper and lower envelopes is recorded as the envelope mean. The envelope mean is subtracted from the feature vector to obtain the target sequence. If the target sequence does not pass the intrinsic mode function test, it is recorded as the first feature vector and the target sequence is recalculated until the target function is generated; if it passes the test, the target sequence is recorded as the target function, and the target function set of each feature vector is formed to form the standard data corresponding to each feature vector, and further construct a standard data set composed of each standard data. Among them, the intrinsic mode function is a pre-set function, which can be set manually as needed. By decomposing the feature vector as above, the prediction performance of the machine learning model can be improved. Cubic spline interpolation is achieved by solving a series of shape value points for a smooth curve. Mathematically, it is a process of deriving a curve function group through a group of three bending moment equations.
[0111] In one embodiment, after the step S5 of sterilizing the object to be sterilized based on the target sterilization parameters, the method further includes:
[0112] S601: Detect target water quality parameters after sterilization;
[0113] S602: Determine whether the water quality parameter meets the preset standard;
[0114] S603: If the preset standard is not reached, the object to be sterilized is sterilized for a second time based on the target water quality parameter.
[0115] As described in the above steps S601-S603, after completing the first round of sterilization operation, the water quality parameters of the body to be sterilized are monitored and obtained in real time. These parameters may include key information such as turbidity, pH value, bacterial concentration, dissolved oxygen, etc. The purpose is to confirm the effect of the sterilization operation and provide a basis for subsequent judgment of whether the water quality meets the standard. Determine whether the water quality parameters meet the preset standards, and compare the detected water quality parameters with the pre-set water quality standards. The preset standards are usually based on national or regional drinking water safety standards or other industry standards. The purpose is to evaluate whether the water quality after sterilization meets the prescribed safety standards and ensure its suitability for use. If the preset standards are not met, the body to be sterilized is sterilized for the second time based on the target water quality parameters. If the detected water quality parameters fail to meet the preset standards, the second sterilization is performed again according to the target water quality parameters. In this process, it may be necessary to adjust the sterilization parameters (such as intensity, time or sterilization dose used) to ensure the effect. Through the secondary sterilization operation, the water quality is further improved to ensure that the safety standards are met.
[0116] In one embodiment, after the step S1 of acquiring water quality parameters in real time at a preset interval, the method further includes:
[0117] S201: Determine whether at least one of the water quality parameters exceeds a preset parameter value;
[0118] S202: If at least one of the parameters exceeds the preset parameter value, water in the object to be sterilized is extracted and discharged through a preset water pump.
[0119] As described in step S201 above, it is determined whether at least one of the water quality parameters exceeds the preset parameter value. Each water quality parameter (such as turbidity, pH value, temperature, bacteria concentration, etc.) is monitored in real time and compared with the preset parameter value. Potential water quality problems can be discovered in time to ensure that the water quality is within a safe range. If any parameter is found to exceed the set safety threshold, the subsequent processing steps are triggered.
[0120] As described in step S202 above, if at least one of the preset parameter values is exceeded, the water in the sterilized body is extracted and discharged through the preset water pump. Once the water quality parameter is confirmed to be abnormal, the system starts the preset water pump to extract water from the sterilized body and discharge it, which may be discharged into the sewage treatment system or other safe discharge areas. By excluding contaminated water, the potential impact of unqualified water on subsequent processing and distribution is reduced, and water quality problems are controlled at the source. Among them, the preset water pump is the water pump connected to the sterilized body, refer to Figure 4 If the object to be sterilized is a hot tank 302 , the preset water pump is the first water pump 150 ; if the object to be sterilized is a refrigeration unit 20 , the preset water pump is the second water pump 100 .
[0121] In one embodiment, before the step S5 of sterilizing the object to be sterilized based on the target sterilization parameters, the method further includes:
[0122] S401: Determine whether the current water quality parameters meet the drinking standards;
[0123] S402: If the current water quality parameters meet the drinking standard, the user's historical sterilization time period is obtained;
[0124] S403: Acquire the current time, and select the sterilization time according to the user's historical sterilization time period and the current time.
[0125] As described in step S401 above, it is determined whether the current water quality parameters meet the drinking water standards, and the current water quality parameters are evaluated and compared with the drinking water standards, including turbidity, pH value, bacteria concentration, etc. This ensures that the water quality meets the drinking water standards before performing the sterilization operation, avoiding sterilization under the condition that the water quality does not meet the standards, resulting in ineffective treatment or user health risks.
[0126] As described in step S402 above, if the current water quality parameters meet the drinking standard, the user's historical sterilization time period is obtained. If the current water quality meets the standard, the system will query and obtain the user's historical sterilization time period. These time periods may be time periods when the user previously performed effective sterilization operations. User behavior can be analyzed to consider the user's usage patterns and needs in the sterilization strategy, enhancing the personalization and adaptability of the system.
[0127] As described in step S403 above, the current time is obtained, and the sterilization time is selected according to the user's historical sterilization time period and the current time, the current time information is obtained, and a suitable sterilization time is automatically selected in combination with the user's historical sterilization record and the current time. This can be based on the user's past sterilization frequency or a specific time interval. The selection of the sterilization time is optimized to make it more in line with the user's actual needs and usage habits, and to improve the effectiveness and scientificity of the sterilization operation.
[0128] Reference Figure 6 The present invention also provides a sterilizing device for a water supply device, the device comprising:
[0129] The first acquisition module 10 is used to acquire water quality parameters in real time according to a preset interval;
[0130] A determination module 20, used to determine whether a sterilization signal is triggered;
[0131] The second acquisition module 30 is used to acquire the current state information of the object to be sterilized in the water supply device when the sterilization signal is triggered; wherein the current state information includes the water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0132] A setting module 40, for setting a target sterilization parameter corresponding to the current state information based on a preset correspondence between the state information and the sterilization parameter;
[0133] The sterilization module 50 is used to sterilize the object to be sterilized based on the target sterilization parameters.
[0134] Other embodiments of the sterilization device of a water supply device of the present invention are the same as the embodiments of the sterilization method of the above-mentioned sterilization water supply device, and will not be described in detail here.
[0135] The beneficial effects of the present invention are as follows: by acquiring water quality parameters in real time, the system can quickly determine whether the water quality is abnormal, trigger the sterilization signal in time, reduce the risk of water pollution, flexibly adjust the target sterilization parameters according to historical data and real-time water quality status, ensure the effectiveness of the sterilization operation, and avoid unnecessary over-sterilization, significantly improve the efficiency, safety and economy of the water quality management system, provide a modern solution for the water treatment industry, and also bring greater convenience and trust to users.
[0136] Figure 7 FIG. 1 shows an internal structure diagram of a water supply device in an embodiment. The computer device may be a terminal or a server. Figure 7 As shown, the water supply device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the water supply device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the sterilization method of the water supply device. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the sterilization method of the water supply device. Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the water supply device to which the scheme of the present application is applied. The specific water supply device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0137] In one embodiment, a water supply device is provided, the water supply device comprising a memory and a processor, the memory storing a computer program, and when the computer program is executed by the processor, the processor performs the following steps:
[0138] Obtain water quality parameters in real time at preset intervals;
[0139] Determine whether the sterilization signal is triggered;
[0140] When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0141] Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information;
[0142] The object to be sterilized is sterilized based on the target sterilization parameters.
[0143] By acquiring water quality parameters in real time, the system can quickly determine whether the water quality is abnormal, trigger the sterilization signal in time, reduce the risk of water pollution, and flexibly adjust the target sterilization parameters according to historical data and real-time water quality status to ensure the effectiveness of the sterilization operation while avoiding unnecessary over-sterilization. It significantly improves the efficiency, safety and economy of the water quality management system, provides modern solutions for the water treatment industry, and also brings greater convenience and trust to users.
[0144] In one embodiment, a computer-readable storage medium is provided, storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:
[0145] Obtain water quality parameters in real time at preset intervals;
[0146] Determine whether the sterilization signal is triggered;
[0147] When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time;
[0148] Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information;
[0149] The object to be sterilized is sterilized based on the target sterilization parameters.
[0150] By acquiring water quality parameters in real time, the system can quickly determine whether the water quality is abnormal, trigger the sterilization signal in time, reduce the risk of water pollution, and flexibly adjust the target sterilization parameters according to historical data and real-time water quality status to ensure the effectiveness of the sterilization operation while avoiding unnecessary over-sterilization. It significantly improves the efficiency, safety and economy of the water quality management system, provides modern solutions for the water treatment industry, and also brings greater convenience and trust to users.
[0151] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0153] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for sterilizing a water supply device, characterized in that: The method comprises: Obtain water quality parameters in real time at preset intervals; Determine whether the sterilization signal is triggered; When the sterilization signal is triggered, the current state information of the object to be sterilized in the water supply device is obtained; wherein the current state information includes water quality parameters of the object to be sterilized at a preset number of time points before the current time; Based on the correspondence between the preset state information and the sterilization parameters, set the target sterilization parameters corresponding to the current state information; The object to be sterilized is sterilized based on the target sterilization parameters.
2. The sterilization method of a water supply device according to claim 1, characterized in that: Before the step of setting the target sterilization parameter corresponding to the current state information based on the preset correspondence between the state information and the sterilization parameter, the method further includes: Get multiple historical status information; Calculate the water quality vector X of each historical state information i ={(Q t,t-1 ), (Q t,t-2 ),...,(Q t,z )..., (Q t,2 ), (Q t,1 )}, where t represents the tth time point, X i The water quality vector representing the i-th historical state information, (Q t,z ) represents the rate of change of water quality parameters between the t-th time point and the z-th time point, t, z, i are positive integers, and t>z, i≤n; Performing standardization processing on each of the water quality vectors according to a preset method to obtain a standard data set; The standard data set and the sterilization parameters corresponding to the standard data set are input into a preset model, and the preset model is trained according to the optimal hyperparameter method to obtain a target model to achieve a corresponding relationship between the construction state information and the sterilization parameters.
3. The sterilization method of a water supply device according to claim 2, characterized in that: The step of inputting the standard data set and the sterilization parameters corresponding to the standard data set into a preset model, training the preset model according to the optimal hyperparameter method, and obtaining a target model to realize the step of constructing a corresponding relationship between state information and sterilization parameters includes: Get initial models with multiple different hyperparameter combinations; Dividing the standard data set into a training set and a validation set according to a preset ratio; Inputting the training set and the corresponding sterilization parameters into each of the initial models for training to obtain a corresponding plurality of temporary models; Verifying each of the temporary models using the verification set to obtain verification results of each of the temporary models; Based on the verification result, the temporary model with the best verification result is selected as the preset model.
4. The sterilization method of a water supply device according to claim 2, characterized in that: The step of standardizing each of the water quality vectors according to a preset method to obtain a standard data set includes: Extracting the maximum and minimum points in each of the water quality vectors, and arranging them in chronological order to obtain an extreme value sequence; The extreme value sequence is fitted using a cubic spline interpolation function to obtain the upper envelope X max (t) and the lower envelope X min (t); The average of the upper envelope and the lower envelope is recorded as the envelope mean m(t); where, Subtract the envelope mean from the water quality vector to obtain a target sequence; Determining whether the target sequence passes an intrinsic mode function test; If the test is passed, the target sequence is recorded as the target function; otherwise, the target sequence is recorded as the first water quality vector and the target sequence is recalculated until the target function is obtained; Subtracting the first water quality vector from the water quality vector to obtain a second water quality vector, and repeatedly obtaining multiple objective functions until the calculated envelope is symmetrical and the mean of the envelope is 0, thereby obtaining multiple objective functions; The objective functions of each water quality vector are aggregated to obtain the standard data corresponding to each water quality vector, and then a standard data set composed of the various standard data is obtained.
5. The sterilization method of a water supply device according to claim 1, characterized in that: After the step of sterilizing the object to be sterilized based on the target sterilization parameters, the method further includes: Detect target water quality parameters after sterilization; Determining whether the water quality parameters meet preset standards; If the preset standard is not reached, the object to be sterilized is subjected to secondary sterilization based on the target water quality parameter.
6. The sterilization method of a water supply device according to claim 1, characterized in that: After the step of obtaining water quality parameters in real time according to the preset interval time, the method further includes: Determining whether at least one of the water quality parameters exceeds a preset parameter value; If at least one of the preset parameter values is exceeded, water in the object to be sterilized is extracted and discharged through a preset water pump.
7. The sterilization method of a water supply device according to claim 1, characterized in that: Before the step of sterilizing the object to be sterilized based on the target sterilization parameters, the method further includes: Determine whether the current water quality parameters meet the drinking standards; If the current water quality parameters meet the drinking standards, the user's historical sterilization time period is obtained; The current time is obtained, and the sterilization time is selected according to the user's historical sterilization time period and the current time.
8. A sterilizing device for a water supply device, characterized in that: The device comprises: A first acquisition module, used to acquire water quality parameters in real time according to a preset interval; A judgment module, used to judge whether the sterilization signal is triggered; The second acquisition module is used to acquire the current state information of the object to be sterilized in the water supply device when the sterilization signal is triggered; wherein the current state information includes the water quality parameters of the object to be sterilized at a preset number of time points before the current time; A setting module, used for setting the target sterilization parameter corresponding to the current state information based on the correspondence between the preset state information and the sterilization parameter; A sterilization module is used to sterilize the object to be sterilized based on the target sterilization parameters.
9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor executes the steps of the sterilization method of the water supply device according to any one of claims 1 to 7.
10. A water supply device, characterized in that: The water supply device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the sterilization method for the water supply device according to any one of claims 1 to 7.