Sewage purification treatment drug dosage control method and system based on image recognition

By acquiring underwater images in the sewage tank, extracting the feature values ​​of suspended particles, and adjusting the frequency of the dosing pump, the problems of poor sewage treatment effect and waste of chemicals were solved, thereby improving the sewage purification effect and saving chemicals.

CN119091165BActive Publication Date: 2025-10-28SI CHUAN YUN GAN ZHI REN GONG ZHI NENG KE JI YOU XIAN GONG SI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311326023.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2025-10-28
Estimated Expiration
2043-10-13

AI Technical Summary

Technical Problem

In existing wastewater treatment processes, changes in wastewater flow rate lead to problems such as reagent waste and poor treatment results.

Method used

By acquiring underwater images of the purified wastewater tank, extracting the feature values ​​of suspended particles, and comparing them with a preset range, the operating frequency of the dosing pump is adjusted to ensure that the feature values ​​fall within the preset range, thereby achieving precise control of the dosage.

Benefits of technology

This approach improves the purification effect of wastewater treatment ponds and saves on chemicals, ensuring that wastewater and chemicals react fully while reducing chemical waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091165B_ABST
    Figure CN119091165B_ABST
Patent Text Reader

Abstract

This invention relates to a method and system for controlling the dosage of chemicals in wastewater purification based on image recognition. The method involves acquiring underwater images of the purified wastewater tank; extracting feature values ​​from the underwater images; comparing the feature values ​​with a preset feature range; and adjusting the operating frequency of the dosing pump when the feature values ​​of the underwater images do not fall within the preset feature range, so that the feature values ​​of the underwater images fall within the preset feature range. This application acquires underwater images and obtains feature values ​​of suspended shells in the wastewater tank after purification. Simultaneously, a reference range of feature values ​​characterizing the sufficient reaction between the chemical and the wastewater is established. By comparing with the reference range, the reaction status is determined, and the subsequent chemical dosage is adjusted, thereby ensuring sufficient reaction in the wastewater tank while conserving chemical dosage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of automatic control technology, specifically to a method and system for controlling the dosage of chemicals used in wastewater purification based on image recognition. Background Technology

[0002] Wastewater treatment is the process of purifying wastewater to meet the water quality requirements for discharge into a water body or for reuse. Wastewater treatment is widely used in various fields such as construction, agriculture, transportation, energy, petrochemicals, environmental protection, urban landscaping, healthcare, and catering, and is increasingly becoming a part of everyday life for ordinary people.

[0003] In existing technologies, peristaltic pumps are generally used for automatic chemical dosing in wastewater treatment processes. Therefore, the operating frequency of the peristaltic pump is directly proportional to the amount of chemical added. Current technologies use PLC controllers to control the operating frequency of the peristaltic pump. However, the flow rate of wastewater in the wastewater tank varies in some situations. Therefore, using a fixed operating frequency to control the peristaltic pump will result in poor wastewater treatment or wasted chemicals. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method and system for controlling the dosage of wastewater purification chemicals based on image recognition, so as to solve the problems of poor wastewater treatment effect or waste of chemicals in the prior art.

[0005] To achieve the above objectives, the present invention adopts the following technical solution:

[0006] The image recognition-based method for controlling the dosage of wastewater purification agents of the present invention includes:

[0007] S1, acquire underwater images of the purified sewage tank;

[0008] S2, extract the feature values ​​of the underwater image;

[0009] S3, compare the feature values ​​of the underwater image with a preset feature range;

[0010] S4, when the feature values ​​of the underwater image do not fall into the preset feature range, adjust the operating frequency of the dosing pump so that the feature values ​​of the underwater image fall into the preset feature range.

[0011] In one embodiment of this application, extracting feature values ​​from the underwater image includes:

[0012] Extract contour features from underwater images;

[0013] When any contour feature meets the target conditions, the contour feature is used as the contour of the suspended particle. The target conditions include: (1) the contour feature forms a closed shape; (2) the pixel values ​​of the pixels in the closed shape are within a preset range of pixel values.

[0014] The feature values ​​of the underwater image are obtained by determining the number C of suspended particle outlines, the average area S of suspended particles, and the standard deviation σ of the area of ​​suspended particles.

[0015] In one embodiment of this application, comparing the feature values ​​of the underwater image with a preset feature range includes:

[0016] The number C of suspended particle outlines in the underwater image is compared with a preset reference range R1 for the number of suspended particles. The average area S of suspended particles in the underwater image is compared with a preset reference range R2 for the average area of ​​suspended particles. The standard deviation σ of the area of ​​suspended particles in the underwater image is compared with a preset reference range R3 for the standard deviation of the area of ​​suspended particles.

[0017] In one embodiment of this application, adjusting the operating frequency of the dosing pump when the feature values ​​of the underwater image do not fall within a preset feature range includes:

[0018] When C is greater than the upper limit of R1 or S is less than the lower limit of R2, and σ is less than the lower limit of R3, the operating frequency of the dosing pump is increased by X.

[0019] When C is greater than the upper limit of R1 or S is less than the lower limit of R2, and σ is greater than or equal to the lower limit of R3, the operating frequency of the dosing pump is increased by Y, where X > Y.

[0020] In one embodiment of this application, after adjusting the operating frequency of the dosing pump, the method further includes:

[0021] Repeat steps S1-S4 until the feature values ​​of the underwater image fall within a preset feature range.

[0022] In one embodiment of this application, it further includes:

[0023] S5, when the operating frequency of the dosing pump is not adjusted for a duration exceeding T, the operating frequency of the dosing pump is reduced by Z.

[0024] S6, execute steps S1-S3: when the feature value of the underwater image falls into the preset feature range, reduce the operating frequency of the dosing pump by Z; when the feature value of the underwater image does not fall into the preset feature range, execute step S4.

[0025] S7. When the feature value of the underwater image falls within the preset feature range, S6 is repeated until the feature value of the underwater image does not fall within the preset feature range, then step S4 is executed.

[0026] In one embodiment of this application, it further includes:

[0027] Obtain the actual operating frequency of the dosing pump;

[0028] Compare the actual operating frequency with the control frequency;

[0029] When the difference between the actual operating frequency and the control frequency is greater than a preset threshold, the control frequency and the actual operating frequency are fed back to the front-end module, and the control frequency is sent to the controller through a pre-set process control data interface, so as to adjust the actual operating frequency of the dosing pump to the control frequency.

[0030] This application also provides an image recognition-based wastewater treatment chemical dosage control system, including:

[0031] The acquisition module is used to execute S1 to acquire underwater images of the purified sewage pool;

[0032] The feature extraction module is used to execute S2 to extract feature values ​​from the underwater image;

[0033] The comparison module is used to execute S3, comparing the feature values ​​of the underwater image with a preset feature range;

[0034] The adjustment module is used to execute S4, which adjusts the operating frequency of the dosing pump when the feature values ​​of the underwater image do not fall into the preset feature range, so that the feature values ​​of the underwater image fall into the preset feature range.

[0035] The beneficial effects of this invention are as follows: The wastewater purification treatment dosage control method and system based on image recognition of this invention acquires underwater images of the purified wastewater tank; extracts feature values ​​from the underwater images; compares the feature values ​​of the underwater images with a preset feature range; and adjusts the operating frequency of the dosing pump when the feature values ​​of the underwater images do not fall within the preset feature range, so that the feature values ​​of the underwater images fall within the preset feature range. This application acquires underwater images and obtains feature values ​​of suspended shells in the wastewater tank after purification. Simultaneously, a reference range of feature values ​​characterizing the full reaction between the agent and the wastewater is set. By comparing with the reference range, the reaction status is determined, and the subsequent dosing dosage is adjusted, thereby ensuring a full reaction in the wastewater tank while saving on the amount of agent. Attached Figure Description

[0036] The present invention will be further described below with reference to the accompanying drawings and embodiments:

[0037] Figure 1 This is a flowchart of a wastewater purification drug dosage control method based on image recognition in one embodiment of the present invention;

[0038] Figure 2 This is a structural diagram of a wastewater purification drug dosage control system based on image recognition in one embodiment of the present invention. Detailed Implementation

[0039] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, unless otherwise specified, the following embodiments and features described therein can be combined with each other.

[0040] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the layers related to the present invention and are not drawn according to the actual number, shape and size of the layers in the actual implementation. In the actual implementation, the form, number and proportion of each layer can be arbitrarily changed, and the layer layout may also be more complex.

[0041] Numerous details are explored in the following description to provide a more thorough explanation of embodiments of the invention; however, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details.

[0042] Figure 1 This is a flowchart illustrating a wastewater treatment drug dosage control method based on image recognition in one embodiment of this application, as shown below. Figure 1 As shown: including:

[0043] S1, acquire underwater images of the purified sewage tank. The underwater images are acquired by a camera pre-installed in the sewage tank, and the camera transmits the underwater images to the computer host in the server room via a data cable.

[0044] S2, extract the feature values ​​of the underwater image. The feature values ​​are extracted by a computer host. The feature values ​​in this application mainly include the number of suspended particles and the size of suspended particles. The size of suspended particles is represented by the average size and standard deviation. The average size reflects the overall size of the suspended particles, and the standard deviation reflects the uniformity of the size of the suspended particles.

[0045] In one embodiment of this application, extracting feature values ​​from the underwater image includes:

[0046] To extract contour features from underwater images, this application uses the Canny operator. Before extraction, the underwater image needs to be processed into grayscale.

[0047] When any contour feature meets the target conditions, the contour feature is used as the contour of the suspended particle. The target conditions include: (1) the contour feature forms a closed shape; (2) the pixel values ​​of the pixels in the closed shape are within a preset range of pixel values.

[0048] The feature values ​​of the underwater image are obtained by determining the number C of suspended particle outlines, the average area S of suspended particles, and the standard deviation σ of the area of ​​suspended particles.

[0049] Wherein, the number of suspended particle outlines C is taken as the number of suspended particles; the average area S of suspended particles is taken as the average size of suspended particles, wherein the average area S is determined by counting the number of pixels within the outline; and the standard deviation σ of the area of ​​suspended particles is taken as the standard deviation of the size of suspended particles.

[0050] S3, compare the feature values ​​of the underwater image with a preset feature range. This application mainly includes a reference range R1 for the number of suspended particles, a reference range R2 for the average area of ​​suspended particles, and a reference range R3 for the standard deviation of the area of ​​suspended particles.

[0051] In one embodiment of this application, comparing the feature values ​​of the underwater image with a preset feature range includes:

[0052] The number C of suspended particle outlines in the underwater image is compared with a preset reference range R1 for the number of suspended particles. The average area S of suspended particles in the underwater image is compared with a preset reference range R2 for the average area of ​​suspended particles. The standard deviation σ of the area of ​​suspended particles in the underwater image is compared with a preset reference range R3 for the standard deviation of the area of ​​suspended particles.

[0053] S4, when the feature values ​​of the underwater image do not fall within the preset feature range, adjust the operating frequency of the dosing pump;

[0054] Repeat steps S1-S4 until the feature values ​​of the underwater image fall within a preset feature range.

[0055] When C is greater than the upper limit of R1 or S is less than the lower limit of R2, and σ is less than the lower limit of R3, the operating frequency of the dosing pump is increased by X.

[0056] In this situation, the large number of suspended particles and their small average area indicate that the sewage in the wastewater tank has not fully reacted with the agent, and the size of the suspended particles is uniform, indicating a serious lack of agent dosage. Therefore, it is necessary to increase the operating frequency of the dosing pump to increase the agent dosage.

[0057] When C is greater than the upper limit of R1 or S is less than the lower limit of R2, and σ is greater than or equal to the lower limit of R3, the operating frequency of the dosing pump is increased by Y, where X > Y.

[0058] In this situation, the large number of suspended particles and their small average area indicate that the sewage in the wastewater tank has not fully reacted with the agent, and the size of the suspended particles is uneven, indicating a certain deficiency in the dosage. Therefore, it is necessary to increase the operating frequency of the dosing pump to increase the dosage.

[0059] S5, when the operating frequency of the dosing pump is not adjusted for a duration exceeding T, the operating frequency of the dosing pump is reduced by Z.

[0060] If the operating frequency of the dosing pump is not increased for a period of time exceeding T, there may be excessive dosage of the drug, resulting in waste. Therefore, in this case, the dosage of the drug should be appropriately reduced.

[0061] S6, execute steps S1-S3: when the feature value of the underwater image falls into the preset feature range, reduce the operating frequency of the dosing pump by Z; when the feature value of the underwater image does not fall into the preset feature range, execute step S4.

[0062] S7. When the feature value of the underwater image falls within the preset feature range, S6 is repeated until the feature value of the underwater image does not fall within the preset feature range, then step S4 is executed.

[0063] After reducing the dosage of the reagent, steps S1-S3 are executed again to acquire the feature values ​​of the underwater image and determine whether the reaction is sufficient. If the reaction is still sufficient at this point, it indicates that there may still be an over-dosing of the reagent. Therefore, the dosage of the reagent is repeatedly reduced, and the feature values ​​of the underwater image are acquired each time it is reduced to determine whether the reaction is sufficient, until insufficient reaction occurs, approaching the limit of the dosage. At this point, step S4 is executed to increase the dosage of the reagent by a certain amount to ensure that the wastewater and the reagent react sufficiently.

[0064] The above process not only ensures that the wastewater can fully react with the chemicals, but also saves as much chemicals as possible.

[0065] In one embodiment of this application, it further includes:

[0066] Obtain the actual operating frequency of the dosing pump;

[0067] The actual operating frequency is compared with the control frequency, where the control frequency is the control frequency sent by the computer host or PLC industrial control equipment.

[0068] When the difference between the actual operating frequency and the control frequency is greater than a preset threshold, the control frequency and the actual operating frequency are fed back to the front-end module, and the control frequency is sent to the controller through a pre-set process control data interface, so as to adjust the actual operating frequency of the dosing pump to the control frequency.

[0069] This application also uses a backup channel. When the actual operating frequency of the dosing pump differs significantly from the control frequency, it indicates that there may be a problem with the channel. In this case, the control frequency is sent to the controller through a preset process control data interface to correct the actual operating frequency of the dosing pump.

[0070] This invention discloses a wastewater treatment chemical dosage control method based on image recognition. The method involves acquiring an underwater image of the purified wastewater tank; extracting feature values ​​from the underwater image; comparing the feature values ​​with a preset feature range; and adjusting the operating frequency of the dosing pump when the feature values ​​do not fall within the preset feature range, so that the feature values ​​fall within the preset feature range. This application acquires underwater images and obtains feature values ​​of suspended shells in the wastewater tank after purification. Simultaneously, a reference range of feature values ​​characterizing the sufficient reaction between the chemical and the wastewater is established. By comparing with the reference range, the reaction status is determined, and the subsequent chemical dosage is adjusted, thereby ensuring sufficient reaction in the wastewater tank while conserving chemical dosage.

[0071] like Figure 2 As shown, this application also provides an image recognition-based wastewater purification drug dosage control system, including:

[0072] The acquisition module is used to execute S1 to acquire underwater images of the purified sewage pool;

[0073] The feature extraction module is used to execute S2 to extract feature values ​​from the underwater image;

[0074] The comparison module is used to execute S3, comparing the feature values ​​of the underwater image with a preset feature range;

[0075] The adjustment module is used to execute S4, which adjusts the operating frequency of the dosing pump when the feature values ​​of the underwater image do not fall into the preset feature range, so that the feature values ​​of the underwater image fall into the preset feature range.

[0076] This invention discloses a wastewater purification chemical dosage control system based on image recognition. The system acquires underwater images of the purified wastewater tank; extracts feature values ​​from these images; compares these feature values ​​with a preset feature range; and adjusts the operating frequency of the dosing pump when the feature values ​​do not fall within the preset range, ensuring that the feature values ​​fall within the preset range. This application acquires underwater images and obtains feature values ​​of suspended shells in the wastewater tank after purification. Simultaneously, a reference range of feature values ​​characterizing the sufficient reaction between the chemical and the wastewater is established. By comparing the reference range, the reaction status is determined, and the subsequent chemical dosage is adjusted, thereby ensuring sufficient reaction in the wastewater tank while conserving chemical dosage.

[0077] This embodiment also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements any one of the methods in this embodiment, wherein the method is the execution logic of this system.

[0078] This embodiment also provides an electronic terminal, including: a processor and a memory;

[0079] The memory is used to store computer programs, and the processor is used to execute the computer programs stored in the memory so that the terminal performs any of the methods in this embodiment.

[0080] As will be understood by those skilled in the art, the computer-readable storage medium described in this embodiment allows for the implementation of all or part of the steps in the above method embodiments by computer program-related hardware. The aforementioned computer program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0081] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication between them. The memory is used to store computer programs, the communication interface is used to perform communication, and the processor and the transceiver are used to run the computer programs, so that the electronic terminal performs the steps of the above method.

[0082] In this embodiment, the memory may include random access memory (RAM) and may also include non-volatile memory, such as at least one disk storage device.

[0083] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0084] In the above embodiments, although the invention has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. The embodiments of the invention are intended to cover all such substitutions, modifications, and variations falling within the broad scope of the appended claims.

[0085] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.

Claims

1. A method for controlling the dosage of chemicals in wastewater purification based on image recognition, characterized in that, include: S1, acquire underwater images of the purified sewage tank; S2, extract the feature values ​​of the underwater image; Extracting feature values ​​from the underwater image includes: extracting contour features from the underwater image; when any contour feature meets a target condition, the contour feature is used as the contour of the suspended particles, the target condition including: (1) the contour feature forms a closed shape; (2) the pixel values ​​of the pixels within the closed shape are within a preset range of pixel values; determining the number of contours of suspended particles in the underwater image. Average area of ​​suspended particles and the standard deviation of the area of ​​suspended particles. The feature values ​​of the underwater image are obtained. S3, compare the feature values ​​of the underwater image with a preset feature range; S4. When the feature value of the underwater image does not fall into the preset feature range, adjust the operating frequency of the dosing pump so that the feature value of the underwater image falls into the preset feature range. S5, when the duration exceeds If the operating frequency of the dosing pump is not adjusted, reduce the operating frequency of the dosing pump by the amount of reduction. ; S6, execute steps S1-S3, when the feature values ​​of the underwater image fall within a preset feature range, reduce the operating frequency of the dosing pump by the amount of reduction. If the feature values ​​of the underwater image do not fall within the preset feature range, proceed to step S4. S7. When the feature value of the underwater image falls within the preset feature range, S6 is repeated until the feature value of the underwater image does not fall within the preset feature range, then step S4 is executed.

2. The method for controlling the dosage of wastewater purification chemicals based on image recognition according to claim 1, characterized in that, The feature values ​​of the underwater image are compared with a preset feature range, including: The number of suspended particle outlines in the underwater image Reference range of the preset number of suspended particles By comparison, the average area of ​​suspended particles in the underwater images is... Reference range of average area of ​​suspended particles The comparison was performed, and the standard deviation of the area of ​​suspended particles in the underwater images was calculated. Reference range of the standard deviation of suspended particle area Compare them.

3. The method for controlling the dosage of wastewater purification chemicals based on image recognition according to claim 2, characterized in that, When the feature values ​​of the underwater image do not fall within a preset feature range, the operating frequency of the dosing pump is adjusted, including: In satisfying: Greater than upper limit or Less than When the lower limit is met, it simultaneously satisfies Less than When the lower limit is reached, the operating frequency of the dosing pump is increased, and the dosage is increased by [missing value]. ; In satisfied; Greater than upper limit or Less than When the lower limit is met, it simultaneously satisfies Greater than or equal to When the lower limit is reached, the operating frequency of the dosing pump is increased, and the dosage is increased by [missing value]. ,in, .

4. The method for controlling the dosage of wastewater purification chemicals based on image recognition according to claim 1, characterized in that, After adjusting the operating frequency of the dosing pump, the following is also included: Repeat steps S1-S4 until the feature values ​​of the underwater image fall within a preset feature range.

5. The method for controlling the dosage of wastewater purification chemicals based on image recognition according to claim 3, characterized in that, Also includes: Obtain the actual operating frequency of the dosing pump; Compare the actual operating frequency with the control frequency; When the difference between the actual operating frequency and the control frequency is greater than a preset threshold, the control frequency and the actual operating frequency are fed back to the front-end module, and the control frequency is sent to the controller through a pre-set process control data interface, so as to adjust the actual operating frequency of the dosing pump to the control frequency.

6. A wastewater treatment chemical dosage control system based on image recognition, applied to the wastewater treatment chemical dosage control method based on image recognition as described in claim 1, characterized in that, include: The acquisition module is used to execute S1 to acquire underwater images of the purified sewage pool; The feature extraction module is used to execute S2 to extract feature values ​​from the underwater image; The comparison module is used to execute S3, comparing the feature values ​​of the underwater image with a preset feature range; The adjustment module is used to execute S4, which adjusts the operating frequency of the dosing pump when the feature value of the underwater image does not fall into the preset feature range, so that the feature value of the underwater image falls into the preset feature range.

Citation Information

Patent Citations

  • Intelligent control system and method for high-density sedimentation tank

    CN111233118A

  • Polluted water intelligent treatment system based on water quality detection indexes

    CN114988642A

  • Sewage purification treatment agent dosage control system based on big data learning and image recognition

    CN115367823A

  • Dosage Control System for Sewage Purification Treatment Based on Machine Learning and Image Recognition

    CN119080087B