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

The characteristic value of the sewage pool is obtained through image recognition technology and the frequency of the dosing pump is adjusted, which solves the problems of poor sewage treatment effect and waste of medicines, and achieves the full reaction between sewage and medicines and the saving of medicines.

CN119091165AActive Publication Date: 2024-12-06SI CHUAN YUN GAN ZHI REN GONG ZHI NENG KE JI YOU XIAN GONG SI
View PDF 18 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the existing sewage treatment technology, the fixed working frequency control of peristaltic pump leads to poor sewage treatment effect or waste of medicine.

Method used

The dosage control method of sewage purification treatment based on image recognition is adopted. By obtaining the underwater image of the sewage pool, the characteristic value is extracted and compared with the preset range, the working frequency of the dosage pump is adjusted so that the characteristic value falls into the preset range. Ensure that the sewage reacts fully with the agent and saves the agent.

Benefits of technology

The sewage treatment effect and the saving of chemicals are achieved, ensuring that the number, area and uniformity of suspended particles in the sewage pool meet the preset range, and avoiding excessive or insufficient chemicals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091165A_ABST
    Figure CN119091165A_ABST
Patent Text Reader

Abstract

The invention relates to a sewage purification treatment agent dosage control method and system based on image recognition. The method comprises the following steps: acquiring an underwater image of a purified sewage pool; extracting a feature value of the underwater image; comparing the feature value of the underwater image with a preset feature range; and when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusting the working frequency of the dosing pump so as to enable the characteristic value of the underwater image to fall into the preset characteristic range. After the sewage pool is purified, the underwater image is collected, and the characteristic value of the suspension shell in the sewage pool is obtained. Meanwhile, a characteristic value reference range for representing full reaction of the medicament and the sewage is set, the reaction condition is determined by comparing the reference range, and then the subsequent dosage is adjusted, so that the medicament is saved while the full reaction of the sewage pool is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of automatic control technology, and in particular to a sewage purification treatment agent dosage control method and system based on image recognition. Background Art

[0002] Sewage treatment (wastewater treatment) is the process of purifying sewage to meet the water quality requirements for discharge into a water body or reuse. Sewage treatment is widely used in various fields such as construction, agriculture, transportation, energy, petrochemicals, environmental protection, urban landscape, medical treatment, catering, etc., and is increasingly entering the daily lives of ordinary people.

[0003] In the prior art, during the sewage treatment process, peristaltic pumps are generally used for automatic dosing, so the operating frequency of the peristaltic pump is proportional to the amount of dosing. In the prior art, the operating frequency of the peristaltic pump is controlled by a PLC controller, but the sewage flow rate in the sewage tank varies in some cases. Therefore, if a fixed operating frequency is used to control the peristaltic pump, it will result in poor sewage treatment effect or waste of drugs. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a sewage purification treatment agent dosage control method and system based on image recognition, so as to solve the problems of poor sewage treatment effect or agent waste in the prior art.

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

[0006] The sewage purification treatment agent dosage control method based on image recognition of the present invention comprises:

[0007] S1, obtain underwater images of the purified sewage pool;

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

[0009] S3, comparing the feature value of the underwater image with a preset feature range;

[0010] S4, when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusting the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range.

[0011] In one embodiment of the present application, extracting the feature value of 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, and the target conditions include: (1) the contour feature forms a closed figure; (2) the pixel value of the pixel point in the closed figure is within a preset pixel value range;

[0014] The number C of the outlines of the suspended particles in the underwater image, the average area S of the suspended particles, and the standard deviation σ of the area of ​​the suspended particles are determined to obtain the characteristic value of the underwater image.

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

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

[0017] In one embodiment of the present application, when the characteristic value of the underwater image does not fall into a preset characteristic range, adjusting the operating frequency of the dosing pump includes:

[0018] When the following conditions are met: 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 an amount of 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 an amount of Y, wherein X>Y.

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

[0021] Steps S1 to S4 are repeatedly performed until the characteristic value of the underwater image falls into a preset characteristic range.

[0022] In one embodiment of the present application, it also includes:

[0023] S5, when the operating frequency of the dosing pump is not adjusted for a duration exceeding T, reducing the operating frequency of the dosing pump by an amount of Z;

[0024] S6, executing steps S1 to S3, when the characteristic value of the underwater image falls into the preset characteristic range, reducing the operating frequency of the dosing pump by an amount of Z; when the characteristic value of the underwater image does not fall into the preset characteristic range, executing step S4;

[0025] S7, when the characteristic value of the underwater image falls into the preset characteristic range, repeatedly execute S6, until the characteristic value of the underwater image does not fall into the preset characteristic range, execute step S4.

[0026] In one embodiment of the present application, it also includes:

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

[0028] Comparing 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 preset process control data interface to adjust the actual operating frequency of the dosing pump to the control frequency.

[0030] The present application also provides a sewage purification treatment dosage control system based on image recognition, including:

[0031] An acquisition module, used for executing S1, acquiring an underwater image of the purified sewage pool;

[0032] A feature extraction module, used to execute S2 to extract feature values ​​of the underwater image;

[0033] A comparison module, used to execute S3, comparing the feature value of the underwater image with a preset feature range;

[0034] The adjustment module is used to execute S4, and when the characteristic value of the underwater image does not fall into the preset characteristic range, adjust the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range.

[0035] The beneficial effects of the present invention are as follows: the sewage purification treatment dosage control method and system based on image recognition of the present invention obtains an underwater image of the purified sewage pool; extracts the characteristic value of the underwater image; compares the characteristic value of the underwater image with a preset characteristic range; when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusts the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range. After the sewage pool is purified, the present application collects underwater images and obtains the characteristic values ​​of the suspended shells in the sewage pool. At the same time, a characteristic value reference range that characterizes the full reaction of the agent and the sewage is set, and the reaction situation is determined by comparing the reference range, and then the subsequent dosage is adjusted, thereby ensuring that the sewage pool fully reacts while saving agents. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Figure 1 It is a flow chart of a method for controlling dosage of sewage purification treatment drugs based on image recognition in one embodiment of the present invention;

[0038] Figure 2 It is a structural diagram of a sewage purification treatment drug dosage control system based on image recognition in one embodiment of the present invention. DETAILED DESCRIPTION

[0039] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0040] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show the layers related to the present invention rather than being drawn according to the number, shape and size of the layers in actual implementation. In actual implementation, the type, quantity and proportion of each layer may be changed arbitrarily, and the layer layout may also be more complicated.

[0041] In the following description, numerous details are discussed to provide a more thorough explanation of embodiments of the present invention; however, it is apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details.

[0042] Figure 1 FIG. 1 is a flow chart of a method for controlling the dosage of sewage purification treatment agents based on image recognition in an embodiment of the present application. Figure 1 Shown: Included:

[0043] S1, obtaining an underwater image of the purified sewage pool, wherein the underwater image is obtained by a camera preset in the sewage pool, and the camera transmits the underwater image to a computer host in a computer room through a data cable.

[0044] S2, extracting characteristic values ​​of the underwater image, wherein the characteristic values ​​are extracted by a computer host, and the characteristic values ​​in the present application mainly include the number of suspended particles and the size of suspended particles, wherein the size of suspended particles is represented by an average size and a standard deviation, wherein 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 the present application, extracting the feature value of the underwater image includes:

[0046] Extracting contour features from underwater images: This application uses the Canny operator to extract contour features from underwater images. Before extraction, the underwater images also need to be gray-scaled.

[0047] When any contour feature meets the target conditions, the contour feature is used as the contour of the suspended particle, and the target conditions include: (1) the contour feature forms a closed figure; (2) the pixel value of the pixel point in the closed figure is within a preset pixel value range;

[0048] The number C of the outlines of the suspended particles in the underwater image, the average area S of the suspended particles, and the standard deviation σ of the area of ​​the suspended particles are determined to obtain the characteristic value of the underwater image.

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

[0050] S3, comparing the characteristic value of the underwater image with a preset characteristic range, which mainly includes a reference range R1 of the number of suspended particles, a reference range R2 of the average area of ​​suspended particles, and a reference range R3 of the standard deviation of the area of ​​suspended particles;

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

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

[0053] S4, when the characteristic value of the underwater image does not fall into a preset characteristic range, adjusting the operating frequency of the dosing pump;

[0054] Steps S1 to S4 are repeatedly performed until the characteristic value of the underwater image falls into a preset characteristic range.

[0055] When the following conditions are met: 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 an amount of X;

[0056] In this case, the number of suspended particles is large and the average area is relatively small, indicating that the sewage in the sewage pool has not completely reacted with the agent, and the size of the suspended particles is uniform, and the amount of medicine is seriously insufficient. Therefore, it is necessary to increase the working frequency of the dosing pump to increase the amount of medicine.

[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 an amount of Y, wherein X>Y.

[0058] In this case, the number of suspended particles is large and the average area is relatively small, indicating that the sewage in the sewage pool has not completely reacted with the agent, and the size of the suspended particles is uneven, and there is a certain amount of drug shortage. Therefore, it is necessary to increase the working frequency of the dosing pump to increase the amount of drug.

[0059] S5, when the operating frequency of the dosing pump is not adjusted for a duration exceeding T, reducing the operating frequency of the dosing pump by an amount of Z;

[0060] If the operation of increasing the working frequency of the dosing pump is not performed for a duration exceeding T, there may be too much medicine added, resulting in waste. Therefore, in this case, the amount of medicine added is appropriately reduced.

[0061] S6, executing steps S1 to S3, when the characteristic value of the underwater image falls into the preset characteristic range, reducing the operating frequency of the dosing pump by an amount of Z; when the characteristic value of the underwater image does not fall into the preset characteristic range, executing step S4;

[0062] S7, when the characteristic value of the underwater image falls into the preset characteristic range, repeatedly execute S6, until the characteristic value of the underwater image does not fall into the preset characteristic range, execute step S4.

[0063] After reducing the dosage of the reagent, execute steps S1 to S3, obtain the characteristic value of the underwater image again, and judge whether it is fully reacted. If it is still fully reacted at this time, it means that there may be too much reagent, so the dosage of the reagent is repeatedly reduced, and the characteristic value of the underwater image is obtained at each reduction to judge whether it is fully reacted, until it is not fully reacted and approaches the boundary of the dosage. At this time, execute step S4 to increase the dosage of the reagent by a certain amount to ensure that the sewage and the reagent react fully.

[0064] The above process not only ensures that the sewage can fully react with the reagent, but also saves the usage of the reagent as much as possible.

[0065] In one embodiment of the present application, it also includes:

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

[0067] Compare the actual operating frequency with the control frequency, where the control frequency here 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 preset process control data interface to adjust the actual operating frequency of the dosing pump to the control frequency.

[0069] The present application also uses a backup channel. When the actual operating frequency of the dosing pump differs greatly from the control frequency, it indicates that there may be a problem with the channel. At this time, 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] The sewage purification treatment dosage control method based on image recognition of the present invention obtains an underwater image of the sewage pool after purification; extracts the characteristic value of the underwater image; compares the characteristic value of the underwater image with a preset characteristic range; when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusts the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range. After the sewage pool is purified, the present application collects underwater images and obtains the characteristic values ​​of the suspended shells in the sewage pool. At the same time, a characteristic value reference range that characterizes the full reaction of the agent and the sewage is set, and the reaction situation is determined by comparing the reference range, and then the subsequent dosage is adjusted to ensure that the sewage pool fully reacts while saving agents.

[0071] like Figure 2 As shown, the present application also provides a sewage purification treatment drug dosage control system based on image recognition, including:

[0072] An acquisition module, used for executing S1, acquiring an underwater image of the purified sewage pool;

[0073] A feature extraction module, used to execute S2 to extract feature values ​​of the underwater image;

[0074] A comparison module, used to execute S3, comparing the feature value of the underwater image with a preset feature range;

[0075] The adjustment module is used to execute S4, and when the characteristic value of the underwater image does not fall into the preset characteristic range, adjust the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range.

[0076] The sewage purification treatment dosage control system based on image recognition of the present invention obtains an underwater image of the sewage pool after purification; extracts the characteristic value of the underwater image; compares the characteristic value of the underwater image with a preset characteristic range; when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusts the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range. After the sewage pool is purified, the present application collects underwater images and obtains the characteristic values ​​of the suspended shells in the sewage pool. At the same time, a characteristic value reference range that characterizes the full reaction of the agent and the sewage is set, and the reaction situation is determined by comparing the reference range, and then the subsequent dosage is adjusted to ensure that the sewage pool fully reacts while saving agents.

[0077] This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, any one of the methods in this embodiment is implemented, 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 a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.

[0080] The computer-readable storage medium in this embodiment can be understood by ordinary technicians in this field: all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

[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 with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the electronic terminal executes each step of the above method.

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

[0083] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0084] In the above-mentioned embodiments, although the present invention has been described in conjunction with the specific embodiments of the present invention, many replacements, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. The embodiments of the present invention are intended to cover all such replacements, 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 present invention. Anyone familiar with the art may 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 a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A sewage purification treatment dosage control method based on image recognition, characterized in that: include: S1, obtain underwater images of the purified sewage pool; S2, extracting feature values ​​of the underwater image; S3, comparing the feature value of the underwater image with a preset feature range; S4, when the characteristic value of the underwater image does not fall into the preset characteristic range, adjusting the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range.

2. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 1, characterized in that: Extracting the characteristic value of the underwater image includes: Extract contour features from underwater images; When any contour feature meets the target conditions, the contour feature is used as the contour of the suspended particle, and the target conditions include: (1) the contour feature forms a closed figure; (2) the pixel value of the pixel point in the closed figure is within a preset pixel value range; The number C of the outlines of the suspended particles in the underwater image, the average area S of the suspended particles, and the standard deviation σ of the area of ​​the suspended particles are determined to obtain the characteristic value of the underwater image.

3. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 2 is characterized in that: Comparing the feature value of the underwater image with a preset feature range includes: The number C of outlines of suspended particles in the underwater image is compared with a preset reference range R1 of the number of suspended particles, the average area S of the suspended particles in the underwater image is compared with a preset reference range R2 of the average area of ​​suspended particles, and the standard deviation σ of the area of ​​suspended particles in the underwater image is compared with a preset reference range R3 of the standard deviation of the area of ​​suspended particles.

4. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 3 is characterized in that: When the characteristic value of the underwater image does not fall within a preset characteristic range, adjusting the operating frequency of the dosing pump includes: When the following conditions are met: 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 an amount of X; 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 an amount of Y, where X>Y.

5. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 1, characterized in that: After adjusting the working frequency of the dosing pump, the method further comprises: Steps S1 to S4 are repeatedly performed until the characteristic value of the underwater image falls into a preset characteristic range.

6. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 1, characterized in that: Also includes: S5, when the operating frequency of the dosing pump is not adjusted for a duration exceeding T, reducing the operating frequency of the dosing pump by an amount of Z; S6, executing steps S1 to S3, when the characteristic value of the underwater image falls into the preset characteristic range, reducing the operating frequency of the dosing pump by an amount of Z; when the characteristic value of the underwater image does not fall into the preset characteristic range, executing step S4; S7, when the characteristic value of the underwater image falls into the preset characteristic range, repeatedly execute S6, until the characteristic value of the underwater image does not fall into the preset characteristic range, execute step S4.

7. The method for controlling the dosage of sewage purification treatment agents based on image recognition according to claim 4 is characterized in that: Also includes: Get the actual operating frequency of the dosing pump; Comparing 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 preset process control data interface to adjust the actual operating frequency of the dosing pump to the control frequency.

8. A sewage purification treatment dosage control system based on image recognition, characterized in that: include: An acquisition module, used for executing S1, acquiring an underwater image of the purified sewage pool; A feature extraction module, used to execute S2 to extract feature values ​​of the underwater image; A comparison module, used to execute S3, comparing the feature value of the underwater image with a preset feature range; The adjustment module is used to execute S4, and when the characteristic value of the underwater image does not fall into the preset characteristic range, adjust the working frequency of the dosing pump so that the characteristic value of the underwater image falls into the preset characteristic range.

Citation Information

Patent Citations

  • Sewage treatment automatic feeding device based on image recognition, and feedback mechanism thereof

    CN110776067A

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

    CN111233118A

  • Alumen ustum image processing method and system, medium and electronic equipment

    CN111833369A

  • Sewage treatment method and system based on activated sludge process

    CN114882031A

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

    CN114988642A