An Internet of Things online monitoring and control intelligent water pump system

Through the Internet of Things online monitoring and control of the intelligent water pump system, water level and water pressure data are collected and processed in real time, and adaptive control instructions are generated, which solves the problem of lag in the adjustment of the existing water pump monitoring system, and realizes the efficient operation and intelligent management of the water pump system.

CN118605626BActive Publication Date: 2024-11-19LONGYAN NINE DRAGON WATER PUMP MFG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410962385.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-19
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

The existing water pump monitoring system cannot adaptively adjust the operating status of the water pump based on the real-time monitoring results, resulting in a lag in the water pump system adjustment and affecting the operating efficiency.

Method used

An intelligent water pump system for online monitoring and control of the Internet of Things was designed, and through the water level line numerical acquisition unit, the water pump water pressure online monitoring unit and the water pump control instruction generation unit, the water level and water pressure data were collected and processed in real time, and adaptive control instructions were generated. Image processing technology is used to accurately measure the water level line values, and remote monitoring and control are achieved through Internet of Things technology.

Benefits of technology

It realizes rapid response and efficient operation of water pumps, reduces human errors, improves the accuracy and control efficiency of water level monitoring, and ensures intelligent management and scientific management of water pump systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605626B_ABST
    Figure CN118605626B_ABST
Patent Text Reader

Abstract

The present invention discloses an Internet of Things online monitoring and control intelligent water pump system, which relates to the field of water pump control technology. The online monitoring and control intelligent water pump system includes: a water level line value acquisition unit, which collects water level images within a preset range of a water tank scale, processes the water level images, and obtains the water level line value of the water tank based on the processing result; a water pump water pressure online monitoring unit, which collects the pressure value of the water pump in the water tank, and combines the pressure value with the water level line value to generate a water pump pressure adjustment instruction; a water pump control instruction generation unit, which converts the water level line value into a current analog quantity, and generates a water pump control instruction based on the current analog quantity; a water pump intelligent control monitoring unit, which sends the water pump control instruction and the water pump pressure adjustment instruction to the water pump controller to intelligently adjust the water pump. The present invention fuses water level data with pressure data to predict the pressure value in real time, ensuring accurate regulation of the water pump 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 water pump control, and in particular to an Internet of Things online monitoring and control intelligent water pump system. Background Art

[0002] Liquid variable displacement machinery is a type of machinery that transports or compresses liquid by changing the volume of its internal cavity. This type of machinery is widely used in various industrial fields and may include water pumps, compressors, etc., among which a water pump is a machine used to transport liquid or pressurize liquid. It transfers the mechanical energy of the prime mover or other external energy to the liquid to increase the energy of the liquid. It is mainly used for pumping water, draining water or increasing pressure.

[0003] In specific applications, in order to ensure the normal operation of the water pump, a monitoring and control system is usually used to grasp the operating status of the water pump in real time, promptly discover and handle faults or abnormal operations, ensure the continuous and stable operation of the water pump system, and realize remote monitoring and control of the water pump, so that managers can grasp the operation of the water pump inside the water tank and the water level in the water tank anytime and anywhere.

[0004] However, when the water pump monitoring system in the prior art is used, the water pump monitoring system cannot adaptively adjust the operating status of the water pump according to the monitoring results, and cannot quickly respond to changes in water level and pressure, resulting in a lag in the adjustment of the water pump system, affecting the overall operating efficiency.

[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention

[0006] In order to solve the above problems, the present invention proposes an Internet of Things online monitoring and control intelligent water pump system to achieve the purpose of adaptively adjusting the water pressure and current of the water pump.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] An Internet of Things online monitoring and control intelligent water pump system, the online monitoring and control intelligent water pump system comprising:

[0009] A water level value acquisition unit collects a water level image within a preset range of the water tank scale, processes the water level image, and acquires a water level value of the water tank based on the processing result;

[0010] The water pump water pressure online monitoring unit collects the pressure value of the water pump in the water tank, and combines the pressure value with the water level value to generate a water pump pressure adjustment instruction;

[0011] A water pump control instruction generating unit converts the water level line value into a current analog quantity, and generates a water pump control instruction based on the current analog quantity and the water pump pressure adjustment instruction;

[0012] The water pump intelligent control monitoring unit sends the water pump control instructions and the water pump pressure adjustment instructions to the water pump controller, and the water pump controller receives the instructions and performs intelligent adjustment on the water pump.

[0013] Preferably, the water level value acquisition unit includes:

[0014] The water level image acquisition module uses a monitoring camera to collect water level images within the scale range of the water tank;

[0015] The water level image processing module uses a threshold segmentation algorithm to process the water level image, obtains the scale contour based on the processing result, and uses the scale contour to analyze the coordinates of the water level line in the water level image;

[0016] The water level line value obtaining module performs secondary processing on the water level image based on the water level line coordinate results, and uses a matching algorithm to identify the processing results to obtain the water level line value of the water tank.

[0017] Preferably, the water level image is processed by a threshold segmentation algorithm, a scale contour is obtained based on the processing result, and the coordinates of the water level line in the water level image are analyzed by using the scale contour, including:

[0018] The water level image is filtered and denoised and then divided into a target area and a background area;

[0019] Decompose the target area into several groups of disconnected sub-domains, select the sub-domain with the largest area as the main area, and extract the pixel-level edges corresponding to the main area;

[0020] Acquire feature points and complete target contour lines based on pixel-level edges, and segment and merge the complete target contour lines to obtain scale contour lines;

[0021] A target coordinate system is established based on the feature points, and the coordinates of the water level line in the water level image are analyzed using the conversion relationship between the target coordinate system and the world coordinate system.

[0022] Preferably, acquiring feature points and a complete target contour line based on pixel-level edges, and segmenting and merging the complete target contour line to obtain a scale contour line comprises:

[0023] Implement edge detection and smoothing on pixel-level edges, use the sub-pixel contour obtained by smoothing as the complete target contour line, and obtain feature points from the edge detection results;

[0024] The pre-set thinning threshold is combined with the split-merge algorithm to perform the initial segmentation of the complete target contour line, and several groups of contour segments are obtained based on the segmentation results, and the contour segments are replaced by straight line segments;

[0025] The arc equation is used to perform initial fitting on the data points of two adjacent contour segments to obtain the arc segment, and the arc segment fitting result is obtained according to the maximum distance between the arc segment and the two adjacent contour segments;

[0026] Based on the arc segment fitting results, the split-merge algorithm and the arc equation, the contour segment is divided and fitted twice to obtain the scale contour line formed by fitting several arc segments.

[0027] Preferably, the water pump water pressure online monitoring unit comprises:

[0028] The pressure water level data acquisition module uses the water level sensor and pressure sensor at the water tank and water pump to collect the water tank water level data and water pump pressure data in real time;

[0029] The pressure water level data processing module is used to perform data processing and fusion operations on the water tank water level data and the water pump pressure data to obtain combined data at the same timestamp;

[0030] The water pump pressure value prediction module determines the corresponding relationship between pressure and water level in real time based on the relational model, and combines the corresponding relationship with the water level demand of the water tank to calculate the target pressure value of the water pump;

[0031] The water pump adjustment instruction generation module defines adjustment parameters according to the difference between the real-time water pump pressure data and the target pressure value, and generates a water pump pressure adjustment instruction using the adjustment parameters.

[0032] Preferably, based on the relationship model, the corresponding relationship between pressure and water level is determined in real time, and the corresponding relationship is combined with the water level demand of the water tank to calculate the target pressure value of the water pump, including:

[0033] Based on the historical combined data, a grey relational model is obtained and the judgment index is determined. At the same time, the water level data of the water tank and the water pump pressure data are received and input into the grey relational model to obtain the reference index evaluation value of the judgment index.

[0034] The water level data of the water tank is used as the reference sequence and the water pump pressure data is used as the comparison sequence. The corresponding relationship between pressure and water level is determined based on the comprehensive weight of the indicators determined by the comparison sequence and the relationship model is constructed.

[0035] The target water level change curve is obtained based on the water level demand of the water tank, and the target water level change curve is combined with the relationship model to construct a joint model between the real-time water level and the target pressure to obtain the target pressure value of the water pump.

[0036] Preferably, the water level data of the water tank is used as a reference sequence, the water pump pressure data is used as a comparison sequence, and after the comprehensive weight of the index is determined according to the comparison sequence, a relationship model is constructed to determine the corresponding relationship between pressure and water level, including:

[0037] The water level data of the water tank is used as the reference sequence, the water pump pressure data is used as the comparison sequence, and the comparison sequence is dimensionlessly processed to obtain the comparison index evaluation value of the judgment index;

[0038] Obtain the weight value of the judgment index based on the comparison index evaluation value, and analyze the grey correlation coefficient between the reference sequence and the comparison sequence according to the weight value;

[0039] The grey correlation coefficient is used to calculate the grey correlation degree between the reference sequence and the comparison sequence, and the grey correlation degrees are compared and sorted in order of size;

[0040] According to the association sorting results, a relationship model is constructed to determine the corresponding relationship between pressure and water level.

[0041] Preferably, defining an adjustment parameter according to a difference between the real-time water pump pressure data and the target pressure value, and using the adjustment parameter to generate a water pump pressure adjustment instruction comprises:

[0042] Calculate the difference between the real-time water pump pressure data and the target pressure value to obtain a pressure difference, and determine the proportional, integral and differential gains using a proportional adjustment control algorithm based on the pressure difference;

[0043] The optimization algorithm is used to select the optimal values ​​of proportional, integral and differential gains as adjustment parameters, and the proportional control algorithm is used to calculate the adjustment instructions of the water pump to determine the pump speed and valve opening of the water pump.

[0044] Preferably, the calculation formula of the water pump adjustment instruction is:

[0045] ;

[0046] In the formula, L ( t ) indicates the t The pump regulation instructions within a time period, W p represents the proportional gain, W i represents the integral gain, W d represents the differential gain, △ T Indicates the pressure difference, v represents the time variable from 0 to time period t, e Indicates the pressure difference over time period t The speed of change.

[0047] Preferably, the water pump control instruction generating unit includes:

[0048] The line value mapping conversion module converts the water level value into a current analog value recognizable by the water pump controller according to the mapping relationship between the water level value and the current;

[0049] The water pump current control instruction module combines the current analog value with the water pump pressure adjustment instruction and generates the water pump current control instruction using the proportional control algorithm;

[0050] The water pump start and stop control module uses the device communication interface to store the current command and controls the automatic start and stop of the water pump according to the current size.

[0051] The beneficial effects of the present invention are:

[0052] 1. The present invention obtains water level and water pressure data in real time to ensure instant understanding of the water tank status, generates and executes control instructions based on real-time data, quickly responds to changes in water level and pressure, and ensures efficient operation of the water pump. At the same time, image processing technology is used to accurately measure the water level line value, which can reduce human errors and improve the accuracy of water level monitoring. Control instructions are automatically generated according to the set control logic to achieve unmanned intelligent management. Through the Internet of Things technology, managers can remotely monitor and control the water pump system, which is convenient for management and provides important guarantees for the efficient operation and scientific management of the water pump system.

[0053] 2. The present invention integrates water level data and pressure data to form complete system data, and based on the relationship model of water level and pressure, predicts the pressure value in real time to ensure accurate regulation of the water pump system. At the same time, combined with the water level demand of the sump, the target pressure value of the water pump is calculated through the relationship model to ensure that the system is adjusted on demand. The adjustment parameters are defined according to the difference between the real-time water pump pressure data and the target pressure value, and the water pump pressure adjustment instructions are generated using the adjustment parameters to achieve adaptive control, which significantly improves the monitoring accuracy and control efficiency of the water pump system. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0055] Figure 1 The present invention is a block diagram of an Internet of Things online monitoring and control intelligent water pump system according to an embodiment of the present invention.

[0056] In the figure:

[0057] 1. Water level value acquisition unit; 2. Water pump water pressure online monitoring unit; 3. Water pump control instruction generation unit; 4. Water pump intelligent control monitoring unit. DETAILED DESCRIPTION

[0058] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0059] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0060] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any variation thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0061] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0062] See also Figure 1 The present invention provides an Internet of Things online monitoring and control intelligent water pump system, the online monitoring and control intelligent water pump system comprising:

[0063] The water level value acquisition unit 1 collects the water level image within the preset range of the water tank scale, processes the water level image, and obtains the water level value of the water tank based on the processing result;

[0064] The water pump water pressure online monitoring unit 2 collects the pressure value of the water pump in the water tank, and combines the pressure value with the water level value to generate a water pump pressure adjustment instruction;

[0065] The water pump control instruction generating unit 3 converts the water level line value into a current analog value, and generates a water pump control instruction based on the current analog value and the water pump pressure adjustment instruction;

[0066] The water pump intelligent control monitoring unit 4 sends the water pump control instruction and the water pump pressure adjustment instruction to the water pump controller, and the water pump controller receives the instruction and performs intelligent adjustment on the water pump.

[0067] In this embodiment, the water level value acquisition unit 1 includes:

[0068] The water level image acquisition module uses a monitoring camera to collect water level images within the scale range of the water tank;

[0069] The water level image processing module uses a threshold segmentation algorithm to process the water level image, obtains the scale contour based on the processing result, and uses the scale contour to analyze the coordinates of the water level line in the water level image;

[0070] The water level line value obtaining module performs secondary processing on the water level image based on the water level line coordinate results, and uses a matching algorithm to identify the processing results to obtain the water level line value of the water tank.

[0071] In this embodiment, when the water level image is processed by using a threshold segmentation algorithm, the scale contour is obtained based on the processing result, and the coordinates of the water level line in the water level image are analyzed using the scale contour, the water level image can be filtered and denoised and then divided into a target area and a background area; the target area is decomposed into several groups of unconnected sub-domains, the sub-domain with the largest area is selected as the main area, and the pixel-level edges corresponding to the main area are extracted; feature points and complete target contour lines are obtained based on pixel-level edges, and the complete target contour lines are segmented and merged to obtain the scale contour line; a target coordinate system is established based on the feature points, and the coordinates of the water level line in the water level image are analyzed using the conversion relationship between the target coordinate system and the world coordinate system.

[0072] It should be explained that when the water level image is divided into the target area and the background area after filtering and denoising, a suitable filter can be selected: including a median filter, which is suitable for removing pulse noise such as salt and pepper noise. The specific principle is to replace the pixel value of a point in the image with the median of the pixel values ​​of each point in the neighborhood of the point. The median filter can better maintain the edge information of the image while removing noise.

[0073] Gaussian filter is suitable for removing Gaussian noise. It performs weighted averaging on the image so that the value of each pixel is obtained by the weighted average of the pixel values ​​in its neighborhood. Gaussian filtering will blur the edges of the image while smoothing the image.

[0074] Bilateral filter: Combining the spatial proximity and pixel value similarity of the image, it can maintain edge information while denoising.

[0075] Apply filter: Use the corresponding function in the image processing library (such as OpenCV, PIL, etc.) to apply the selected filter to the water level image for noise reduction.

[0076] When dividing the image into the target area and the background area, a suitable threshold is selected according to the grayscale histogram of the image to divide the image into the target area and the background area. For the water level image, the area above the water level line is usually the background, and the area below the water level line is the target.

[0077] Region-based segmentation: Use methods such as region growing and level set to perform segmentation based on image features such as texture and color.

[0078] Edge-based segmentation: First detect the edges in the image, and then divide the image into different regions based on the edge information. For water level images, the edges of the water level line can be detected as the basis for segmentation.

[0079] Post-processing: morphological operations (such as corrosion, expansion, opening operation, closing operation, etc.) are performed on the segmentation results to remove small noise areas, fill holes, smooth boundaries, etc. In this embodiment, when feature points and complete target contour lines are obtained based on pixel-level edges, and the complete target contour lines are segmented and merged to obtain scale contour lines, edge detection and smoothing are performed on the pixel-level edges, and the sub-pixel contour obtained by smoothing is used as the complete target contour line, and feature points are obtained from the edge detection results; the complete target contour line is initially segmented by fusing the pre-set thinning threshold with the split-merge algorithm, and several groups of contour segments are obtained based on the segmentation results, and the contour segments are replaced by straight line segments; the data points of two adjacent contour segments are initially fitted using the arc equation to obtain arc segments, and the arc segment fitting results are obtained according to the maximum distance between the arc segment and the two adjacent contour segments; the contour segments are secondarily segmented and fitted based on the arc segment fitting results, the split-merge algorithm and the arc equation to obtain the scale contour line formed by fitting several arc segments.

[0080] In order to facilitate understanding of the technical solution of the present invention, the present invention is described in detail below on how to obtain the water level value of the water tank in the actual process.

[0081] Step 1: Image acquisition;

[0082] (1) Equipment selection: Use a surveillance camera with a resolution of at least 1920x1080 to ensure a clear image. Fix the camera opposite the water tank scale and ensure that the scale is in the center of the camera's field of view. Set automatic exposure and white balance to ensure that the image has good visibility under different lighting conditions.

[0083] (2) Image preprocessing: Use the OpenCV library to read the captured image and convert the RGB image into a grayscale image to reduce the amount of calculation.

[0084] (3) Filtering and noise reduction: Apply a Gaussian filter to smooth the image to reduce noise, and apply an adaptive threshold method to segment the image into target and background.

[0085] Step 2: Water level identification;

[0086] (1) Edge detection: Use the Canny edge detection algorithm, where the threshold can be determined through experiments, specifically 50 and 150.

[0087] (2) Contour extraction: Use cv2.findContours() to find edge-connected contours and select the contour with the largest area as the main contour of the water level scale.

[0088] (3) Contour optimization: Smooth the extracted contour, use contour simplification based on the Douglas-Peucker algorithm, and identify feature points in the contour.

[0089] Step 3: Value extraction and coordinate transformation;

[0090] (1) Establishment of feature points and coordinate system: The target coordinate system in the image is established based on the contour feature points, and the conversion relationship between the target coordinate system and the world coordinate system is established. The conversion parameters, such as scaling and offset, are obtained through field measurements.

[0091] (2) Arc fitting and optimization: Divide the contour into segments and fit them with straight lines or arc segments. Use algorithms such as the least squares method to accurately calculate the maximum deviation distance between each arc segment and the straight line, and adjust the fitting parameters until the error requirements are met.

[0092] The following is a specific test case:

[0093] 1. Test environment setup;

[0094] The image size is set to 1080x720 pixels, and the ruler size is a water level ruler 1 meter high with a significant scale every 10 cm.

[0095] Image preprocessing parameters: Gaussian filter parameters with kernel size of (5, 5) and standard deviation of 0.

[0096] 2. Threshold segmentation algorithm;

[0097] Use adaptive threshold, with the maximum threshold as 255, the threshold type as 11, and the constant as 2.

[0098] 3. Contour processing and arc fitting parameters;

[0099] The minimum threshold of edge detection (Canny algorithm) is 50 and the maximum threshold is 150;

[0100] The retrieval mode in contour extraction is RETR-EXTERNAL, the contour approximation method uses CHAIN-APPROX-SIMPLE, and the thinning threshold has a minimum of 5 pixels between each scale.

[0101] The arc fitting algorithm uses the least square method, and the maximum fitting error is 0.1 cm.

[0102] Test case:

[0103] Assume that we have a series of water level images collected from a preset range of a water tank scale. The water levels are between 0 cm and 100 cm, with a test point every 10 cm.

[0104] Test 1: water level 0 cm;

[0105] Simulate Image: Generates an image of the ruler at the lowest water level (bottom).

[0106] Expected Result: After the processing flow, the identified water level should match the actual water level (0 cm).

[0107] Test 2: water level 50 cm;

[0108] Simulated image: Generates an image where the water level is exactly in the middle of the ruler (50 cm).

[0109] Expected Result: The identified water level should be represented accurately to 50 cm.

[0110] Test 3: water level 100 cm;

[0111] Simulate Image: Generates an image with the water level at the top of the ruler.

[0112] Expected Result: The identified water level should be correctly displayed as 100 cm.

[0113] Based on the test results, the accuracy and reliability of the process from image acquisition to water level reading will be verified, according to the actual image quality and environmental conditions. In this embodiment, the water pump water pressure online monitoring unit 2 includes:

[0114] The pressure water level data acquisition module uses the water level sensor and pressure sensor at the water tank and water pump to collect the water tank water level data and water pump pressure data in real time;

[0115] The pressure water level data processing module is used to perform data processing and fusion operations on the water tank water level data and the water pump pressure data to obtain combined data at the same timestamp;

[0116] The water pump pressure value prediction module determines the corresponding relationship between pressure and water level in real time based on the relational model, and combines the corresponding relationship with the water level demand of the water tank to calculate the target pressure value of the water pump;

[0117] The water pump adjustment instruction generation module defines adjustment parameters according to the difference between the real-time water pump pressure data and the target pressure value, and generates a water pump pressure adjustment instruction using the adjustment parameters.

[0118] In this embodiment, when performing data processing and fusion operations on the water tank water level data and the water pump pressure data to obtain combined data at the same timestamp, the collected water level data and pressure data can be aligned to ensure that the water level and pressure data at the same time point can be fused, and a filter (such as a low-pass filter, a median filter) is used to filter the water level and pressure data for noise, remove interference signals during the collection process, and detect and process outliers; the water level data and pressure data are aligned according to the time window to ensure that the data in each time window is complete, and specifically, a fixed time interval (such as every second) can be used for alignment; if there is missing data, an interpolation algorithm (such as linear interpolation, spline interpolation) can be used to fill the missing data to ensure data continuity; the aligned water level data and pressure data are integrated into combined data at the same timestamp, and the fused data is checked for consistency to ensure that the water level and pressure data at each timestamp are reasonable and matching.

[0119] It should be explained that when using filters to filter noise from water level and pressure data, and removing interference signals during the collection process, and detecting and processing abnormal values, data preprocessing must be performed first, including data cleaning, removal of duplicate data, invalid data, etc., and checking data integrity to ensure that no key information is missing.

[0120] Based on statistical methods: For example, outliers are identified using methods such as Z-score and IQR (interquartile range). For the Z-score method, sample points with an absolute value greater than 3 (or other thresholds) are usually considered outliers for outlier detection.

[0121] Model-based methods: For example, the Hampel filter is used to identify outliers based on the median absolute deviation (MAD) and a rolling window. For each data point, its absolute deviation from the median of the window is calculated. If the deviation exceeds a preset threshold (such as 2.5 or 3 times the MAD), it is considered an outlier.

[0122] Based on domain knowledge: According to the physical characteristics of water level and pressure data and the actual collection environment, a reasonable range is set, and data beyond this range can be regarded as abnormal. In this embodiment, when the corresponding relationship between pressure and water level is judged in real time based on the relational model, and the corresponding relationship is combined with the water level demand of the water tank to calculate the target pressure value of the water pump, the gray relational model is obtained based on the historical combination data and the judgment index is determined. At the same time, the water tank water level data and the water pump pressure data are received and input into the gray relational model to obtain the reference index evaluation value of the judgment index; the water tank water level data is used as the reference sequence and the water pump pressure data is used as the comparison sequence, and the relationship model is constructed based on the comprehensive weight of the comparison sequence judgment index to judge the corresponding relationship between pressure and water level; the target water level change curve is obtained based on the water tank water level demand, and the target water level change curve is combined with the relational model to construct a joint model between the real-time water level and the target pressure to obtain the target pressure value of the water pump.

[0123] In this embodiment, when the water tank water level data is used as a reference sequence and the water pump pressure data is used as a comparison sequence, and the comprehensive weight of the comparison sequence judgment index is used to judge the corresponding relationship between pressure and water level according to the constructed relationship model, the water tank water level data is used as a reference sequence and the water pump pressure data is used as a comparison sequence, and the comparison sequence is dimensionlessly processed to obtain a comparison index evaluation value of the judgment index; the weight value of the judgment index is obtained based on the comparison index evaluation value, and the grey correlation coefficient between the reference sequence and the comparison sequence is analyzed according to the weight value; the grey correlation degree between the reference sequence and the comparison sequence is calculated using the grey correlation coefficient, the grey correlation degrees are compared and sorted in order of size; and the corresponding relationship between pressure and water level is judged according to the correlation sorting result and the constructed relationship model.

[0124] In this embodiment, when defining adjustment parameters according to the difference between real-time water pump pressure data and target pressure values, and generating water pump pressure adjustment instructions using the adjustment parameters, the difference between the real-time water pump pressure data and the target pressure value is calculated to obtain the pressure difference, and based on the pressure difference, the proportional, integral and differential gains are determined using the proportional adjustment control algorithm; the optimal values ​​of the proportional, integral and differential gains are selected as adjustment parameters using the tuning algorithm, and the adjustment instructions of the water pump are calculated using the proportional control algorithm to determine the pumping speed and valve opening of the water pump.

[0125] It should be explained that the optimization algorithm is used to select the optimal values ​​of proportional, integral and differential gains (i.e., the Kp, Ki, Kd parameters of the PID controller), and the proportional control algorithm is used to calculate the regulation instructions of the water pump to determine the pump speed and valve opening of the water pump. The following main steps are involved:

[0126] 1. Determine the control objectives and system model;

[0127] Clarify control objectives: Specific variables that need to be controlled, such as water level, pressure, etc., and set their desired target values.

[0128] Establish a system model: understand the dynamic characteristics of the water pump system, including the flow characteristics, head characteristics of the water pump, and the impact of the valve on water flow.

[0129] 2. PID controller design and tuning;

[0130] PID controller design: Select the appropriate PID controller structure, including the three basic forms of proportional, integral and differential.

[0131] Initial values ​​of PID parameters are preliminarily set, which can be based on experience or estimation of system characteristics.

[0132] Tuning algorithm selection: Use tuning algorithms (such as genetic algorithm, particle swarm optimization algorithm, Ziegler-Nichols method, etc.) to automatically search for the optimal values ​​of PID parameters.

[0133] According to the dynamic response characteristics of the system, evaluation functions (such as integral of error, overshoot, adjustment time, etc.) are defined to measure the performance of PID control.

[0134] Parameter tuning process: Run the tuning algorithm and gradually adjust the PID parameters through multiple iterative searches to make the evaluation function optimal (or close to optimal).

[0135] Record the results of each iteration and observe changes in system response for subsequent analysis and adjustment.

[0136] 3. Calculation and execution of control instructions;

[0137] Control instruction calculation: Use the PID parameters obtained after tuning, combined with the current system status (such as actual water level, pressure, etc.) and target value to calculate the output value of the PID controller (i.e., the adjustment instruction).

[0138] In this embodiment, the calculation formula of the water pump adjustment instruction is:

[0139] ;

[0140] In the formula, L ( t ) indicates the t The pump regulation instructions within a time period, W p represents the proportional gain, W i represents the integral gain, W d represents the differential gain, △ T Indicates the pressure difference,v represents the time variable from 0 to time period t, e Indicates the pressure difference over time period t The speed of change.

[0141] In order to ensure the accurate generation of water pump pressure regulation instructions, it is necessary to establish a detailed implementation plan, including hardware configuration, data acquisition and processing, establishment of relationship model, and definition of control strategy. In order to facilitate understanding of the technical solution of the present invention, the generation of water pump pressure regulation instructions in the actual process of the present invention is described in detail below.

[0142] Step 1: Hardware configuration and data collection;

[0143] (1) Water level sensor: The type is an ultrasonic water level sensor with a resolution of 0.1 cm and a measurement range of 0-200 cm;

[0144] (2) Pressure sensor: The type is a piezoelectric pressure sensor with a resolution of 0.01 bar and a measurement range of 0-10 bar;

[0145] (3) Data collection and processing: The time interval for data synchronization and alignment is to collect data once per second, and the alignment method uses timestamp alignment.

[0146] (4) Data filtering: Use a low-pass filter to process the water level and pressure data, and the filter cutoff frequency is set to 0.1 Hz to remove high-frequency noise.

[0147] (5) Outlier processing: Use a median filter with a window size of 5 to process sudden noise points.

[0148] Step 2: Relationship model and target pressure calculation;

[0149] (1) Establishment of relationship model: The relationship model between water level and pressure is constructed using grey system theory.

[0150] (2) Dimensionless processing: Standardize water level and pressure data using MinMaxScaler.

[0151] (3) Weight determination: The weight of each factor is determined by regression analysis based on historical data, for example, the water level weight is 0.6 and the pressure weight is 0.4.

[0152] (4) Target pressure calculation: According to the real-time water level demand, the target water level curve is set, such as the water level rising smoothly from 50 cm to 70 cm within a specific time.

[0153] The target pressure is calculated in combination with the grey relationship model, such as the target pressure increases smoothly from 2 bar to 3 bar.

[0154] Step 3: Control strategy and instruction generation;

[0155] (1) PID control parameters: proportional gain (Kp) is 1.2, integral gain (Ki) is 0.01, and differential gain (Kd) is 0.05.

[0156] (2) Generation of control instructions: Calculate the pressure difference (the difference between the actual pressure and the target pressure), apply the PID algorithm to calculate the control amount, and update the pump speed and valve opening.

[0157] In order to design the test data and cases for the generation process of the water pump pressure regulation command, it is necessary to define the test parameters in detail, set the simulation scenario, and prepare a complete implementation process to simulate the operation, including defining the specific value range of the water level and pressure, and the parameter setting of the PID controller. The following is a specific example of this process:

[0158] 1. Test parameter setting;

[0159] The measuring range of water level and pressure: water level is 0 cm to 200 cm, with a test point every 20 cm; pressure is 0 bar to 5 bar, with a test point every 0.5 bar.

[0160] 2. PID controller parameters (preliminary setting, adjusted according to actual conditions): proportional gain (Kp) is 1.0, integral gain (Ki) is 0.1, and differential gain (Kd) is 0.05.

[0161] 3. Data collection and processing simulation: The data collection frequency is once per second, and the missing data are handled using linear interpolation method, and a low-pass filter with a cutoff frequency of 0.1 Hz is applied to filter the data.

[0162] 4. Relationship model and target pressure calculation: In the grey relationship model parameters, the reference sequence is the water level data, and the comparison sequence is the pressure data. The relationship strength is determined based on the grey correlation coefficient calculation.

[0163] Test cases;

[0164] Assume testing under a range of different water levels and pressure conditions to verify the system's response and the accuracy of the regulation commands.

[0165] Test 1: low water level and low pressure;

[0166] Initial conditions: water level is 20 cm, pressure is 0.5 bar;

[0167] Target pressure: adjusted to 1.0 bar;

[0168] Expected result: The adjustment command should be calculated to increase the pressure smoothly to 1.0 bar.

[0169] Test 2: medium water level high pressure;

[0170] Initial conditions: water level 100 cm, pressure 4.5 bar;

[0171] Target pressure: adjusted to 3.0 bar;

[0172] Expected result: The adjustment command should be calculated to smoothly reduce the pressure to 3.0 bar.

[0173] Test 3: high water level and medium pressure;

[0174] Initial conditions: water level is 200 cm, pressure is 2.5 bar;

[0175] Target pressure: adjusted to 2.0 bar;

[0176] Expected result: The adjustment command should be calculated to adjust the pressure appropriately to 2.0 bar.

[0177] Based on the test results, the accuracy of generating the water pump pressure regulation instruction will be verified. In this embodiment, the water pump control instruction generating unit 3 includes:

[0178] The line value mapping conversion module converts the water level value into a current analog value recognizable by the water pump controller according to the mapping relationship between the water level value and the current;

[0179] The water pump current control instruction module combines the current analog value with the water pump pressure adjustment instruction and generates the water pump current control instruction using the proportional control algorithm;

[0180] The water pump start and stop control module uses the device communication interface to store the current command and controls the automatic start and stop of the water pump according to the current size.

[0181] In this embodiment, when the water level value is converted into a current analog value recognizable by the water pump controller according to the mapping relationship between the water level value and the current, the collected water level value can be calibrated to ensure the accuracy of the data. The water level value is established according to the system requirements and the input requirements of the water pump controller. L ( t ) and current analog I ( t ), which can be obtained through experimental data or theoretical models; determine the specific mapping function to convert the water level value into the current analog value. For example, the linear mapping relationship can be expressed as: I ( t )= a · L ( t )+ b ,a and b The parameters of the mapping relationship are used; and a digital-to-analog converter (DAC) is used to convert the calculated current analog value into an actual current signal; the generated current signal is adjusted through an amplifier or other circuits to ensure that the signal strength and quality meet the requirements of the water pump controller.

[0182] In this embodiment, the current analog value is combined with the water pump pressure regulation instruction. When the water pump current control instruction is generated using the proportional control algorithm, the calculated control quantity can be added to the current current analog value to generate an actual control current instruction; ensure that the generated control current instruction is within the acceptable range of the water pump controller. If it exceeds the range, limiting processing is required; use a digital-to-analog converter (DAC) to convert the calculated control current instruction into an actual current control signal, and send the generated current control signal to the water pump controller through the control signal line.

[0183] In order to design a method to convert the water level value into current analog value and generate water pump control instructions based on it, it is necessary to refine the specific parameters and implementation process of each step. The following is a detailed implementation example, including the definition of the mapping function, the parameters of the proportional control algorithm, and the configuration of the communication interface:

[0184] Step 1: Map the water level value to the current analog value;

[0185] (1) Mapping relationship between water level and current: set the mapping function and parameters (the parameters here assume that the water level ranges from 0 to 200 cm and the current ranges from 4 to 6 mA);

[0186] (2) Data calibration and conversion: Use a digital-to-analog converter (DAC) to convert the calculated current analog quantity into a current signal. Set the DAC resolution to 12 bits, which provides sufficient accuracy to express water level changes.

[0187] Step 2: Generate water pump current control instructions;

[0188] Control parameter setting (Kp): 0.05.

[0189] Control command calculation: Set the target current to L(t), then the actual control current is U control (t) = I (t) + Kp * (L (t) - I (t)), it is necessary to ensure that the current value is within a safe range, for example, the maximum value does not exceed 10mA.

[0190] Step 3: Transmission and execution of control signals;

[0191] (1) Signal amplification and adjustment: Use an amplifier to adjust the DAC output to ensure that the current signal strength meets the control requirements.

[0192] (2) Communication interface configuration: Use standard industrial communication protocols (such as 4-20mA) to connect the DAC output to the water pump controller, and use RS-485 or similar reliable communication methods to ensure the reliability of command transmission.

[0193] Test cases;

[0194] Assume that the actual water level in the water tank gradually rises from 50 cm to 150 cm:

[0195] (1) Initial water level and current conversion: The initial water level is 50 cm;

[0196] Then the initial current: I(50)=0.01×50+4=4.5mA.

[0197] (2) Target water level and current regulation:

[0198] The target water level is 150 cm, then the target current is: I (150) = 0.01 × 150 + 4 = 5.5 mA;

[0199] And then control the current: I control =4.5+0.05×(5.5−4.5)=4.55mA.

[0200] (3) Signal transmission and execution:

[0201] The 4.55mA signal is sent to the water pump controller through the DAC and amplifier to guide the water pump to adjust to the required operating state. In summary, with the help of the above technical solution of the present invention, the present invention obtains water level and water pressure data in real time to ensure the immediate understanding of the water tank status, generates and executes control instructions based on real-time data, and quickly responds to changes in water level and pressure to ensure the efficient operation of the water pump. At the same time, the image processing technology is used to accurately measure the water level line value, which can reduce human errors and improve the accuracy of water level monitoring. It also automatically generates control instructions according to the set control logic to achieve unmanned intelligent management. Through the Internet of Things technology, managers can remotely monitor and control the water pump system, which is convenient for management and provides important guarantees for the efficient operation and scientific management of the water pump system. The present invention integrates water level data and pressure data to form complete system data, and based on the relationship model of water level and pressure, predicts the pressure value in real time to ensure the precise regulation of the water pump system. At the same time, combined with the water level demand of the sump, the target pressure value of the water pump is calculated through the relationship model to ensure that the system is regulated on demand. The adjustment parameters are defined according to the difference between the real-time water pump pressure data and the target pressure value, and the water pump pressure regulation instructions are generated using the adjustment parameters to achieve adaptive control, which significantly improves the monitoring accuracy and control efficiency of the water pump system.

[0202] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0203] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. An Internet of Things online monitoring and control intelligent water pump system, characterized in that: The online monitoring and control intelligent water pump system includes: A water level value acquisition unit collects a water level image within a preset range of the water tank scale, processes the water level image, and acquires a water level value of the water tank based on the processing result; The water pump water pressure online monitoring unit collects the pressure value of the water pump in the water tank, and combines the pressure value with the water level value to generate a water pump pressure adjustment instruction; A water pump control instruction generating unit converts the water level line value into a current analog quantity, and generates a water pump control instruction based on the current analog quantity and the water pump pressure adjustment instruction; The water pump intelligent control monitoring unit sends the water pump control instructions and the water pump pressure adjustment instructions to the water pump controller, and the water pump controller receives the instructions and performs intelligent adjustment on the water pump; The water level value acquisition unit comprises: The water level image acquisition module uses a monitoring camera to collect water level images within the scale range of the water tank; The water level image processing module uses a threshold segmentation algorithm to process the water level image, obtains the scale contour based on the processing result, and uses the scale contour to analyze the coordinates of the water level line in the water level image; The water level value obtaining module performs secondary processing on the water level image based on the water level coordinate results, and uses a matching algorithm to identify the processing results to obtain the water level value of the water tank; The process of processing the water level image by using a threshold segmentation algorithm, obtaining a scale contour based on the processing result, and analyzing the coordinates of the water level line in the water level image by using the scale contour includes: The water level image is filtered and denoised and then divided into a target area and a background area; Decompose the target area into several groups of disconnected sub-domains, select the sub-domain with the largest area as the main area, and extract the pixel-level edges corresponding to the main area; Acquire feature points and complete target contour lines based on pixel-level edges, and segment and merge the complete target contour lines to obtain scale contour lines; A target coordinate system is established based on the feature points, and the coordinates of the water level line in the water level image are analyzed using the conversion relationship between the target coordinate system and the world coordinate system; The water pump water pressure online monitoring unit comprises: The pressure water level data acquisition module uses the water level sensor and pressure sensor at the water tank and water pump to collect the water tank water level data and water pump pressure data in real time; The pressure water level data processing module is used to perform data processing and fusion operations on the water tank water level data and the water pump pressure data to obtain combined data at the same timestamp; The water pump pressure value prediction module determines the corresponding relationship between pressure and water level in real time based on the relational model, and combines the corresponding relationship with the water level demand of the water tank to calculate the target pressure value of the water pump; A water pump adjustment instruction generation module defines adjustment parameters according to the difference between the real-time water pump pressure data and the target pressure value, and generates a water pump pressure adjustment instruction using the adjustment parameters; The step of defining an adjustment parameter according to the difference between the real-time water pump pressure data and the target pressure value, and generating a water pump pressure adjustment instruction using the adjustment parameter comprises: Calculate the difference between the real-time water pump pressure data and the target pressure value to obtain a pressure difference, and determine the proportional, integral and differential gains using a proportional adjustment control algorithm based on the pressure difference; The optimization algorithm is used to select the optimal values ​​of proportional, integral and differential gains as adjustment parameters, and the proportional control algorithm is used to calculate the adjustment instructions of the water pump to determine the pump speed and valve opening of the water pump; The calculation formula of the water pump regulation instruction is: ; In the formula, L ( t ) indicates the t The pump regulation instructions within a time period, W p represents the proportional gain, W i represents the integral gain, W d represents the differential gain, △ T Indicates the pressure difference, v represents the time variable from 0 to time period t, e Indicates the pressure difference over time period t The speed of change.

2. According to claim 1, the Internet of Things online monitoring and control intelligent water pump system is characterized in that: The method of acquiring feature points and a complete target contour line based on pixel-level edges, and performing segmentation and merging processing on the complete target contour line to obtain a scale contour line includes: Implement edge detection and smoothing on pixel-level edges, use the sub-pixel contour obtained by smoothing as the complete target contour line, and obtain feature points from the edge detection results; The pre-set thinning threshold is combined with the split-merge algorithm to perform the initial segmentation of the complete target contour line, and several groups of contour segments are obtained based on the segmentation results, and the contour segments are replaced by straight line segments; The arc equation is used to perform initial fitting on the data points of two adjacent contour segments to obtain the arc segment, and the arc segment fitting result is obtained according to the maximum distance between the arc segment and the two adjacent contour segments; Based on the arc segment fitting results, the split-merge algorithm and the arc equation, the contour segment is divided and fitted twice to obtain the scale contour line formed by fitting several arc segments.

3. The IoT online monitoring and control intelligent water pump system according to claim 1 is characterized in that: The real-time determination of the corresponding relationship between pressure and water level based on the relationship model, and combining the corresponding relationship with the water level requirement of the water tank to calculate the target pressure value of the water pump includes: Based on the historical combined data, a grey relational model is obtained and a judgment index is determined. At the same time, the water level data of the water tank and the water pump pressure data are received and input into the grey relational model to obtain a reference index evaluation value of the judgment index. The water level data of the water tank is used as the reference sequence and the water pump pressure data is used as the comparison sequence. The corresponding relationship between pressure and water level is determined based on the comprehensive weight of the indicators determined by the comparison sequence and the relationship model is constructed. The target water level change curve is obtained based on the water level demand of the water tank, and the target water level change curve is combined with the relationship model to construct a joint model between the real-time water level and the target pressure to obtain the target pressure value of the water pump.

4. The IoT online monitoring and control intelligent water pump system according to claim 3 is characterized in that: The water level data of the water tank is used as a reference sequence, the water pump pressure data is used as a comparison sequence, and after judging the comprehensive weight of the index according to the comparison sequence, a relationship model is constructed to judge the corresponding relationship between pressure and water level, including: The water level data of the water tank is used as the reference sequence, the water pump pressure data is used as the comparison sequence, and the comparison sequence is dimensionlessly processed to obtain the comparison index evaluation value of the judgment index; Obtain the weight value of the judgment index based on the comparison index evaluation value, and analyze the grey correlation coefficient between the reference sequence and the comparison sequence according to the weight value; The grey correlation coefficient is used to calculate the grey correlation degree between the reference sequence and the comparison sequence, and the grey correlation degrees are compared and sorted in order of size; According to the association sorting results, a relationship model is constructed to determine the corresponding relationship between pressure and water level.

5. The IoT online monitoring and control intelligent water pump system according to claim 1 is characterized in that: The water pump control instruction generating unit comprises: The line value mapping conversion module converts the water level value into a current analog value recognizable by the water pump controller according to the mapping relationship between the water level value and the current; The water pump current control instruction module combines the current analog value with the water pump pressure adjustment instruction and generates the water pump current control instruction using the proportional control algorithm; The water pump start and stop control module uses the device communication interface to store the current command and controls the automatic start and stop of the water pump according to the current size.