Method and device for measuring and calculating water inlet hardness of wading equipment, wading equipment and storage medium
By acquiring historical data from the same water source equipment, and using time series models and ion-selective electrode methods, the hardness of the incoming water in the water-related equipment can be accurately calculated in real time. This solves the problem of difficulty in calculating the hardness of incoming water in existing technologies, ensuring stable equipment operation and improving efficiency.
Patent Information
- Application Number
- CN202510847764.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-10-24
AI Technical Summary
Existing technologies make it difficult to accurately measure the hardness of incoming water in water-related equipment in real time, which affects the normal operation and efficiency of the equipment.
By obtaining historical data of the influent homologous equipment, using time series model and ion selective electrode method, the total dissolved solids value and hardness of the influent of the water-related equipment can be determined in real time.
It enables real-time and accurate calculation of the hardness of water entering water-related equipment, ensuring stable equipment operation and improving efficiency.
Smart Images

Figure CN120832760A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer technology, and in particular to a water-approaching equipment water hardness measurement method and device, a water-approaching equipment, and a storage medium. BACKGROUND
[0002] The water-approaching equipment refers to all equipment that contacts water and relies on the flow, heat transfer, mass transfer, and other characteristics of water to realize specific functions, including water treatment equipment such as water softeners. The water hardness of the water inlet of the water-approaching equipment directly affects the normal operation of the water-approaching equipment. For example, the water hardness of the water inlet will affect the softening efficiency, salt consumption, resin life, water quality, equipment load, and regeneration effect of the water softener. The water hardness of the water inlet can be measured and controlled based on the water hardness of the water inlet to ensure the stable operation of the water-approaching equipment. Therefore, a scheme for measuring the water hardness of the water inlet of the water-approaching equipment online is needed. SUMMARY
[0003] The embodiments of the present application provide a water-approaching equipment water hardness measurement method and device, a water-approaching equipment, and a storage medium, which can conveniently measure the real-time water hardness of the water-approaching equipment.
[0004] In a first aspect, the embodiments of the present application provide a water-approaching equipment water hardness measurement method, which includes the following steps.
[0005] Obtaining historical data of total dissolved solids of water inlet reported by a water inlet homologous equipment to obtain historical data of homologous water dissolved solids of a target water-approaching equipment, wherein the water inlet homologous equipment is another water-approaching equipment with the same water source as the water inlet of the target water-approaching equipment;
[0006] Determining a current total dissolved solids value of the water inlet of the target water-approaching equipment based on the historical data of homologous water dissolved solids through a time series model; and
[0007] Determining the current water hardness of the water inlet of the target water-approaching equipment based on the current total dissolved solids value of the water inlet.
[0008] In a second aspect, the embodiments of the present application provide a water-approaching equipment water hardness measurement device, which includes the following steps.
[0009] A homologous water historical data acquisition module is configured to obtain historical data of total dissolved solids of water inlet reported by a water inlet homologous equipment to obtain historical data of homologous water dissolved solids of a target water-approaching equipment, wherein the water inlet homologous equipment is another water-approaching equipment with the same water source as the water inlet of the target water-approaching equipment;
[0010] A current total dissolved solids value acquisition module is configured to determine a current total dissolved solids value of the water inlet of the target water-approaching equipment based on the historical data of homologous water dissolved solids through a time series model; and
[0011] A current incoming water hardness obtaining module is configured to determine the current incoming water hardness of the target water-related device based on the current incoming water total dissolved solid value.
[0012] In a third aspect, the embodiments of the present application further provide a water-related device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the water-related device incoming water hardness calculation method according to any of the embodiments of the present application when executing the program.
[0013] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the program is executable on a processor to implement the water-related device incoming water hardness calculation method according to any of the embodiments of the present application.
[0014] The water-related device incoming water hardness calculation method, device, water-related device, and storage medium provided by the embodiments of the present application can obtain the historical data of the incoming water total dissolved solid reported by the homologous water-related device as the historical data of the homologous water total dissolved solid of the target water-related device, and determine the current incoming water total dissolved solid value of the target water-related device based on the corresponding historical data through the total dissolved solid prediction model, so that the current incoming water total dissolved solid value of the target water-related device can be conveniently and timely obtained. The embodiments of the present application further determine the current incoming water hardness of the target water-related device based on the current incoming water total dissolved solid value of the target water-related device, and determine the incoming water hardness based on the relationship between the total dissolved solid and the incoming water hardness, so that the incoming water hardness of the water-related device can be conveniently and timely calculated. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.
[0016] Figure 1 is a flowchart of the water-related device incoming water hardness calculation method provided by the embodiments of the present application;
[0017] Figure 2 is another flowchart of the water-related device incoming water hardness calculation method provided by the embodiments of the present application;
[0018] Figure 3 is another flowchart of the water-related device incoming water hardness calculation method provided by the embodiments of the present application;
[0019] Figure 4 is another flowchart of the water-related device incoming water hardness calculation method provided by the embodiments of the present application;
[0020] Figure 5 is a structural schematic diagram of a water hardness measuring device for a water-related device provided by an embodiment of the present application.
[0021] Figure 6 is a structural schematic diagram of a water-related device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable persons skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by persons skilled in the art without creative work should fall within the protection scope of the present application.
[0023] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0024] Figure 1 is a flowchart of a water hardness measuring method for a water-related device provided by an embodiment of the present application. The embodiment of the present application is applicable to a water-related device which is not configured with a total dissolved solids probe and a hardness detection instrument. The method can be executed by a water hardness measuring device for a water-related device provided by an embodiment of the present application. The device can be realized in the form of software and / or hardware. In a specific embodiment, the device can be integrated in the water-related device. The following embodiments will be described by taking the device integrated in the water-related device as an example. Referring to Figure 1 , the method can specifically include the following steps:
[0025] At step 101, the history data of the total dissolved solids of the incoming water reported by the homogenous water equipment is obtained to obtain the history data of the total dissolved solids of the homogenous water of the target water-related equipment. The homogenous water equipment is other water-related equipment with the same water source as the target water-related equipment. This step can obtain the current total dissolved solids value of the incoming water of the target water-related equipment in real time, and facilitate determining the current total dissolved solids value of the target water-related equipment based on the history data of the total dissolved solids of the homogenous water.
[0026] It can be understood that due to environmental factors such as space, temperature and pressure, or based on cost and cost performance considerations, part of the water-related equipment cannot be installed with a TDS (total dissolved solids) probe. In order to obtain the current total dissolved solids value of the incoming water of the target water-related equipment in real time, the history data of the total dissolved solids of the incoming water reported by the homogenous equipment is obtained, which can facilitate real-time determination of the water hardness of the water-related equipment through the total dissolved solids prediction model.
[0027] Specifically, the water-related equipment can be a household water-related equipment such as a washing machine, a water purifier or a water softener, or an industrial water-related equipment.
[0028] Specifically, the homogenous water equipment can include water-related equipment located in the same geographical area as the target water-related equipment, for example, water-related equipment located in the same cell, the same street or the same county as the target water-related equipment.
[0029] Specifically, the homogenous water equipment can also include other water-related equipment of the same company as the water supply company of the target water-related equipment. The water supply company can be understood as a water company or a water service company.
[0030] Specifically, a total dissolved solids database can be established in advance to store the history data of the total dissolved solids of the incoming water reported by the water-related equipment including the homogenous water equipment.
[0031] Specifically, the water-related equipment can be instructed to report the total dissolved solids value of the incoming water in real time after obtaining user authorization.
[0032] At step 102, the current total dissolved solids value of the incoming water of the target water-related equipment is determined based on the history data of the total dissolved solids of the homogenous water through a time series model. This step can conveniently determine the total dissolved solids value of the target water-related equipment in real time, and facilitate determining the current water hardness of the target water-related equipment based on the current total dissolved solids value of the incoming water of the target water-related equipment.
[0033] Specifically, the time series model can be a model common to water-related equipment in the same area or multiple homogenous water equipment, or a model dedicated to the target water-related equipment.
[0034] Specifically, the time series model can be a time series model with optimal model parameters after training, or a time series model with original model parameters without training.
[0035] Specifically, the model parameters of the original time series model can be optimized based on the time series corresponding to the historical data of the homologous water-soluble solid before step 102.
[0036] Specifically, the time series model can be an additive time series model, and the corresponding model expression can be:
[0037] y(t) = g(t) + s(t) + ∈ t
[0038] where y(t) represents the time series value at time t;
[0039] g(t) represents a trend item, representing the change trend of the time series on the non-periodic;
[0040] s(t) represents a periodic item, or a seasonal item;
[0041] ∈ t represents an error item or a residual item.
[0042] Specifically, the time series can also be a machine learning and deep learning model, for example, it can be a recurrent neural network model, a convolutional neural network, or a gradient boosting tree model.
[0043] Optionally, the process of determining the current total dissolved solid value of the target water-related equipment based on the historical data of the homologous water-soluble solid through the time series model includes:
[0044] predicting the current total dissolved solid value of the target water-related equipment based on the historical data of the homologous water-soluble solid through the time series model to obtain a model prediction result; determining a prediction result correction coefficient based on the weather information in the latest third time period in the region where the target water-related equipment is located; and determining the current total dissolved solid value of the target water-related equipment based on the prediction result correction coefficient and the model prediction result.
[0045] It can be understood that when the water source of the target water-related equipment is surface water, the total dissolved solid of the incoming water is greatly affected by the weather, for example, it may be reduced due to dilution in the rainy season, and it may be increased due to evaporation and concentration in the dry season.
[0046] Specifically, the prediction result correction coefficient can also be determined based on other information that affects the total dissolved solid of the water source of the target water-related equipment, for example, it can be based on user pipe material information, pipe usage time information, etc.
[0047] Optionally, the process of determining the current total dissolved solids value of the water inlet of the target water-related equipment based on the time series model and the historical data of the total dissolved solids of the water of the same source comprises: determining the current total dissolved solids value of the water inlet of the target water-related equipment based on the time series model and the historical data of the total dissolved solids of the water of the same source in a preset prediction period, for example, the total dissolved solids value of the water inlet of the target water-related equipment can be predicted every day.
[0048] In step 103, the current water hardness of the target water-related equipment is determined based on the current total dissolved solids value. Based on the historical data of the total dissolved solids of the water inlet reported by the water-related equipment of the same source as the historical data of the total dissolved solids of the water of the target water-related equipment, and based on the corresponding historical data, the current total dissolved solids value of the water inlet of the target water-related equipment is determined by the total dissolved solids prediction model, which can conveniently and timely obtain the current total dissolved solids value of the water inlet of the target water-related equipment. The current water hardness of the target water-related equipment is further determined based on the current total dissolved solids value of the water inlet of the target water-related equipment, and the water hardness is determined based on the relationship between the total dissolved solids of the water inlet and the water hardness, which can conveniently and timely calculate the water hardness of the water-related equipment.
[0049] It can be understood that the total dissolved solids of water contain various dissolved solids in water, including compounds of calcium and magnesium ions, etc., and the hardness of water is mainly composed of calcium and magnesium ions. In a large amount of water scene, such as daily drinking water scene, the hardness of water is positively correlated with the total dissolved solids of water. Therefore, based on the relationship between the total dissolved solids of the water inlet of the water-related equipment and the water hardness, the water hardness of the water-related equipment can be conveniently calculated.
[0050] Optionally, the process of determining the current water hardness of the target water-related equipment based on the current total dissolved solids value comprises: calculating the current water hardness of the target water-related equipment based on the current total dissolved solids value and the current sodium ion content of the water inlet of the target water-related equipment.
[0051] Specifically, the process of calculating the current water hardness of the target water-related equipment based on the current total dissolved solids value and the current sodium ion content of the water inlet of the target water-related equipment can be based on the following formula:
[0052]
[0053] wherein H i represents the current water hardness of the target water-related equipment, TDS i represents the current total dissolved solids value of the water inlet of the target water-related equipment, A, B and C are constants, wherein the value range of A is [0-5], the value range of B is [0, 5], and the value range of C is [10, 30]
[0054] Specifically, the current water sodium ion content of the target water-related equipment can be detected in real time on line, or can be set after offline detection based on a preset detection period. For example, the water hardness of the target water-related equipment can be sampled and detected at a fixed time every day, and the current water hardness of the target water-related equipment from the same time on the current day to the next day can be set as the corresponding detection result.
[0055] Specifically, the process of detecting the current water sodium ion content of the target water-related equipment offline may, for example, be based on flame photometry or atomic absorption spectrometry.
[0056] Specifically, the current water hardness of the target water-related equipment can also be determined based on the total dissolved solids value of the water and a pre-established mapping relationship between the total dissolved solids value of the water and the water hardness.
[0057] Specifically, the mapping relationship between the total dissolved solids value of the water and the water hardness can be stored using a total dissolved solids and hardness mapping table.
[0058] Specifically, the mapping relationship between the total dissolved solids value of the water and the water hardness can also be represented using a corresponding mapping function.
[0059] The water hardness measurement method for a water-related equipment provided by the embodiment of the application will be further described below. As shown in FIG. 1, the method can include the following steps: Figure 2
[0060] Step 201: Establishing a regional water-related equipment database including location information of regional water-related equipment, the regional water-related equipment including water intake homologous equipment.
[0061] Specifically, the regional water-related equipment can be understood as each water-related equipment authorized in a geographical location region or an administrative region, for example, water-related equipment in a province, a city, or a county.
[0062] Optionally, the regional water-related equipment database includes the equipment identifier of each water-related equipment, the regional hierarchy to which the water-related equipment belongs, and historical data of the total dissolved solids of the water.
[0063] Specifically, the regional hierarchy to which the water-related equipment belongs may, for example, be X province X city X district X street X community.
[0064] Optionally, the process of establishing the regional water-related equipment database including the location information of the regional water-related equipment includes: obtaining original location data of the regional water-related equipment reported by a user end; encrypting the original location data to obtain encrypted location data; and storing the encrypted location data in the regional water-related equipment database.
[0065] It can be understood that the position data of the wading device is designed for user privacy, and the privacy information of the user can be protected by encrypting the unknown data, and the query authority of unauthorized users is limited.
[0066] In step 202, the position information of the target wading device is obtained, and the target position range is determined based on the position information of the target wading device.
[0067] Optionally, the process of obtaining the position information of the target wading device and determining the target position range based on the position information of the target wading device includes: obtaining the street where the target wading device is located, and determining the corresponding street as the target position range.
[0068] In step 203, the water-inlet homologous device is determined based on the target position range through the regional wading device database.
[0069] Optionally, the process of determining the water-inlet homologous device based on the target position range through the regional wading device database includes:
[0070] The other wading devices located in the target position range are queried and obtained from the regional wading device database, and these wading devices are determined as the water-inlet homologous device.
[0071] In step 204, the homologous water dissolved solid historical data of the target wading device is obtained by obtaining the water-inlet total dissolved solid historical data reported by the water-inlet homologous device, and the water-inlet homologous device is other wading device with the same water source as the water-inlet of the target wading device.
[0072] Specifically, the water-inlet total dissolved solid historical data reported by the water-inlet homologous device can be stored in the aforementioned regional wading device database in advance, and the process of obtaining the homologous water dissolved solid historical data of the target wading device by obtaining the water-inlet total dissolved solid historical data reported by the water-inlet homologous device can include: querying the regional wading device database to obtain the total dissolved solid historical data of the water-inlet homologous device to obtain the homologous water dissolved solid historical data of the target wading device.
[0073] In step 205, the current water-inlet total dissolved solid value of the target wading device is determined based on the homologous water dissolved solid historical data through the time series model.
[0074] In step 206, the current water-inlet hardness of the target wading device is determined based on the current water-inlet total dissolved solid value.
[0075] Optionally, the regional wading device database further includes the water supply company information of the regional wading device.
[0076] Optionally, before step 201, the water hardness measuring method for the water-involved equipment provided by the embodiment of the present application further comprises: obtaining the water supply company information of the target water-involved equipment; querying the water-involved equipment database to obtain the candidate water-involved equipment located within the target location range; and obtaining the candidate water-involved equipment with the same water supply company information as the target water-involved equipment to obtain the water-inlet homologous equipment.
[0077] The embodiment of the present application can accurately determine the water-inlet homologous equipment of the target water-involved equipment, and further accurately determine the homologous water dissolved solid historical data of the target water-involved equipment, so as to accurately determine the current water hardness of the target water-involved equipment based on the corresponding homologous water dissolved solid historical data.
[0078] The water hardness measuring method for the water-involved equipment provided by the embodiment of the present application is further introduced below.
[0079] Optionally, when the time series model is a model dedicated to the target water-involved equipment, the homologous water total dissolved solid historical data comprises a first historical data set and a second historical data set, the first historical data comprises the homologous water total dissolved solid historical data of a continuous first time length, and the second historical data set comprises the homologous water total dissolved solid historical data of a recent second time length.
[0080] Specifically, the first historical data set may, for example, comprise the homologous water total dissolved solid historical data of a continuous 1 year or 2 years.
[0081] Specifically, the second historical data may, for example, comprise the homologous water total dissolved solid historical data of the previous 1 year or 2 years.
[0082] Optionally, as shown in FIG. 1, step 102 in the method for measuring the water hardness of the water-involved equipment may comprise the following steps. Figure 3 Figure 1 Step 1021, training the time series model based on the first historical data set to obtain a total dissolved solid prediction model.
[0083] Step 1021, training the time series model based on the first historical data set to obtain a total dissolved solid prediction model.
[0084] Optionally, the process of training the time series model based on the first historical data set to obtain the total dissolved solid prediction model comprises:
[0085] Obtaining a first time series composed of the historical data in the first historical data set.
[0086] Sliding the sliding time window on the first time series to obtain a plurality of sample time series.
[0087] For each sample time series, inputting the current sample time series into the time series model, and obtaining the prediction result of the homologous water total dissolved solid in the next time window of the current sample time series corresponding time window through the time series model.
[0088] The function value of the training loss function of the time series model is determined based on the prediction result and the corresponding real value of the total dissolved solids of the homologous water, and the parameters of the time series model are adjusted according to the function value of the training loss function to obtain the total dissolved solids prediction model.
[0089] Specifically, the length of the sliding time window is the second length.
[0090] Optionally, the process of inputting the current sample time series into the time series model to obtain the prediction result of the total dissolved solids of the homologous water in the next time window of the time window corresponding to the current sample time series through the time series model includes: obtaining the first total dissolved solids value of the next time window based on the current sample time series through the time series model.
[0091] Specifically, each total dissolved solids value of the next time window can also be obtained based on the current sample time series.
[0092] Optionally, the process of training the time series model based on the first historical data set to obtain the total dissolved solids prediction model can further include: obtaining a first time series composed of data obtained by performing common processing, such as normalization processing, on the historical data in the first historical data set; and then obtaining the plurality of sample time series by sliding the sliding time window on the first time series.
[0093] Step 1022, determining the current water inlet total dissolved solids value based on the second historical data set through the total dissolved solids prediction model.
[0094] Optionally, the process of determining the current water inlet total dissolved solids value based on the second historical data set through the total dissolved solids prediction model includes: obtaining a to-be-predicted sequence including each historical data in the second historical data set; inputting the to-be-predicted sequence into the total dissolved solids prediction model to predict and output the current water inlet total dissolved solids value through the total dissolved solids prediction model.
[0095] Specifically, the second data set can also be processed, such as normalization processing, to obtain the to-be-predicted sequence.
[0096] The embodiment of the application can establish a total dissolved solids prediction model with higher prediction accuracy for the target water-related equipment, thereby improving the prediction accuracy of the water inlet total dissolved solids of the target water-related equipment.
[0097] The water-related equipment water inlet hardness calculation method provided by the embodiment of the application will be further introduced below, as shown in the following formula (1): Figure 4 As shown in the formula (1), the method can include the following steps:
[0098] At step 401, the historical data of total dissolved solids of incoming water reported by the water intake homologous device is obtained to obtain the homologous water dissolved solid historical data of the target water-related device. The water intake homologous device is another water-related device with the same water source as the target water-related device.
[0099] At step 402, the current total dissolved solids value of the incoming water of the target water-related device is determined based on the homologous water dissolved solid historical data through a time series model.
[0100] At step 403, the sodium ion content of the current incoming water of the target water-related device is obtained based on the ion selective electrode method.
[0101] Specifically, the sodium ion content of the incoming water of the water-related device can be detected in real time through a flow-through electrode probe (such as an insertion type with a diameter of 10-20 mm) directly installed in the water intake pipeline of the water-related device.
[0102] At step 404, the current water hardness of the target water-related device is calculated based on the current total dissolved solids value and the sodium ion content of the current incoming water of the target water-related device.
[0103] It can be understood that the ion selective electrode method determines the concentration through the selective response (based on the Nernst equation) of the electrode membrane to Na + , which is suitable for low to medium salinity water bodies. The embodiment of the present application detects the sodium ion content of the current incoming water based on the ion selective electrode method, which can accurately determine the sodium ion content of the current incoming water of the target water-related device, so as to improve the accuracy of the current water hardness of the target water-related device measured based on the sodium ion content.
[0104] Figure 5 is a structural diagram of a water-related device water intake hardness calculation device provided by the embodiment of the present application, which is suitable for executing the water-related device water intake hardness calculation method provided by the embodiment of the present application. As shown in Figure 5 , the device can specifically include:
[0105] The homologous water historical data acquisition module 501 is configured to acquire the historical data of total dissolved solids of incoming water reported by the water intake homologous device to obtain the homologous water dissolved solid historical data of the target water-related device. The water intake homologous device is another water-related device with the same water source as the target water-related device. This module can acquire the current total dissolved solids value of the incoming water of the target water-related device in real time, and facilitate the determination of the current total dissolved solids value of the target water-related device based on the homologous water dissolved solid historical data.
[0106] Optionally, the historical data of total dissolved solids of homologous water includes a first historical data set and a second historical data set. The first historical data includes the historical data of total dissolved solids of homologous water for a continuous first time length. The second historical data set includes the historical data of total dissolved solids of homologous water for a recent second time length.
[0107] The current water total dissolved solid value obtaining module 502 is configured to determine the current water total dissolved solid value of the target water-related device based on the homologous water dissolved solid historical data by using a time series model. This module can determine the total dissolved solid value of the target water-related device in real time, and facilitate determination of the current water hardness of the target water-related device based on the current water total dissolved solid value of the target water-related device.
[0108] Optionally, the current water total dissolved solid value obtaining module 502 can be specifically configured to train the time series model based on the first historical data set to obtain a total dissolved solid prediction model, and determine the current water total dissolved solid value based on the second historical data set by using the total dissolved solid prediction model.
[0109] Optionally, the current water total dissolved solid value obtaining module 502 can be specifically configured to obtain a first time series composed of the historical data in the first historical data set, slide a sliding time window on the first time series to obtain a plurality of sample time series, for each sample time series, input the current sample time series into the time series model, and obtain the prediction result of the homologous water total dissolved solid in the next time window of the current sample time series by using the time series model, and determine the function value of the training loss function of the time series model based on the prediction result and the real value of the corresponding homologous water total dissolved solid, and adjust the parameters of the time series model according to the function value of the training loss function to obtain the total dissolved solid prediction model.
[0110] The current water hardness obtaining module 503 is configured to determine the current water hardness of the target water-related device based on the current water total dissolved solid value. This module combines the modules 501 and 502, obtains the historical data of the water total dissolved solid reported by the homologous water-related device as the historical data of the homologous water total dissolved solid of the target water-related device, and determines the current water total dissolved solid value of the target water-related device based on the corresponding historical data by using the total dissolved solid prediction model, so as to obtain the current water total dissolved solid value of the target water-related device in real time. The embodiment of the present application further determines the current water hardness of the target water-related device based on the current water total dissolved solid value of the target water-related device, determines the water hardness based on the relationship between the water total dissolved solid and the water hardness, and can conveniently calculate the water hardness of the water-related device in real time.
[0111] Optionally, the current water hardness obtaining module 503 can be specifically configured to calculate the current water hardness of the target water-related device based on the current water total dissolved solid value and the current water sodium ion content of the target water-related device.
[0112] Optionally, the water hardness measuring device for a water-related device provided by the embodiment of the present application further comprises a current water sodium ion content obtaining module, which is configured to, before calculating the current water hardness of the target water-related device based on the current total dissolved solid value of the water and the current water sodium ion content of the target water-related device, detect the sodium ion content of the current water of the target water-related device based on the ion selective electrode method to obtain the current water sodium ion content.
[0113] Optionally, the water hardness measuring device for a water-related device provided by the embodiment of the present application further comprises a water source device determining module, which is configured to, before obtaining the homologous water dissolved solid historical data by obtaining the historical data of the water total dissolved solid reported by the water source device, establish a regional water-related device database comprising the location information of the regional water-related device, the regional water-related device comprising the water source device; obtain the location information of the target water-related device and determine the target location range based on the location information of the target water-related device; and determine the water source device based on the target location range through the regional water-related device database.
[0114] Optionally, the regional water-related device database further comprises the water supply company information of the regional water-related device.
[0115] Optionally, the water source device determining module is further configured to, before determining the water source device based on the target location range through the regional water-related device database, obtain the water supply company information of the target water-related device; obtain the candidate water-related device by querying the water-related device database to obtain the water-related device located in the target location range; and obtain the water source device by obtaining the candidate water-related device with the same water supply company information as the target water-related device.
[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the above described functional modules can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0117] The embodiment of the present application further provides a water-related device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the water hardness measuring method for a water-related device provided by any of the foregoing embodiments when executing the program.
[0118] The embodiment of the present application further provides a computer readable medium having a computer program stored thereon, wherein the program is executed by a processor to implement the water hardness measuring method for a water-related device provided by any of the foregoing embodiments.
[0119] An embodiment of the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method for measuring the hardness of water entering a water-related equipment as described in any one of the embodiments of the present invention.
[0120] Reference below Figure 6 , which shows a structural diagram of a computer system 600 suitable for implementing a water-related device according to an embodiment of the present invention. Figure 6 The water-wading device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present invention.
[0121] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage unit 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the system 600 are also stored in the RAM 603. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0122] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.
[0123] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are performed.
[0124] It should be noted that the computer-readable medium shown in the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or component. In the present application, the computer-readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or component. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0125] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different order than that shown in the drawings. For example, two blocks that are shown in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0126] The modules and / or units described in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided within a processor. For example, a processor may include a module for acquiring historical water data from a source, a module for acquiring the total dissolved solids value of current influent water, and a module for acquiring the current influent water hardness. The names of these modules do not, in some cases, limit the modules themselves.
[0127] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the device, the device implements the following: obtaining historical data of total dissolved solids in influent water reported by a device with the same influent water source to obtain historical data of dissolved solids in influent water from the same source as the target device, where the device with the same influent water source is another device with the same influent water source as the target device; determining the current total dissolved solids value of influent water of the target device using a time series model based on the historical data of dissolved solids in influent water from the same source; and determining the current influent water hardness of the target device based on the current total dissolved solids value of influent water.
[0128] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.
Claims
1. A method of estimating water hardness of a wading device, characterized by, The method comprises: obtaining target water-related equipment homologous water dissolved solid historical data by obtaining water intake total dissolved solid historical data reported by water intake homologous equipment, the water intake homologous equipment being other water-related equipment with the same water source as water intake of the target water-related equipment; determining the current water intake total dissolved solid value of the target water-related equipment based on the homologous water dissolved solid historical data through a time series model; and determining the current water intake hardness of the target water-related equipment based on the current water intake total dissolved solid value.
2. The method of claim 1, wherein, Before the step of obtaining target water-related equipment homologous water dissolved solid historical data by obtaining water intake total dissolved solid historical data reported by water intake homologous equipment, the method further comprises: establishing a regional water-related equipment database comprising location information of regional water-related equipment, the regional water-related equipment comprising the water intake homologous equipment; obtaining location information of the target water-related equipment and determining a target location range based on the location information of the target water-related equipment; and determining the water intake homologous equipment based on the target location range through the regional water-related equipment database.
3. The water-related equipment water intake hardness calculation method according to claim 2, wherein the regional water-related equipment database further comprises water supply company information of the regional water-related equipment; before the step of determining the water intake homologous equipment based on the target location range through the regional water-related equipment database, the method further comprises: obtaining water supply company information of the target water-related equipment; obtaining candidate water-related equipment by querying water-related equipment located within the target location range from the water-related equipment database; and obtaining the water intake homologous equipment by obtaining candidate water-related equipment with the same water supply company information as the target water-related equipment.
4. The water-related equipment water intake hardness calculation method according to claim 1, wherein the homologous water total dissolved solid historical data comprises a first historical data set and a second historical data set, the first historical data set comprising homologous water total dissolved solid historical data for a continuous first time length, and the second historical data set comprising homologous water total dissolved solid historical data for a recent second time length; the step of determining the current water intake total dissolved solid value of the target water-related equipment based on the homologous water dissolved solid historical data through a time series model comprises: training a time series model based on the first historical data set to obtain a total dissolved solid prediction model; and determining the current water intake total dissolved solid value based on the second historical data set through the total dissolved solid prediction model. The step of training a time series model based on the first historical data set to obtain a total dissolved solid prediction model comprises:
5. The method of claim 4, wherein, obtaining a first time series composed of historical data in the first historical data set; sliding a sliding time window on the first time series to obtain a plurality of sample time series; for each sample time series, inputting the current sample time series into the time series model to obtain a prediction result of homologous water total dissolved solid in the next time window of the time window corresponding to the current sample time series through the time series model; and Determine a function value of a training loss function of the time series model based on the prediction result and a corresponding real value of the total dissolved solids of the homologous water, and adjust parameters of the time series model according to the function value of the training loss function to obtain the total dissolved solids prediction model.
6. The method of claim 1, wherein, The method further comprises: Determine the current water hardness of the target water-related device based on the current water total dissolved solids value.
7. The method of claim 1, wherein, Determine the current water hardness of the target water-related device based on the current water total dissolved solids value and the current sodium ion content of the water of the target water-related device. The method further comprises:
8. A wading device water entry hardness estimation device, characterized by, Detect the sodium ion content of the current water of the target water-related device based on the ion selective electrode method to obtain the current sodium ion content. The method comprises: A homologous water historical data acquisition module is configured to acquire historical data of total dissolved solids of water of a homologous water intake device to obtain historical data of total dissolved solids of water of the target water-related device, wherein the homologous water intake device is another water-related device that takes water from the same water source as the target water-related device. A current water total dissolved solids value acquisition module is configured to determine the current water total dissolved solids value of the target water-related device based on the historical data of total dissolved solids of water of the homologous water intake device by using a time series model. A current water hardness acquisition module is configured to determine the current water hardness of the target water-related device based on the current water total dissolved solids value.
9. A wading apparatus characterized by, The method comprises: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the water-related device water intake hardness calculation method according to any one of claims 1 to 7 when executing the program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the water-related device water intake hardness calculation method according to any one of claims 1 to 7.
