A safe water supply control method and system based on Internet of Things (IoT) for smart water management

By using IoT smart water technology in water supply equipment, we can obtain and analyze water supply flow data, calculate target parameter values ​​and adjust PID parameter values, and solve the problem of inaccurate water supply flow control in the existing technology, and achieve more accurate and stable water supply control.

CN118481194BActive Publication Date: 2025-04-22HUBEI YUANBO FLUID TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410700885.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2025-04-22
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

The prior art is difficult to achieve more accurate control of water supply flow, especially when the water supply conditions of water supply equipment change, a single control process is difficult to adapt.

Method used

The safe water supply control method based on the Internet of Things smart water affairs is adopted. By obtaining multiple water supply flows of the water supply equipment in the target time period, the target parameter values ​​are calculated to characterize the stability of these flows, and the preset PID parameter values ​​are adjusted according to these parameter values ​​to obtain more accurate water supply control.

Benefits of technology

It realizes more accurate control of the water supply flow rate, avoids the rapid decrease in the operating frequency of the water supply equipment in a short period of time, thereby improving the service life of the water supply equipment and ensuring the stability of the water supply equipment to the outside water supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118481194B_ABST
    Figure CN118481194B_ABST
Patent Text Reader

Abstract

The present application relates to the field of data processing technology, and in particular to a safe water supply control method and system based on the Internet of Things smart water services. The method includes: when the water supply equipment supplies water in a specified water supply mode, obtaining multiple water supply flow rates of the water supply equipment within a target time period; obtaining a target parameter value based on the multiple water supply flow rates, the target parameter value is used to characterize the stability of multiple water supply flow rates within the target time period; adjusting the preset PID parameter value according to the target parameter value to obtain the target PID parameter value corresponding to the target moment; the target moment is the moment after the target time period; using the target PID parameter value to control the water supply of the water supply equipment at the target moment. Through the above technical scheme, the target PID parameter value can be matched with the actual water supply situation of the water supply equipment, so that the target PID parameter value can be used to achieve more accurate control of the water supply flow.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a safe water supply control method and system based on Internet of Things smart water services. Background Art

[0002] Water supply equipment is an important part of urban infrastructure. Water supply equipment can realize the supply of water. According to different functions and uses, water supply equipment can be roughly divided into water transmission and distribution network equipment, water source equipment and water supply pump station equipment, etc. For example, equipment containing other types of water pumps such as centrifugal pumps, deep well pumps, screw pumps, axial flow pumps, etc. Water supply equipment can raise the water source to a certain height or transport water to the urban water supply network to meet the water needs of users.

[0003] Adjusting the water supply flow of the water supply equipment can make the output water supply flow adapt to the water demand, thereby improving the stability of water supply and the user's water experience. In order to adjust the water supply flow of the water supply equipment, the relevant technology, such as the Chinese patent application document with publication number CN111810419A, provides a constant pressure water supply system, including: a water pump, a pressure transmitter, a frequency converter and a controller. The controller is configured with a preset pressure value. The controller sends the preset pressure value to the frequency converter through a preset communication interface. The PID (Proportional-Integral-Derivative) regulator of the frequency converter is used to perform PID calculation according to the preset pressure value and the water pressure signal, and control the motor operation of the water pump according to the calculation result.

[0004] According to the description of the relevant technology, it can be seen that in the process of controlling the water supply pressure to control the water supply flow, the relevant technology uses the water pressure signal and the preset pressure value to realize the water supply control. The water supply control process is relatively simple, and the simple control process is difficult to adapt to the changes in the water supply conditions of the water supply equipment. Therefore, it is difficult to further realize more accurate control of the water supply flow. Summary of the invention

[0005] In order to overcome the problem in related technologies that it is difficult to further achieve more accurate control of water supply flow, the present application provides a safe water supply control method and system based on IoT smart water services.

[0006] According to a first aspect of an embodiment of the present application, a safe water supply control method based on IoT smart water services is provided, comprising: when a water supply device supplies water in a specified water supply mode, obtaining a plurality of water supply flow rates of the water supply device within a target time period; obtaining a target parameter value based on the plurality of water supply flow rates, the target parameter value being used to characterize the degree of stability of the plurality of water supply flow rates within the target time period; adjusting a preset PID parameter value based on the target parameter value to obtain a target PID parameter value corresponding to a target moment; the target moment is a moment after the target time period; and controlling the water supply of the water supply device at the target moment using the target PID parameter value.

[0007] In this way, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, it is possible to timely adjust the preset PID parameter value according to the stability of multiple water supply flows within the target time period, so that the target PID parameter value used to control the water supply flow matches the actual water supply situation of the water supply equipment, thereby achieving more accurate control of the water supply equipment.

[0008] At the same time, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, when the stability of multiple water supply flows within the target time period is high, it can avoid the operating frequency of the water supply equipment from decreasing rapidly in a short period of time, thereby increasing the service life of the water supply equipment.

[0009] Furthermore, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, compared with adjusting the water supply flow of the water supply equipment through a fixed PID parameter value, the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby ensuring the stability of the external water supply of the water supply equipment.

[0010] Optionally, a target parameter value is obtained based on the multiple water supply flows, including: obtaining a target mean corresponding to a first water supply flow among the multiple water supply flows, the target mean being an average value of other water supply flows among the multiple water supply flows except the first water supply flow; taking a ratio of the first water supply flow to the target mean as a first difference value corresponding to the first water supply flow; obtaining a standard deviation of the multiple water supply flows, and obtaining the target parameter value based on the standard deviation and multiple first difference values ​​corresponding to multiple first water supply flows.

[0011] In this way, by obtaining the target parameter value based on the standard deviation of multiple water supply flows and the multiple first difference values ​​corresponding to the multiple first water supply flows, the obtained target parameter value can take into account both the standard deviation and the first abnormal value, so that the target parameter value can better characterize the stability of the multiple water supply flows within the target time period.

[0012] Optionally, a target parameter value is obtained based on the standard deviation and multiple first difference values ​​corresponding to multiple first water supply flows, including: performing a logarithmic operation on the first difference value to obtain a first numerical value corresponding to the first water supply flow; taking the absolute value of the first numerical value as the second numerical value corresponding to the first water supply flow; obtaining the sum of multiple second numerical values ​​corresponding to multiple first water supply flows; multiplying the sum of the multiple second numerical values ​​by the standard deviation to obtain a first multiplication value; performing an exponential operation on the first multiplication value using an exponential function to obtain an exponential function operation value, and taking the inverse of the exponential function operation value as the target parameter value.

[0013] In this way, the absolute value of the first value is taken as the second value corresponding to the first water supply flow, and the sum of the multiple second values ​​corresponding to the multiple first water supply flows is obtained. Since the first value can reflect the possible abnormalities of the first water supply flow, the sum of the obtained multiple second values ​​can better reflect the possible abnormalities of the multiple first water supply flows, so as to determine whether the water supply flow in the target time period is stable as a whole.

[0014] Optionally, a target parameter value is obtained based on the multiple water supply flow rates, including: obtaining a second difference value based on the multiple water supply flow rates of the water supply equipment in the target time period; the second difference value is used to characterize the degree of difference between the multiple water supply flow rates in the target time period; obtaining multiple water supply pressures of the water supply equipment in the target time period, and obtaining a third difference value based on the multiple water supply pressures, the third difference value is used to characterize the degree of difference between the multiple water supply pressures; obtaining a fourth difference value, the fourth difference value is used to characterize the degree of difference between the water supply pressure and the water supply flow rate corresponding to the same moment in the target time period; obtaining the target parameter value based on the second difference value, the third difference value and a second multiplication value of the fourth difference value, the target parameter value is negatively correlated with the second multiplication value.

[0015] In this way, since the second difference value is used to characterize the difference degree between multiple water supply flows in the target time period, the third difference value is used to characterize the difference degree between multiple water supply pressures in the target time period, the fourth difference value is used to characterize the difference degree between the water supply pressures and water supply flows corresponding to the same moment in the target time period.

[0016] Therefore, the target parameter value is obtained according to the multiplication of the second difference value, the third difference value and the fourth difference value. The target parameter value is negatively correlated with the second multiplication value, which can enable the obtained target parameter value to better reflect the stability of the water supply pressure and the stability of the water supply flow, and help to better regulate the water supply of the water supply equipment.

[0017] Optionally, a target parameter value is obtained based on the multiple water supply flows, including: obtaining multiple water supply pressures of the water supply equipment in a target time period, and obtaining a first number of multiple abnormal water supply pressures among the multiple water supply pressures, and a second number of multiple abnormal water supply flows among the multiple water supply flows, and taking the absolute value of the difference between the first number and the second number as a fifth difference value; determining a first percentile corresponding to a first water supply pressure among the multiple water supply pressures, and determining a second percentile corresponding to a second water supply flow among the multiple water supply flows; obtaining a sixth difference value, the sixth difference value being used to characterize the degree of difference between the first percentile and the second percentile corresponding to the same moment in the target time period; and obtaining the target parameter value based on the fifth difference value and multiple sixth difference values ​​corresponding to multiple moments in the target time period.

[0018] In this way, the first percentile corresponding to the first water supply pressure among multiple water supply pressures can reflect the ranking information of the first water supply pressure among the multiple water supply pressures; the second percentile corresponding to the second water supply flow among the multiple water supply flows can better reflect the ranking information of the second water supply flow among the multiple water supply flows, thereby reflecting the stability of the water supply flow of the water supply equipment according to the degree of difference between the first percentile and the second percentile.

[0019] Optionally, the target parameter value is obtained based on the fifth difference value and multiple sixth difference values ​​corresponding to multiple moments in the target time period, including: taking the absolute value of the sixth difference value as the seventh difference value to obtain multiple seventh difference values ​​corresponding to multiple moments in the target time period; taking the sum of the multiple seventh difference values ​​as the first sum value, and obtaining the target parameter value based on the third product of the first sum value and the fifth difference value, the target parameter value is negatively correlated with the third product value.

[0020] In this way, by obtaining multiple seventh difference values ​​corresponding to multiple moments in the target time period and taking the sum of the multiple seventh difference values ​​as the first sum value, the first sum value can better reflect the possible abnormalities of the water supply equipment at different moments in the target time period, so as to determine the stability of the water supply flow of the water supply equipment in the target time period.

[0021] Optionally, multiple abnormal water supply flow rates among the multiple water supply flow rates are obtained through a box plot; and multiple abnormal water supply pressures among the multiple water supply pressures are obtained through a box plot.

[0022] Optionally, the preset PID parameter value is adjusted according to the target parameter value to obtain the target PID parameter value corresponding to the target moment, including: taking the fourth multiplication value of the target parameter value and the preset PID parameter value as the target PID parameter value corresponding to the target moment.

[0023] In this way, when the preset PID parameter value includes a preset integral time and a preset differential time, the fourth product of the target parameter value and the preset PID parameter value is used as the target PID parameter value corresponding to the target time. Since the target parameter value can be used to characterize the stability of multiple water supply flows within the target time period, the PID parameter value can be adaptively adjusted according to the stability of multiple water supply flows within the target time period.

[0024] Optionally, the target PID parameter value is used to control the water supply of the water supply equipment at the target time, including: obtaining water supply flow demand information for the water supply equipment; obtaining a third water supply flow of the water supply equipment at the previous moment before the target moment; determining an eighth difference value based on the water supply flow demand information and the third water supply flow; the eighth difference value is used to characterize the degree of difference between the water supply flow demand information and the third water supply flow; determining the target water supply flow of the water supply equipment at the target moment based on the eighth difference value and the target PID parameter value, so as to control the water supply of the water supply equipment at the target moment according to the target water supply flow.

[0025] In this way, based on the eighth difference value and the target PID parameter value, the time interval for adjusting the water supply can be determined, or the adjustment amount when adjusting the water supply can be determined, thereby determining the target water supply flow of the water supply equipment at the target time; for example, based on the eighth difference value and the target PID parameter value, it can be determined whether to adjust the water supply flow at the target time, or, when it is determined that the water supply flow at the target time is adjusted, the increase or decrease in the water supply flow can be further determined.

[0026] According to a second aspect of an embodiment of the present application, a safe water supply control system based on smart water services based on the Internet of Things is provided, comprising: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the steps of the safe water supply control method based on smart water services based on the Internet of Things provided in the first aspect of the present application are implemented.

[0027] The technical solution provided by the embodiments of the present application may include the following beneficial effects: since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, it is possible to timely adjust the preset PID parameter value according to the stability of multiple water supply flows within the target time period, so that the target PID parameter value used to control the water supply flow matches the actual water supply situation of the water supply equipment, thereby achieving more accurate control of the water supply equipment.

[0028] At the same time, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, when the stability of multiple water supply flows within the target time period is high, it can avoid the operating frequency of the water supply equipment from decreasing rapidly in a short period of time, thereby increasing the service life of the water supply equipment.

[0029] Furthermore, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, compared with adjusting the water supply flow of the water supply equipment through a fixed PID parameter value, the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby ensuring the stability of the external water supply of the water supply equipment.

[0030] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0032] Figure 1 is a flow chart of a safe water supply control method based on smart water services of the Internet of Things according to an exemplary embodiment;

[0033] Figure 2 It is a structural schematic diagram of a safe water supply control system based on the Internet of Things smart water affairs according to an exemplary embodiment. DETAILED DESCRIPTION

[0034] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods consistent with some aspects of the present application as detailed in the appended claims.

[0035] First, a brief introduction is given to the application scenarios of the embodiments of the present application. In the application scenarios of the present application, the water supply equipment can raise the water source to a certain height, or the water supply equipment can transport water to the urban water supply network to meet the water needs of users; in order to improve the stability of water supply and the user's water use experience, the water supply flow of the water supply equipment can be adjusted so that the water supply flow output by the water supply equipment adapts to the water demand.

[0036] In the related art, the water supply pressure of the water supply equipment is adjusted according to the water supply main pressure to achieve control of the water supply flow of the water supply equipment. For example, when the water supply main pressure is within the target pressure range, the operating frequency of some motors in the water supply equipment is reduced to avoid excessive water supply flow.

[0037] It can be seen that the water supply flow is not adjusted in combination with the changes in the water supply flow in the related technology. The adjustment accuracy of the water supply flow in the related technology is low, and there may be a problem in the related technology that the operating frequency of the water supply equipment is greatly reduced in a short period of time, which affects the service life of the water supply equipment.

[0038] In response to the above technical problems, an embodiment of the present application provides a safe water supply control method and system based on the Internet of Things smart water services. In the embodiment of the present application, the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period. Therefore, according to the stability of multiple water supply flows within the target time period, the preset PID parameter value can be adjusted in time, and the target PID parameter value can be matched with the actual water supply situation of the water supply equipment, thereby using the target PID parameter value to achieve more accurate control of the water supply flow.

[0039] At the same time, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, when the stability of multiple water supply flows within the target time period is high, it can avoid the operating frequency of the water supply equipment from decreasing rapidly in a short period of time, thereby increasing the service life of the water supply equipment.

[0040] Furthermore, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, compared with adjusting the water supply flow of the water supply equipment through a fixed PID parameter value, the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby ensuring the stability of the external water supply of the water supply equipment.

[0041] Figure 1 is a flow chart of a safe water supply control method based on IoT smart water services according to an exemplary embodiment. Figure 1 As shown, the method includes the following steps.

[0042] In step S101 , when the water supply equipment supplies water in a designated water supply mode, a plurality of water supply flow rates of the water supply equipment within a target time period are obtained.

[0043] For example, a flow sensor can be set on the water supply pipeline of the water supply equipment. The water flow rate flowing through the water supply pipeline can be obtained through the set flow sensor, and the water flow rate flowing through the water supply pipeline is used as the water supply flow rate of the water supply equipment; or, when the output power of the water supply equipment is different, the amount of water supplied to the outside by the water supply equipment is different. Therefore, the output power of the water supply equipment can be determined based on the output power of the water supply equipment.

[0044] The water supply equipment can be configured with multiple water supply modes, for example, the water supply equipment can be configured with a first water supply mode, a second water supply mode and a third water supply mode; wherein, in the first water supply mode, the water supply equipment can supply water according to a specified water supply flow rate; in the second water supply mode, the water supply equipment can supply water according to a specified output power; in the third water supply mode, the water supply equipment can supply water according to a preset water supply flow curve, and the preset water supply curve includes different water supply flows corresponding to different times.

[0045] The specified water supply mode may, for example, be that the water supply equipment supplies water according to the target water supply flow rate, the target time period may be the time period before the target moment, and the duration of the target time period may be a preset duration; for example, when the target moment is 08:00:00, the target time period may be the time period from 07:55:00 to 07:56:00; the preset duration may be selected according to actual needs, for example, the preset duration may be between 30 seconds and 60 seconds, for example 60 seconds.

[0046] When the water supply equipment supplies water in a specified water supply mode, obtaining multiple water supply flow rates of the water supply equipment within a target time period helps determine the stability of multiple water supply flow rates within the target time period so as to control the water supply of the water supply equipment at the target time.

[0047] In step S102, a target parameter value is obtained according to a plurality of water supply flow rates, and the target parameter value is used to characterize the stability of the plurality of water supply flow rates within a target time period.

[0048] In one embodiment, a target parameter value is obtained based on the multiple water supply flows, including: for a first water supply flow among the multiple water supply flows, obtaining a target mean corresponding to the first water supply flow, the target mean being an average value of other water supply flows among the multiple water supply flows except the first water supply flow; taking a ratio of the first water supply flow to the target mean as a first difference value corresponding to the first water supply flow; obtaining a standard deviation of the multiple water supply flows, and obtaining the target parameter value based on the standard deviation and multiple first difference values ​​corresponding to multiple first water supply flows.

[0049] Here, when there is an abnormality in the first water supply flow, since the target mean is the average of other water supply flows among multiple water supply flows except the first water supply flow, the target mean can avoid the influence of the abnormal first water supply flow, so that the ratio of the first water supply flow to the target mean can better reflect the possible abnormality in the first water supply flow.

[0050] As a commonly used parameter for characterizing data changes, the standard deviation can better reflect the changes in water supply flow within the target time period through the standard deviation of multiple water supply flows. By obtaining the target parameter value based on the standard deviation of multiple water supply flows and multiple first difference values ​​corresponding to multiple first water supply flows, the obtained target parameter value can take into account both the standard deviation and the first abnormal value, so that the target parameter value can better characterize the stability of the multiple water supply flows within the target time period.

[0051] For example, the larger the target parameter value, the higher the stability of multiple water supply flows of the water supply equipment within the target time period, the more likely it is that there will be no abnormalities in the water supply equipment, and it may be unnecessary to adjust the water supply of the water supply equipment to ensure the working condition of the water supply equipment.

[0052] On the contrary, the smaller the target parameter value is, the lower the stability of multiple water supply flows of the water supply equipment within the target time period is, and the more likely it is that the water supply equipment is abnormal. The water supply of the water supply equipment can be adjusted to ensure the working condition of the water supply equipment.

[0053] In step S103, the preset PID parameter value is adjusted according to the target parameter value to obtain the target PID parameter value corresponding to the target time; the target time is the time after the target time period.

[0054] A PID (Proportional-Integral-Derivative) controller is a feedback loop controller that controls the controlled variable by adjusting the specific values ​​of three PID parameters: proportional parameter, integral parameter, and derivative parameter.

[0055] Among them, the functions of the three parameters, proportional parameter, integral parameter and differential parameter, are as follows: Proportional parameter, also known as P parameter, determines the controller's response to the current error. When there is a deviation between the current value of the controlled variable and the target value, the proportional parameter will affect the controller's output to reduce the deviation between the current value and the target value. The larger the proportional parameter, the greater the controller's response to the deviation of the controlled variable, that is, the greater the adjustment of the controlled variable. The proportional parameter can be the adjustment ratio of the variable of the object controlled by the PID controller.

[0056] The integral parameter, also known as the I parameter, is used to adjust the cumulative amount of historical errors. When the value of the integral parameter increases, the steady-state error of the object controlled by the PID controller (such as water supply equipment) will decrease. However, when the value of the integral parameter is too large, the response speed of the object controlled by the PID controller may slow down. The derivative parameter, also known as the D parameter, is used to adjust the target variable of the object controlled by the PID according to the error change rate. The derivative parameter can also predict the trend of the error.

[0057] The differential parameter may be, for example, the differential time, and the integral parameter may be the integral time. When the differential time or the integral time is set appropriately, the stability and response speed of the object controlled by the PID controller can be improved. For example, the object controlled by the PID controller can respond quickly when there is a disturbance, and remain stable when there is no disturbance in the object controlled by the PID controller.

[0058] In one embodiment, the preset PID parameter value includes a preset integral time and a preset differential time; the preset PID parameter value is adjusted according to the target parameter value to obtain the target PID parameter value corresponding to the target time, including: taking the fourth multiplication value of the target parameter value and the preset PID parameter value as the target PID parameter value corresponding to the target time.

[0059] In an embodiment of the present application, the preset PID parameter value is a preset value of the PID parameter, and the PID parameter may include an integral time, a differential time, and an adjustment ratio; for example, when the PID parameter is the integral time, the preset PID parameter value may be the preset integral time, for example, the preset integral time may be 10 seconds; for another example, when the PID parameter is the differential time, the preset PID parameter value may be the preset differential time, for example, the preset differential time may be 9 seconds; for another example, when the PID parameter is the adjustment ratio, the preset PID parameter value may be the preset adjustment ratio, for example, the preset adjustment ratio may be 10%.

[0060] Here, in the case where the preset PID parameter value includes a preset integral time and a preset differential time, the fourth product of the target parameter value and the preset PID parameter value is used as the target PID parameter value corresponding to the target time. Since the target parameter value can be used to characterize the stability of multiple water supply flows within the target time period, the PID parameter value can be adaptively adjusted according to the stability of multiple water supply flows within the target time period.

[0061] For example, when the preset PID parameter value is the preset integration time, the product of the target parameter value and the preset integration time can be used as the target PID parameter value corresponding to the target time; in this way, the larger the target parameter value, the better the stability of multiple water supply flow rates of the water supply equipment in the target time period, and the water supply of the water supply equipment can be controlled by a longer integration time, thereby reducing the number of adjustments to the water supply equipment when the water supply is stable, thereby extending the service life of the water supply equipment.

[0062] On the contrary, the smaller the target parameter value, the worse the stability of multiple water supply flows of the water supply equipment in the target time period. By using the multiplication of the target parameter value and the preset integration time as the target PID parameter value, the water supply of the water supply equipment can be controlled with a shorter integration time, thereby achieving timely response of the water supply equipment and ensuring the stability of the water supply of the water supply equipment to the outside.

[0063] For another example, when the preset PID parameter value includes a preset adjustment ratio, the target adjustment ratio corresponding to the target time can be determined according to the ratio of the preset PID parameter value to the target parameter value. Since the target parameter value can be used to characterize the stability of multiple water supply flows within the target time period, the target adjustment ratio can be adaptively adjusted according to the stability of multiple water supply flows within the target time period.

[0064] For example, since the target parameter value is negatively correlated with the target adjustment ratio, when the stability of multiple water supply flows is relatively high within the target time period, a smaller adjustment ratio can be used to adjust the water supply flow, thereby reducing the number of adjustments to the water supply equipment when the water supply is stable and increasing the service life of the water supply equipment; or, when the stability of multiple water supply flows is relatively low within the target time period, a larger adjustment ratio can be used to adjust the water supply flow, so as to timely correct the water supply flow of the water supply equipment and ensure the stability of the water supply of the water supply equipment to the outside.

[0065] In step S104, the target PID parameter value is used to control the water supply of the water supply equipment at the target time.

[0066] In one embodiment, the target PID parameter value is used to control the water supply of the water supply equipment at the target time, including: obtaining water supply flow demand information for the water supply equipment; obtaining the third water supply flow of the water supply equipment at the previous moment of the target time; determining an eighth difference value based on the water supply flow demand information and the third water supply flow; the eighth difference value is used to characterize the degree of difference between the water supply flow demand information and the third water supply flow; determining the target water supply flow of the water supply equipment at the target time based on the eighth difference value and the target PID parameter value, so as to control the water supply of the water supply equipment at the target time according to the target water supply flow.

[0067] For example, the water supply of a water supply device can be controlled by a PID controller. The PID controller can be set inside the water supply device. The PID controller can send control instructions to the water supply device. The control instructions are used to control the water supply of the water supply device. When the water supply device receives the control instructions, it can adjust the external water supply flow or water supply pressure according to the received control instructions.

[0068] Alternatively, the PID controller may also be set inside other terminal devices, which are communicatively connected to the water supply equipment. The terminal device may send control instructions to the water supply equipment through the communication connection established with the water supply equipment. The control instructions are used to control the water supply of the water supply equipment. When the water supply equipment receives the control instructions, it may adjust the external water supply flow or water supply pressure according to the received control instructions.

[0069] The PID controller can obtain water supply flow demand information for the water supply equipment. For example, the water supply flow demand information can be the water supply flow required for the target area under the jurisdiction of the water supply equipment. At the same time, the third water supply flow of the water supply equipment at the previous moment of the target moment can also be obtained. According to the water supply flow demand information and the third water supply flow, the eighth difference value can be determined; the eighth difference value can be determined, for example, according to the ratio of the third water supply flow to the water supply flow demand information, or the eighth difference value can be determined, for example, according to the difference between the third water supply flow and the water supply flow demand information.

[0070] Here, based on the eighth difference value and the target PID parameter value, the time interval for adjusting the water supply can be determined, or the adjustment amount when adjusting the water supply can be determined, thereby determining the target water supply flow of the water supply equipment at the target time; for example, based on the eighth difference value and the target PID parameter value, it can be determined whether to adjust the water supply flow at the target time, or, when it is determined that the water supply flow at the target time is adjusted, the increase or decrease in the water supply flow can be further determined.

[0071] Through the safe water supply control method based on IoT smart water affairs provided in the embodiment of the present application, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, therefore, it is possible to timely adjust the preset PID parameter value according to the stability of multiple water supply flows within the target time period, so that the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby using the target PID parameter value to achieve more accurate control of the water supply flow.

[0072] At the same time, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, when the stability of multiple water supply flows within the target time period is high, it can avoid the operating frequency of the water supply equipment from decreasing rapidly in a short period of time, thereby increasing the service life of the water supply equipment.

[0073] Furthermore, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, compared with adjusting the water supply flow of the water supply equipment through a fixed PID parameter value, the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby ensuring the stability of the external water supply of the water supply equipment.

[0074] In one embodiment, a target parameter value is obtained based on the standard deviation and multiple first difference values ​​corresponding to multiple first water supply flows, including: performing a logarithmic operation on the first difference value to obtain a first numerical value corresponding to the first water supply flow; using the absolute value of the first numerical value as the second numerical value corresponding to the first water supply flow; obtaining the sum of multiple second numerical values ​​corresponding to multiple first water supply flows; multiplying the sum of the multiple second numerical values ​​by the standard deviation to obtain a first multiplication value; performing an exponential operation on the first multiplication value using an exponential function to obtain an exponential function operation value, and using the inverse of the exponential function operation value as the target parameter value.

[0075] Here, the absolute value of the first numerical value is taken as the second numerical value corresponding to the first water supply flow, and the sum of multiple second numerical values ​​corresponding to multiple first water supply flows is obtained. Since the first numerical value can reflect possible abnormalities in the first water supply flow, the sum of the obtained multiple second numerical values ​​can better reflect possible abnormalities in multiple first water supply flows, so as to determine whether the water supply flow in the target time period is stable as a whole.

[0076] The following uses an exemplary formula as an example to illustrate the process of obtaining the target parameter value in the embodiment of the present application: Among them, M is the target parameter value, A is the number of multiple water supply flows in the target time period, a is a positive integer less than or equal to A, log is a logarithmic function, La is the a-th first water supply flow, Ba is the target mean corresponding to the a-th first water supply flow, exp is an exponential function with a natural constant as the base; N is the standard deviation of multiple water supply flows, or N can also be the variance of multiple water supply flows.

[0077] Here, the ratio between the first water supply flow and the target average corresponding to the first water supply flow can effectively reflect the difference between the first water supply flow and other water supply flows among the multiple water supply flows except the first water supply flow, thereby reflecting whether the first water supply flow is stable; the sum of the multiple second numerical values ​​corresponding to the multiple first water supply flows can better reflect whether the multiple water supply flows are stable as a whole.

[0078] In one embodiment, a target parameter value is obtained based on multiple water supply flow rates, including: obtaining a second difference value based on multiple water supply flow rates of the water supply equipment in a target time period; the second difference value is used to characterize the degree of difference between the multiple water supply flow rates in the target time period; obtaining multiple water supply pressures of the water supply equipment in the target time period, and obtaining a third difference value based on the multiple water supply pressures, the third difference value is used to characterize the degree of difference between the multiple water supply pressures; obtaining a fourth difference value, the fourth difference value is used to characterize the degree of difference between the water supply pressure and the water supply flow rate corresponding to the same moment in the target time period; obtaining the target parameter value based on the second difference value, the third difference value and the second multiplication value of the fourth difference value, the target parameter value is negatively correlated with the second multiplication value.

[0079] The target parameter value may be, for example, the reciprocal of the second multiplication value, or the target parameter value may be, for example, the reciprocal of the result of the exponential operation of the second multiplication value; the second difference value may be, for example, the variance of multiple water supply flows in the target time period, or the second difference value may be, for example, the standard deviation of multiple water supply flows in the target time period, or the second difference value may be, for example, the range of multiple water supply flows in the target time period, thereby characterizing the degree of difference between multiple water supply flows in the target time period by the second difference value; the process of obtaining the third difference value may refer to the process of obtaining the second difference value, and the embodiments of the present application will not be repeated here.

[0080] The fourth difference value is used to characterize the degree of difference between the water supply pressure and the water supply flow corresponding to the same moment in the target time period. The fourth difference value can be obtained based on the water supply pressure and the water supply flow corresponding to the same moment in the target time period; for example, for the water supply pressure and the water supply flow corresponding to the same moment in the target time period, a first ratio between the water supply pressure and the maximum value of multiple water supply pressures can be obtained, and a second ratio between the water supply flow and the maximum value of multiple water supply flows can be obtained, so that the fourth difference value can be obtained based on the difference between the first ratio and the second ratio, or the fourth difference value can be obtained based on the ratio of the first ratio to the second ratio.

[0081] In this way, since the second difference value is used to characterize the difference degree between multiple water supply flows in the target time period, the third difference value is used to characterize the difference degree between multiple water supply pressures in the target time period, the fourth difference value is used to characterize the difference degree between the water supply pressures and water supply flows corresponding to the same moment in the target time period.

[0082] Therefore, the target parameter value is obtained according to the multiplication of the second difference value, the third difference value and the fourth difference value. The target parameter value is negatively correlated with the second multiplication value, which can enable the obtained target parameter value to better reflect the stability of the water supply pressure and the stability of the water supply flow, and help to better regulate the water supply of the water supply equipment.

[0083] In one embodiment, a target parameter value is obtained based on multiple water supply flows, including: obtaining multiple water supply pressures of the water supply equipment in a target time period, and obtaining a first number of multiple abnormal water supply pressures among the multiple water supply pressures, and a second number of multiple abnormal water supply flows among the multiple water supply flows, and taking the absolute value of the difference between the first number and the second number as a fifth difference value; determining a first percentile corresponding to a first water supply pressure among the multiple water supply pressures, and determining a second percentile corresponding to a second water supply flow among the multiple water supply flows; obtaining a sixth difference value, the sixth difference value being used to characterize the degree of difference between the first percentile and the second percentile corresponding to the same moment in the target time period; and obtaining the target parameter value based on the fifth difference value and multiple sixth difference values ​​corresponding to multiple moments in the target time period.

[0084] Percentile is used to describe the relative position of a value in a data set in the overall data. Percentile means that a specific percentage of data values ​​in the data set is lower than or equal to a certain value. For example, for a specific value corresponding to the 80th percentile in the data set, it means that 80% of the data in the data set are less than or equal to this specific value, and 20% of the data in the data set are greater than this specific value.

[0085] The percentile can be calculated, for example, by sorting the data in the data set in descending order to obtain a sorted sequence, determining the order of the values ​​of the target data in the data set in the sorted sequence, and thus determining the percentile corresponding to the target data.

[0086] Here, the first percentile corresponding to the first water supply pressure among multiple water supply pressures can reflect the ranking information of the first water supply pressure among multiple water supply pressures; the second percentile corresponding to the second water supply flow among multiple water supply flows can better reflect the ranking information of the second water supply flow among multiple water supply flows.

[0087] Since the water supply pressure is usually correlated with the water supply flow, for example, the greater the water supply pressure, the greater the water supply flow, and conversely, the smaller the water supply pressure, the smaller the water supply flow; therefore, by using the sixth difference value that is used to characterize the degree of difference between the first percentile and the second percentile corresponding to the same moment in the target time period, it is convenient to compare possible anomalies at the same moment in the target time period so as to determine the target parameter value.

[0088] The sixth difference value may be determined, for example, based on a difference between the first percentile and the second percentile, or the sixth difference value may be determined, for example, based on a ratio between the first percentile and the second percentile.

[0089] In one embodiment, the target parameter value is obtained according to the fifth difference value and multiple sixth difference values ​​corresponding to multiple moments in the target time period, including: taking the absolute value of the sixth difference value as the seventh difference value to obtain multiple seventh difference values ​​corresponding to multiple moments in the target time period; taking the sum of the multiple seventh difference values ​​as the first sum value, and obtaining the target parameter value according to the third product of the first sum value and the fifth difference value, and the target parameter value is negatively correlated with the third product value.

[0090] In this way, by obtaining multiple seventh difference values ​​corresponding to multiple moments in the target time period and taking the sum of the multiple seventh difference values ​​as the first sum value, the first sum value can better reflect the possible abnormalities of the water supply equipment at different moments in the target time period, so as to determine the stability of the water supply of the water supply equipment in the target time period.

[0091] The target parameter value is obtained according to the third product of the first sum and the fifth difference value, and the target parameter value is negatively correlated with the third product; the larger the third product is, the greater the fluctuation of the water supply of the water supply equipment in the target time period, and the lower the stability of the water supply flow of the water supply equipment in the target time period; on the contrary, the smaller the third product is, the smaller the fluctuation of the water supply of the water supply equipment in the target time period, and the higher the stability of the water supply flow of the water supply equipment in the target time period.

[0092] The following uses an exemplary calculation formula as an example to explain the process of obtaining the third multiplication value in the embodiment of the present application. Among them, R is the third multiplication value in the embodiment of the present application, A is the number of multiple water supply flows in the target time period; the number of multiple water supply pressures in the target time period is the same as the number of multiple water supply flows in the target time period; a is a positive integer less than or equal to A, Pa is the first percentile corresponding to the a-th first water supply pressure, Qa is the second percentile corresponding to the a-th second water supply flow; F is the number of multiple abnormal water supply pressures among multiple water supply pressures, that is, F is the first number; E is the number of multiple abnormal water supply flows among multiple water supply flows, that is, E is the second number.

[0093] In this way, the third multiplication value is obtained based on the difference between the first quantity and the second quantity, and the first quantity is the number of multiple abnormal water supply pressures, and the second quantity is the number of multiple abnormal water supply flows among multiple water supply flows. Therefore, the third multiplication value can reflect the difference between the water supply flow and the water supply pressure within the target time period. Obtaining the target parameter value based on the third multiplication value can help the target parameter value better characterize the stability of multiple water supply flows within the target time period.

[0094] In one embodiment, a plurality of abnormal water supply flow rates among the plurality of water supply flow rates are obtained through a box plot; a plurality of abnormal water supply pressures among the plurality of water supply pressures are obtained through a box plot.

[0095] The box plot is also called a box-shaped plot or a box-whisker plot. It is a statistical plot used to show the range and distribution of a set of data. The box plot is based on the concept of quartiles, dividing the data set into four equal parts, each containing 25% of the data. The box plot can more easily identify the maximum, minimum, median and outliers of the data. Alternatively, the box plot can show the overall distribution of the data and the degree of outliers of different data, so as to determine the abnormal data in the data set.

[0096] In this way, obtaining multiple abnormal water supply flows among multiple water supply flows through a box plot, and obtaining multiple abnormal water supply pressures among multiple water supply pressures through a box plot, can help determine the stability of the water supply flow of the water supply equipment based on the difference between the water supply flow and the water supply pressure in the target time period, so as to adjust the water supply flow of the water supply equipment.

[0097] In one embodiment, multiple abnormal water supply flows among multiple water supply flows, and multiple abnormal water supply pressures among multiple water supply pressures can be obtained by using scatter plots, standard scores, cluster analysis, and machine learning algorithms, such as isolation forest algorithms. The embodiment of the present application does not limit the specific algorithm or method for determining multiple water supply pressures or abnormal data among multiple water supply data.

[0098] Figure 2 1 is a schematic diagram of a safe water supply control system based on the Internet of Things smart water affairs according to an exemplary embodiment. Figure 2 The safe water supply control system based on the Internet of Things smart water affairs includes: a processor 1100 and a memory 1200, wherein the memory 1200 stores computer program instructions, and when the computer program instructions are executed by the processor 1100, all or part of the steps of the safe water supply control method based on the Internet of Things smart water affairs in this application are implemented.

[0099] For example, the processor 1100 can be configured to perform the following steps: when the water supply equipment supplies water in a specified water supply mode, obtaining multiple water supply flow rates of the water supply equipment within a target time period; obtaining a target parameter value based on the multiple water supply flow rates, and the target parameter value is used to characterize the stability of the multiple water supply flow rates within the target time period; adjusting the preset PID parameter value based on the target parameter value to obtain a target PID parameter value corresponding to a target moment; the target moment is a moment after the target time period; and using the target PID parameter value to control the water supply of the water supply equipment at the target moment.

[0100] Through the safe water supply control system based on IoT smart water affairs provided by the embodiment of the present application, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, therefore, it is possible to timely adjust the preset PID parameter value according to the stability of multiple water supply flows within the target time period, so that the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby using the target PID parameter value to achieve more accurate control of the water supply flow.

[0101] At the same time, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, and the target parameter value is used to characterize the stability of multiple water supply flows within the target time period, when the stability of multiple water supply flows within the target time period is high, it can avoid the operating frequency of the water supply equipment from decreasing rapidly in a short period of time, thereby increasing the service life of the water supply equipment.

[0102] Furthermore, since the target PID parameter value is obtained by adjusting the preset PID parameter value according to the target parameter value, compared with adjusting the water supply flow of the water supply equipment through a fixed PID parameter value, the target PID parameter value can match the actual water supply situation of the water supply equipment, thereby ensuring the stability of the external water supply of the water supply equipment.

[0103] It should be understood that the features of some embodiments of the various applications described herein may be combined with each other, unless specifically stated otherwise.

[0104] Although terms such as "first", "second" and "third" can be used herein to describe various components, parts, regions, layers or sections, these components, parts, regions, layers or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, component, region, layer or section from another component, component, region, layer or section. Therefore, without departing from the teachings of each example, the first component, component, region, layer or section mentioned in the examples described herein may also be referred to as the second component, component, region, layer or section. In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may expressly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0105] In addition, the word "exemplary" is used in this article to represent serving as an example, instance, or diagram. Any aspect or design described as "exemplary" in this article is not necessarily understood to be advantageous compared to other aspects or designs. On the contrary, the use of the word exemplary is intended to present concepts in a concrete way. As used in this article, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". In addition, unless otherwise specified or clearly pointed to a singular form from the context, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more".

[0106] Likewise, although the present application has been shown and described with respect to one or more implementations, after reading and understanding the specification and drawings, equivalent variations and modifications will occur to those skilled in the art. The present application includes all such modifications and variations, and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise noted, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific functions of the described components, even if the structure is not equivalent to the disclosed structure. In addition, although the specific features of the present application may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and conducive to any given or specific application. In addition, with respect to "including", "having", "having", "having", or variations thereof used in the specific embodiments or claims, such terms are intended to be inclusive in a manner similar to the term "comprising".

[0107] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

[0108] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A safe water supply control method based on the Internet of Things smart water affairs, characterized in that: include: When the water supply device supplies water in a specified water supply mode, obtaining a plurality of water supply flow rates of the water supply device within a target time period; Obtaining a target parameter value according to the multiple water supply flow rates, including: obtaining a second difference value according to the multiple water supply flow rates of the water supply equipment in the target time period; the second difference value is used to characterize the degree of difference between the multiple water supply flow rates in the target time period; the second difference value is the variance of the multiple water supply flow rates in the target time period; Acquire multiple water supply pressures of the water supply equipment in the target time period, and obtain a third difference value according to the multiple water supply pressures, the third difference value is used to characterize the degree of difference between the multiple water supply pressures; the third difference value is the variance of the multiple water supply flow rates in the target time period; Obtaining a fourth difference value, for the water supply pressure and the water supply flow corresponding to the same moment in the target time period, obtaining a first ratio between the water supply pressure and the maximum value of the multiple water supply pressures, and obtaining a second ratio between the water supply flow and the maximum value of the multiple water supply flows, the difference between the first ratio and the second ratio being the fourth difference value; the fourth difference value is used to characterize the degree of difference between the water supply pressure and the water supply flow corresponding to the same moment in the target time period; According to the second difference value, the third difference value and the second multiplication value of the fourth difference value, the target parameter value is obtained, and the target parameter value is the reciprocal of the second multiplication value; the target parameter value is negatively correlated with the second multiplication value; the target parameter value is used to characterize the stability of the multiple water supply flow rates within the target time period; The preset PID parameter value is adjusted according to the target parameter value to obtain the target PID parameter value corresponding to the target time; the target time is the time after the target time period; The target PID parameter value is used to control the water supply of the water supply equipment at the target time.

2. The method according to claim 1, characterized in that Adjusting the preset PID parameter value according to the target parameter value to obtain the target PID parameter value corresponding to the target time includes: The fourth product of the target parameter value and the preset PID parameter value is used as the target PID parameter value corresponding to the target time.

3. The method according to any one of claims 1 to 2, characterized in that: Using the target PID parameter value, controlling the water supply of the water supply equipment at the target time includes: Obtain water supply flow demand information for water supply equipment; Obtaining a third water supply flow rate of the water supply equipment at a moment before the target moment; Determine an eighth difference value according to the water supply flow demand information and the third water supply flow; the eighth difference value is used to characterize the degree of difference between the water supply flow demand information and the third water supply flow; According to the eighth difference value and the target PID parameter value, the target water supply flow rate of the water supply equipment at the target time is determined, so as to control the water supply of the water supply equipment at the target time according to the target water supply flow rate.

4. A safe water supply control system based on the Internet of Things smart water affairs, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Constant-pressure water supply system

    CN111810419A

  • Flow prediction method

    CN110992209A

  • Equipment control method and device, water supply system and storage medium

    CN113250271A