Flow fuzzy control method and system applied to flow regulating valve

By analyzing the water flow data in the water use area, screening and matching water flow sections and optimizing the proportional gain coefficient, the problem of untimely response of the flow regulating valve is solved, efficient regulation and stability of the water use system is achieved, and water resource waste is reduced.

CN120276505BActive Publication Date: 2025-08-26XIAN QINSHEN SPECIAL CONTROL VALVE CO LTD

Patent Information

Application Number
CN202510764297.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-08-26
Estimated Expiration
2045-06-10

AI Technical Summary

Technical Problem

When existing flow regulating valves face complex water flow fluctuations, they do not respond in time, resulting in unmet water demand in the water use area and may cause pressure oscillation in the water network, affecting the system's response ability to sudden disturbances.

Method used

By obtaining the water flow data in the water use area, filter out the water flow section that matches the current water use stage, analyze its time delay amount and proportional gain action point, determine the gain matching degree and weight, optimize the proportional gain coefficient, and combine it with the fuzzy controller to adjust the valve opening to achieve accurate flow adjustment.

Benefits of technology

It improves the control accuracy and stability of the flow regulating valve, reduces waste of water resources, ensures timely meeting water needs and efficient response of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276505B_ABST
    Figure CN120276505B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of valve control technology, and more specifically to a flow fuzzy control method and system for a flow control valve. The method first screens out a matching water flow segment that matches the water flow intensity of the current water use stage; determines the proportional gain action point and time delay of the matching water flow segment; compares the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree; combines the time delay, gain matching degree, and water flow intensity to determine the proportional gain weight of the matching water flow segment; weights the proportional gain coefficient of the current water use stage by the proportional gain weight to determine the proportional gain coefficient of the current water use stage; inputs the proportional gain coefficient and water flow data into a fuzzy controller, and the fuzzy controller adjusts the valve opening of the flow control valve. The present invention improves the control accuracy of the water use system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of valve control, and in particular to a flow fuzzy control method and system applied to a flow regulating valve. Background Art

[0002] In municipal water supply networks, real-time monitoring of pipeline flow and pressure data allows for dynamic adjustment of valve openings using fuzzy control algorithms to avoid water hammer and achieve balanced water supply across multiple regions. The proportional gain in fuzzy control algorithms depends primarily on the system's dynamic characteristics and desired response speed. A larger proportional gain allows the controller output to respond more quickly to erroneous changes. In complex water flow fluctuations, the control system may not be able to adequately regulate the water flow control valve, resulting in delayed control system response. Flow rates fluctuate significantly during peak and off-peak periods, requiring rapid adjustments to valve openings to prevent water hammer or insufficient pressure.

[0003] The existing fuzzy control algorithm has the problem of untimely response to the flow control valve. When the water consumption pattern of the water use area fluctuates, the system cannot quickly capture and dynamically adapt to the dynamic changes in the water flow, affecting the opening adjustment speed of the flow control valve, resulting in the water demand of the water use area not being met in time; and directly using the real-time water consumption as the direct basis for the valve opening, frequent adjustment operations may cause pressure fluctuations in the water network, interfering with the system's ability to respond immediately to sudden disturbances. Summary of the Invention

[0004] In order to solve the technical problem that using real-time water consumption as a direct basis for valve opening will cause pressure fluctuations in the water network when frequent adjustments are made, thereby interfering with the system's ability to respond to sudden disturbances, the purpose of the present invention is to provide a flow fuzzy control method and system for a flow regulating valve. The technical solutions adopted are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a flow fuzzy control method applied to a flow control valve, the method comprising:

[0006] Obtain water flow data at the water inlet of the water-using area;

[0007] Filter out the matching water flow segments that match the water flow intensity of the current water use stage from the historical data;

[0008] Analyze the changes in the water flow data of the matching water flow segment in the time series and determine the proportional gain action point of the matching water flow segment; take the time difference from the starting point of each matching water flow segment to the proportional gain action point as the time delay of each matching water flow segment;

[0009] Comparing the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment;

[0010] The proportional gain weight of the matching water flow segment is determined by combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matching water flow segment and the current water use stage;

[0011] Through the proportional gain weight, the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage are weighted to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow control valve.

[0012] Furthermore, the step of selecting a matching water flow segment that matches the water flow intensity of the current water use stage from the historical data includes:

[0013] Based on the fluctuation of water use, the affected part of water use is determined from the water flow data series of historical data;

[0014] Dividing the water flow data sequence of the historical data into a plurality of water flow data segments, and determining the water flow intensity of each water flow data segment;

[0015] From the water use affected part of the historical data, the matching water flow segments that match the water use flow intensity of the current water use stage are screened out.

[0016] Furthermore, the method of determining the affected portion of water use from the water flow data sequence of historical data based on the water use fluctuation includes:

[0017] Obtaining the slope value corresponding to each water flow data in the water flow data sequence of historical data;

[0018] The water flow data where the maximum slope value appears for the first time is used as the dividing data;

[0019] Taking the partition data as the dividing point, the water flow data series is divided into the front part and the back part, and the slope mean of the front part and the back part of the water flow data series is calculated;

[0020] The part with the largest mean slope between the first and second parts is taken as the part affected by water use.

[0021] Furthermore, the step of selecting a matching water flow segment that matches the water flow intensity of the current water use stage from the affected portion of the historical data includes:

[0022] Perform negative correlation mapping on the difference between each water flow data segment of the affected part of the historical data and the water flow intensity of the current water use stage to obtain the water use intensity similarity;

[0023] According to the water use intensity similarity, a water flow data segment of the water use-affected portion of the historical data that matches the current water use stage is determined as a matching water flow segment.

[0024] Furthermore, the analyzing and matching water flow data changes in the time series of the water flow segment to determine the proportional gain action point of the matching water flow segment includes:

[0025] For any matching water flow segment corresponding to the current water use stage, the point where the water flow data of the matching water flow segment suddenly changes is used as the proportional gain action point of the matching water flow segment.

[0026] Furthermore, comparing the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment includes:

[0027] For each matching water flow segment, average the differences between the slope values ​​corresponding to two adjacent data in the proportional gain data sequence before the proportional gain action point, and use the resulting value as the proportional gain difference;

[0028] averaging the differences in slope values ​​corresponding to two adjacent data in the water flow data sequence after the proportional gain action point, and using the resulting value as the water flow difference;

[0029] A negative correlation mapping is performed on the difference between the proportional gain difference and the water flow difference, and the result value is used as the gain matching degree of the matching water flow segment.

[0030] Furthermore, the method of combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matched water flow segment and the current water use stage to determine the proportional gain weight of the matched water flow segment includes:

[0031] The proportional gain coefficient of the proportional gain action point of each matching water flow segment is used as the horizontal coordinate, and the time delay of each matching water flow segment is used as the vertical coordinate. Each matching water flow segment has its own corresponding coordinate point;

[0032] Perform curve fitting on the coordinate points of all matching water flow segments corresponding to the current water use stage to obtain fitting curve segments;

[0033] Obtain the residual size between the coordinate point of each matching water flow segment and the fitting curve segment;

[0034] For each matching water flow segment, determining the effectiveness of the matching water flow segment by combining the time delay, the gain matching degree and the residual size;

[0035] The proportional gain weight of the matching water flow segment is determined based on the effectiveness, the difference between the matching water flow segment and the water flow intensity of the current water use stage; wherein the effectiveness and the proportional gain weight are positively correlated; and the difference in water flow intensity and the proportional gain weight are negatively correlated.

[0036] Furthermore, the determining the effectiveness of matching the water flow segment by combining the time delay, the gain matching degree, and the residual size includes:

[0037] The gain matching degree is used as the numerator, the product of the time delay and the residual size is used as the denominator, and the ratio is used as the effectiveness of matching the water flow segment.

[0038] Furthermore, the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage are weighted by the proportional gain weight to determine the proportional gain coefficient of the current water use stage, including:

[0039] Normalize the proportional gain weight of each matching water flow segment; the sum of the normalized proportional gain weights of all matching water flow segments is 1;

[0040] The normalized proportional gain weight is used as the weight, and the proportional gain coefficients corresponding to the proportional gain action points of all matching water flow segments are weighted summed to obtain the proportional gain coefficient of the current water use stage.

[0041] In a second aspect, a flow fuzzy control system applied to a flow regulating valve is provided, the system comprising the following modules:

[0042] A data acquisition module, used to obtain water flow data at the water inlet of the water-using area;

[0043] A matching module is used to select a matching water flow segment that matches the water flow intensity of the current water use stage from historical data;

[0044] The first analysis module is used to analyze the changes in the water flow data of the matching water flow segment in the time series and determine the proportional gain action point of the matching water flow segment; the time difference between the starting point of each matching water flow segment and the proportional gain action point is used as the time delay of each matching water flow segment;

[0045] A second analysis module is used to compare the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment;

[0046] A weight determination module is used to determine the proportional gain weight of the matching water flow segment by combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matching water flow segment and the current water use stage;

[0047] The valve control module is used to weight the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage through the proportional gain weight to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow control valve.

[0048] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the various possible implementations of the first aspect.

[0049] In a fourth aspect, an embodiment of the present invention provides a computer program product, which includes: computer program code, which, when running on a computer, enables the computer to execute the method in the above-mentioned first aspect or any possible implementation of the first aspect.

[0050] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed in a computer, the computer is caused to execute various possible implementations of the first aspect.

[0051] The embodiments of the present invention have at least the following beneficial effects:

[0052] The embodiment of the present invention structures continuous and complex water use data to facilitate precise focus on the water use characteristics of a specific time period. According to the water flow intensity of different water use stages, matching water flow segments are screened out, the time delay and proportional gain action points of the matching water flow segments are analyzed, the time differences of water use changes in different time periods and the key nodes of gain adjustment are understood, and the time control and parameter adjustment of the current water use stage are optimized. The matching of the parameters of the matching water flow segments with the water demand is analyzed to ensure that the reference matching water flow segments are closely aligned with the actual water demand. The gain matching degree of the matching water flow segments is analyzed to further reduce the interference or non-representative historical data and improve the quality of the reference data. The proportional gain weight of the matching water flow segments is determined to adjust the proportional gain coefficient, the water use pattern is analyzed, and the control parameters of the flow control valve are highly matched with the actual water use situation, effectively improving the control accuracy and stability of the water use system, while meeting the water demand, maximizing the rational use and efficient allocation of water resources, reducing water resource waste and excessive equipment loss. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0054] Figure 1 A flow chart of a flow fuzzy control method for a flow regulating valve provided by one embodiment of the present invention;

[0055] Figure 2 This is a system block diagram of a flow fuzzy control system applied to a flow regulating valve provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the flow fuzzy control method and system applied to the flow regulating valve proposed by the present invention, its specific implementation method, structure, characteristics and effects are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0057] In the following description, different references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.

[0058] In the description of the embodiments of the present invention, unless otherwise specified, " / " means or, for example, A / B can mean A or B: "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present invention, "multiple" refers to two or more than two.

[0059] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0060] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0061] The embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0062] The specific scheme of the flow fuzzy control method and system applied to a flow regulating valve provided by the present invention will be described in detail below with reference to the accompanying drawings.

[0063] See also Figure 1 , which shows a flow chart of a flow fuzzy control method applied to a flow control valve provided by an embodiment of the present invention, the method comprising the following steps:

[0064] Step S100: Acquire water flow data at the water inlet of the water-using area.

[0065] Any water-using area is used as the target water-using area for analysis. For the target water-using area, a water flow meter is installed at the water inlet. For example, a Doppler ultrasonic flow meter can be installed to collect data on the water flow entering the target water-using area during the monitoring process. The water flow data of the target water-using area reflects the real-time water use situation of the target water-using area, evaluates the temporal variation characteristics of water use intensity, and then analyzes the water use pattern. The PID fuzzy control algorithm is used for continuous adjustment to maintain high-precision regulation of the water use of the water-using area by the flow regulating valve, thereby achieving large-scale adaptive water release during peak water use and water resource conservation during low water use. It should be noted that the PID fuzzy control algorithm is based on the combination of the PID control algorithm and the fuzzy control algorithm. By fuzzifying the parameters of the PID control algorithm, it is made more adaptable to the characteristics of the actual control system and achieves better control effects.

[0066] Sensors located at the water inlet of the water-using area collect real-time water flow data at regular intervals (every 10 seconds), ensuring accuracy and completeness of the collected data, covering water use conditions at different times of the day. The collected water flow data undergoes preprocessing, including data cleaning and data interpolation. Data cleaning is used to remove abnormally large or small data points caused by sensor failure or signal interference. Data interpolation is used to supplement missing data using methods such as linear interpolation and spline interpolation to ensure data continuity.

[0067] Step S200: Filter out, from historical data, a matching water flow segment that matches the water flow intensity of the current water use stage.

[0068] In the control system of the flow control valve, there is a PID controller to achieve high-precision adjustment and response to the valve opening of the control valve, so as to achieve large-scale adaptive water release during peak water usage and water resource conservation during low water usage.

[0069] Therefore, the impact of water flow fluctuations in the water-using area can be dynamically monitored. The real-time dynamic monitoring results are then fed back to the fuzzy control unit PID controller, which adjusts the controller's proportional gain coefficient Kp to improve the response speed of the flow control valve. The current response speed of the control valve to abnormal conditions is fed back through changes in water flow data and demand, which serves as the adjustment requirement for the proportional gain coefficient of the PID controller.

[0070] The continuously monitored water flow data for the continuous water-using area is segmented into fixed-length segments to generate multiple water flow data segments. This allows for reference of the adjustment parameters of the flow control valve based on water use patterns with the same changing trends between segments. This allows the control unit to determine different response speeds, more effectively matching different abnormal water use patterns, achieving a dynamic response process for the flow control valve, and maintaining stable water flow and pressure. In this embodiment of the present invention, every 20 minutes of continuous water flow data is considered a water flow data segment.

[0071] The water flow data sequence of the historical data is divided into a plurality of water flow data segments, and the water flow intensity of each water flow data segment is determined. The water flow data sequence is a sequence composed of water flow data in the historical data arranged in time sequence.

[0072] In all water flow data segments in the historical data, water consumption data varies randomly. Historical data includes all water flow data, but there are small-impact segments corresponding to regular fluctuations in water usage in the water-using areas. The controller's default baseline proportional gain parameter maintains a stable flow control valve response, avoiding frequent actuation and reducing energy consumption and mechanical wear. However, there are large-impact segments corresponding to relatively drastic fluctuations in water usage, requiring a faster controller response. In these cases, the proportional gain coefficient in the PID parameters should be adjusted. This large-impact segment represents the affected water usage area.

[0073] Therefore, based on the fluctuation of water use, the affected part of water use is first determined from the water flow data sequence of historical data. Specifically: the slope value corresponding to each water flow data in the water flow data sequence of historical data is obtained; the water flow data where the maximum slope value appears for the first time is used as the dividing data; the water flow data sequence is divided into the front part and the back part with the dividing data as the dividing point, and the slope mean of the front part and the back part of the water flow data sequence is calculated; the part with the largest slope mean in the front part and the back part is taken as the part affected by water use.

[0074] Because water consumption in each water-using zone is random, historical data on past water usage patterns is used as a reference for the current water usage phase. The flow control valve controller parameters are set to dynamically adapt to different water usage phases. Using the current changing water usage data, the system filters the reference data segments in the historical data for the same water usage phase, and uses the controller parameter settings and response results to provide feedback on the current parameter settings.

[0075] After dividing the water flow data sequence of the historical data into a plurality of water flow data segments and determining the water use affected portion, the water flow intensity of each water flow data segment is further determined from the water use affected portion of the historical data.

[0076] For each water flow data segment, the integral of the curve segment corresponding to each slope data is used as the water flow intensity of the corresponding water flow data segment, and when the water flow increases, the integral is a positive value, and when the water flow decreases, it is a negative value.

[0077] Perform curve fitting on the water flow data segment and regard the curve between all two adjacent extreme points as a curve segment.

[0078] Taking any curve segment of the water flow data segment as an example, the water flow intensity of the t-th curve segment is The calculation formula is: ;in, is the slope sign of the t-th curve segment; is the definite integral value of the t-th curve segment.

[0079] The sum of the water flow intensities of all curve segments corresponding to the water flow data segment is used as the water flow intensity of the water flow data segment.

[0080] The integral value of the curve segment is used as the amplitude of the water flow intensity of the corresponding curve segment. The integral value represents the The area of ​​the closed figure formed by the perpendicular lines from the two end points of the curve segment to the horizontal axis and the x-axis. When the area is larger, it is considered that the user flow intensity in the current water use stage is greater.

[0081] Furthermore, after determining the water flow intensity of each water flow data segment, a matching water flow segment that matches the water flow intensity of the current water use stage is screened out from the water use affected portion of the historical data.

[0082] The water use intensity similarity is obtained by performing a negative correlation mapping between each water flow data segment of the affected part of the historical data and the difference in water flow intensity of the current water use stage. Specifically:

[0083] The difference between each water flow data segment of the affected water use part of the historical data and the water flow intensity of the current water use stage is normalized in inverse proportion to obtain the water use intensity similarity.

[0084] According to the water use intensity similarity, a water flow data segment of the affected portion of the historical data that matches the current water use stage is determined as a matching water flow segment, specifically:

[0085] The water use intensity similarities of all water flow data segments are sorted in ascending order to form an ordered sequence. Among all the data, the two water use intensity similarities corresponding to the maximum value of the difference between the first two adjacent water use intensity similarities that appear in chronological order are determined. The water flow data segments corresponding to the latter of these two water use intensity similarities and the subsequent water use intensity similarities are taken as the matching water flow segments that match the current water use stage.

[0086] Step S300, analyze the changes in the water flow data of the matching water flow segment in time series, and determine the proportional gain action point of the matching water flow segment; the time difference from the starting point of each matching water flow segment to the proportional gain action point is used as the time delay of each matching water flow segment.

[0087] It is assumed that the water usage fluctuations in the matching water flow segments that match the water flow intensity of the current water consumption phase are relatively significant, and that similar water demands exist between the matching water flow segments. This increases the response requirements of the flow control valve, and further increases the proportional gain parameters of the control unit to shorten the system response time. The proportional gain settings for the current water consumption phase are then combined with the proportional gain settings for the matching water flow segments.

[0088] Typically, for each water flow data segment, when the water flow data segment ends, a proportional gain value is determined for the water flow data segment, thereby enabling the PID control unit to make corresponding adjustments to the opening amount of the flow control valve.

[0089] However, in the embodiment of the present invention, only the water flow data of the water use that has occurred is considered as the basis for adjusting the response speed of the flow control valve. Therefore, in a water flow data segment in the historical data, the water demand analysis will be performed every time a water flow data is monitored, and then the parameter setting of the control unit is determined, resulting in the existence of several proportional gain coefficient settings in a water flow data segment.

[0090] When the proportional gain coefficient changes more steadily and the water flow data changes more rapidly, the proportional gain coefficient should not change gradually until it meets the water demand requirements. Instead, the proportional gain change should achieve a more effective response to water demand. That is, when a rapid change in water flow data is detected, the proportional gain should be adjusted immediately rather than waiting for the accumulation of system errors. This is reflected in the water flow data: changes in water flow data are accompanied by changes in proportional gain, and the smaller the delay, the greater the reference weight for the current water flow data segment.

[0091] For any matching water flow segment corresponding to the current water use stage, the point where the water flow data of the matching water flow segment suddenly changes is used as the proportional gain action point of the matching water flow segment. Specifically:

[0092] In each matching water flow segment, a fixed time window with a duration of 1 minute is selected and slid on the matching water flow segment. The maximum value of the slope difference value in the sliding window is screened, and when the previous slope value is less than the next slope value, the next moment of the two moments corresponding to the two data of the maximum slope difference value is used as the proportional gain action point.

[0093] The time difference between the starting point of each matching water flow segment and the proportional gain action point is used as the time delay of each matching water flow segment. In other words, at the beginning of the current matching water flow segment, the proportional gain parameter setting of the control unit is adjusted to adjust the valve opening of the flow control valve at the proportional gain action point; the time difference between the starting point of the matching water flow segment and the proportional gain action point is recorded as the time delay of the matching water flow segment.

[0094] Step S400 : comparing the changes of the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment.

[0095] In the ordered sequence of proportional gain coefficients, the higher the matching degree between the proportional gain setting and the water flow data and the actual water demand, the more it reflects that the controller response speed meets the water demand of the current curve segment.

[0096] In any matching water flow segment, before the appearance of the proportional gain action point, as the water flow data continues to increase, the proportional gain coefficient should be determined to a continuously increasing value. When the change in the water flow data after the proportional gain action point also shows a gradually increasing water demand, it reflects that the current proportional gain coefficient is more matched with the water demand. Therefore, before the cut-off proportional gain action point, the more the change trend of the proportional gain data sequence constituted by the proportional gain coefficient matches the change of the water flow data after the proportional gain action point, the more the determination of the proportional gain coefficient of the current matching water flow segment is in line with the demand of the current corresponding water use stage.

[0097] Therefore, the gain matching degree of each matching water flow segment is determined by the changes in the proportional gain data series and the water flow data series. It should be noted that since the changes in the proportional gain data series of the proportional gain coefficient and the changes in the water flow rate are based on different benchmarks, the difference between the changes between adjacent data points and the overall change reflects the matching of the parameters with the water demand.

[0098] For each matching water flow segment, the difference between the slope values ​​corresponding to two adjacent data in the proportional gain data sequence before the proportional gain action point is averaged, and the resulting value is used as the proportional gain difference;

[0099] The difference between the slope values ​​of two adjacent data in the water flow data sequence after the proportional gain action point is averaged, and the result is used as the water flow difference;

[0100] A negative correlation mapping is performed on the difference between the proportional gain difference and the water flow difference, and the result value is used as the gain matching degree of the matching water flow segment.

[0101] In some embodiments, the gain matching degree between each matching water flow segment and the water demand of the current water use stage is determined. The calculation formula is:

[0102]

[0103] in, is the proportional gain difference; is the difference in water flow.

[0104] Step S500 , determining a proportional gain weight of the matching water flow segment based on the time delay, the gain matching degree, and the difference between the matching water flow segment and the water flow intensity of the current water use stage.

[0105] The proportional gain coefficient of the proportional gain action point of each matching water flow segment is used as the horizontal coordinate, and the time delay of each matching water flow segment is used as the vertical coordinate. Each matching water flow segment has its own corresponding coordinate point (proportional gain coefficient, time delay).

[0106] Perform curve fitting on the coordinate points of all matching water flow segments corresponding to the current water use stage to obtain fitting curve segments.

[0107] According to the data pairs of all matching water flow segments, the mapping relationship between the setting of the proportional gain coefficient and the time delay amount under the conditions of the current water use stage is reflected to guide how to set the proportional gain coefficient in the current water use stage to cope with different time delays.

[0108] The residual size between the coordinate point of each matching water flow segment and the fitting curve segment is obtained. Specifically, the minimum Euclidean distance between the coordinate point and the fitting curve segment is used as the residual size.

[0109] Analyze the water flow data of each matching water flow segment and the response time delay of the control unit after the actual parameter setting, and analyze the effectiveness of each matching water flow segment for the current water use stage.

[0110] The effectiveness of the a-th matching water flow segment The calculation formula is:

[0111]

[0112] in, For the The gain matching degree between the first matching water flow segment and the current water consumption stage is expressed as The matching of the water flow data of each matching water flow segment with the water demand in the current water use stage; For the The time delay between the matching water flow segment and the current water use stage; For the The residual size between the coordinate points of the matching water flow segment and the fitting curve segment.

[0113] The greater the matching of the water flow data of the matching water flow segment with the water demand of the current water use stage, and the smaller the time delay, which reflects the timely response of the control unit, the more effective the setting of the proportional gain coefficient of the current matching water flow segment is for the current water use stage; and the smaller the residual size of the coordinate point of the matching water flow segment in the mapping relationship, the greater the effectiveness for the current water use stage.

[0114] The proportional gain weight of the matching water flow segment is determined based on the effectiveness and the difference in water flow intensity between the matching water flow segment and the current water use phase. The effectiveness and proportional gain weight are positively correlated, while the difference in water flow intensity and proportional gain weight are negatively correlated. This proportional gain weight serves as a reference for setting the proportional gain parameters for the current water use phase.

[0115] Proportional gain parameter of the ath matching water flow segment The calculation formula is:

[0116] ;in, For the The effectiveness of matching water flow segments; It is the difference between the water flow intensity of the matching water flow segment and the current water use stage. The difference is also the absolute value of the difference between the water flow intensity of the matching water flow segment and the current water use stage.

[0117] In step S600, the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage are weighted by the proportional gain weight to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow regulating valve.

[0118] The proportional gain coefficient of the PID controller is used to evaluate the response of the control system. Dynamic adjustment of the proportional gain coefficient can ensure that the water flow control system can respond to changes in water demand in a timely manner.

[0119] The proportional gain coefficient of the current water use stage is determined by weighting the reference weights of all matching water flow segments of the current water use stage and the data values ​​of the corresponding proportional gains. Specifically: the proportional gain weight of each matching water flow segment is normalized; the sum of the normalized proportional gain weights of all matching water flow segments is 1; using the normalized proportional gain weight as the weight, the proportional gain coefficients corresponding to the proportional gain action points of all matching water flow segments are weighted and summed to obtain the proportional gain coefficient of the current water use stage.

[0120] Finally, the controller adjustment response speed requirements for the current abnormal water use stage are determined to achieve high-precision response and balanced water supply to different water use patterns in a certain area.

[0121] After obtaining the proportional gain coefficient setting for the current water usage phase, fuzzy control of the flow control valve is implemented. The proportional gain coefficient and real-time water flow data are used as input variables for the fuzzy controller. Based on pre-set fuzzy rules, the fuzzy controller directly acts on the flow control valve, precisely adjusting the valve opening. This allows for flexible and precise fuzzy control of water flow based on the actual needs of the current water usage phase, ensuring the stability and efficiency of the water usage process.

[0122] See also Figure 2 , which shows a system block diagram of a flow fuzzy control system applied to a flow regulating valve provided by one embodiment of the present invention, the system includes:

[0123] A data acquisition module, used to obtain water flow data at the water inlet of the water-using area;

[0124] A matching module is used to select a matching water flow segment that matches the water flow intensity of the current water use stage from historical data;

[0125] The first analysis module is used to analyze the changes in the water flow data of the matching water flow segment in the time series and determine the proportional gain action point of the matching water flow segment; the time difference between the starting point of each matching water flow segment and the proportional gain action point is used as the time delay of each matching water flow segment;

[0126] A second analysis module is used to compare the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment;

[0127] A weight determination module is used to determine the proportional gain weight of the matching water flow segment by combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matching water flow segment and the current water use stage;

[0128] The valve control module is used to weight the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage through the proportional gain weight to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow control valve.

[0129] Optionally, the transmission medium may be a wired link, such as but not limited to coaxial cable, optical fiber, and digital subscriber line, or a wireless link, such as but not limited to Wireless Fidelity (WIFI), Bluetooth, and mobile device network.

[0130] It should be noted that the device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above.

[0131] An embodiment of the present invention provides a computer device. Exemplarily, the computer device includes: a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the computer device can execute any of the aforementioned flow fuzzy control methods applied to a flow regulating valve.

[0132] In addition, an embodiment of the present invention also protects a device, which may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute the flow fuzzy control method applied to the flow regulating valve provided by the embodiment of the present invention.

[0133] In embodiments of the present invention, the device may be divided into functional modules based on the above-described method examples. For example, these modules may correspond to individual functional modules, or two or more functions may be integrated into a single processing module. The integrated modules may be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and represents only a logical functional division. In actual implementation, other division methods may be employed.

[0134] In the case of dividing each module into modules corresponding to each function, the device may further include a signal uploading module, a determination module, an adjustment module, etc. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0135] It should be understood that the device provided in the embodiment of the present invention is used to execute the above-mentioned flow fuzzy control method applied to the flow regulating valve, and thus can achieve the same effect as the above-mentioned implementation method.

[0136] When an integrated unit is employed, the device may include a processing module and a storage module. When the device is applied to a device, the processing module can be used to control and manage the device's operations. The storage module can be used to support the device in executing program code, etc. The processing module can be a processor or controller that can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, etc. The storage module can be a memory.

[0137] In addition, the device provided in the embodiment of the present invention can specifically be a chip, component or module, and the chip may include a connected processor and memory; wherein the memory is used to store instructions, and when the processor calls and executes the instructions, the chip can execute the flow fuzzy control method applied to the flow regulating valve provided in the above embodiment.

[0138] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement the flow fuzzy control method applied to the flow regulating valve provided in the above embodiment.

[0139] An embodiment of the present invention further provides a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the flow fuzzy control method applied to a flow regulating valve provided in the above embodiment.

[0140] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present invention are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In the embodiments provided by the present invention, it should be understood that the disclosed device and method can be implemented in other ways.

[0141] The device embodiments described above are merely illustrative. For example, the division into modules or units represents only one logical functional division. Actual implementations may employ alternative divisions, such as combining or integrating multiple units or components into another device, or omitting or disabling certain features. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through an interface, or indirect coupling or communication connection between devices or units may be electrical, mechanical, or otherwise.

[0142] It should also be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or terminal device comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or terminal device comprising the element.

[0143] It should be noted that the order in which the embodiments of the present invention are described above is for illustrative purposes only and does not necessarily represent the superiority or inferiority of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0144] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0145] The above content is only a specific implementation method of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A flow fuzzy control method applied to a flow regulating valve, characterized in that: The method comprises the following steps: Obtain water flow data at the water inlet of the water-using area; Filter out the matching water flow segments that match the water flow intensity of the current water use stage from the historical data; Analyze the changes in the water flow data of the matching water flow segment in the time series and determine the proportional gain action point of the matching water flow segment; use the time difference from the starting point of each matching water flow segment to the proportional gain action point as the time delay of each matching water flow segment; Comparing the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment; The proportional gain weight of the matching water flow segment is determined by combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matching water flow segment and the current water use stage; Among them, the method for obtaining the proportional gain weight is: using the proportional gain coefficient of the proportional gain action point of each matching water flow segment as the horizontal coordinate, and using the time delay of each matching water flow segment as the vertical coordinate, each matching water flow segment has its own corresponding coordinate point; performing curve fitting on the coordinate points of all matching water flow segments corresponding to the current water use stage to obtain a fitting curve segment; obtaining the residual size of the coordinate point of each matching water flow segment and the fitting curve segment; for each matching water flow segment, combining the time delay, the gain matching degree and the residual size, determining the effectiveness of the matching water flow segment; determining the proportional gain weight of the matching water flow segment based on the effectiveness and the difference in water flow intensity between the matching water flow segment and the current water use stage; wherein, the effectiveness and the proportional gain weight are positively correlated; the difference in water flow intensity and the proportional gain weight are negatively correlated; Through the proportional gain weight, the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage are weighted to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow control valve.

2. The flow fuzzy control method for a flow regulating valve according to claim 1, characterized in that: The step of selecting a matching water flow segment that matches the water flow intensity of the current water use stage from the historical data includes: Based on the fluctuation of water use, the affected part of water use is determined from the water flow data series of historical data; Dividing the water flow data sequence of the historical data into a plurality of water flow data segments, and determining the water flow intensity of each water flow data segment; From the water use affected part of the historical data, the matching water flow segments that match the water use flow intensity of the current water use stage are screened out.

3. The flow fuzzy control method applied to a flow regulating valve according to claim 2, characterized in that: The method of determining the affected portion of water use from a water flow data sequence of historical data based on water use fluctuations includes: Obtaining the slope value corresponding to each water flow data in the water flow data sequence of historical data; The water flow data where the maximum slope value appears for the first time is used as the dividing data; Taking the partition data as the dividing point, the water flow data series is divided into the front part and the back part, and the slope mean of the front part and the back part of the water flow data series is calculated; The part with the largest mean slope between the first and second parts is taken as the part affected by water use.

4. The flow fuzzy control method applied to a flow regulating valve according to claim 2, characterized in that: The step of selecting, from the affected portion of the historical data, a matching water flow segment that matches the water flow intensity of the current water use phase includes: Perform negative correlation mapping on the difference between each water flow data segment of the affected part of the historical data and the water flow intensity of the current water use stage to obtain the water use intensity similarity; According to the water use intensity similarity, a water flow data segment of the water use-affected portion of the historical data that matches the current water use stage is determined as a matching water flow segment.

5. The flow fuzzy control method applied to a flow regulating valve according to claim 1, characterized in that: The analyzing and matching the change of the water flow data of the water flow segment in the time series and determining the proportional gain action point of the matching water flow segment includes: For any matching water flow segment corresponding to the current water use stage, the point where the water flow data of the matching water flow segment suddenly changes is used as the proportional gain action point of the matching water flow segment.

6. The flow fuzzy control method for a flow regulating valve according to claim 1, characterized in that: The comparing the changes of the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment includes: For each matching water flow segment, average the differences between the slope values ​​corresponding to two adjacent data in the proportional gain data sequence before the proportional gain action point, and use the resulting value as the proportional gain difference; averaging the differences in slope values ​​corresponding to two adjacent data in the water flow data sequence after the proportional gain action point, and using the resulting value as the water flow difference; A negative correlation mapping is performed on the difference between the proportional gain difference and the water flow difference, and the result value is used as the gain matching degree of the matching water flow segment.

7. The flow fuzzy control method for a flow regulating valve according to claim 6, characterized in that: The determining the effectiveness of matching the water flow segment by combining the time delay, the gain matching degree, and the residual size includes: The gain matching degree is used as the numerator, the product of the time delay and the residual size is used as the denominator, and the ratio is used as the effectiveness of matching the water flow segment.

8. The flow fuzzy control method applied to a flow regulating valve according to claim 1, characterized in that: The proportional gain coefficients of all matching water flow segments corresponding to the current water use stage are weighted by the proportional gain weight to determine the proportional gain coefficient of the current water use stage, including: Normalize the proportional gain weight of each matching water flow segment; the sum of the normalized proportional gain weights of all matching water flow segments is 1; The normalized proportional gain weight is used as the weight, and the proportional gain coefficients corresponding to the proportional gain action points of all matching water flow segments are weighted summed to obtain the proportional gain coefficient of the current water use stage.

9. A flow fuzzy control system applied to a flow regulating valve, characterized in that: The system includes the following modules: A data acquisition module, used to obtain water flow data at the water inlet of the water-using area; A matching module is used to select a matching water flow segment that matches the water flow intensity of the current water use stage from historical data; The first analysis module is used to analyze the changes in the water flow data of the matching water flow segment in the time series and determine the proportional gain action point of the matching water flow segment; the time difference between the starting point of each matching water flow segment and the proportional gain action point is used as the time delay of each matching water flow segment; A second analysis module is used to compare the changes in the proportional gain data sequence before the proportional gain action point with the water flow data sequence after the proportional gain action point to determine the gain matching degree of each matching water flow segment; A weight determination module is used to determine the proportional gain weight of the matching water flow segment by combining the time delay, the gain matching degree, and the difference between the water flow intensity of the matching water flow segment and the current water use stage; Among them, the method for obtaining the proportional gain weight is: using the proportional gain coefficient of the proportional gain action point of each matching water flow segment as the horizontal coordinate, and using the time delay of each matching water flow segment as the vertical coordinate, each matching water flow segment has its own corresponding coordinate point; performing curve fitting on the coordinate points of all matching water flow segments corresponding to the current water use stage to obtain a fitting curve segment; obtaining the residual size of the coordinate point of each matching water flow segment and the fitting curve segment; for each matching water flow segment, combining the time delay, the gain matching degree and the residual size, determining the effectiveness of the matching water flow segment; determining the proportional gain weight of the matching water flow segment based on the effectiveness and the difference in water flow intensity between the matching water flow segment and the current water use stage; wherein, the effectiveness and the proportional gain weight are positively correlated; the difference in water flow intensity and the proportional gain weight are negatively correlated; The valve control module is used to weight the proportional gain coefficients of all matching water flow segments corresponding to the current water use stage through the proportional gain weight to determine the proportional gain coefficient of the current water use stage; the proportional gain coefficient and water flow data are input into the fuzzy controller, and the fuzzy controller controls the valve opening of the flow control valve.

Citation Information

Patent Citations

  • Apparatus for predicting flow of water supplying

    CN1097829A

  • Motor controller adaptive rotary transformer processing method and system

    CN119834685A

  • Reverse flow valve intelligent adjusting method based on self-adaptive control algorithm

    CN119861780A

Cited By

  • Regulating valve detection system and method based on data characteristics

    CN121276999A

  • A data feature-based control valve detection system and method thereof

    CN121276999B