Water quality monitoring and early warning system and method for secondary water supply
By calculating the conduction index and using infrared thermal imaging technology to identify impurities in the water tank, the problems of water quality monitoring data error and image recognition accuracy in the secondary water supply system are solved, and accurate monitoring of the water quality of the water tank and water safety guarantee are achieved.
Patent Information
- Application Number
- CN202411074938.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-19
AI Technical Summary
The prior art has the problem of amplifying data errors in water quality monitoring in secondary water supply systems, especially due to the influence of environmental factors in the water tank and the reduction of image recognition accuracy, which leads to insufficient accuracy of water quality monitoring.
By collecting the water tank parameter set and water supply data set, the conduction index is calculated, and infrared images are obtained using infrared thermal imaging devices, combined with the water tank temperature prediction model to identify impurity areas, and the pollution index is calculated for water quality judgment.
Accurate monitoring of water quality in the water tank is achieved, data errors are reduced, monitoring accuracy and efficiency are improved, and water use is ensured.
Smart Images

Figure CN118980663A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of water quality monitoring, and in particular to a water quality monitoring and early warning system and method for secondary water supply. Background Art
[0002] Secondary water supply refers to a form of water supply in which water is stored and pressurized and then resupplied through pipes. The common water supply process is: first connect the municipal tap water to a low-level water reservoir, then use a water pump to pump it to a high-level water tank, and finally use gravity to supply water downstairs.
[0003] The installation of high-level water tanks makes the secondary water supply more stable; however, it is also prone to secondary pollution. On the one hand, the secondary water supply system of high-rise buildings has a long pipeline network and high water pressure, which leads to the transportation and release of sediments inside the pipeline for a long time, and the accumulation of impurities inside the water tank, aggravating the water quality problem inside the water tank; on the other hand, the water tank is generally placed on the top floor, which is more obviously affected by environmental factors and is not managed properly. Therefore, it is necessary to monitor the water quality of the high-level water tanks in the secondary water supply to ensure water safety.
[0004] In the prior art, the patent with publication number CN116699094B proposes a water quality monitoring and early warning method and system for secondary water supply; obtain the distribution of sub-pipelines connected to the water storage tank, divide the sub-pipelines into levels according to the pressurization parameters and water supply flow of each sub-pipeline in the sub-pipeline distribution, and obtain the hierarchical sub-pipelines; sample the hierarchical water quality monitoring samples and the water quality monitoring samples in the tank, and input them into the water quality monitoring function obtained by training with the hierarchical water quality monitoring samples and the water quality monitoring samples in the tank, so as to obtain N sub-pipelines with abnormal water quality, and improve the technical effect of water safety for residents in high-rise residential buildings. This method has high requirements on data accuracy. Since the connection relationship between the water tank and the pipeline is relatively complex and easily affected by environmental factors, it is easy to amplify the errors in the data during the monitoring of the water quality of the water tank.
[0005] With the development of image recognition technology, its application in water tank impurity identification has gradually been recognized. For example, in the prior art, the patent with publication number CN110687050B proposes a water quality monitoring system and monitoring method based on image recognition; by setting an overflow plate to suppress the fluctuation of the surface of the monitored water body, the clarity of the water body image and the accuracy of the detection result are improved, and the automation of water surface pollution identification is realized, and the identification work efficiency is higher. The patent with publication number CN115272955A proposes a water tank monitoring method based on image recognition; the internal real-time image of the water tank to be monitored is collected at intervals, the internal real-time image is identified based on the standard neural network model, and the identification result is output and stored; based on the identification result, it is judged whether the content of various impurities in the water tank to be monitored exceeds the set value. If it exceeds, it is reported to the host computer and the sound and light alarm is triggered, thereby effectively solving the technical problem of water supply safety. Due to factors such as the dim environment and interference of the stored water source inside the water tank, the accuracy of the internal image of the water tank obtained is reduced, and there is more noise, which affects the accuracy of water quality monitoring through image recognition.
[0006] To this end, a water quality monitoring and early warning system and method for secondary water supply are proposed. Summary of the invention
[0007] The purpose of the present invention is to provide a water quality monitoring and early warning system and method for secondary water supply, which collects a water tank parameter set; sets a monitoring cycle to monitor the water supply process, obtains a water supply data set and water temperature data; calculates a conductivity index based on the water temperature data and the water tank parameter set; performs a threshold judgment on the conductivity index, and when the condition is met, obtains an infrared image through an infrared thermal imaging device, and simultaneously identifies the water tank parameter set and the water supply data set through a water tank temperature prediction model to obtain a water tank temperature range; identifies the infrared image according to the water tank temperature range to obtain an impurity area and a water tank surface area; overlaps and identifies the impurity areas of all infrared images to obtain a fixed impurity area and a mobile impurity area; and calculates a pollution index based on the fixed impurity area, the mobile impurity area, and the water tank surface area. The present invention judges water quality through the pollution index to achieve accurate monitoring of water quality in the water tank.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] A water quality monitoring and early warning system for secondary water supply, comprising:
[0010] The water supply identification module identifies the water supply behavior of the water tank, collects data before supplying water to the water tank, obtains the water tank parameter set, and then monitors the water supply process;
[0011] A water supply monitoring module is configured to set a monitoring period, perform data monitoring on the water supply process according to the monitoring period, and obtain a water supply data set and water temperature data of the monitoring period;
[0012] A threshold judgment module calculates a conduction index based on the water temperature data and the water tank parameter set within a monitoring period, and performs a threshold judgment on the conduction index;
[0013] An image acquisition module, when the conductivity index meets the threshold judgment, identifies the inner surface of the water tank through an infrared thermal imaging device to obtain an infrared image;
[0014] A temperature prediction module, when the conduction index meets the threshold judgment, constructs a water tank temperature prediction model to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range;
[0015] An impurity recognition module recognizes the infrared image according to the temperature range of the water tank, and determines the impurity area and the water tank surface area in the infrared image;
[0016] The pollution identification module performs overlapping identification on the accumulated infrared images, sets the area where the impurity areas completely overlap as the fixed impurity area, and sets the remaining impurity areas as the mobile impurity areas; calculates the pollution index based on the areas of the fixed impurity area, the mobile impurity area and the surface area of the water tank, and makes water quality judgment based on the pollution index.
[0017] The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank;
[0018] The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water;
[0019] The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
[0020] The calculation formula of the conduction index is:
[0021]
[0022] Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
[0023] The water tank temperature prediction model obtains the water tank temperature range by identifying the water tank parameter set and the water supply data set; the training process of the water tank temperature prediction model is:
[0024] Conducting multiple water tank water supply experiments and collecting data on the water tank water supply process to obtain a water supply experiment data set; the water supply experiment data set includes a first parameter set, a second parameter set and a water tank temperature range;
[0025] The first parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; the second parameter includes supply water temperature, water supply duration and water supply speed;
[0026] Performing data preprocessing on the water supply experiment data set to obtain a preprocessed data set;
[0027] The preprocessed data set is split according to a ratio of 7:3 to obtain a model training set and a model test set;
[0028] The BP neural network is trained using the model training set to obtain a water tank temperature prediction model; and then the parameters of the water tank temperature prediction model are optimized using the model test set.
[0029] The process of distinguishing the impurity area and the water tank area is as follows:
[0030] According to the updating of the conductivity index and the threshold judgment during the cumulative monitoring period, a plurality of infrared images are obtained;
[0031] According to the water tank parameter set and the water supply data set of the monitoring period corresponding to the infrared image, identifying the water tank temperature range;
[0032] Identify the infrared image according to the water tank temperature range, set the area in the infrared image that is within the water tank temperature range as the water tank surface area, and set the area that is not within the water tank temperature range as the impurity area;
[0033] Identifying impurity regions of all the infrared images and overlapping the impurity regions in the infrared images;
[0034] The completely overlapping area of the impurity region is used as a fixed impurity, and the remaining area of the impurity region is used as a moving impurity;
[0035] The water tank surface area, the fixed impurity area and the moving impurity area are marked on the infrared image.
[0036] The calculation formula of the pollution index is:
[0037]
[0038] Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova irepresents the area of the moving impurity region in the infrared image i; α 1 represents the first weight; α 2 represents the second weight; n represents the number of infrared images; area represents the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
[0039] A water quality monitoring and early warning method for secondary water supply, comprising:
[0040] Identify the water supply behavior of the water tank, collect data before supplying water to the water tank, obtain the water tank parameter set, and then monitor the water supply process;
[0041] Setting a monitoring period, performing data monitoring on the water supply process according to the monitoring period, and obtaining a water supply data set and water temperature data of the monitoring period;
[0042] Calculate the conductivity index according to the water temperature data and the water tank parameter set within the monitoring period; and perform threshold determination on the conductivity index;
[0043] When the conductivity index meets the threshold judgment, the inner surface of the water tank is identified by an infrared thermal imaging device to obtain an infrared image;
[0044] When the conduction index meets the threshold judgment, a water tank temperature prediction model is constructed to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range;
[0045] Identify the infrared image according to the temperature range of the water tank, and determine the impurity area and the water tank surface area in the infrared image;
[0046] Overlapping identification is performed on the accumulated infrared images, and the area where the impurity areas completely overlap is set as a fixed impurity area, and the remaining impurity areas are set as mobile impurity areas; a pollution index is calculated based on the areas of the fixed impurity area, the mobile impurity area and the surface area of the water tank, and water quality is judged based on the pollution index.
[0047] The calculation formula of the conduction index is:
[0048]
[0049] Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
[0050] The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank;
[0051] The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water;
[0052] The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
[0053] The calculation formula of the pollution index is:
[0054]
[0055] Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova i represents the area of the moving impurity region in the infrared image i; α 1 represents the first weight; α 2 represents the second weight; n represents the number of infrared images; area represents the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
[0056] Compared with the prior art, the present invention has the following beneficial effects:
[0057] 1. The present invention conducts experimental research on the material of the water tank and impurities in the water to obtain specific heat capacity data; calculates the conductivity index according to the specific heat capacity of the water tank, the specific heat capacity of water and the temperature change rate; quantifies the temperature conduction during the water supply process of the water tank according to the conductivity index, which can accurately reflect the degree of temperature difference between the water tank and the water during the water supply process; and performs infrared thermal imaging of the water tank according to the conductivity index to obtain an infrared image that clearly and accurately reflects the temperature distribution of the water tank.
[0058] 2. The present invention conducts experiments and data collection on water supply of a water tank to obtain a water supply experimental data set; obtains a model training set and a model test set through data processing and proportional splitting; trains and tunes the BP neural network through the model training set and the model test set to obtain a water tank temperature prediction model; through the water tank temperature prediction model, the water tank temperature range of the monitoring period can be accurately identified based on the water tank parameter set and the water supply data set.
[0059] 3. The present invention uses the water tank temperature range predicted by the water tank temperature prediction model as the temperature standard to identify the infrared image, and sets the area in the infrared image that is within the water tank temperature range as the water tank surface area, and sets the area that is not within the water tank temperature range as the impurity area, so as to accurately identify the impurity area in the water tank.
[0060] 4. The present invention identifies overlapping impurity areas in infrared images, regards completely overlapping impurity areas as fixed impurities, and regards the remaining impurity areas as moving impurities; sets weights to weight the regional areas of fixed impurities and the regional areas of moving impurities, and obtains the pollution index through the weighted results and the surface area of the water tank; and accurately identifies the degree of pollution of the water tank through the threshold judgment of the pollution index. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 It is a structural schematic diagram of a water quality monitoring and early warning system for secondary water supply of the present invention;
[0062] Figure 2 It is a schematic diagram of a water tank A of the present invention;
[0063] Figure 3 A schematic diagram of common impurities in the water tank of the present invention;
[0064] Figure 4 It is a schematic diagram of the pollution index calculation process of the present invention;
[0065] Figure 5 The present invention is a flow chart of a water quality monitoring and early warning method for secondary water supply. DETAILED DESCRIPTION
[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] The setting of a high-level water tank makes the secondary water supply more stable, but it is also prone to secondary pollution. In order to strengthen the water quality monitoring and early warning of the high-level water tank, the present invention proposes a water quality monitoring and early warning system and method for secondary water supply.
[0068] Embodiment 1;
[0069] Property management company C undertakes property management business for multiple residential areas, including the supervision of secondary water supply for high-rise buildings in the residential areas; high-rise buildings in the residential areas mainly use high-level water tanks for water supply, specifically, firstly connecting municipal tap water to a low-level water reservoir, then using a water pump to pump to a high-level water tank on the roof, and finally using gravity to supply water to the lower floors. In order to strengthen the supervision of water safety in the residential area, property management company C uses a water quality monitoring and early warning system for secondary water supply described in the present invention to monitor the water tank.
[0070] The structure of the water quality monitoring and early warning system for secondary water supply is as follows: Figure 1As shown, it includes: a water supply identification module, a water supply monitoring module, a threshold judgment module, an image acquisition module, a temperature prediction module, an impurity identification module and a pollution identification module.
[0071] The water supply identification module identifies the water supply behavior of the water tank, collects data before supplying water to the water tank, obtains the water tank parameter set, and then monitors the water supply process.
[0072] The water supply monitoring module sets a monitoring period, performs data monitoring on the water supply process according to the monitoring period, and obtains the water supply data set and water temperature data of the monitoring period.
[0073] The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank;
[0074] The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water;
[0075] The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
[0076] Since high-level water tanks are generally placed on the top of buildings, the water temperature inside them is more obviously affected by the ambient temperature; while the water supply to the city hall is transported through underground pipes and the temperature is relatively stable; therefore, when water is supplied to the water tank, there is a temperature difference between the water temperature in the water tank and the water temperature of the supply water.
[0077] Take the water tank A in the community managed by property company C as an example. Water tank A is located on the top of a 20-story residential building and is one of the water supply tanks of the residential building. Figure 2 shown.
[0078] The water tank parameters of water tank A are collected; water tank A is 3 meters long, 2 meters high, 2 meters wide, with a volume of 12 cubic meters and a bottom area of 6 square meters, and is mainly made of stainless steel.
[0079] In the process of collecting the water tank parameter set, the specific heat capacity data was obtained through experiments; the specific heat capacity reflects the response speed and ability of a substance to heat changes, and the unit is joule per kilogram Kelvin, expressed as J / (kg·K). The specific heat capacity data obtained include the specific heat capacity of water, the specific heat capacity of the water tank, and the specific heat capacity of common impurities, among which the impurities mainly include scale, rust and algae; the obtained specific heat capacity data are shown in Table 1.
[0080] Table 1 Specific heat capacity data of water tank A
[0081] name Substance Category Specific heat capacity J / (kg·K) water water 4150 Water tank Stainless steel 550 Scale Calcium carbonate and silicate, etc. 1000 rust Iron oxide and iron hydroxide, etc. 480 Algae Green algae and diatoms 3600
[0082] The present invention identifies the water supply behavior of a water tank, collects data before water supply to obtain a water tank parameter set, monitors data during the water supply process of the water tank to obtain a water supply data set and water temperature data; the water tank parameter set, water supply data set and water temperature data provide a data basis for water quality monitoring.
[0083] The threshold judgment module calculates the conductivity index according to the water temperature data and the water tank parameter set within the monitoring period, and performs threshold judgment on the conductivity index.
[0084] The calculation formula of the conduction index is:
[0085]
[0086] Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
[0087] The water supply process of water tank A is monitored to obtain data Table 2, which is part of the data obtained from the monitoring. The data was obtained during the low temperature period in winter, the initial temperature of the remaining water in water tank A was 10 degrees Celsius, and the water supply temperature was 20 degrees Celsius. The monitoring period was 2 minutes, that is, the water supply data and water temperature data were collected every 2 minutes. After data verification and adjustment, the property company set the temperature change threshold to 1.
[0088] Table 2 Water supply monitoring data table of water tank A
[0089] Monitoring cycle Total water supply time Water temperature data Conduction Index 0 0min 10.0℃ Null 1 2min 11.8℃ 0.781 2 4min 13.2℃ 0.607 3 6min 15.7℃ 1.084 4 8min 16.5℃ 0.347 5 10min 17.1℃ 0.260
[0090] Property Company C sets the conduction threshold to 0.50. Based on the conduction threshold, the conduction index is judged and found to be greater than the conduction threshold in the first monitoring cycle, the second monitoring cycle, and the third monitoring cycle. Therefore, infrared images and water tank temperature ranges are collected in these three monitoring cycles.
[0091] The present invention experimentally tests the material of the water tank to obtain the specific heat capacity of the water tank; calculates the conductivity index according to the specific heat capacity of the water tank, the specific heat capacity of water and the temperature change rate; quantifies the temperature conduction during the water supply process of the water tank according to the conductivity index, and can accurately reflect the degree of temperature difference between the water tank and the water during the water supply process.
[0092] The image acquisition module, when the conductivity index meets the threshold judgment, identifies the inner surface of the water tank through an infrared thermal imaging device to obtain an infrared image.
[0093] In the process of acquiring infrared images, the monitored surface area of the water tank can be set to highlight the monitoring focus; for example, the bottom of the water tank can be used as the monitoring focus, or the number of infrared thermal imaging devices can be increased to achieve monitoring and identification of multiple surfaces inside the water tank.
[0094] When acquiring the infrared image of water tank A, the lower surface inside the water tank is taken as the monitoring object, that is, the bottom of the water tank; the infrared thermal imaging device is set at the top of the water tank, and the infrared thermal imaging device is adjusted so that the infrared image it captures can completely cover the bottom of the water tank, thereby realizing the monitoring of impurities at the bottom of the water tank.
[0095] Common water tank impurities such as Figure 3 As shown, scale, rust, and algae, etc., have specific heat capacity and thermal conductivity that are different from the parameter properties of the metal water tank itself, and appear as a temperature pattern different from the surrounding metal surface in the infrared image; therefore, infrared thermal imaging technology can be used to infer the presence of impurities by the thermal differences on the internal surface of the water tank.
[0096] It should be noted that the use of infrared thermal imaging in a water tank will be affected by many factors, including the reflectivity of the water surface, interference from water temperature, resolution and sensitivity of the equipment, etc. Therefore, technical adjustments are needed to alleviate the impact of water bodies on infrared thermal imaging technology.
[0097] The technical adjustments include:
[0098] Infrared window: Utilize the infrared transmission window of water; the transmittance of water in the 8-14 micron band is relatively high, which can reduce the impact of water absorption and scattering on the quality of thermal imaging.
[0099] Thermal imaging equipment: Selecting an infrared thermal imager with high sensitivity and resolution can better capture the tiny temperature difference between the target object and the water body, which helps to reduce the impact of the water body on image quality.
[0100] Post-processing technology: Use image processing technology for post-processing; including the use of image optimization algorithms and filters to reduce the impact of reflection and scattering on the water surface on image quality and enhance the visibility of underwater targets.
[0101] Through the above methods and techniques, the influence of water on underwater infrared thermal imaging can be reduced to a certain extent, and the clarity and effectiveness of imaging can be improved.
[0102] The temperature prediction module constructs a water tank temperature prediction model to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range when the conduction index meets the threshold judgment.
[0103] Impurities such as scale, rust and algae may adhere to the inner surface of the water tank, which will affect the thermal conductivity and reflectivity of the water tank surface. In this case, direct measurement of the temperature of the inner surface of the water tank by a temperature measuring device may result in errors, which will reduce the accuracy of the infrared thermal imaging result analysis. Therefore, the present invention constructs a water tank temperature prediction model to identify and predict the inner surface temperature of the water tank.
[0104] The water tank temperature prediction model obtains the water tank temperature range by identifying the water tank parameter set and the water supply data set; the training process of the water tank temperature prediction model is:
[0105] Conducting multiple water tank water supply experiments and collecting data on the water tank water supply process to obtain a water supply experiment data set; the water supply experiment data set includes a first parameter set, a second parameter set and a water tank temperature range;
[0106] The first parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; the second parameter includes supply water temperature, water supply duration and water supply speed;
[0107] Performing data preprocessing on the water supply experiment data set to obtain a preprocessed data set;
[0108] The preprocessed data set is split according to a ratio of 7:3 to obtain a model training set and a model test set;
[0109] The BP neural network is trained using the model training set to obtain a water tank temperature prediction model; and then the parameters of the water tank temperature prediction model are optimized using the model test set.
[0110] The present invention collects data on a water tank water supply process to obtain a water supply experimental data set; performs data processing and proportional splitting on the water supply experimental data set to obtain a model training set and a model test set; trains and tunes a BP neural network through the model training set and the model test set to obtain a water tank temperature prediction model; and the water tank temperature prediction model can accurately identify a water tank temperature range according to the water tank parameter set and the water supply data set.
[0111] The impurity recognition module recognizes the infrared image according to the temperature range of the water tank, and determines the impurity area and the water tank surface area in the infrared image.
[0112] The pollution identification module performs overlapping identification on the accumulated infrared images, and regards the area where the impurity areas completely overlap as the fixed impurity area; sets the remaining impurity areas as the mobile impurity areas; calculates the pollution index based on the areas of the fixed impurity areas, the mobile impurity areas and the surface area of the water tank, and makes water quality judgment based on the pollution index.
[0113] The process of distinguishing the impurity area and the water tank area is as follows:
[0114] According to the updating of the conductivity index and the threshold judgment during the cumulative monitoring period, a plurality of infrared images are obtained;
[0115] According to the water tank parameter set and the water supply data set of the monitoring period corresponding to the infrared image, identifying the water tank temperature range;
[0116] Identify the infrared image according to the water tank temperature range, set the area in the infrared image that is within the water tank temperature range as the water tank surface area, and set the area that is not within the water tank temperature range as the impurity area;
[0117] Identifying impurity regions of all the infrared images and overlapping the impurity regions in the infrared images;
[0118] The completely overlapping area of the impurity region is regarded as a fixed impurity, and the remaining area of the impurity region is regarded as a moving impurity; that is, in the accumulated infrared images, the fixed impurity region exists in the same position of each infrared image, and the position of the moving impurity region in each infrared image is not exactly the same.
[0119] The water tank surface area, the fixed impurity area and the moving impurity area are marked on the infrared image.
[0120] The present invention uses the water tank temperature range predicted by the water tank temperature prediction model as the temperature standard, identifies the infrared image, and sets the area in the infrared image that is within the water tank temperature range as the water tank area, and sets the area that is not within the water tank temperature range as the impurity area; the impurity areas in the infrared image are overlapped, and fixed impurities and mobile impurities are identified, thereby accurately identifying the impurities in the water tank.
[0121] The calculation formula of the pollution index is:
[0122]
[0123] Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova i represents the area of the moving impurity region in the infrared image i; α 1 represents the first weight; α 2 represents the second weight; n represents the number of infrared images; area represents the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
[0124] The calculation and judgment process of pollution index is as follows: Figure 4 shown.
[0125] Based on the infrared images of the monitoring period of water tank A, its impurity area and the surface area of the water tank are identified to obtain data table 3; among them, in the process of calculating the pollution index, property company C has found through multiple tests of historical data that when the first weight is 4 and the second weight is 6, the monitoring effect of the pollution index is best, so the first weight is set to 4 and the second weight is set to 6.
[0126] Table 3 Water tank A infrared image area recognition data table
[0127]
[0128] Among them, the impurity area in the infrared image of the first monitoring cycle is 0.70m 2 , the surface area of the water tank is 5.30m 2 ; The impurity area in the infrared image of the second monitoring cycle is 0.90m 2 , the surface area of the water tank is 5.10m 2 ; Overlap the infrared images of the first monitoring period and the second monitoring period to identify the overlapping distribution of the impurity areas; after overlapping, it is found that the overlapping area of the impurity areas is 0.50m 2 Therefore, according to the infrared images of the first monitoring period and the second monitoring period, it can be obtained that the fixed impurity area is 0.50m 2 , the moving impurity area is 0.20m 2 and 0.40m 2 The average moving impurity area is calculated to be 0.30m 2 .
[0129] At this time, the pollution index calculation formula for the second monitoring cycle is:
[0130]
[0131] The infrared image obtained in the third monitoring cycle shows that the impurity area is 0.60m 2 , the surface area of the water tank is 5.40m 2 ; The infrared images of the first monitoring period, the second monitoring period, and the third monitoring period were overlapped, and it was found that the overlapping area of the impurity region was 0.40m 2 , which is taken as the fixed impurity area; at the same time, the mobile impurity areas are calculated to be 0.30m 2 、0.50m 2 and 0.20m 2 , and further obtained that the average moving impurity area is 0.33m 2 .
[0132] At this time, the calculation formula of the pollution index of the third monitoring cycle is:
[0133]
[0134] A judgment is made based on the calculated pollution index and the set pollution threshold, and when the pollution index exceeds the pollution threshold, an early warning message is issued.
[0135] The present invention identifies overlapping impurity areas in infrared images, regards completely overlapping impurity areas as fixed impurities, and regards incompletely overlapping impurity areas as mobile impurities; weights are set to weight the regional areas of fixed impurities and the regional areas of mobile impurities, and a pollution index is obtained by calculating the weighted result and the area of the bottom of the water tank, so as to accurately identify the pollution degree of the water tank.
[0136] Through the water quality monitoring and early warning system for secondary water supply described in the present invention, the property company C monitors the water quality of the high-level water tank of the secondary water supply, effectively ensuring the water safety of the residents in the community.
[0137] The present invention collects a water tank parameter set; sets a monitoring cycle to monitor the water supply process, obtains a water supply data set and water temperature data; calculates a conductivity index based on the water temperature data and the water tank parameter set; performs a threshold judgment on the conductivity index, and when the condition is met, obtains an infrared image through an infrared thermal imaging device, and simultaneously identifies the water tank parameter set and the water supply data set through a water tank temperature prediction model to obtain a water tank temperature range; identifies the infrared image based on the water tank temperature range to obtain an impurity area and a water tank surface area; overlaps and identifies the impurity areas of all infrared images to obtain a fixed impurity area and a mobile impurity area; calculates a pollution index based on the fixed impurity area, the mobile impurity area and the water tank surface area. The present invention determines water quality through the pollution index to achieve accurate monitoring of water quality in the water tank.
[0138] Embodiment 2:
[0139] The present invention proposes a water quality monitoring and early warning method for secondary water supply, the process of the method is as follows: Figure 5 Shown; including:
[0140] Identify the water supply behavior of the water tank, collect data before supplying water to the water tank, obtain the water tank parameter set, and then monitor the water supply process;
[0141] Setting a monitoring period, performing data monitoring on the water supply process according to the monitoring period, and obtaining a water supply data set and water temperature data of the monitoring period;
[0142] The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank;
[0143] The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water;
[0144] The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
[0145] Calculate the conductivity index according to the water temperature data and the water tank parameter set within the monitoring period; and perform threshold determination on the conductivity index;
[0146] The calculation formula of the conduction index is:
[0147]
[0148] Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
[0149] When the conductivity index meets the threshold judgment, the inner surface of the water tank is identified by an infrared thermal imaging device to obtain an infrared image;
[0150] The bottom of the inner surface of the water tank where the side wall is submerged by water is photographed by an infrared thermal imaging device.
[0151] In order to alleviate the interference and influence of water bodies, the parameters of the infrared thermal imaging device are set and adjusted, including:
[0152] Infrared window: Utilize the infrared transmission window of water; the transmittance of water in the 8-14 micron band is relatively high, which can reduce the impact of water absorption and scattering on the quality of thermal imaging.
[0153] Thermal imaging equipment: Selecting an infrared thermal imager with high sensitivity and resolution can better capture the tiny temperature difference between the target object and the water body, which helps to reduce the impact of the water body on image quality.
[0154] Post-processing technology: Use image processing technology for post-processing; including the use of image optimization algorithms and filters to reduce the impact of reflection and scattering on the water surface on image quality and enhance the visibility of underwater targets.
[0155] Through the above methods and techniques, the influence of water on underwater infrared thermal imaging can be reduced to a certain extent, and the clarity and effectiveness of imaging can be improved.
[0156] When the conduction index meets the threshold judgment, a water tank temperature prediction model is constructed to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range;
[0157] The water tank temperature prediction model obtains the water tank temperature range by identifying the water tank parameter set and the water supply data set; the training process of the water tank temperature prediction model is:
[0158] Conducting multiple water tank water supply experiments and collecting data on the water tank water supply process to obtain a water supply experiment data set; the water supply experiment data set includes a first parameter set, a second parameter set and a water tank temperature range;
[0159] The first parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; the second parameter includes supply water temperature, water supply duration and water supply speed;
[0160] Performing data preprocessing on the water supply experiment data set to obtain a preprocessed data set;
[0161] The preprocessed data set is split according to a ratio of 7:3 to obtain a model training set and a model test set;
[0162] The BP neural network is trained using the model training set to obtain a water tank temperature prediction model; and then the parameters of the water tank temperature prediction model are optimized using the model test set.
[0163] Identify the infrared image according to the temperature range of the water tank, and determine the impurity area and the water tank surface area in the infrared image;
[0164] The process of distinguishing the impurity area and the water tank area is as follows:
[0165] According to the updating of the conductivity index and the threshold judgment during the cumulative monitoring period, a plurality of infrared images are obtained;
[0166] According to the water tank parameter set and the water supply data set of the monitoring period corresponding to the infrared image, identifying the water tank temperature range;
[0167] Identify the infrared image according to the water tank temperature range, set the area in the infrared image that is within the water tank temperature range as the water tank surface area, and set the area that is not within the water tank temperature range as the impurity area;
[0168] Identifying impurity regions of all the infrared images and overlapping the impurity regions in the infrared images;
[0169] The completely overlapping area of the impurity region is used as a fixed impurity, and the remaining area of the impurity region is used as a moving impurity;
[0170] The water tank surface area, the fixed impurity area and the moving impurity area are marked on the infrared image.
[0171] Overlapping identification is performed on the accumulated infrared images, and the area where the impurity areas completely overlap is used as a fixed impurity area; the remaining impurity areas are set as mobile impurity areas; a pollution index is calculated based on the areas of the fixed impurity areas, the mobile impurity areas and the surface area of the water tank, and the water quality is judged based on the pollution index.
[0172] The calculation formula of the pollution index is:
[0173]
[0174] Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova i represents the area of the moving impurity region in the infrared image i; α 1 represents the first weight; α 2 represents the second weight; n represents the number of infrared images; area represents the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
[0175] The present invention collects a water tank parameter set; sets a monitoring cycle to monitor the water supply process, obtains a water supply data set and water temperature data; calculates a conductivity index based on the water temperature data and the water tank parameter set; performs a threshold judgment on the conductivity index, and when the condition is met, obtains an infrared image through an infrared thermal imaging device, and simultaneously identifies the water tank parameter set and the water supply data set through a water tank temperature prediction model to obtain a water tank temperature range; identifies the infrared image based on the water tank temperature range to obtain an impurity area and a water tank surface area; overlaps and identifies the impurity areas of all infrared images to obtain a fixed impurity area and a mobile impurity area; calculates a pollution index based on the fixed impurity area, the mobile impurity area and the water tank surface area. The present invention determines water quality through the pollution index to achieve accurate monitoring of water quality in the water tank.
[0176] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A water quality monitoring and early warning system for secondary water supply, characterized in that: include: The water supply identification module identifies the water supply behavior of the water tank, collects data before supplying water to the water tank, obtains the water tank parameter set, and then monitors the water supply process; A water supply monitoring module is configured to set a monitoring period, perform data monitoring on the water supply process according to the monitoring period, and obtain a water supply data set and water temperature data of the monitoring period; A threshold judgment module calculates a conduction index based on the water temperature data and the water tank parameter set within a monitoring period, and performs a threshold judgment on the conduction index; An image acquisition module, when the conductivity index meets the threshold judgment, identifies the inner surface of the water tank through an infrared thermal imaging device to obtain an infrared image; A temperature prediction module, when the conduction index meets the threshold judgment, constructs a water tank temperature prediction model to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range; An impurity recognition module recognizes the infrared image according to the temperature range of the water tank, and determines the impurity area and the water tank surface area in the infrared image; The pollution identification module performs overlapping identification on the accumulated infrared images, sets the area where the impurity areas completely overlap as the fixed impurity area, and sets the remaining impurity areas as the mobile impurity areas; calculates the pollution index based on the areas of the fixed impurity area, the mobile impurity area and the surface area of the water tank, and makes water quality judgment based on the pollution index.
2. A water quality monitoring and early warning system for secondary water supply according to claim 1, characterized in that: The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank; The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water; The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
3. The water quality monitoring and early warning system for secondary water supply according to claim 1, characterized in that: The calculation formula of the conduction index is: Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
4. The water quality monitoring and early warning system for secondary water supply according to claim 1, characterized in that: The water tank temperature prediction model obtains the water tank temperature range by identifying the water tank parameter set and the water supply data set; the training process of the water tank temperature prediction model is: Conducting multiple water tank water supply experiments and collecting data on the water tank water supply process to obtain a water supply experiment data set; the water supply experiment data set includes a first parameter set, a second parameter set and a water tank temperature range; The first parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; the second parameter includes supply water temperature, water supply duration and water supply speed; Performing data preprocessing on the water supply experiment data set to obtain a preprocessed data set; The preprocessed data set is split according to a ratio of 7:3 to obtain a model training set and a model test set; The BP neural network is trained using the model training set to obtain a water tank temperature prediction model; and then the parameters of the water tank temperature prediction model are optimized using the model test set.
5. The water quality monitoring and early warning system for secondary water supply according to claim 1 is characterized in that: The process of distinguishing the impurity area and the water tank area is as follows: According to the updating of the conductivity index and the threshold judgment during the cumulative monitoring period, a plurality of infrared images are obtained; According to the water tank parameter set and the water supply data set of the monitoring period corresponding to the infrared image, identifying the water tank temperature range; Identify the infrared image according to the water tank temperature range, set the area in the infrared image that is within the water tank temperature range as the water tank surface area, and set the area that is not within the water tank temperature range as the impurity area; Identifying impurity regions of all the infrared images and overlapping the impurity regions in the infrared images; The completely overlapping area of the impurity region is used as a fixed impurity, and the remaining area of the impurity region is used as a moving impurity; The water tank surface area, the fixed impurity area and the moving impurity area are marked on the infrared image.
6. The water quality monitoring and early warning system for secondary water supply according to claim 1, characterized in that: The calculation formula of the pollution index is: Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova i represents the area of the moving impurity region in the infrared image i; α1 represents the first weight; α2 represents the second weight; n represents the number of infrared images; area represents the area of the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
7. A water quality monitoring and early warning method for secondary water supply, characterized in that: include: Identify the water supply behavior of the water tank, collect data before supplying water to the water tank, obtain the water tank parameter set, and then monitor the water supply process; Setting a monitoring period, performing data monitoring on the water supply process according to the monitoring period, and obtaining a water supply data set and water temperature data of the monitoring period; Calculate the conductivity index according to the water temperature data and the water tank parameter set within the monitoring period; and perform threshold determination on the conductivity index; When the conductivity index meets the threshold judgment, the inner surface of the water tank is identified by an infrared thermal imaging device to obtain an infrared image; When the conduction index meets the threshold judgment, a water tank temperature prediction model is constructed to identify the water tank parameter set and the water supply data set to obtain a water tank temperature range; Identify the infrared image according to the temperature range of the water tank, and determine the impurity area and the water tank surface area in the infrared image; Overlapping identification is performed on the accumulated infrared images, and the area where the impurity areas completely overlap is set as a fixed impurity area, and the remaining impurity areas are set as mobile impurity areas; a pollution index is calculated based on the areas of the fixed impurity area, the mobile impurity area and the surface area of the water tank, and water quality is judged based on the pollution index.
8. A water quality monitoring and early warning method for secondary water supply according to claim 7, characterized in that: The calculation formula of the conduction index is: Among them, Cond i represents the conduction index of monitoring period i; cap T Indicates the specific heat capacity of the water tank; cap W Indicates the specific heat capacity of water; tem i represents the water temperature in monitoring period i; t represents the time interval of the monitoring period; TH represents the temperature change threshold.
9. A water quality monitoring and early warning method for secondary water supply according to claim 7, characterized in that: The water tank parameter set includes ambient temperature, water tank shape parameters, water tank material, water tank specific heat capacity, initial water temperature and initial water volume; wherein the initial water temperature is the water temperature of the initial water volume inside the water tank; The water supply data set includes water supply temperature, water supply duration and water supply speed; the water supply temperature indicates the water temperature of the supplied water; The water temperature data is obtained by detecting a plurality of temperature measuring devices placed inside the water body and taking an average value.
10. A water quality monitoring and early warning method for secondary water supply according to claim 7, characterized in that: The calculation formula of the pollution index is: Among them, Waq represents the pollution index; fixa represents the area of the fixed impurity area; mova i represents the area of the moving impurity region in the infrared image i; α1 represents the first weight; α2 represents the second weight; n represents the number of infrared images; area represents the area of the surface area of the water tank; exp represents the exponential function with the natural constant e as the base.
