A real-time monitoring method and system for secondary biological pollution of direct drinking water in a pipeline

CN119205879BActive Publication Date: 2026-02-17SHANDONG UNIV OF SCI & TECH
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411236217.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2026-02-17
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

这些细菌膜不仅难以被水流冲走,而且会随着时间的推移,不断地向水中释放细菌,导致水质逐渐恶化

Benefits of technology

[0025]本发明通过在直饮水管道上设置的监测仪表实时监测管壁上的细菌情况,能够迅速识别直饮水的二次生物污染风险,从而保证了用户用水的即时安全性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119205879B_ABST
    Figure CN119205879B_ABST
Patent Text Reader

Abstract

The application discloses a kind of secondary biological pollution real-time monitoring system and method of direct drinking water pipeline, it is related to water quality monitoring technical field, and obtains pipe wall bacterial image and carries out pretreatment;Edge detection algorithm is used to identify the bacterial image after pretreatment, and the outline of microbial coverage area is described;The bacterial image with the outline of microbial coverage area is converted into binary image;Pixel counting algorithm is used to count the number of pixels in microbial coverage area, and based on image resolution and the zoom factor of shooting upload integrated equipment, the number of pixels is converted into coverage area;The area ratio of the coverage area is obtained by proportional calculation, and the degree of water pollution is evaluated by the area ratio.The optical microscopic equipment and shooting upload integrated equipment are used to shoot and upload the bacterial condition on pipe wall through the transparent window of pipeline, and then the bacterial area ratio on pipe wall is analyzed by combining detection method, so that the secondary biological pollution condition of direct drinking water pipeline can be quickly identified and judged.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of water quality monitoring, and in particular to a real-time monitoring method and system for secondary biological pollution of direct drinking water in a pipeline. BACKGROUND

[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute the prior art.

[0003] With the widespread application and popularization of direct drinking water in a pipeline, people are increasingly dependent on this convenient way of drinking water. However, as the degree of popularization increases, the safety of direct drinking water has gradually become the focus of public attention. Although direct drinking water has undergone strict disinfection treatment at the factory to ensure its initial water quality safety, it is still subject to multiple pollution risks during the actual water delivery process.

[0004] During the pipeline water delivery process, direct drinking water inevitably comes into contact with bacteria on the inner wall of the pipeline or in the air. These bacteria can come from the water source, pipeline aging, improper maintenance, and other factors. In particular, when the inner wall of the pipeline is damaged or aged, bacteria are more likely to invade the pipeline and come into contact with water. The mismatch between the water supply flow and the user water flow is also an important factor leading to secondary pollution of direct drinking water. During the peak of water supply, the water supply flow is much larger than the user water flow, resulting in long residence time of drinking water in the pipeline. This long residence time provides conditions for the growth and reproduction of bacteria on the pipe wall, and bacteria gradually form bacterial membranes on the pipe wall. These bacterial membranes not only are difficult to be washed away by the water flow, but also continuously release bacteria into the water over time, leading to gradual deterioration of water quality.

[0005] In addition, the traditional water quality monitoring method usually adopts a periodic detection method. This method has a long detection period, high detection cost, and a lag. Due to the limitation of the detection period, the traditional water quality monitoring method often fails to timely discover and solve water quality problems. At the same time, due to the high detection cost, the traditional monitoring method cannot achieve comprehensive and continuous monitoring of direct drinking water. SUMMARY

[0006] To overcome the above-mentioned deficiencies of the prior art, the present application provides a real-time monitoring method and system for secondary biological pollution of direct drinking water in a pipeline, which uses an optical microscopic device and a shooting and uploading integrated device to shoot and upload the bacterial conditions on the pipe wall through a transparent window of the pipeline, and then analyzes the bacterial area ratio on the pipe wall by combining a detection method, so as to quickly identify and judge the secondary biological pollution conditions of the direct drinking water pipeline.

[0007] To achieve the above-mentioned purpose, one or more embodiments of the present application provide the following technical solutions:

[0008] In a first aspect, the present application provides a real-time monitoring method for secondary biological pollution of direct drinking water in a pipeline, comprising the following steps:

[0009] obtaining a pipe wall bacteria image and performing preprocessing;

[0010] using an edge detection algorithm to identify the preprocessed bacteria image, and drawing the outline of the microbial coverage area;

[0011] converting the bacteria image with the outline of the microbial coverage area into a binary image;

[0012] using a pixel counting algorithm to count the number of pixels in the microbial coverage area, and converting the number of pixels into a coverage area based on the image resolution and the zoom factor of the shooting and uploading integrated device;

[0013] obtaining the area ratio of the coverage area through proportional calculation, and evaluating the degree of water pollution through the area ratio.

[0014] Further, the calculated area ratio is compared with a preset warning threshold, and once the warning threshold is exceeded, a warning mechanism is triggered immediately.

[0015] Further, a pipe wall microbial pollution database is constructed, and the warning threshold is set according to the pollution data in the pipe wall microbial pollution database.

[0016] In a second aspect, the present application provides a real-time monitoring system for secondary biological pollution of direct drinking water in a pipeline, comprising a monitoring instrument and a cloud server in communication therewith;

[0017] The monitoring instrument is embedded in a branch pipeline, and a transparent observation window is fixedly arranged at the bottom thereof. A shooting and uploading integrated device is fixedly arranged inside the monitoring instrument above the transparent observation window. The pipe wall bacteria image is collected through the transparent observation window and transmitted to the cloud server. The cloud server evaluates the degree of water pollution based on the received pipe wall bacteria image.

[0018] Further, the branch pipeline is communicatively arranged on the direct drinking water pipeline.

[0019] Further, the branch pipeline comprises a water inlet pipe, a detection pipe and a water outlet pipe which are sequentially connected.

[0020] Further, the detection pipe is embedded with the monitoring instrument.

[0021] Further, the shooting and uploading integrated device is embedded with a microscopic device, and the microscopic device is aligned with the transparent observation window.

[0022] In a third aspect, the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the real-time monitoring method for secondary biological pollution of direct drinking water pipes according to the first aspect.

[0023] In a fourth aspect, the present application provides a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the real-time monitoring method for secondary biological pollution of direct drinking water pipes according to the first aspect when executing the program.

[0024] The above one or more technical solutions have the following beneficial effects:

[0025] The present application can quickly identify the risk of secondary biological pollution of direct drinking water by real-time monitoring of bacteria on the pipe wall through the monitoring instrument installed on the direct drinking water pipe, thereby ensuring the instant safety of the user's water.

[0026] The monitoring system of the present application reduces the detection cost. Compared with the traditional periodic detection method, the real-time monitoring system of the present application can realize automatic monitoring and data analysis without frequent manual intervention, thereby reducing the detection cost. At the same time, it also reduces the influence of human factors on the environment.

[0027] The system of the present application also improves the detection efficiency. The traditional detection method usually needs to perform complex biological analysis on the water sample in the laboratory, while the present application can directly monitor the bacteria on the pipe wall in real time without complex sample processing and analysis process. The detection efficiency is greatly improved by evaluating the water pollution degree through the area ratio of the bacterial area.

[0028] The present application proposes an innovative real-time monitoring system for direct drinking water quality, which integrates advanced online monitoring instruments and technologies, and can monitor and warn the bacteria on the pipe wall in real time. The system uses high-resolution optical microscopes and image processing technology to clearly observe the bacterial area on the pipe wall, and analyzes the bacterial area in the bacterial image in real time through intelligent algorithms. Once the area ratio of the bacterial area exceeds the preset safety threshold, the system will immediately issue a warning to the user to ensure that the user can timely understand the microbial pollution status of the direct drinking water pipe and take corresponding measures.

[0029] The present application also has positive significance for environmental protection. Through real-time monitoring and early warning of secondary biological pollution of direct drinking water, the problem of secondary biological pollution of direct drinking water can be found and solved in time, and the problem of life and health caused by biological pollution can be avoided. BRIEF DESCRIPTION OF DRAWINGS

[0030] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0031] Figure 1 This is a flowchart of the real-time monitoring method in an embodiment of the present invention;

[0032] Figure 2 This is a front sectional view of the monitoring instrument in an embodiment of the present invention;

[0033] Figure 3 This is a side sectional view of the monitoring instrument in an embodiment of the present invention.

[0034] Among them, 1-monitoring instrument, 2-integrated shooting and uploading device, 3-microscopic device, 4-transparent observation window, 5-water inlet pipe, 6-water outlet pipe, and 7-detection pipe. Detailed Implementation

[0035] It should be noted that the following detailed descriptions are exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0036] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0037] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.

[0038] Example 1

[0039] like Figure 1 As shown in the figure, this embodiment discloses a method for real-time monitoring of secondary biological pollution in piped drinking water, including the following steps:

[0040] Acquire images of bacteria on the tube wall and perform preprocessing;

[0041] An edge detection algorithm is used to identify the preprocessed bacterial image and delineate the outline of the microbial-covered area;

[0042] Convert bacterial images depicting the outlines of microbial-covered areas into binary images;

[0043] The pixel counting algorithm is used to count the number of pixels in the microbial coverage area, and based on the image resolution and the zoom coefficient of the shooting and uploading integrated device, the number of pixels is converted into the coverage area.

[0044] The area ratio of the coverage area is obtained by proportional calculation, and the water pollution degree is evaluated by the area ratio.

[0045] In this embodiment, the cloud server receives the bacterial image transmitted by the shooting and uploading integrated device. Once the image data is received, the system immediately processes and intelligently analyzes the bacterial image, and judges the water pollution degree of the direct drinking water in the pipeline according to the analysis result of the bacterial image.

[0046] The fine pretreatment of the bacterial image includes noise suppression and contrast enhancement to highlight the characteristics of microorganisms. Specifically, a filter is used to process the bacterial image to reduce or eliminate noise; then a histogram equalization algorithm is applied to remap the pixel values of the bacterial image to a more uniform distribution to enhance the contrast of the image, thereby highlighting the characteristics of microorganisms and improving the quality and analyzability of the image. By improving the image quality through pretreatment, reducing noise and interference, more favorable conditions are provided for subsequent edge detection.

[0047] A Gaussian filter is used to remove noise from the image:

[0048] The kernel function of the Gaussian filter is represented as:

[0049]

[0050] Where (x, y) is the pixel coordinate in the image, and sigma is the standard deviation of the Gaussian kernel.

[0051] The contrast of the image is enhanced using histogram equalization or contrast stretching methods. Contrast stretching can be achieved by adjusting the minimum and maximum brightness values of the image.

[0052] An edge detection algorithm is used to identify the pre-processed bacterial image and depict the outline of the microbial coverage area. Specifically, before edge detection, the pre-processed bacterial image is first converted to a bacterial grayscale image. Then a Canny edge detection operator is used to perform edge detection on the bacterial grayscale image. In order to reduce the influence of noise on the edge detection result, a suitable threshold is set for the obtained gradient image. On the basis of edge detection, the detected edge points are connected to form continuous contour lines. The preliminary formed contour lines are optimized, including removing burrs and filling gaps, to improve the clarity and accuracy of the contour, and obtain the bacterial grayscale image depicting the outline of the microbial coverage area. The Canny algorithm includes steps such as filtering, gradient calculation, non-maximum suppression and double threshold detection.

[0053] By the technical solution, the edge detection technology is adopted to accurately define the boundary of the microorganism coverage area, and the monitoring system can automatically and accurately identify and depict the contour of the microorganism coverage area on the inner wall of the direct drinking water pipeline, so that the accuracy and integrity of the contour are ensured.

[0054] To realize the accuracy of area calculation, the image binarization technology is adopted to convert the image into a binary image, that is, a black and white two-color image, so that the microorganism coverage area and the background area are clearly distinguished. Specifically, the image is converted into a form containing only black and white colors, so as to clearly distinguish the microorganism coverage area and the background. Binarization can be realized by setting a threshold T, and pixels with a value greater than T are set as white (or black), and pixels with a value less than T are set as black (or white).

[0055] Subsequently, the pixel counting algorithm is used to count the number of white (or black, according to the binarization setting) pixels in the target area, that is, the microorganism coverage area, and the pixel number is converted into the coverage area based on the resolution of the image and the zoom coefficient when the shooting uploading integrated device is shot.

[0056] Specifically, the contour recognition and area calculation are performed in sequence: in the binarized image, the contour detection algorithm (such as gradient-based contour detection) is used to identify the contour of the microorganism coverage area. The number of white (or black) pixels in the target area is counted by the pixel counting technology, so as to calculate the area occupied by the contour.

[0057] Suppose that the number of white pixels in the target area (microorganism coverage area) after binarization is N, and the actual area represented by each pixel is A pixcl (which depends on the resolution of the image and the zoom coefficient), then the area A of the target area can be calculated by the following formula:

[0058] A=N×A pixcl (2)

[0059] Formula 2 represents that the area (A) of the target area is equal to the product of the number (N) of pixels in the area and the actual area (A pixcl ) represented by each pixel. Here, N is an integer, representing the total number of pixels in the target area (such as the microorganism coverage area). A pixcl is a floating-point number, indicating the area occupied by each pixel in reality, which depends on the resolution of the image and the zoom coefficient. Wherein, A pixcl can be calculated by the following formula:

[0060]

[0061] Wherein, R is the resolution of the image (DPI or DPP), and S is the zoom coefficient. Therefore, the area A of the target area can be represented as:

[0062]

[0063] Through the above process, the area occupied by the contour of the microorganism coverage area on the inner wall of the direct drinking water pipeline can be automatically identified and calculated.

[0064] The system compares the pixel area (or the converted coverage area) of the target area with the total pixel area (or the actual area) of the entire monitoring area, and calculates the area proportion of the microorganism coverage area through proportion. This proportion value serves as a key quantitative indicator for evaluating the degree of water pollution, providing a scientific basis for water quality management.

[0065] In the system design stage, to ensure the accuracy and effectiveness of the early warning mechanism, a pipeline wall microorganism pollution database is constructed. This database associates image samples of different pollution levels with microorganism index results obtained through national standard detection methods (i.e., national standard method), forming a large data base. At the same time, artificial intelligence algorithms are used for continuous learning and optimization of the database, improving the matching accuracy of the image recognition algorithm and the national standard detection results. According to the accumulated pollution data, the early warning threshold of the microorganism pollution area proportion is set, with 20% as the primary early warning threshold and 35% as the serious pollution threshold that requires immediate disinfection. Once the threshold is exceeded, the system will trigger the early warning mechanism immediately. When the system receives a newly uploaded bacterial image and completes automatic analysis, it will use the data in the database for comparison. According to the pre-set pollution proportion early warning threshold, the system will automatically determine whether the current water pollution level exceeds the pre-set early warning threshold and issue appropriate instructions based on the pollution proportion. Users can obtain real-time feedback on the microorganism pollution of direct drinking water through the mobile phone APP, ensuring the safety of water use.

[0066] In this embodiment, as shown in Figure 1 the real-time monitoring process of secondary biological pollution of pipeline direct drinking water is as follows: the monitoring instrument takes a bacterial image of the pipeline wall and uploads it to the cloud server. First, it is determined whether image processing is to be performed in the cloud server. If not, the bacterial image is retaken or the parameters are adjusted. If so, edge detection technology is used to identify and delineate the microorganism coverage area, calculate the coverage area, analyze the pollution proportion on the pipeline wall, determine whether the pollution has reached the threshold based on the pollution proportion analysis, and if not, feedback to the server. The feedback information can be sent to the user terminal through the server. If so, determine which threshold the pollution proportion has reached. If it exceeds 20%, trigger the early warning mechanism and feedback the early warning information to the server. If it exceeds 35%, trigger the early warning mechanism and immediately disinfect the direct drinking water pipeline systemically. The disinfection operation is fed back to the server. Users can obtain real-time feedback on the microorganism pollution of direct drinking water through the mobile phone APP, ensuring the safety of water use.

[0067] Example Two

[0068] AsFigure 2 、 3 The embodiment discloses a real-time monitoring system for secondary biological pollution of direct drinking water pipeline, which comprises a monitoring instrument 1 and a cloud server in communication with the monitoring instrument 1.

[0069] The monitoring instrument 1 is embedded in the branch pipeline, and a transparent observation window 4 is fixedly arranged at the bottom of the monitoring instrument 1. A photographing and uploading integrated device 2 is fixedly arranged in the monitoring instrument 1 above the transparent observation window 4. The bacterial image of the pipeline wall is collected through the transparent observation window 4 and transmitted to the cloud server. The cloud server evaluates the water pollution degree based on the received bacterial image of the pipeline wall.

[0070] In the embodiment, a branch pipeline is connected to the direct drinking water pipeline. The branch pipeline comprises a water inlet pipe 5, a water outlet pipe 6 and a detection pipe 7. One end of the water inlet pipe 5 is connected to the direct drinking water pipeline, and the other end is connected to the detection pipe 7. The other end of the detection pipe 7 is connected to one end of the water outlet pipe 6, and the other end of the water outlet pipe 6 is connected to the direct drinking water pipeline. The water flow in the direct drinking water pipeline is introduced into the detection pipe 7 through the water inlet pipe 5 and flows back into the direct drinking water pipeline through the water outlet pipe 6. That is, the water in the direct drinking water pipeline is divided into the monitoring device by using the water inlet pipe 5 and the water outlet pipe 6. In actual application, the position of the monitoring device can be adjusted according to the application scene.

[0071] The water flow in the direct drinking water pipeline is introduced into the monitoring device through the water inlet pipe 5. During the use of the direct drinking water, since the water flow used by the user is much smaller than the water supply flow, the direct drinking water will fill the entire direct drinking water pipeline and branch pipeline for a long time, and bacteria will continue to grow to form a bacterial film on the pipeline wall.

[0072] The monitoring instrument 1 is embedded in the detection pipe 7. The bottom of the monitoring instrument 1 is open, and a pipeline transparent observation window 4 is fixedly arranged at the opening end, which is used to observe the bacterial adhesion condition of the pipeline wall in the detection pipe 7. Since the water in the detection pipe 7 comes from the direct drinking water pipeline, the bacterial growth condition on the pipeline wall of the direct drinking water pipeline is basically the same as the bacterial growth condition on the pipeline wall of the detection pipe 7 where the monitoring instrument 1 is arranged. Therefore, the microbial pollution condition observed by the monitoring instrument 1 can reflect the microbial index of the direct drinking water pipeline.

[0073] The monitoring instrument 1 is internally provided with a shooting and uploading integrated device 2 fixed on the top wall, the shooting and uploading integrated device 2 is embedded with a microscopic device 3, the microscopic device 3 is aligned with a transparent observation window 4, the bacterial adhesion condition of the wall of a detection tube 7 is enlarged through the transparent observation window 4, the enlarged bacterial adhesion condition is shot by the shooting and uploading integrated device 2, the bacterial image of the wall of the detection tube 7 is acquired and uploaded to a cloud server for analysis. The shooting and uploading integrated device integrates a high-precision optical microscope, which is used for real-time observation and recording of the detailed condition of bacterial adhesion. The shooting and uploading integrated device is set to automatically collect images periodically (such as 12 hours or 24 hours), and the image data is transmitted to the cloud server in real time.

[0074] In some embodiments, the shooting and uploading integrated device 2 is composed of a camera and an uploading device, the camera is located directly below the uploading device, a ccd card camera is adopted, a microscopic device is connected at the lens, and the transmission mode of blue tooth transmission or data line transmission is selected according to the use environment to transmit the photo to the uploading device. The camera lens is connected with the microscope, and the camera will automatically focus to adjust the distance between the microscope and the tube wall during shooting. The shooting and uploading integrated device automatically identifies whether the flash is turned on during shooting, and the operation process is similar to the camera on the mobile phone.

[0075] In some embodiments, the monitoring instrument 1 is embedded on the upper part of the detection tube 7.

[0076] In some embodiments, the microscopic device 3 is a high-precision optical microscope.

[0077] The system realizes real-time continuous monitoring, rapid and accurate analysis and scientific and effective early warning of the microorganism index of direct drinking water by installing real-time monitoring devices, i.e. monitoring instruments, on direct drinking water pipelines. The monitoring instrument can not only capture the dynamic adhesion of bacteria on the wall of the observation window in real time, but also synchronously transmit the captured image data to the cloud server in real time through an efficient camera and uploading system, thereby providing effective data support for microorganism index analysis. The cloud server can analyze the images continuously acquired in a time scale within a certain period of time, thereby timely and accurately understanding the dynamic development of the microorganism pollution of direct drinking water. The real-time monitoring system also has a warning function, once the analysis shows that the proportion of the microorganism pollution area in the real-time acquired image reaches a preset threshold, the system will start the automatic warning function, timely notify the user end and the water production equipment maintenance end through the mobile phone APP, and quickly and effectively take measures such as microorganism disinfection. At the same time, the user can acquire historical image data reflecting the microorganism pollution condition of direct drinking water through the mobile phone APP in real time, thereby timely understanding the water quality condition of the direct drinking water, and truly knowing the situation and drinking with peace of mind. This real-time online monitoring method significantly improves the timeliness, effectiveness and accuracy of the monitoring of the microorganism index of direct drinking water pipeline, and effectively avoids the problem of secondary biological pollution of direct drinking water pipeline due to untimely treatment.

[0078] Example 3

[0079] The purpose of this embodiment is to provide a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method steps of Embodiment 1.

[0080] Example 4

[0081] The purpose of this embodiment is to provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the method steps of Embodiment 1.

[0082] The steps and methods involved in the apparatuses of Embodiments 3 and 4 above correspond to those in Embodiment 1. For specific implementation details, please refer to the relevant description section of Embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood as including any medium capable of storing, encoding, or carrying an instruction set for execution by a processor and enabling the processor to perform any of the methods in this invention.

[0083] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computer devices. Optionally, they can be implemented using computer-executable program code, thereby allowing them to be stored in a storage device for execution by a computer device, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. The present invention is not limited to any particular combination of hardware and software.

[0084] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

[0085] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this 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 without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A method for real-time monitoring of secondary biological contamination of direct drinking water in a pipeline, characterized in that, The method comprises the following steps: acquiring a pipe wall bacteria image and pre-processing; the pipe wall bacteria image is acquired by a monitoring instrument, the monitoring instrument is embedded in a branch pipeline, a transparent observation window is fixedly arranged at the bottom of the monitoring instrument, a photographing and uploading integrated device is fixedly arranged inside the monitoring instrument above the transparent observation window, and the pipe wall bacteria image is collected through the transparent observation window; the branch pipeline is communicatively arranged on a direct drinking water pipeline and comprises an inlet pipe, a detection pipe and an outlet pipe which are sequentially communicated, the monitoring instrument is embedded in the detection pipe, water flow in the direct drinking water pipeline is introduced into the detection pipe through the inlet pipe, and the water flow flows back into the direct drinking water pipeline through the outlet pipe; the photographing and uploading integrated device is fixedly arranged on the inner top wall of the monitoring instrument, a microscopic device is embedded in the photographing and uploading integrated device, the microscopic device is aligned with the transparent observation window, the bacterial adhesion condition of the pipe wall of the detection pipe is enlarged through the transparent observation window, the enlarged bacterial adhesion condition is photographed through the photographing and uploading integrated device, and the pipe wall bacteria image of the detection pipe is acquired; an edge detection algorithm is used to identify the pre-processed bacteria image, and the outline of the microbial coverage area is drawn; the bacteria image with the outline of the microbial coverage area is converted into a binary image; a pixel counting algorithm is used to count the number of pixels in the microbial coverage area, and the number of pixels is converted into a coverage area based on the image resolution and the zooming coefficient of the photographing and uploading integrated device; specifically, the outline identification and area calculation are sequentially performed: in the binary image, the outline of the microbial coverage area is identified by using a contour detection algorithm, the number of white pixels in the target area is counted by using a pixel counting technique, and the area occupied by the outline is calculated; Assuming that after binarization, the number of white pixels in the target area is The actual area represented by each pixel is The area of the target area is Calculated by the following formula: wherein, represents the total number of pixels within the target area, represents the area each pixel actually occupies in reality; wherein, is calculated by the following equation: wherein, is the resolution of the image, is the scaling factor; the area of the target region is represented as: the area ratio of the coverage area is calculated by proportion, and the water quality pollution degree is evaluated by the area ratio; a pipe wall microbial pollution database is constructed, a warning threshold is set according to the pollution data in the pipe wall microbial pollution database, the calculated area ratio is compared with the preset warning threshold, and once the warning threshold is exceeded, the warning mechanism is triggered immediately.

2. A real-time monitoring system for secondary biological contamination of direct drinking water in pipelines, which adopts the real-time monitoring method for secondary biological contamination of direct drinking water in pipelines according to claim 1, characterized in that, The monitoring instrument and a cloud server in communication connection with the monitoring instrument are included. The monitoring instrument is embedded in a branch pipeline, a transparent observation window is fixedly arranged at the bottom of the monitoring instrument, a photographing and uploading integrated device is fixedly arranged inside the monitoring instrument above the transparent observation window, a pipe wall bacteria image is collected through the transparent observation window, and the pipe wall bacteria image is transmitted to the cloud server; the cloud server evaluates the water quality pollution degree based on the received pipe wall bacteria image.

3. A real-time monitoring system for secondary biological contamination of direct pipe drinking water as claimed in claim 2, wherein, The branch pipeline is communicatively arranged on a direct drinking water pipeline.

4. A real-time monitoring system for secondary biological contamination of direct pipe drinking water as claimed in claim 3, wherein, The branch pipeline comprises an inlet pipe, a detection pipe and an outlet pipe which are sequentially communicated.

5. A real-time monitoring system for secondary biological contamination of direct pipe drinking water as claimed in claim 4, wherein, The monitoring instrument is embedded in the detection pipe.

6. A real-time monitoring system for secondary biological contamination of direct pipe drinking water as claimed in claim 2, wherein, The photographing and uploading integrated device is embedded with a microscopic device, and the microscopic device is aligned with the transparent observation window.

7. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the steps of the secondary biological pollution real-time monitoring method of direct drinking water in the pipeline as claimed in claim 1.

8. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to implement the steps of the secondary biological pollution real-time monitoring method of direct drinking water in the pipeline as claimed in claim 1.

Citation Information

Patent Citations

  • Online microscopic method and device of sewage

    CN105988208A

  • Visual detection method and system for fishery breeding water source pollution

    CN116863323A

  • Automatic focusing pathological microscopic device

    CN214151230U