A rural sewage treatment method, system, electronic device and storage medium

By dividing the rural sewage treatment system into sewage treatment unit groups and dynamically adjusting the facility operation parameters, the problem of uneven discharge caused by differences in farmers' living habits has been solved, and the sewage treatment efficiency and the adaptability of facility operation have been improved.

CN120573882BActive Publication Date: 2025-11-25BEIJING JINGYI CITY SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510729132.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-03
Publication Date
2025-11-25
Estimated Expiration
2045-06-03

AI Technical Summary

Technical Problem

Rural sewage treatment facilities suffer from uneven discharge due to differences in farmers' living habits, making it difficult for fixed operating standards to adapt to fluctuations in sewage discharge and reducing treatment efficiency.

Method used

By acquiring wastewater discharge data from farmers within the target area, adjacent wastewater treatment unit groups are divided, treatment capacity is determined based on discharge data, and facility operation parameters, such as pump start-up and shutdown times, aeration volume, and chemical dosage, are dynamically adjusted to form a closed-loop feedback regulation mechanism.

Benefits of technology

This approach achieves a match between wastewater treatment facilities and actual discharge conditions, improves treatment efficiency, avoids the shortcomings of fixed standards, and ensures that the facilities are always in optimal operating condition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120573882B_ABST
    Figure CN120573882B_ABST
Patent Text Reader

Abstract

A rural sewage treatment method and system, electronic equipment and storage medium, relate to the technical field of sewage treatment. The method comprises: acquiring sewage discharge data of a plurality of farmers in a target area; adjacent farmers are divided into a plurality of sewage treatment unit groups, and the treatment capacity of each sewage treatment unit group is determined based on the sewage discharge data; the facility operation parameters of the corresponding sewage treatment unit group are determined according to the treatment capacity; sewage treatment is carried out on each sewage treatment unit group according to the facility operation parameters, and the water quality compliance rate of each sewage treatment unit group after sewage treatment is calculated; when the water quality compliance rate of any sewage treatment unit group is less than the compliance rate threshold, the facility operation parameters corresponding to the sewage treatment unit group are adjusted based on the deviation degree of the water quality compliance rate and the compliance rate threshold. The technical scheme provided by the present application can improve the efficiency of sewage treatment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of sewage treatment, in particular to a rural sewage treatment method and system, an electronic device and a storage medium. BACKGROUND

[0002] With the rapid development of rural economy and the improvement of people's living standards, the discharge of rural domestic sewage is increasing. Unlike urban centralized sewage treatment, rural living is scattered and the terrain is complex, making sewage collection and treatment more difficult. Therefore, it is of great significance to build sewage treatment facilities suitable for rural characteristics to improve the rural living environment and protect water resources.

[0003] At present, rural sewage treatment mainly uses decentralized treatment facilities, such as integrated sewage treatment equipment. These facilities usually use fixed operation standards for sewage treatment. However, in actual application, due to differences in living habits of different farmers, sewage discharge has obvious unevenness. Using fixed operation standards for sewage treatment of multiple farmers often fails to adapt to the fluctuation of sewage discharge, resulting in mismatch between sewage treatment and reality, thereby reducing the efficiency of sewage treatment. SUMMARY

[0004] The present application provides a rural sewage treatment method, system, electronic device and storage medium, which can improve the efficiency of sewage treatment.

[0005] In a first aspect, the present application provides a rural sewage treatment method, comprising:

[0006] Obtaining sewage discharge data of multiple farmers in a target area, the sewage discharge data including discharge time, discharge amount and pollutant concentration;

[0007] Dividing farmers adjacent in position into groups of sewage treatment units, and determining the treatment capacity of each group of sewage treatment units based on the sewage discharge data;

[0008] According to the treatment capacity, determining the facility operation parameters of the corresponding group of sewage treatment units, the facility operation parameters including water pump start-stop time, aeration amount and reagent dosage;

[0009] According to the facility operation parameters, performing sewage treatment on each group of sewage treatment units respectively, and calculating the water quality compliance rate of each group of sewage treatment units after sewage treatment;

[0010] When the water quality compliance rate of any group of sewage treatment units is less than the compliance rate threshold, adjusting the facility operation parameters corresponding to the group of sewage treatment units based on the deviation degree of the water quality compliance rate and the compliance rate threshold.

[0011] By adopting the technical scheme, the sewage discharge data of multiple farmers in a target area are acquired, and farmers with adjacent positions are divided into sewage treatment unit groups, so that farmers with similar discharge characteristics can be managed in a centralized manner; further, the processing capacity of each sewage treatment unit group is determined based on the sewage discharge data, and the corresponding facility operation parameters are determined accordingly, so that the operation of the sewage treatment facility can be matched with the actual discharge situation; at the same time, the water quality compliance rate after sewage treatment is calculated, and when the water quality compliance rate is lower than a threshold, the facility operation parameters of the sewage treatment unit group are adjusted based on the deviation, forming a closed-loop feedback adjustment mechanism, so that the sewage treatment facility can always be kept in an optimal operation state. This processing method based on grouping management and dynamic adjustment according to actual discharge characteristics not only avoids the problem that a fixed operation standard is difficult to adapt to sewage discharge fluctuations, but also optimizes the operation parameters in a timely manner according to the treatment effect, thereby improving the efficiency of rural sewage treatment.

[0012] In a second aspect of the present application, a rural sewage treatment system is provided, which comprises:

[0013] A data acquisition module is configured to acquire sewage discharge data of multiple farmers in a target area, wherein the sewage discharge data comprises discharge time, discharge amount and pollutant concentration.

[0014] A processing capacity determination module is configured to divide farmers with adjacent positions into sewage treatment unit groups, and determine the processing capacity of each sewage treatment unit group based on the sewage discharge data.

[0015] A facility operation parameter determination module is configured to determine the facility operation parameters of the corresponding sewage treatment unit group according to the processing capacity, wherein the facility operation parameters comprise pump start-stop time, aeration amount and reagent dosage.

[0016] A sewage treatment module is configured to perform sewage treatment on each sewage treatment unit group according to the facility operation parameters, and calculate the water quality compliance rate of each sewage treatment unit group after sewage treatment; when the water quality compliance rate of any sewage treatment unit group is less than a compliance rate threshold, the facility operation parameters of the sewage treatment unit group are adjusted based on the deviation between the water quality compliance rate and the compliance rate threshold.

[0017] In a third aspect of the present application, an electronic device is provided, which comprises a memory, a processor and a program stored in the memory and executable on the processor, wherein the program can be loaded and executed by the processor to implement a rural sewage treatment method.

[0018] In a fourth aspect of the present application, a computer readable storage medium is provided, which stores a computer program, wherein the computer program is executed by a processor to enable the processor to implement a rural sewage treatment method.

[0019] To sum up, the one or more technical solutions provided by the present application have at least the following technical effects or advantages:

[0020] By adopting the above technical solution, by acquiring the sewage discharge data of multiple farmers in the target area and dividing the farmers adjacent in position into a sewage treatment unit group, centralized management of farmers with similar discharge characteristics can be realized; further, the processing capacity is determined based on the sewage discharge data of each sewage treatment unit group, and the corresponding facility operation parameters are determined accordingly, so that the operation of the sewage treatment facility can be matched with the actual discharge situation; at the same time, by calculating the water quality compliance rate after sewage treatment, and adjusting the parameters based on the deviation degree when the water quality compliance rate is lower than the threshold, a closed-loop feedback adjustment mechanism is formed, so that the sewage treatment facility can always be kept in the optimal operating state. This processing method based on grouping management according to actual discharge characteristics and dynamic adjustment not only avoids the problem that the fixed operation standard is difficult to adapt to the fluctuation of sewage discharge, but also can optimize the operation parameters in time according to the treatment effect, thereby improving the efficiency of rural sewage treatment. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1 is a flowchart of a rural sewage treatment method provided by an embodiment of the present application;

[0022] Figure 2 is a structural schematic diagram of a rural sewage treatment system provided by an embodiment of the present application;

[0023] Figure 3 is a structural schematic diagram of an electronic device provided by an embodiment of the present application.

[0024] BRIEF DESCRIPTION OF DRAWINGS Mark 300, electronic device; 301, processor; 302, communication bus; 303, user interface; 304, network interface; 305, memory. DETAILED DESCRIPTION

[0025] In order for those skilled in the art to better understand the technical solutions in the specification, the technical solutions in the specification will be described clearly and completely in conjunction with the drawings in the embodiments of the specification. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments.

[0026] In the description of the embodiments of the present application, the words such as "for example" or "for instance" are used to represent an example, illustration or description. Any embodiment or design scheme described as "for example" or "for instance" in the embodiments of the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the words such as "for example" or "for instance" are intended to present the relevant concept in a specific manner.

[0027] In the description of the embodiments of the present application, the term "a plurality of" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. In addition, the terms "first", "second", etc. are used only for the purpose of description and should not be understood as indicating or implying relative importance or implying the indicated technical features. Therefore, the features defined with "first", "second", etc. can explicitly or implicitly include one or more of the features. The terms "include", "contain", "have" and their variants mean "include but are not limited to", unless otherwise specifically emphasized.

[0028] The embodiments of the present application provide a rural sewage treatment method. In one embodiment, please refer to Figure 1 , Figure 1 is a flowchart of the rural sewage treatment method provided by the embodiments of the present application. The method can be implemented by relying on a computer program, which can be integrated in an application or run as an independent tool application. The method can also be implemented by relying on a single-chip microcomputer or run on a rural sewage treatment system based on the von Neumann system. Specifically, the method can include the following steps:

[0029] Step 101: Obtain sewage discharge data of a plurality of farmers in a target area, the sewage discharge data including discharge time, discharge volume and pollutant concentration.

[0030] Among them, the sewage discharge data refers to three types of key data reflecting the sewage discharge characteristics of farmers, such as discharge time, discharge volume and pollutant concentration, which are collected by intelligent water meters and online monitoring equipment.

[0031] Discharge time refers to the specific time when farmers produce sewage and discharge into the sewage pipe network, for example, 7 o'clock in the morning, 12 o'clock at noon, etc., which is obtained through the time recording function of the intelligent water meter. These time data can reflect the water use habits of farmers and provide a basis for determining the start and stop time of the water pump.

[0032] Discharge volume refers to the volume of sewage discharged by farmers per unit time, which is measured by the flow sensor of the intelligent water meter, and the unit can be cubic meters per hour. The discharge volume data is used to calculate the treatment capacity and hydraulic load of the sewage treatment unit group.

[0033] Pollutant concentration refers to the content of various pollutants in sewage, mainly including the concentration values of COD, ammonia nitrogen and total phosphorus, which are obtained by real-time detection of various analyzers in the online monitoring equipment. The product of the pollutant concentration data and the discharge volume data can obtain the pollutant load, which is used to determine the aeration quantity and reagent dosage of the treatment facility.

[0034] Specifically, first, the sewage discharge data of multiple farmers in the target area need to be obtained. Due to differences in rural living habits and water usage methods, the sewage discharge of different farmers has obvious volatility and unevenness. In order to accurately grasp the sewage discharge rule, an intelligent water meter and an online monitoring device are installed at the outlet of the drainage pipe of each farmer, wherein the intelligent water meter is used to record the sewage discharge time and discharge amount, and the online monitoring device is used to detect the concentration of pollutants in the sewage. Specifically, the intelligent water meter collects drainage flow data in real time through a flow sensor and transmits the data to a data acquisition terminal; the online monitoring device includes a COD online analyzer, an ammonia nitrogen online analyzer and a total phosphorus online analyzer, which are used to monitor the concentration of various pollutants in the sewage in real time. The data acquisition terminal transmits the collected sewage discharge time, discharge amount and pollutant concentration data to the sewage treatment control center through a wireless network to form a sewage discharge database. By establishing the sewage discharge database, the sewage discharge characteristics of each farmer in the target area can be grasped, and data support for subsequent determination of the treatment capacity and operation parameters of the sewage treatment unit group is provided. At the same time, real-time collection of sewage discharge data also provides a basis for dynamic adjustment of sewage treatment facilities, which is beneficial to improve the sewage treatment efficiency. Practice shows that through the collection and analysis of sewage discharge data, the sewage discharge rule of farmers can be accurately grasped, and the problem of low treatment efficiency caused by the use of fixed operation standards can be avoided.

[0035] Step 102: Dividing the farmers adjacent in position into a sewage treatment unit group, and determining the treatment capacity of each sewage treatment unit group based on the sewage discharge data.

[0036] Among them, the sewage treatment unit group refers to a combination of farmers sharing the same set of sewage treatment facilities based on geographical position relationship. Each sewage treatment unit group is equipped with an independent set of sewage treatment facilities, including collection pipe network, water pump, treatment equipment, etc. Through this grouping method, centralized collection and treatment of sewage can be realized, and the length of the collection pipe network can be ensured within a reasonable range, reducing construction and operation costs.

[0037] The treatment capacity refers to the sewage treatment capacity required by the treatment facilities in the sewage treatment unit group, which is obtained by analyzing the sewage discharge data of all farmers in the unit group. By accurately calculating the treatment capacity, the problem of resource waste caused by oversized facilities or insufficient treatment capacity caused by undersized facilities can be avoided.

[0038] Specifically, due to the dispersion of rural residence, if sewage treatment facilities are configured for each household separately, not only the investment cost is high, but also the later maintenance and management are not conducive. Therefore, the present application realizes the centralized treatment of sewage by dividing the farmers with adjacent positions into a sewage treatment unit group. First, the geographic position coordinates of each farmer in the target area are obtained by using the GPS positioning system, and the relative distances between the farmers are calculated based on the coordinates. When the relative distance between the farmers is less than a preset distance threshold (such as 50 meters), an association relationship is established between the farmers, thereby generating a farmer association network. By identifying a plurality of connected subgraphs in the farmer association network, the farmers in each connected subgraph are divided into a sewage treatment unit group. After grouping, the treatment capacity of each sewage treatment unit group needs to be determined. First, based on the emission amount and emission time in the sewage emission data, the sewage emission time sequence curve of each sewage treatment unit group is established. Then, the pollutant load of each time period in the sewage emission time sequence curve is calculated by using the sliding time window method, and the pollutant load is determined by the product of the emission amount and the pollutant concentration. The pollutant loads of each time period are sorted in descending order, and the average value of the pollutant loads of the front preset proportion (such as 85%) is selected as the initial load capacity. Finally, according to the initial load capacity and the benchmark treatment efficiency (such as 90%), the treatment capacity of each sewage treatment unit group is calculated. This method of determining the treatment unit group and its treatment capacity based on the position adjacent relationship and the actual emission data not only reduces the construction and operation cost, but also ensures the matching of the treatment facility capacity and the actual demand, and improves the utilization efficiency of the facility.

[0039] On the basis of the above-mentioned embodiments, as an optional embodiment, in step 102, the farmers with adjacent positions are divided into a sewage treatment unit group, and this step can further include the following steps:

[0040] Step 201: Obtain the geographic position coordinates of each farmer in the target area; and calculate the relative distances between the farmers based on the geographic position coordinates.

[0041] Specifically, the geographic position coordinates of each farmer in the target area are obtained through the GPS positioning system. Specifically, a data collection terminal with GPS positioning function is installed at the outlet of each farmer's drainage pipe, which includes a GPS positioning module, a data processing unit and a wireless communication module. The GPS positioning module receives satellite signals and parses the longitude and latitude coordinates, the data processing unit preliminarily processes the coordinate data to eliminate errors, and then transmits the coordinate data to the control center through the wireless communication module. After obtaining the geographic position coordinates, the relative distance between any two farmers is calculated using the Haversine spherical distance calculation formula. This formula takes into account the influence of the curvature of the earth, where the earth's radius is taken as 6371 kilometers, and the relative distance in meters can be obtained by inputting the longitude and latitude coordinates of the two farmers. For N farmers in the target area, an N×N relative distance matrix is calculated, and each element in the matrix represents the relative distance between the corresponding two farmers. The relative distance data obtained in this way is more accurate, providing a reliable basis for subsequent farmer grouping.

[0042] Step 202: Establish an association relationship between farmers whose relative distance is less than the distance threshold, and generate a farmer association network.

[0043] Specifically, the association relationship between farmers is established based on the relative distance matrix. First, set the distance threshold to 50 meters, which takes into account factors such as sewage collection pipe network construction cost and terrain conditions. Then traverse each element in the relative distance matrix, and when the relative distance between two farmers is less than 50 meters, establish an association relationship between them. In specific implementation, an N×N association matrix is created, and when there is an association relationship between the i-th farmer and the j-th farmer, the corresponding element value in the association matrix is 1, otherwise it is 0. All farmer association relationships that meet the distance threshold conditions are integrated to form a farmer association network. This network can be represented as an undirected graph G=(V, E), where the vertex set V represents the farmer set, and the edge set E represents the association relationship set between farmers. This distance threshold-based association network construction method not only ensures that the length of the sewage collection pipe network is within an economically reasonable range, but also provides a mathematical basis for subsequent identification of processing unit groups.

[0044] Step 203: Identify multiple connected subgraphs in the farmer association network, and divide the farmers in each connected subgraph into a sewage treatment unit group.

[0045] Specifically, a depth-first search (DFS) algorithm is used to identify connected subgraphs in the farmer association network. First, an access mark array visited of length N is created to record the access state of the nodes. Then, the DFS recursive function is implemented: taking the current unvisited node v as the starting point, marking visited[v] as visited, and adding v to the node set of the current connected subgraph; iterating through all nodes adjacent to v, if u is not visited, recursively call the DFS function to process node u. In the main program, iterate through all nodes: if a node is not visited, call the DFS function with the node as the starting point to get a new connected subgraph. Finally, multiple disconnected subgraphs are obtained, each representing a sewage treatment unit group. For each unit group, record the farmer numbers it contains, and configure independent sewage treatment facilities for it in the future. This graph-based division method automatically identifies location-adjacent farmer groups through depth-first search, forming a reasonable treatment unit division scheme that ensures the concentration of treatment facilities and avoids the problem of excessively long pipe network laying distance.

[0046] Based on the above embodiment, as an optional embodiment, in step 102: based on the sewage discharge data of each sewage treatment unit group, the processing capacity of each sewage treatment unit group is determined. This step can also include the following steps:

[0047] Step 204: Based on the discharge amount and discharge time in the sewage discharge data, a sewage discharge time sequence curve corresponding to the sewage treatment unit group is established.

[0048] Specifically, to grasp the sewage discharge pattern of each sewage treatment unit group, a sewage discharge time sequence curve needs to be established. Based on the obtained sewage discharge data, the discharge amount and discharge time data of all farmers in each unit group are extracted. Divide the 24 hours of a day into 144 time periods, each time period being 10 minutes. For each time period, accumulate the sewage discharge amount of all farmers in the unit group in that time period to obtain the total discharge amount of that time period. With time period as the horizontal coordinate and total discharge amount as the vertical coordinate, the sewage discharge time sequence curve of the unit group is drawn. This curve directly reflects the variation of sewage discharge amount with time, providing basic data for subsequent calculation of pollutant load.

[0049] Step 205: For each sewage discharge time sequence curve, a sliding time window method is used to calculate the pollutant load of each time period in the sewage discharge time sequence curve, and the pollutant load is determined by the product of the discharge amount and the pollutant concentration.

[0050] Specifically, the sliding time window method is used to calculate the pollutant load of each time period in the sewage discharge timing curve. The length of the sliding time window is set to 60 minutes (i.e., 6 time periods), and the window moves one time period each time. For each time period within the current time window, the discharge volume of that time period is multiplied by the corresponding pollutant concentration (including COD, ammonia nitrogen, and total phosphorus concentration) to obtain the pollutant load of that time period. For example, if the discharge volume of a certain time period is 2 cubic meters / hour and the COD concentration is 300 mg / L, then the COD pollutant load of that time period is 600 g / hour. The average of the pollutant loads of the 6 time periods within the time window is taken as the pollutant load of the current time window. A total of 144 pollutant load values are calculated through the sliding time window, which reflect the dynamic characteristics of the pollutant load.

[0051] Step 206: Sort the pollutant loads of each time period in descending order, and select the average of the pollutant loads of the front pre-set proportion as the initial load capacity.

[0052] Specifically, the calculated pollutant load values are sorted in descending order from large to small. In order to avoid waste of resources caused by excessive design capacity, while ensuring that the treatment facility can handle most of the sewage treatment demand, the top 85% of the pollutant load values are selected for averaging to obtain the initial load capacity. Specifically, for the 144 sorted pollutant load values, the top 123 values (i.e., 144 x 85%) are selected for averaging. For example, if the average of the top 85% of the COD pollutant load values of a unit group is 500 g / hour, then this value is taken as the initial load capacity of COD. This statistical analysis-based capacity determination method takes into account the volatility of sewage discharge, while avoiding the problem of excessive design capacity.

[0053] Step 207: Calculate the treatment capacity of the corresponding sewage treatment unit group according to the initial load capacity and the reference treatment efficiency.

[0054] Specifically, the treatment capacity of the sewage treatment unit group is calculated according to the initial load capacity and the reference treatment efficiency. The reference treatment efficiency is set to 90%, which represents the pollutant removal rate of the treatment facility under normal operating conditions. Specifically, the initial load capacity is divided by the reference treatment efficiency to obtain the treatment capacity. For example, if the initial load capacity of a unit group for COD is 500 g / hour and the reference treatment efficiency is 90%, then the COD treatment capacity of the unit group is 555.6 g / hour. The treatment capacities for ammonia nitrogen and total phosphorus are calculated in the same way. The calculation result of the treatment capacity directly determines the design size of the treatment facility, and serves as an important basis for determining the operating parameters. This capacity calculation method taking into account the treatment efficiency ensures that the treatment facility has sufficient treatment capacity and can stably meet the effluent water quality requirements.

[0055] Step 103: determining the facility operation parameters of the corresponding wastewater treatment unit group according to the respective treatment capacity, wherein the facility operation parameters include the water pump start-stop time, the aeration amount, and the dosage of reagent.

[0056] The facility operation parameters refer to three key control parameters required for controlling the normal operation of the wastewater treatment facility, such as the water pump start-stop time, the aeration amount, and the dosage of reagent.

[0057] The water pump start-stop time refers to the operation parameter for controlling the start and stop time nodes of the water pump, which can be understood in the embodiment of the present application as a time control parameter determined by setting a threshold value for the ratio of the discharge amount in the wastewater discharge timing curve to the treatment capacity. This parameter is used to achieve reasonable lifting of wastewater, avoid equipment wear caused by frequent start and stop of the water pump, and at the same time ensure that the water inflow of the treatment facility matches the treatment capacity, preventing overflow or insufficient treatment.

[0058] The aeration amount refers to the air supply amount per unit time provided to the biological treatment unit, which can be understood in the embodiment of the present application as a gas supply parameter calculated based on the unit COD load air volume coefficient method. This parameter is used to ensure the oxygen demand of microorganisms in the biological treatment process, maintain the normal metabolism of activated sludge, and ensure the effective removal of pollutants such as COD and ammonia nitrogen.

[0059] The dosage of reagent refers to the unit time addition amount of phosphorus removal agent PAC and supplemental carbon source added to the wastewater treatment unit, which can be understood in the embodiment of the present application as an operation control parameter determined based on the pollutant removal requirement. This parameter is used to strengthen the chemical phosphorus removal effect and biological denitrification effect in the wastewater treatment process, wherein PAC removes phosphorus by flocculation reaction with phosphate ions, and the supplemental carbon source provides an electron donor for the denitrification process to ensure effective removal of nitrogen.

[0060] Specifically, after determining the treatment capacity of the sewage treatment unit group, the corresponding facility operation parameters need to be set to ensure the stable operation and treatment effect of the treatment facility. First, the water pump start-stop time is determined according to the sewage discharge timing curve. When the discharge amount in a certain time period in the timing curve exceeds 30% of the treatment capacity, the water pump is started to lift; when the discharge amount is less than 10% of the treatment capacity, the water pump is stopped. This water pump control method based on discharge amount can avoid frequent start-stop and respond to changes in sewage discharge in a timely manner. Second, the aeration quantity is determined based on the COD treatment capacity. Specifically, the unit COD load air volume coefficient method is adopted, that is, 50 cubic meters of air supply is required to remove 1 kg of COD. For example, if the COD treatment capacity of a unit group is 555.6 g / hour, the required aeration quantity is 27.8 cubic meters / hour. By setting the dissolved oxygen online monitor, when the measured dissolved oxygen concentration is less than 2 mg / L, the aeration quantity is increased; when the measured dissolved oxygen concentration is higher than 4 mg / L, the aeration quantity is reduced. This aeration control method with feedback adjustment can ensure sufficient oxygen supply and avoid energy waste. Finally, the reagent dosage is determined according to the ammonia nitrogen and total phosphorus treatment capacity. In the phosphorus removal stage, the dosage is set according to the mass ratio of PAC to the total phosphorus to be removed, which is 3:1, and adjusted according to the total phosphorus concentration in the effluent. In the nitrogen removal stage, carbon source is added according to the carbon-nitrogen ratio to ensure the normal progress of the denitrification process. By reasonably setting and dynamically adjusting these operation parameters, the operation state of the treatment facility can be matched with the actual treatment demand, and the treatment efficiency and operation stability can be improved. Practice shows that this method of determining operation parameters based on treatment capacity can make the effluent quality stable and meet the standards, and the operation cost can be effectively controlled.

[0061] On the basis of the above embodiment, as an optional embodiment, in step 103: determining the facility operation parameters of the corresponding sewage treatment unit group according to the treatment capacities, this step can further include the following steps:

[0062] Step 301: For each sewage treatment unit group, calculate the daily water inflow period according to the treatment capacity and the preset hydraulic load, and divide the water pump working period based on the daily water inflow period to obtain the water pump start-stop time.

[0063] Specifically, to ensure the reasonable operation of the water pump, it is necessary to calculate the daily water feeding cycle and divide the working period. Specifically, first, the daily water feeding cycle is calculated according to the treatment capacity and a preset hydraulic load, wherein the hydraulic load is set to 0.8 m³ / (m²·d). The treatment capacity is divided by the hydraulic load to obtain the number of water feeding times required per day. For example, the treatment capacity of a certain unit group is 20 m³ / d, and according to the hydraulic load of 0.8 m³ / (m²·d), the water feeding is required 25 times per day, i.e. the daily water feeding cycle is 57.6 minutes. Then, the water pump working period is divided based on the daily water feeding cycle, and 24 hours are evenly divided into 25 working periods, each of which includes water feeding time and sedimentation time. When the sewage discharge exceeds 30% of the treatment capacity, the water pump is started in the nearest working period; when the discharge is less than 10% of the treatment capacity or the water feeding amount of the period is completed, the water pump is stopped. This water pump control mode based on the daily water feeding cycle not only ensures the uniformity of water feeding, but also avoids frequent start and stop.

[0064] On the basis of the above-mentioned embodiments, as an optional embodiment, in step 301, the daily water feeding cycle is calculated according to the treatment capacity and a preset hydraulic load, and this step can further include the following steps:

[0065] Step 311: The hydraulic retention time is calculated based on the ratio of the treatment capacity to the hydraulic load.

[0066] Specifically, to determine the residence time of sewage in the treatment unit, it is necessary to calculate the hydraulic retention time. Specifically, the treatment capacity is divided by the hydraulic load to obtain the hydraulic retention time, wherein the treatment capacity is in units of cubic meters per day (m³ / d), and the hydraulic load is in units of cubic meters per square meter per day [m³ / (m²·d)]. For example, the treatment capacity of a certain sewage treatment unit group is 20 m³ / d, and the hydraulic load is 0.8 m³ / (m²·d), so the hydraulic retention time is 25 hours. The calculation result of the hydraulic retention time directly affects the effect of sewage treatment. If the residence time is too short, the treatment will not be sufficient, and if the residence time is too long, the equipment utilization will be low. Through this calculation method based on the treatment capacity and the hydraulic load, it can be ensured that the sewage has enough reaction time in the treatment unit.

[0067] Step 321: The number of daily water feeding times per day is determined according to the hydraulic retention time.

[0068] Specifically, the number of daily water inlets is determined according to the calculated hydraulic retention time. Since sewage treatment needs to ensure a certain reaction time and sedimentation time, the hydraulic retention time needs to be converted into a reasonable water inlet frequency. Specifically, 24 hours is divided by the hydraulic retention time, and the result is rounded up to obtain the number of daily water inlets. For example, when the hydraulic retention time is 25 hours, the calculated number of daily water inlets is 25. The number of daily water inlets determined in this way not only ensures sufficient treatment time, but also avoids equipment idling and improves processing efficiency.

[0069] Step 331: Based on the number of daily water inlets, the length of a single day is divided into several equal time intervals to obtain the daily water inlet period.

[0070] Specifically, the daily water inlet period is divided based on the determined number of daily water inlets. Specifically, 24 hours is evenly divided into the number of daily water inlets equal time intervals, and each time interval is a daily water inlet period. For example, when the number of daily water inlets is 25, the daily water inlet period is 57.6 minutes (24 hours x 60 minutes / 25 times). In each water inlet period, a certain sedimentation time also needs to be reserved, generally according to 20% of the total period. Therefore, in the 57.6 minute period, the water inlet time is 46.1 minutes and the sedimentation time is 11.5 minutes. This time division method based on the number of daily water inlets realizes the uniformization of the water inlet process, avoids hydraulic impact, and at the same time provides a basis for the subsequent setting of water pump start and stop time. Through this scientific time division, the sewage treatment process is more standardized and efficient.

[0071] Step 302: Based on the concentration distribution of pollutants in sewage, determine the oxygen demand, and calculate the aeration amount according to the oxygen demand and the oxygen utilization rate of the aeration equipment.

[0072] Specifically, in order to ensure the oxygen demand of the biological treatment process, the aeration amount needs to be calculated. First, based on the concentration distribution of pollutants such as COD and ammonia nitrogen in the influent, the oxygen demand is calculated. Specifically, the oxygen consumption required for the removal of 1 kg of COD is 1.5 kg, and the oxygen consumption required for the removal of 1 kg of ammonia nitrogen is 4.6 kg. Multiply the removal amount of each pollutant by the unit oxygen consumption and sum them up to get the total oxygen demand. Then consider the oxygen utilization rate of the aeration equipment, which is generally 15% to 25% for a micro-porous aerator, and select 20% for calculation. Divide the total oxygen demand by the oxygen utilization rate and the oxygen content in air (23%) to get the required aeration amount. For example, the COD removal amount of a single unit group is 10 kg / d, and the ammonia nitrogen removal amount is 1 kg / d, so the total oxygen demand is 19.6 kg / d. Considering the oxygen utilization rate of 20%, the calculated aeration amount is 426.1 m³ / d. This aeration amount calculation method based on pollutant removal ensures sufficient oxygen supply and improves processing efficiency.

[0073] Step 303: Obtain the temperature and alkalinity parameters of the sewage, and calculate the dosage of the reagent according to the temperature, alkalinity parameters and target effluent water quality standard by using the proportional coefficient method.

[0074] Specifically, to determine the appropriate dosage of the reagent, the influence of sewage temperature and alkalinity needs to be considered. First, the sewage temperature is measured by a temperature sensor, and the alkalinity value is obtained by alkalinity titration. Then, according to the target effluent water quality standard, the amount of pollutants to be removed is determined. For the phosphorus removal process, the PAC dosage is calculated by using the proportional coefficient method, and the dosage ratio is 3:1, that is, 3 kg of PAC is added to remove 1 kg of total phosphorus. Considering the influence of temperature on reaction rate, when the temperature is lower than 15℃, the dosage ratio is increased to 3.5:1; when the temperature is higher than 25℃, it is reduced to 2.8:1. For the carbon source supplement, the dosage is determined according to the carbon-nitrogen ratio of the influent and the alkalinity, and the carbon-nitrogen ratio is generally controlled between 6:1 and 8:1. When the alkalinity is lower than 200 mg / L, the carbon source dosage is appropriately increased to supplement the alkalinity. This reagent dosage control method considering environmental factors not only ensures the treatment effect, but also realizes the economy of reagent use. Through online monitoring of effluent water quality, the dosage is adjusted in time, so that the effluent water can stably reach the discharge standard.

[0075] Step 104: Perform sewage treatment on each sewage treatment unit group according to the respective facility operation parameters, and calculate the water quality compliance rate of each sewage treatment unit group after sewage treatment.

[0076] Among them, the water quality compliance rate refers to the percentage of monitoring data of sewage treatment unit group effluent water quality meeting the discharge standard in the total monitoring data, which can be understood in the embodiment of the present application as the ratio of the number of data groups in which the indicators such as COD, ammonia nitrogen and total phosphorus are all lower than the emission standard limit in 12 groups of daily monitoring data obtained by collecting water samples every 2 hours to the total number of data groups. This parameter is used to evaluate the treatment effect of the sewage treatment unit group, reflects the rationality of the facility operation parameters, and at the same time serves as an important basis for optimizing and adjusting the operation parameters.

[0077] Specifically, after determining the facility operation parameters of each sewage treatment unit group, actual sewage treatment needs to be performed on each unit group and the treatment effect needs to be evaluated. First, the operation of the water pump is controlled according to the water pump start-stop time to lift the sewage to the treatment unit in the water inlet period; meanwhile, the operation parameters of the aerator are set according to the calculated aeration amount to keep the dissolved oxygen concentration in the range of 2-4 mg / L; and PAC and carbon source are added according to the determined dosing amount to ensure the denitrification and phosphorus removal effect. During the treatment process, the online monitoring equipment is used to collect the effluent water quality data in real time, including the indicators such as COD, ammonia nitrogen and total phosphorus. Water samples are collected every 2 hours to obtain 12 groups of daily monitoring data. The monitoring data are compared with the corresponding discharge standards, and when the monitoring value of a certain indicator is lower than the standard limit value, it is recorded as a standard meeting data. The water quality standard meeting rate of the sewage treatment unit group is obtained by dividing the number of standard meeting data groups by the total number of monitoring data groups. For example, if 11 groups of 12 groups of monitoring data of a unit group meet the standard, the water quality standard meeting rate is 91.7%. Through the calculation of the water quality standard meeting rate, the operation effect of the treatment facility can be objectively evaluated to provide a basis for subsequent optimization of the operation parameters. Practice shows that the evaluation method based on actual operation data can timely find problems in the treatment process and ensure the continuous and stable operation of the treatment facility.

[0078] On the basis of the above embodiment, as an optional embodiment, in step 104, the water quality standard meeting rate of each sewage treatment unit group after sewage treatment is calculated, and this step can further include the following steps:

[0079] Step 401: A detection point is arranged at the effluent outlet of each sewage treatment unit group, and effluent water quality data of each sewage treatment unit is obtained according to a preset sampling time interval, and the effluent water quality data includes ammonia nitrogen content and total phosphorus content.

[0080] Specifically, in order to accurately evaluate the sewage treatment effect, a detection point needs to be arranged at the effluent outlet of each sewage treatment unit group to collect water quality data. Specifically, an online monitoring equipment is installed at the effluent outlet, including an ammonia nitrogen online analyzer and a total phosphorus online analyzer. The sampling time interval is set to 2 hours, and water samples are automatically collected and detected at time points such as 00:00, 02:00, 04:00 and the like every day to obtain ammonia nitrogen content and total phosphorus content data. At the same time, an automatic sampler is provided to store parallel samples for laboratory review and verification. Through this standardized sampling and detection method, continuous and reliable effluent water quality data can be obtained to provide basic data support for evaluating the treatment effect.

[0081] Step 402: For each sewage treatment unit group, the content of each pollutant in the effluent water quality data is compared with the limit value of each pollutant in the sewage discharge standard, and the number of standard meeting samples of each pollutant is counted.

[0082] Specifically, the collected effluent water quality data needs to be evaluated for compliance. Specifically, based on the Water Pollutant Discharge Standard for Rural Domestic Sewage Treatment Facilities, the effluent water quality data is compared with the standard limit value. The ammonia nitrogen emission limit value is 15 mg / L, and the total phosphorus emission limit value is 2 mg / L. For each group of water quality data, when the ammonia nitrogen content is less than 15 mg / L, it is recorded as an ammonia nitrogen compliance sample; when the total phosphorus content is less than 2 mg / L, it is recorded as a total phosphorus compliance sample. The number of compliance samples of ammonia nitrogen and total phosphorus in the 12 groups of samples is counted respectively. For example, in a certain sewage treatment unit group of 12 samples, 11 groups of ammonia nitrogen meet the standard, and 10 groups of total phosphorus meet the standard. Through this item-by-item comparison method, the compliance of each pollutant can be clearly understood.

[0083] Step 403: For any pollutant, calculate the ratio of the number of compliance samples to the total number of samples to obtain the compliance rate of the pollutant; and weight average the compliance rates of each pollutant to obtain the water quality compliance rate of the sewage treatment unit group.

[0084] Specifically, to comprehensively evaluate the treatment effect, the comprehensive water quality compliance rate needs to be calculated. First, calculate the compliance rate of each single pollutant, i.e. divide the number of compliance samples by the total number of samples. For example, the ammonia nitrogen compliance rate is 91.7% (11 / 12), and the total phosphorus compliance rate is 83.3% (10 / 12). Then consider the influence degree of each pollutant on the water environment, and set the weight coefficient: ammonia nitrogen takes 0.6, and total phosphorus takes 0.4. Multiply the compliance rate of each pollutant by the corresponding weight coefficient and sum them up to obtain the water quality compliance rate of the sewage treatment unit group. The specific calculation is: 91.7% x 0.6 + 83.3% x 0.4 = 88.3%. This evaluation method based on weighted average not only considers the compliance of each pollutant, but also reflects the importance of different pollutants, which can objectively reflect the overall operation effect of the treatment facility. Through continuous monitoring and calculation of the water quality compliance rate, problems in the treatment process can be found in time to guide the optimization and adjustment of operation parameters.

[0085] Step 105: When the water quality compliance rate of any sewage treatment unit group is less than the compliance rate threshold, adjust the facility operation parameters corresponding to the sewage treatment unit group based on the deviation degree of the water quality compliance rate from the compliance rate threshold.

[0086] Specifically, during actual operation, when it is found that the water quality compliance rate of a certain wastewater treatment unit group is lower than the preset compliance rate threshold (such as 90%), the facility operation parameters need to be adjusted in time to improve the treatment effect. Specifically, first, the deviation degree of the water quality compliance rate and the compliance rate threshold is calculated, that is, the compliance rate threshold is subtracted from the actual water quality compliance rate to obtain the deviation percentage. For example, the water quality compliance rate of a certain unit group is 88.3%, and the compliance rate threshold is 90%, so the deviation degree is 1.7%. Then, different adjustment measures are taken according to the size of the deviation degree: when the deviation degree is less than 5%, the water pump start-up time is advanced by 2 minutes, the sedimentation time is extended by 1 minute, the aeration amount is increased by 5%, and the PAC dosage is increased by 3%; when the deviation degree is between 5% and 10%, the water pump start-up time is advanced by 3 minutes, the sedimentation time is extended by 2 minutes, the aeration amount is increased by 10%, and the PAC dosage is increased by 5%; and when the deviation degree is greater than 10%, the water pump start-up time is advanced by 5 minutes, the sedimentation time is extended by 3 minutes, the aeration amount is increased by 15%, and the PAC dosage is increased by 8%. Through this hierarchical adjustment method based on the deviation degree, not only the running fluctuation caused by excessive parameter adjustment is avoided, but also the treatment effect is improved in time. After adjustment, the effluent water quality is continuously monitored, and when the water quality compliance rate is higher than the compliance rate threshold for 3 consecutive days, it indicates that the adjustment effect is good; if the water quality compliance rate still does not meet the requirements, the reasons need to be further analyzed, and the adjustment range can be appropriately increased if necessary. This dynamic adjustment mechanism ensures the continuous and stable operation of the treatment facility and improves the reliability of wastewater treatment.

[0087] On the basis of the above-mentioned embodiments, as an optional embodiment, in step 105, adjusting the facility operation parameters corresponding to the wastewater treatment unit group based on the deviation degree of the water quality compliance rate and the compliance rate threshold, this step can further include the following steps:

[0088] Step 501: calculating the difference between the water quality compliance rate and the compliance rate threshold, and dividing the difference by the compliance rate threshold to obtain the deviation degree.

[0089] Specifically, to quantify the gap between the treatment effect and the target requirement, the deviation degree needs to be calculated. Specifically, the difference between the actual water quality compliance rate and the compliance rate threshold is obtained, and then the difference is divided by the compliance rate threshold to obtain the deviation degree. For example, the water quality compliance rate of a certain wastewater treatment unit group is 88.3%, and the compliance rate threshold is 90%, so the difference is -1.7%, and the deviation degree is -0.019. Through this standardized calculation method, the deviation degree of the treatment effect from the expected target can be objectively reflected.

[0090] Step 502: when the deviation degree is negative and the absolute value is greater than the preset deviation tolerance, obtaining the target pollutant type; selecting the facility operation parameter to be adjusted based on the target pollutant type, and determining the parameter adjustment range according to the absolute value of the deviation degree.

[0091] Specifically, when the calculated deviation degree is negative and the absolute value is greater than a preset deviation tolerance (such as 0.01), the adjustment scheme needs to be determined. First, the compliance rate of each pollutant in the effluent water quality data is analyzed, and the pollutant with the lowest compliance rate is determined as the target pollutant type. Then, the facility operation parameter to be adjusted is selected according to the target pollutant type: when the target pollutant is ammonia nitrogen, the aeration amount and the water pump start-stop time are selected for adjustment; when the target pollutant is total phosphorus, the PAC dosage and the sedimentation time are selected for adjustment. At the same time, the parameter adjustment range is determined based on the absolute value of the deviation degree: when the absolute value of the deviation degree is between 0.01 and 0.05, the adjustment range is 5%; when the absolute value of the deviation degree is between 0.05 and 0.10, the adjustment range is 10%; and when the absolute value of the deviation degree is greater than 0.10, the adjustment range is 15%. This targeted parameter selection and hierarchical adjustment scheme can improve the accuracy and efficiency of adjustment.

[0092] Step 503: dynamically adjusting the facility operation parameter to be adjusted according to the parameter adjustment range.

[0093] Specifically, parameter adjustment is performed according to the determined adjustment scheme. Specifically, when the target pollutant is ammonia nitrogen and the adjustment range is 5%, the aeration amount is increased by 5% based on the original value, and the water pump start time is advanced by 2 minutes; when the target pollutant is total phosphorus and the adjustment range is 10%, the PAC dosage is increased by 10%, and the sedimentation time is extended by 2 minutes. After adjustment, the effluent water quality data is continuously collected by the online monitoring equipment, and the new water quality compliance rate is calculated. When the water quality compliance rate is higher than the compliance rate threshold for three consecutive days, the adjusted operation parameter is maintained; if the water quality compliance rate still does not meet the requirements, the deviation degree is recalculated and the next round of adjustment is performed. This dynamic adjustment mechanism can enable the treatment facility to continuously maintain the best operating state and ensure stable effluent water quality.

[0094] Reference Figure 2 A rural sewage treatment system is provided for the embodiments of the present application, and the system comprises a data acquisition module, a treatment capacity determination module, a facility operation parameter determination module, and a sewage treatment module, wherein:

[0095] The data acquisition module is configured to acquire sewage discharge data of multiple farmers in a target area, and the sewage discharge data comprises discharge time, discharge amount, and pollutant concentration.

[0096] The treatment capacity determination module is configured to divide the farmers with adjacent locations into groups of sewage treatment units, and determine the treatment capacity of each group of sewage treatment units based on the sewage discharge data.

[0097] The facility operation parameter determination module is configured to determine the facility operation parameters of the corresponding groups of sewage treatment units according to the treatment capacities, and the facility operation parameters comprise water pump start-stop time, aeration amount, and medicament dosage.

[0098] The sewage treatment module is used for treating sewage of each sewage treatment unit group according to facility operation parameters of each sewage treatment unit group respectively, and calculating water quality compliance rates of each sewage treatment unit group after sewage treatment; when the water quality compliance rate of any sewage treatment unit group is less than a compliance rate threshold, adjusting the facility operation parameters corresponding to the sewage treatment unit group based on a deviation degree of the water quality compliance rate and the compliance rate threshold.

[0099] On the basis of the above-mentioned embodiments, the processing capacity determination module is further configured to obtain geographical position coordinates of each farmer in the target region; calculate relative distances between the farmers based on the geographical position coordinates; establish an association relationship between the farmers with a relative distance less than a distance threshold to generate a farmer association network; identify a plurality of connected subgraphs in the farmer association network, and divide the farmers in each connected subgraph into a sewage treatment unit group.

[0100] On the basis of the above-mentioned embodiments, the processing capacity determination module is further configured to establish a sewage discharge time sequence curve of the corresponding sewage treatment unit group based on the discharge amount and the discharge time in each sewage discharge data; for each sewage discharge time sequence curve, calculate the pollutant load of each time period in the sewage discharge time sequence curve by using a sliding time window method, the pollutant load being determined by the product of the discharge amount and the pollutant concentration; sort the pollutant loads of each time period in descending order, and select an average value of the pollutant loads of a preset proportion as an initial load capacity; calculate the processing capacity of the corresponding sewage treatment unit group according to the initial load capacity and the reference processing efficiency.

[0101] On the basis of the above-mentioned embodiments, the facility operation parameter determination module is further configured to, for each sewage treatment unit group, calculate a daily water inflow period according to the processing capacity and a preset hydraulic load, and divide a water pump working period based on the daily water inflow period to obtain water pump start-stop time; determine an oxygen demand based on a pollutant concentration distribution in the sewage, and calculate an aeration amount according to the oxygen demand and an oxygen utilization rate of an aeration equipment; obtain temperature and alkalinity parameters of the sewage, and calculate a reagent dosage by using a proportional coefficient method according to the temperature, the alkalinity parameters and a target effluent water quality standard.

[0102] On the basis of the above-mentioned embodiments, the facility operation parameter determination module is further configured to calculate a hydraulic retention time based on a ratio of the processing capacity to the hydraulic load; determine a daily water inflow frequency of a single day according to the hydraulic retention time; divide a single-day duration into a plurality of equal time intervals based on the daily water inflow frequency to obtain a daily water inflow period.

[0103] On the basis of the above-mentioned embodiments, the sewage treatment module is further used for setting a detection point at the effluent outlet of each sewage treatment unit group, obtaining effluent water quality data of each sewage treatment unit according to a preset sampling time interval, the effluent water quality data including ammonia nitrogen content and total phosphorus content; for each sewage treatment unit group, comparing the content of each pollutant in the effluent water quality data with the pollutant limit value in the sewage discharge standard, and counting the number of standard samples of each pollutant; for any pollutant, calculating the ratio of the number of standard samples to the total number of samples to obtain the standard rate of the pollutant; and performing weighted average on the standard rates of the pollutants to obtain the water quality standard rate of the sewage treatment unit group.

[0104] On the basis of the above-mentioned embodiments, the sewage treatment module is further used for calculating the difference between the water quality standard rate and the standard rate threshold value, and dividing the difference by the standard rate threshold value to obtain a deviation degree; when the deviation degree is a negative value and the absolute value is greater than a preset deviation tolerance, a target pollutant type is obtained; based on the target pollutant type, a facility operation parameter to be adjusted is selected, and a parameter adjustment range is determined according to the absolute value of the deviation degree; and the facility operation parameter to be adjusted is dynamically adjusted according to the parameter adjustment range.

[0105] It should be noted that: the device provided in the above-mentioned embodiments is only exemplified by the division of the above-mentioned functional modules when realizing its functions, and in actual application, the above-mentioned functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above-described functions. In addition, the device and method embodiments provided in the above-mentioned embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be described here.

[0106] The present application also discloses an electronic device. Referring to Figure 3 , Figure 3 is a structural schematic diagram of an electronic device disclosed by the embodiments of the present application. The electronic device 300 can include at least one processor 301, at least one network interface 304, a user interface 303, a memory 305, and at least one communication bus 302.

[0107] The communication bus 302 is used to realize the connection and communication between the components.

[0108] The user interface 303 can include a display interface and a camera interface. Optionally, the user interface 303 can also include a standard wired interface and a wireless interface.

[0109] The network interface 304 can optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface).

[0110] The processor 301 can include one or more processing cores. The processor 301 connects various parts within the server through various interfaces and lines, performs various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Alternatively, the processor 301 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 301 can integrate a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interface graphs, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 301, but can be realized by a separate chip.

[0111] The memory 305 can include a random access memory (RAM) and a read-only memory (ROM). Alternatively, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 can include a program storage area and a data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area can store data involved in the above-mentioned various method embodiments, etc. The memory 305 can also be at least one storage device located away from the aforementioned processor 301. Referring to Figure 3 The memory 305 as a computer storage medium can include an operating system, a network communication module, a user interface module, and an application program of a rural sewage treatment method.

[0112] In Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an interface for the user to input, and obtain data input by the user; and the processor 301 can be used to invoke an application program stored in the memory 305 and storing a rural sewage treatment method, which, when executed by one or more processors 301, causes the electronic device 300 to perform the method of one or more of the above-described embodiments. It should be noted that, for the foregoing method embodiments, in order to simply describe, they are all described as a combination of a series of actions, but those skilled in the art should know that the present application is not limited to the order of the actions described, because according to the present application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0113] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0114] In several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic. The division of units is only a logical function division. There can be another division manner in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some services interface, device or unit, and can be electrical or other forms.

[0115] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e. they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

[0116] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically independently, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0117] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the present application. The aforementioned memory includes: a U disk, a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0118] The above are only exemplary embodiments of the present disclosure, and cannot limit the scope of the present disclosure. That is, any equivalent changes and modifications made in accordance with the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon considering the specification and practicing the disclosure.

[0119] The present application is intended to cover any variations, uses or adaptive changes of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not described in the present disclosure. The specification and examples are only considered as exemplary.

Claims

1. A method for treating rural wastewater, characterized by, The method comprises the following steps: acquiring sewage discharge data of a plurality of farmers in a target area, the sewage discharge data comprising discharge time, discharge amount and pollutant concentration; dividing farmers with adjacent locations into sewage treatment unit groups, and determining the treatment capacity of each sewage treatment unit group based on the sewage discharge data; determining facility operation parameters of the corresponding sewage treatment unit group according to the treatment capacity, the facility operation parameters comprising water pump start-stop time, aeration amount and reagent dosage; performing sewage treatment on each sewage treatment unit group according to the facility operation parameters, and calculating the water quality compliance rate of each sewage treatment unit group after sewage treatment; when the water quality compliance rate of any sewage treatment unit group is less than a compliance rate threshold, adjusting the facility operation parameters of the sewage treatment unit group based on the deviation degree of the water quality compliance rate and the compliance rate threshold; the step of dividing farmers with adjacent locations into sewage treatment unit groups comprises the following steps: acquiring geographic location coordinates of each farmer in the target area; calculating the relative distance between each farmer based on the geographic location coordinates; establishing an association relationship between farmers with a relative distance less than a distance threshold, and generating a farmer association network; identifying a plurality of connected subgraphs in the farmer association network, and dividing farmers in each connected subgraph into a sewage treatment unit group; the step of determining the treatment capacity of each sewage treatment unit group based on the sewage discharge data comprises the following steps: establishing a sewage discharge time sequence curve of the corresponding sewage treatment unit group based on the discharge amount and discharge time in each sewage discharge data; for each sewage discharge time sequence curve, calculating the pollutant load of each time period in the sewage discharge time sequence curve by using a sliding time window method, the pollutant load being determined by the product of the discharge amount and the pollutant concentration; sorting the pollutant load of each time period in descending order, and selecting the average value of the pollutant load of the front preset proportion as the initial load capacity; calculating the treatment capacity of the corresponding sewage treatment unit group according to the initial load capacity and a reference treatment efficiency; the step of determining the facility operation parameters of the corresponding sewage treatment unit group according to the treatment capacity comprises the following steps: for each sewage treatment unit group, calculating a daily water inflow period according to the treatment capacity and a preset hydraulic load, and dividing the water pump working period based on the daily water inflow period to obtain the water pump start-stop time; determining the oxygen demand based on the pollutant concentration distribution in the sewage, and calculating the aeration amount according to the oxygen demand and the oxygen utilization rate of the aeration equipment; acquiring the temperature and alkalinity parameters of the sewage, and calculating the reagent dosage by using a proportional coefficient method according to the temperature, alkalinity parameters and target effluent water quality standard.

2. The rural wastewater treatment method according to claim 1, characterized in that, the step of calculating the daily water inflow period according to the treatment capacity and a preset hydraulic load comprises the following steps: calculating the hydraulic retention time based on the ratio of the treatment capacity to the hydraulic load; determining the daily water inflow frequency of a single day according to the hydraulic retention time; dividing the length of a single day into a plurality of equal time intervals based on the daily water inflow frequency to obtain the daily water inflow period.

3. The rural wastewater treatment method according to claim 1, characterized in that, the step of calculating the water quality compliance rate of each sewage treatment unit group after sewage treatment comprises the following steps: Detection points are set at the outlet of each of the aforementioned wastewater treatment unit groups, and effluent water quality data of each of the aforementioned wastewater treatment unit groups are obtained at preset sampling time intervals. The effluent water quality data includes ammonia nitrogen content and total phosphorus content. For each of the aforementioned wastewater treatment unit groups, the content of each pollutant in the effluent water quality data is compared with the limits of each pollutant in the wastewater discharge standards, and the number of compliant samples for each pollutant is counted. For any pollutant, the ratio of the number of compliant samples to the total number of samples is calculated to obtain the compliance rate of the pollutant; The water quality compliance rate of the wastewater treatment unit group is obtained by weighted averaging of the compliance rates of each pollutant.

4. The rural wastewater treatment method according to claim 1, characterized in that, The adjustment of the facility operation parameters corresponding to the wastewater treatment unit group based on the deviation between the water quality compliance rate and the compliance rate threshold includes: Calculate the difference between the water quality compliance rate and the compliance rate threshold, and divide the difference by the compliance rate threshold to obtain the deviation. When the deviation is negative and its absolute value is greater than the preset deviation tolerance, the target pollutant type is obtained. Based on the target pollutant type, select the facility operation parameters to be adjusted, and determine the parameter adjustment range according to the absolute value of the deviation. The operating parameters of the facility to be adjusted are dynamically adjusted according to the parameter adjustment range.

5. A rural sewage treatment system for carrying out the rural sewage treatment method according to any one of claims 1 to 4, characterized by The system includes: The data acquisition module is used to acquire wastewater discharge data from multiple farmers within the target area. The wastewater discharge data includes discharge time, discharge volume, and pollutant concentration. The processing capacity determination module is used to divide adjacent farmers into wastewater treatment unit groups and determine the processing capacity of each wastewater treatment unit group based on the wastewater discharge data of each group. The facility operation parameter determination module is used to determine the facility operation parameters of the corresponding sewage treatment unit group based on the treatment capacity of each of the above. The facility operation parameters include pump start-up and shutdown time, aeration rate and chemical dosage. The wastewater treatment module is used to treat wastewater in each wastewater treatment unit group according to the operating parameters of each facility, and to calculate the water quality compliance rate of each wastewater treatment unit group after wastewater treatment; when the water quality compliance rate of any wastewater treatment unit group is less than the compliance rate threshold, the operating parameters of the facility corresponding to the wastewater treatment unit group are adjusted based on the deviation between the water quality compliance rate and the compliance rate threshold. The method of dividing adjacent farmers into wastewater treatment unit groups includes: Obtain the geographical coordinates of each farmer within the target area; Calculate the relative distance between each of the farmers based on the geographical coordinates; Establish associations among farmers whose relative distance is less than a distance threshold to generate a farmer association network; Identify multiple connected subgraphs in the farmer association network, and divide the farmers in each connected subgraph into a sewage treatment unit group; The determination of the treatment capacity of each wastewater treatment unit group based on the wastewater discharge data includes: Based on the discharge volume and discharge time in each of the aforementioned wastewater discharge data, a wastewater discharge time series curve for the corresponding wastewater treatment unit group is established; For each of the aforementioned wastewater discharge time series curves, the pollutant load for each time period in the wastewater discharge time series curve is calculated using the sliding time window method. The pollutant load is determined by the product between the discharge amount and the pollutant concentration. The pollutant loads of each time period are sorted in descending order, and the average value of the pollutant loads of the first preset proportion is selected as the initial load capacity. Based on the initial load capacity and the baseline treatment efficiency, calculate the treatment capacity of the corresponding wastewater treatment unit group; The step of determining the facility operation parameters of the corresponding wastewater treatment unit group based on the processing capacity of each unit includes: For each of the aforementioned wastewater treatment unit groups, the daily influent cycle is calculated based on the treatment capacity and the preset hydraulic load, and the pump working period is divided based on the daily influent cycle to obtain the pump start-up and shutdown time. Based on the concentration distribution of pollutants in the wastewater, the oxygen demand is determined, and the aeration rate is calculated based on the oxygen demand and the oxygen utilization rate of the aeration equipment. The temperature and alkalinity parameters of the wastewater are obtained, and the dosage of the reagent is calculated using the proportional coefficient method based on the temperature, alkalinity parameters and the target effluent water quality standard.

6. An electronic device, comprising: The device includes a processor, a memory, a user interface, and a network interface. The memory is used to store instructions, the user interface and the network interface are used to communicate with other devices, and the processor is used to execute the instructions stored in the memory to cause the electronic device to perform the rural sewage treatment method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, perform the rural sewage treatment method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Water quality supervision method and system for rural sewage treatment facilities based on multi-dimensional analysis

    CN112581338A

  • Pollutant emission level calculation system and method

    KR102549313B1