Pharmaceutical production wastewater treatment method and system based on advanced oxidation
By sampling the wastewater of pharmaceutical production and accurately analyzing the amount of flocculant added, the problem of manual judgment of the amount of flocculant added is solved, and the accuracy and efficiency of wastewater treatment is achieved, and the risks of resource waste and environmental pollution are reduced.
Patent Information
- Application Number
- CN202411987179.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In the prior art, it is manually determined that the amount of flocculant added is not accurate enough, resulting in low wastewater treatment efficiency, which may lead to excessive or insufficient use of flocculant, wasting resources or aggravate environmental pollution.
By sampling the pharmaceutical production wastewater at at least two preset locations, different doses of flocculant are added, and flocculant sedimentation effect value and chromaticity difference value are obtained using grayscale treatment and HSV color space analysis, the effect index value is calculated to determine the optimal flocculant usage amount.
The precise determination of the amount of flocculant used in wastewater treatment has been achieved, the accuracy and efficiency of wastewater treatment has been improved, and the risks of resource waste and environmental pollution have been reduced.
Smart Images

Figure CN119390215B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of wastewater treatment, and in particular to a pharmaceutical production wastewater treatment method and system based on advanced oxidation. Background Art
[0002] The pharmaceutical production process often produces wastewater rich in high concentrations of organic matter, inorganic salts, microorganisms and potentially toxic and harmful substances. If such wastewater is discharged directly without proper treatment, it will seriously pollute the environment, deteriorate water quality, and pose a major risk to the ecosystem and human health. In the advanced oxidation deep treatment process of pharmaceutical wastewater, enhanced flocculation is often adopted as an efficient, economical and reliable means to further improve purification efficiency. Experimental data show that the use of specific compound flocculants can significantly increase the removal rate of chemical oxygen demand and turbidity, and effectively reduce the chromaticity of the effluent.
[0003] In the traditional wastewater deep treatment process, the amount of flocculant added depends on manual judgment. However, since the flocculation effect needs to be evaluated by comparing the sedimentation performance after different addition amounts, manual operation is often difficult to control accurately, which may lead to excessive addition, which not only wastes resources but also aggravates environmental pollution, or insufficient addition, affecting the effectiveness of wastewater treatment. Summary of the invention
[0004] In order to solve the technical problem that the amount of flocculant added determined manually in the prior art is not accurate enough, the purpose of the present invention is to provide a pharmaceutical production wastewater treatment method based on advanced oxidation, and the technical scheme adopted is as follows:
[0005] Sampling the wastewater produced by pharmaceutical production at least twice according to standard weight at at least two preset locations to obtain wastewater samples, adding different doses of flocculants to the wastewater samples at the same preset locations and obtaining wastewater graphs after flocculants in the wastewater samples are settled;
[0006] Performing grayscale processing on each of the wastewater images to obtain a wastewater grayscale image, and analyzing each of the wastewater grayscale images to obtain a flocculant sedimentation effect value;
[0007] Converting the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyzing each wastewater HSV image to obtain a chromaticity difference value;
[0008] Based on the flocculant settling effect value and the chromaticity difference value, the effect index value corresponding to each of the wastewater samples is calculated, and it is determined whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than the preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position;
[0009] The average value of the optimal flocculant usage at each preset position is taken as the overall optimal flocculant usage of the wastewater sample, and the target flocculant usage is obtained based on the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated. The target flocculant usage is used to treat the pharmaceutical wastewater to be treated.
[0010] Furthermore, the flocculant settling effect value obtained by analyzing each of the wastewater grayscale images includes:
[0011] Obtain the grayscale values of the pixels in each row and column of any wastewater grayscale image, and determine whether the absolute value of the difference between the grayscale values of adjacent pixels is less than a preset difference threshold. If so, the adjacent pixels are divided into the same area;
[0012] Obtaining the flocculant settling effect value according to the first number of the regions, the second number of pixels contained in each of the regions, the first average grayscale value of the pixels contained in each of the regions, and the second average grayscale value of the pixels contained in any one of the wastewater grayscale images;
[0013] The flocculant settling effect value acquisition process is repeated to obtain the flocculant settling effect value corresponding to each of the wastewater grayscale images.
[0014] Further, obtaining the flocculant settling effect value according to the first number of the regions, the second number of pixels contained in each of the regions, the first average grayscale value of the pixels contained in each of the regions, and the second average grayscale value of the pixels contained in any one of the wastewater grayscale images includes:
[0015] The first value is obtained by subtracting the second average grayscale value of the pixels contained in any wastewater grayscale image from the first average grayscale value of the pixels contained in any area and then dividing the result by the second number of pixels contained in any area;
[0016] Repeat the process of obtaining the first value to obtain the first value corresponding to each area;
[0017] An average value of the first values is obtained, and the average value is multiplied by the first number of the regions to obtain the flocculant sedimentation effect value.
[0018] Further, the chromaticity difference values obtained by analyzing each of the wastewater HSV diagrams include:
[0019] Obtaining the number of hues in any of the wastewater HSV graphs and the average values of saturation components corresponding to different hues;
[0020] The average value of the saturation components corresponding to the different hues is subtracted from a preset standard saturation component value, and then divided by the number of hues to obtain a chromaticity difference value;
[0021] The chromaticity difference value acquisition process is repeated to obtain the chromaticity difference value corresponding to each of the wastewater HSV diagrams.
[0022] Furthermore, based on the flocculant sedimentation effect value and the chromaticity difference value, the effect index values corresponding to the wastewater samples are calculated to include:
[0023] The flocculant sedimentation effect value of any of the wastewater samples is multiplied by the chromaticity difference value, and then the inverse is taken, and then normalized to obtain the effect index value;
[0024] The process of obtaining the effect index value is repeated to obtain the effect index value corresponding to each of the wastewater samples.
[0025] Furthermore, the preset effect threshold is set to 0.95.
[0026] Further, obtaining the target flocculant usage according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample, and the weight of the wastewater produced by pharmaceutical production to be treated includes:
[0027] The target flocculant usage is obtained by multiplying the overall optimal flocculant usage of the wastewater sample by the weight of the pharmaceutical wastewater to be treated, and then dividing the result by the standard weight of the wastewater sample.
[0028] Furthermore, using the target flocculant usage to treat the pharmaceutical production wastewater to be treated includes: adding the flocculant according to the target flocculant usage to the pharmaceutical production wastewater to be treated, and using an agitator to fully mix the wastewater and the flocculant so that the flocculant is evenly dispersed in the wastewater.
[0029] Furthermore, the method also includes: after the flocculant is evenly dispersed in the wastewater, stopping the use of the agitator, separating the wastewater from the flocculants, and then treating the wastewater using the Fenton oxidation method to remove the difficult-to-degrade organic matter.
[0030] The embodiment of the present invention provides a pharmaceutical production wastewater treatment system based on advanced oxidation, applying the above method, including:
[0031] An acquisition module, for sampling the wastewater produced by pharmaceutical production at least twice according to a standard weight at at least two preset positions to obtain wastewater samples, adding different doses of flocculants to the wastewater samples at the same preset position and respectively obtaining wastewater images after flocculants in the wastewater samples are settled;
[0032] A grayscale analysis module, used for grayscale processing each of the wastewater images to obtain a wastewater grayscale image, and analyzing each of the wastewater grayscale images to obtain a flocculant sedimentation effect value;
[0033] An HSV analysis module, used for converting the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyzing each wastewater HSV image to obtain a chromaticity difference value;
[0034] A calculation and judgment module, used to calculate the effect index value corresponding to each of the wastewater samples based on the flocculant sedimentation effect value and the chromaticity difference value, and to judge whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than a preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position;
[0035] A wastewater treatment module is used to take the average value of the optimal flocculant usage at each preset position as the overall optimal flocculant usage of the wastewater sample, obtain the target flocculant usage based on the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and use the target flocculant usage to treat the pharmaceutical wastewater to be treated.
[0036] The present invention has the following beneficial effects:
[0037] First, for the wastewater produced by pharmaceutical production at at least two preset positions, at least two samples are taken according to the standard weight to obtain wastewater samples, and different doses of flocculants are added to the wastewater samples at the same preset position, and wastewater images after the flocculants in the wastewater samples are respectively obtained. The wastewater images obtained here are used as the data basis for obtaining subsequent analysis. Secondly, each of the wastewater images is gray-scale processed to obtain a wastewater grayscale image, and each of the wastewater grayscale images is analyzed to obtain the flocculant sedimentation effect value. This is to obtain the flocculant sedimentation effect of the flocculant added to the wastewater sample. The smaller the flocculant sedimentation value, the better the flocculant sedimentation effect. In addition, the RGB color space of each of the wastewater images is converted to the HSV color space to obtain a wastewater HSV image, and each of the wastewater HSV images is analyzed to obtain a chromaticity difference value. This is to analyze the chromaticity performance of the wastewater after the flocculant is added to the wastewater sample. The smaller the color value difference value, the closer it is to the wastewater effect after standard treatment. Furthermore, based on the flocculant sedimentation effect value and the chromaticity difference value, the effect index value corresponding to each of the wastewater samples is calculated, and it is judged whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than the preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position. The optimal flocculant usage obtained here is the data basis for subsequent analysis to obtain the flocculant usage of the pharmaceutical wastewater to be treated. Finally, the average value of the optimal flocculant usage at each preset position is used as the overall optimal flocculant usage of the wastewater sample, and the target flocculant usage is obtained according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and the target flocculant usage is used to treat the pharmaceutical wastewater to be treated. Here, the target flocculant usage required for the pharmaceutical wastewater to be treated is obtained based on the proportional relationship, and the target flocculant usage is used to treat the pharmaceutical wastewater to be treated. The present invention collects wastewater samples after flocculation treatment and analyzes the sedimentation effect and color change of the flocculant in each sample in detail, so as to accurately determine the actual demand for flocculants in wastewater samples at different locations. Subsequently, based on the total weight of the wastewater samples, the total amount of flocculants required for wastewater treatment in the entire pharmaceutical production process is scientifically calculated, which is used as a basis to guide wastewater treatment practice and achieve precision and efficiency in wastewater treatment. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of a pharmaceutical production wastewater treatment method based on advanced oxidation provided in the first embodiment of the present invention;
[0040] Figure 2 A flow chart of a process for obtaining a flocculant sedimentation effect value provided by the second embodiment of the present invention;
[0041] Figure 3 A flowchart of a process for obtaining a chromaticity difference value provided in a third embodiment of the present invention;
[0042] Figure 4 A schematic diagram of a pharmaceutical production wastewater treatment system based on advanced oxidation provided in the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the pharmaceutical production wastewater treatment method based on advanced oxidation proposed by the present invention, its specific implementation method, structure, characteristics and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0044] Unless defined otherwise, 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 belongs.
[0045] The specific scheme of the pharmaceutical production wastewater treatment method based on advanced oxidation provided by the present invention is described in detail below in conjunction with the accompanying drawings.
[0046] See also Figure 1 , which shows a flow chart of a pharmaceutical production wastewater treatment method based on advanced oxidation provided by one embodiment of the present invention, the method comprising:
[0047] S101. Sampling the wastewater produced by pharmaceutical production at least twice at at least two preset locations according to standard weight to obtain wastewater samples, adding different doses of flocculants to the wastewater samples at the same preset locations and obtaining wastewater graphs after flocculants in the wastewater samples are settled.
[0048] The present invention focuses on optimizing the precise analysis of the amount of flocculant used in the deep treatment of wastewater during pharmaceutical production. In view of the large amount of pharmaceutical wastewater to be treated and the difficulty in accurately controlling the amount of flocculant added in direct treatment (insufficient addition affects the treatment effect, and excessive addition leads to waste of resources), and the difficulty in visually monitoring the changes in water quality and the flocculation effect during large-scale wastewater treatment, the present invention proposes the following sampling and collection strategy to improve the treatment process:
[0049] Step 1: Wastewater homogenization treatment: Introduce pharmaceutical wastewater into a large water tank and use large mixers and other mechanical equipment to fully stir it to ensure that the texture of the wastewater is uniform before sampling, providing a stable basis for subsequent analysis.
[0050] Step 2: Prepare the sampling container: Prepare a clean, intact, and residue-free sampling container. Before sampling, thoroughly rinse the container 2 to 3 times with wastewater or distilled water to be sampled to completely remove any impurities that may affect the results.
[0051] Step 3: Scientifically select sampling points: Carefully select sampling locations, including but not limited to key nodes such as the water inlet and outlet of the water tank and the outlet of the key treatment unit. To improve data reliability, multiple repeated sampling should be carried out at each sampling point to ensure the comprehensiveness and representativeness of the results.
[0052] Step 4. Standardize sampling operations: With the help of professional auxiliary sampling equipment, accurately collect wastewater samples from the selected sampling points, and clearly mark key information such as sample source and time on the sampling container to facilitate subsequent data recording and analysis.
[0053] Through steps one to four, efficient sampling and collection of pharmaceutical wastewater before deep treatment can be achieved, providing a reliable basis for accurate evaluation and adjustment of flocculant dosage.
[0054] That is to say, multiple wastewater samples of standard weight are collected at each preset position, and different doses of flocculants are added to the wastewater samples at the same preset position. After the flocculants are settled in a stable state, the wastewater samples are photographed by a camera, and wastewater images of the wastewater samples after the flocculants in the wastewater samples are settled can be obtained.
[0055] S102. Performing grayscale processing on each of the wastewater images to obtain a wastewater grayscale image, and analyzing each of the wastewater grayscale images to obtain a flocculant sedimentation effect value.
[0056] The process of obtaining the flocculant settling effect value will be described in detail in the second embodiment and will not be repeated here.
[0057] S103. Convert the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyze each wastewater HSV image to obtain a chromaticity difference value.
[0058] The process of obtaining the chromaticity difference value will be described in detail in the third embodiment and will not be repeated here.
[0059] S104. Based on the flocculant sedimentation effect value and the chromaticity difference value, the effect index value corresponding to each of the wastewater samples is calculated, and it is determined whether the largest effect index value corresponding to the wastewater sample collected at each preset position is greater than the preset effect threshold value. If so, the flocculant usage corresponding to the largest effect index value is used as the optimal flocculant usage at the preset position.
[0060] Specifically, the effect index values corresponding to the wastewater samples are calculated based on the flocculant sedimentation effect value and the chromaticity difference value, and include:
[0061] The flocculant sedimentation effect value of any of the wastewater samples is multiplied by the chromaticity difference value, and then the inverse is taken, and then normalized to obtain the effect index value;
[0062] The process of obtaining the effect index value is repeated to obtain the effect index value corresponding to each of the wastewater samples.
[0063] The effect index value can be expressed as: ;
[0064] Among them, the represents the effect index value of the vth wastewater sample collected at the ith location, represents the chromaticity difference value of the vth wastewater sample collected at the ith position, It represents the flocculant sedimentation effect value of the vth wastewater sample collected at the ith position, the value range of i is 1 to the total number of positions, the value of v is the total number of wastewater samples collected from 1 to the ith position, and the norm is a normalization function, which can be a range normalization method.
[0065] If exists In the special case of , the process of obtaining the effect index value can be expressed as: ;
[0066] Among them, the It is a preset item to avoid the denominator being 0, and can be set to 1, etc. In other words, if , then the effect index value is a preset fixed value.
[0067] For the treated wastewater, the better the sedimentation effect of the flocculant and the smaller the color difference with the standard treatment, the higher the effect index value after treatment and the better the treatment effect.
[0068] The amount of impurities in the wastewater is certain. When the flocculant is added to the threshold value it should reach, the flocculant sedimentation effect of the wastewater sample will not change significantly. However, due to the addition of excess flocculant into the wastewater sample, the chromaticity of the wastewater sample will be inconsistent with the standard chromaticity, resulting in poor effect of the wastewater sample after flocculant treatment. Therefore, the present invention selects the flocculant usage corresponding to the one with the best wastewater sample treatment effect, that is, the maximum effect index value, as the optimal flocculant usage at the preset position.
[0069] So far, the present invention has obtained the optimal flocculant usage at different preset positions.
[0070] The preset effect threshold can be set independently, and is preferably set to 0.95.
[0071] There are multiple effect index values corresponding to the wastewater samples collected at each of the preset positions, and it is necessary to find the largest one among the effect index values corresponding to the wastewater samples collected at each of the preset positions.
[0072] When the maximum effect index value corresponding to the wastewater sample collected at the preset position is greater than the preset effect threshold, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position.
[0073] When the maximum effect index value corresponding to the wastewater sample collected at the preset position is less than the preset effect threshold, it means that the amount of flocculant used is insufficient or excessive. The wastewater sample at the preset position is collected again, and the amount of flocculant used is appropriately increased or decreased until the maximum effect index value corresponding to the wastewater sample collected at the preset position is greater than the preset effect threshold.
[0074] S105. Take the average value of the optimal flocculant usage at each preset position as the overall optimal flocculant usage of the wastewater sample, obtain the target flocculant usage according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and use the target flocculant usage to treat the pharmaceutical wastewater to be treated.
[0075] Specifically, obtaining the target flocculant usage according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample, and the weight of the wastewater produced by pharmaceutical production to be treated includes:
[0076] The target flocculant usage is obtained by multiplying the overall optimal flocculant usage of the wastewater sample by the weight of the pharmaceutical wastewater to be treated, and then dividing the result by the standard weight of the wastewater sample.
[0077] The target flocculant usage can be expressed as: ;
[0078] Among them, the represents the target flocculant usage, the represents the optimal flocculant usage of the wastewater sample as a whole, represents the weight of the wastewater produced by pharmaceutical production to be treated, and V represents the standard weight of the wastewater sample.
[0079] In the process of obtaining the target flocculant usage, first, the flocculant demand of wastewater samples at different locations, that is, the overall optimal flocculant usage of the wastewater samples, is obtained, and the standard weight of the wastewater samples is known in advance. Then, based on the proportional relationship and the weight of the pharmaceutical production wastewater to be treated, the flocculant usage required for the entire pharmaceutical production wastewater, that is, the target flocculant usage, is calculated.
[0080] The optimal flocculant usage of the wastewater sample can be expressed as: ;
[0081] Among them, the represents the optimal flocculant usage of the wastewater sample as a whole, represents the optimal flocculant usage at the i-th position, the value range of i is from 1 to the total number of positions, and M represents the total number of positions.
[0082] Here is the average flocculant demand of wastewater samples at different locations, that is, the optimal flocculant usage of the wastewater sample as a whole. To replace the demand for flocculants from the samples collected from the entire wastewater.
[0083] Specifically, using the target flocculant usage to treat the pharmaceutical production wastewater to be treated includes: adding the flocculant according to the target flocculant usage to the pharmaceutical production wastewater to be treated, and using an agitator to fully mix the wastewater and the flocculant so that the flocculant is evenly dispersed in the wastewater.
[0084] After the flocculant is evenly dispersed in the wastewater, the agitator is stopped. After stopping the agitation, the wastewater is allowed to stand for a period of time to allow the flocculants to settle naturally under the action of gravity, and the wastewater and the flocculants are separated. The wastewater is then treated by Fenton oxidation to remove the difficult-to-degrade organic matter.
[0085] Figure 2 The flowchart of the process of obtaining the flocculant settling effect value provided by the second embodiment of the present invention, wherein the flocculant settling effect value is obtained by analyzing each of the wastewater grayscale images, comprises:
[0086] S201. Obtain the grayscale values of the pixels in each row and column in any wastewater grayscale image, and determine whether the absolute value of the difference in grayscale values between adjacent pixels is less than a preset difference threshold. If so, divide the adjacent pixels into the same area.
[0087] The grayscale values of the pixels in each row and column in any wastewater grayscale image can be expressed as: ;
[0088] Among them, the Represents the grayscale value of the pixel in the tth row and jth column on the image of the vth wastewater sample collected at the ith position after floc sedimentation.
[0089] After most of the flocculants in the wastewater sample have settled, there will be fewer floating objects on the surface of the wastewater sample, which is manifested in the grayscale image of the wastewater as more pixel grayscale values connected together (that is, the difference between adjacent grayscale values is small). , that is, the absolute value of the difference between the grayscale value of a pixel point on the wastewater grayscale image and the grayscale value of the surrounding pixels is less than the set difference threshold When the two pixels are divided into the same area, the two pixels are divided into the same area. Repeating the above steps, the pixels on the grayscale image of the wastewater after the flocculants are settled can be divided into several areas. Can be set independently and reasonably.
[0090] S202. Obtain the flocculant sedimentation effect value according to the first number of the areas, the second number of pixels contained in each of the areas, the first average grayscale value of the pixels contained in each of the areas, and the second average grayscale value of the pixels contained in any wastewater grayscale image.
[0091] When there are more areas divided in any of the wastewater grayscale images and the number of pixels contained in each area is smaller, it means that there are still more suspended matter in the wastewater sample, the wastewater sample is still relatively turbid, and the sedimentation effect of the flocculant is not good.
[0092] In any of the wastewater grayscale maps, the smaller the difference between the first average grayscale value of the pixels contained in each area and the second average grayscale value of the pixels contained in any of the wastewater grayscale maps, the more uniform the texture of the wastewater sample is, and the better the treatment effect on the wastewater produced by pharmaceutical production is.
[0093] Specifically, obtaining the flocculant sedimentation effect value according to the first number of the regions, the second number of pixels contained in each of the regions, the first average grayscale value of the pixels contained in each of the regions, and the second average grayscale value of the pixels contained in any one of the wastewater grayscale images includes:
[0094] The first value is obtained by subtracting the second average grayscale value of the pixels contained in any wastewater grayscale image from the first average grayscale value of the pixels contained in any area and then dividing the result by the second number of pixels contained in any area;
[0095] Repeat the process of obtaining the first value to obtain the first value corresponding to each area;
[0096] An average value of the first values is obtained, and the average value is multiplied by the first number of the regions to obtain the flocculant sedimentation effect value.
[0097] The flocculant sedimentation effect value can be expressed as: ;
[0098] Among them, the represents the flocculant settling effect value of the vth wastewater sample collected at the ith position, represents the first number of the regions in the wastewater grayscale image corresponding to the vth wastewater sample collected at the ith position, represents the first average grayscale value of the pixels contained in the kth region of the wastewater grayscale image corresponding to the vth wastewater sample collected at the ith position, represents the second average grayscale value of the pixels contained in the wastewater grayscale image corresponding to the vth wastewater sample collected at the ith position, The second number of pixels contained in the kth region of the wastewater grayscale image corresponding to the vth wastewater sample collected at the ith position is represented.
[0099] The acquisition process of the flocculant settling effect value is mainly calculated by using the number of divided areas in any wastewater grayscale map, that is, the first number of areas, the number of pixels in each area, that is, the second number of pixels contained in each area, the first average grayscale value of the pixels contained in each area, and the second average grayscale value of the pixels contained in any wastewater grayscale map. For the wastewater sample after the flocculants are settled, the fewer floating impurities in the wastewater sample, the more uniform the texture of the wastewater sample will be, which is reflected in the wastewater grayscale map as fewer divided areas, more pixels in each area, and the smaller the difference between the average grayscale value of the pixels in each area, that is, the first average grayscale value, and the grayscale average value of the wastewater grayscale map as a whole, that is, the second average grayscale value, the lower the turbidity on the wastewater grayscale map, that is, the better the settling effect of the flocculant.
[0100] S203. Repeat the flocculant settling effect value acquisition process to obtain the flocculant settling effect value corresponding to each of the wastewater grayscale images.
[0101] In the above process, the flocculant settling effect of all wastewater samples after the flocculant is used to settle the impurities can be obtained. It is not rigorous and accurate enough to determine the result of wastewater treatment only by the flocculant settling effect of the wastewater sample after the impurities are settled by the flocculant. Because when the flocculant is added to a certain extent, the settling effect of the flocculant remains unchanged, but the color of the wastewater sample will change due to excessive addition of the flocculant. Therefore, the present invention needs to further analyze the difference between the chromaticity performance of the wastewater after the flocculant treatment and the chromaticity performance of the wastewater after the standard treatment. Chroma is an indicator to measure the color of the wastewater sample. By comparing the difference between the chromaticity of the treated wastewater and the chromaticity of the wastewater after the standard treatment, it helps to analyze the treatment results of the wastewater samples.
[0102] Figure 3 The flowchart of the process of obtaining the chromaticity difference value provided in the third embodiment of the present invention, wherein the chromaticity difference value is obtained by analyzing each of the wastewater HSV graphs, comprises:
[0103] S301. Obtain the number of hues in any of the wastewater HSV diagrams and the average values of saturation components corresponding to different hues.
[0104] The color space in the wastewater HSV map includes hue, saturation and brightness. These color spaces can more accurately describe the characteristics of color and are closer to human perception of color.
[0105] In the HSV color space, the hue value usually ranges from 0° to 360°. The saturation value usually ranges from 0% to 100%, where 0% represents gray or no color and 100% represents pure color. The brightness value ranges from 0% to 100%, where 0% represents black and 100% represents white.
[0106] S302. Subtract a preset standard saturation component value from the average value of the saturation components corresponding to the different hues, and then divide the result by the number of hues to obtain a chromaticity difference value.
[0107] When using flocculants to treat wastewater samples, the amount of flocculants used will affect the color performance of the wastewater samples. Specifically, the greater the difference between the amount of flocculants used and the required amount, the greater the difference between the color performance of the wastewater sample and the color performance of the wastewater after standard treatment, and this difference will continue to decrease as the amount of flocculants used approaches the required amount.
[0108] The chromaticity difference value can be expressed as: ;
[0109] Among them, the represents the chromaticity difference value of the vth wastewater sample collected at the ith position, represents the average value of the saturation components corresponding to different hues in the wastewater HSV diagram of the vth wastewater sample collected at the ith position, wherein S represents the standard saturation component value, and Represents the number of hues in the wastewater HSV diagram of the vth wastewater sample collected at the ith position.
[0110] The process of obtaining the chromaticity difference value mainly utilizes the difference between the information expressed in the HSV color space of the treated wastewater sample and the information expressed in the HSV color space of the standard treated wastewater sample for calculation. The less, the more uniform the color of the treated wastewater sample is, and the difference between the saturation of the treated wastewater sample and the saturation of the standard treated wastewater sample is The smaller it is, the closer the treated wastewater is to the standard treated wastewater effect.
[0111] S303. Repeat the process of obtaining the chromaticity difference value to obtain the chromaticity difference value corresponding to each of the wastewater HSV diagrams.
[0112] The technical features and technical effects of the pharmaceutical production wastewater treatment system based on advanced oxidation proposed in the embodiment of the present invention are the same as those of the method proposed in the embodiment of the present invention, and will not be described in detail here.
[0113] Figure 4This is a schematic diagram of a pharmaceutical production wastewater treatment system based on advanced oxidation provided in a fourth embodiment of the present invention. The system applies the above method and includes:
[0114] The acquisition module 401 is used to obtain wastewater samples by sampling at least twice according to standard weight for wastewater produced by pharmaceutical production at at least two preset locations, adding different doses of flocculants to the wastewater samples at the same preset locations, and respectively obtaining wastewater images after flocculants in the wastewater samples are settled;
[0115] A grayscale analysis module 402 is used to perform grayscale processing on each of the wastewater images to obtain a wastewater grayscale image, and to analyze each of the wastewater grayscale images to obtain a flocculant settling effect value;
[0116] An HSV analysis module 403 is used to convert the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyze each wastewater HSV image to obtain a chromaticity difference value;
[0117] The calculation and judgment module 404 is used to calculate the effect index value corresponding to each of the wastewater samples based on the flocculant sedimentation effect value and the chromaticity difference value, and to judge whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than a preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position;
[0118] The wastewater treatment module 405 is used to take the average value of the optimal flocculant usage at each preset position as the overall optimal flocculant usage of the wastewater sample, obtain the target flocculant usage according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and use the target flocculant usage to treat the pharmaceutical wastewater to be treated.
[0119] The present invention has the following beneficial effects:
[0120] First, for the wastewater produced by pharmaceutical production at at least two preset positions, at least two samples are taken according to the standard weight to obtain wastewater samples, and different doses of flocculants are added to the wastewater samples at the same preset position, and wastewater images after the flocculants in the wastewater samples are respectively obtained. The wastewater images obtained here are used as the data basis for obtaining subsequent analysis. Secondly, each of the wastewater images is gray-scale processed to obtain a wastewater grayscale image, and each of the wastewater grayscale images is analyzed to obtain the flocculant sedimentation effect value. This is to obtain the flocculant sedimentation effect of the flocculant added to the wastewater sample. The smaller the flocculant sedimentation value, the better the flocculant sedimentation effect. In addition, the RGB color space of each of the wastewater images is converted to the HSV color space to obtain a wastewater HSV image, and each of the wastewater HSV images is analyzed to obtain a chromaticity difference value. This is to analyze the chromaticity performance of the wastewater after the flocculant is added to the wastewater sample. The smaller the color value difference value, the closer it is to the wastewater effect after standard treatment. Furthermore, based on the flocculant sedimentation effect value and the chromaticity difference value, the effect index value corresponding to each of the wastewater samples is calculated, and it is judged whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than the preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position. The optimal flocculant usage obtained here is the data basis for subsequent analysis to obtain the flocculant usage of the pharmaceutical wastewater to be treated. Finally, the average value of the optimal flocculant usage at each preset position is used as the overall optimal flocculant usage of the wastewater sample, and the target flocculant usage is obtained according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and the target flocculant usage is used to treat the pharmaceutical wastewater to be treated. Here, the target flocculant usage required for the pharmaceutical wastewater to be treated is obtained based on the proportional relationship, and the target flocculant usage is used to treat the pharmaceutical wastewater to be treated. The present invention collects wastewater samples after flocculation treatment and analyzes the sedimentation effect and color change of the flocculant in each sample in detail, so as to accurately determine the actual demand for flocculants in wastewater samples at different locations. Subsequently, based on the total weight of the wastewater samples, the total amount of flocculants required for wastewater treatment in the entire pharmaceutical production process is scientifically calculated, which is used as a basis to guide wastewater treatment practice and achieve precision and efficiency in wastewater treatment.
[0121] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for treating pharmaceutical production wastewater based on advanced oxidation, characterized in that: The method comprises: Sampling the wastewater produced by pharmaceutical production at least twice according to standard weight at at least two preset locations to obtain wastewater samples, adding different doses of flocculants to the wastewater samples at the same preset locations and obtaining wastewater graphs after flocculants in the wastewater samples are settled; Performing grayscale processing on each of the wastewater images to obtain a wastewater grayscale image, and analyzing each of the wastewater grayscale images to obtain a flocculant sedimentation effect value; Converting the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyzing each wastewater HSV image to obtain a chromaticity difference value; Based on the flocculant settling effect value and the chromaticity difference value, the effect index value corresponding to each of the wastewater samples is calculated, and it is determined whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than the preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position; The average value of the optimal flocculant usage at each of the preset positions is used as the optimal flocculant usage of the wastewater sample as a whole, and the target flocculant usage is obtained according to the optimal flocculant usage of the wastewater sample as a whole, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and the pharmaceutical wastewater to be treated is treated with the target flocculant usage; The flocculant settling effect values obtained by analyzing the wastewater grayscale images include: Obtain the grayscale values of the pixels in each row and column of any wastewater grayscale image, and determine whether the absolute value of the difference between the grayscale values of adjacent pixels is less than a preset difference threshold. If so, the adjacent pixels are divided into the same area; Obtaining the flocculant settling effect value according to the first number of the regions, the second number of pixels contained in each of the regions, the first average grayscale value of the pixels contained in each of the regions, and the second average grayscale value of the pixels contained in any one of the wastewater grayscale images; Obtaining the flocculant settling effect value according to the first number of regions, the second number of pixels contained in each region, the first average grayscale value of the pixels contained in each region, and the second average grayscale value of the pixels contained in any wastewater grayscale image includes: The first value is obtained by subtracting the second average grayscale value of the pixels contained in any wastewater grayscale image from the first average grayscale value of the pixels contained in any area and then dividing the result by the second number of pixels contained in any area; Repeat the process of obtaining the first value to obtain the first value corresponding to each area; Obtaining an average value of the first values, and multiplying the average value by the first number of the regions to obtain the flocculant settling effect value; Repeat the flocculant settling effect value acquisition process to obtain the flocculant settling effect value corresponding to each of the wastewater grayscale images; The chromaticity difference values obtained by analyzing each of the wastewater HSV diagrams include: Obtaining the number of hues in any of the wastewater HSV graphs and the average values of saturation components corresponding to different hues; The average value of the saturation components corresponding to the different hues is subtracted from a preset standard saturation component value, and then divided by the number of hues to obtain a chromaticity difference value; Repeat the process of obtaining the chromaticity difference value to obtain the chromaticity difference value corresponding to each of the wastewater HSV graphs; The effect index values corresponding to the wastewater samples are calculated based on the flocculant sedimentation effect value and the chromaticity difference value, including: The flocculant sedimentation effect value of any of the wastewater samples is multiplied by the chromaticity difference value, and then the inverse is taken, and then normalized to obtain the effect index value; The process of obtaining the effect index value is repeated to obtain the effect index value corresponding to each of the wastewater samples.
2. The method for treating pharmaceutical production wastewater based on advanced oxidation according to claim 1, characterized in that: The preset effect threshold is set to 0.
95.
3. The method for treating pharmaceutical production wastewater based on advanced oxidation according to claim 1, characterized in that: Obtaining the target flocculant usage according to the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample, and the weight of the wastewater produced by the pharmaceutical production to be treated includes: The target flocculant usage is obtained by multiplying the overall optimal flocculant usage of the wastewater sample by the weight of the pharmaceutical wastewater to be treated, and then dividing the result by the standard weight of the wastewater sample.
4. The method for treating pharmaceutical production wastewater based on advanced oxidation according to claim 1, characterized in that: Using the target flocculant usage to treat the pharmaceutical production wastewater to be treated includes: adding the flocculant according to the target flocculant usage to the pharmaceutical production wastewater to be treated, and using an agitator to fully mix the wastewater and the flocculant so that the flocculant is evenly dispersed in the wastewater.
5. The method for treating pharmaceutical production wastewater based on advanced oxidation according to claim 4, characterized in that: The method further comprises: after the flocculant is uniformly dispersed in the wastewater, stopping the use of the agitator, separating the wastewater from the flocculants, and then treating the wastewater using the Fenton oxidation method to remove the refractory organic matter.
6. A pharmaceutical production wastewater treatment system based on advanced oxidation, characterized in that: The method according to any one of claims 1 to 5 comprises: An acquisition module, for sampling the wastewater produced by pharmaceutical production at least twice according to a standard weight at at least two preset positions to obtain wastewater samples, adding different doses of flocculants to the wastewater samples at the same preset position and respectively obtaining wastewater images after flocculants in the wastewater samples are settled; A grayscale analysis module, used for grayscale processing each of the wastewater images to obtain a wastewater grayscale image, and analyzing each of the wastewater grayscale images to obtain a flocculant sedimentation effect value; An HSV analysis module, used for converting the RGB color space of each wastewater image into an HSV color space to obtain a wastewater HSV image, and analyzing each wastewater HSV image to obtain a chromaticity difference value; A calculation and judgment module, used to calculate the effect index value corresponding to each of the wastewater samples based on the flocculant sedimentation effect value and the chromaticity difference value, and to judge whether the maximum effect index value corresponding to the wastewater sample collected at each preset position is greater than a preset effect threshold value. If so, the flocculant usage corresponding to the maximum effect index value is used as the optimal flocculant usage at the preset position; A wastewater treatment module is used to take the average value of the optimal flocculant usage at each preset position as the overall optimal flocculant usage of the wastewater sample, obtain the target flocculant usage based on the overall optimal flocculant usage of the wastewater sample, the standard weight of the wastewater sample and the weight of the pharmaceutical wastewater to be treated, and use the target flocculant usage to treat the pharmaceutical wastewater to be treated.
Citation Information
Patent Citations
Wastewater treatment control method for pesticide production enterprises
CN114663405A
Sewage multi-stage treatment method and system based on image processing
CN115272327A