Rural domestic sewage treatment facility operation state statistical analysis method
A mathematical model is established through a multi-layer perceptron artificial neural network to optimize the aeration fan power of sewage treatment facilities, solving the problem of manual adjustment lag in rural sewage treatment facilities, realizing automated operation of sewage treatment facilities, reducing energy consumption and improving efficiency. processing effect.
Patent Information
- Application Number
- CN202410770947.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, the quality adjustment of inlet and outlet water of rural domestic sewage treatment facilities mainly relies on manual measurement, which causes lag, resulting in outlet water quality being lower than the standard and increasing power consumption.
A multi-layer perceptron artificial neural network is used to establish a mathematical model, and by collecting and analyzing basic data of sewage treatment facilities, screening non-zero coefficient features, optimizing the aeration fan power, and realizing automatic adjustment and energy consumption optimization of sewage treatment facilities.
Effectively guide the operation and management of rural domestic sewage treatment facilities, reduce energy consumption, improve treatment effects, and achieve stable effluent quality standards.
Smart Images

Figure CN118780472A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sewage treatment systems, and in particular to a statistical analysis method for the operating status of rural domestic sewage treatment facilities. Background Art
[0002] Faced with a large number of existing sewage treatment facilities in rural areas, how to adjust the inlet and outlet water quality and power consumption is a new and important task. At present, this work is done manually, by manually measuring the effluent water quality, and then adjusting the water treatment facilities and equipment after the measurement, so as to ensure that the effluent water quality meets the standard and the power consumption is minimized. However, manual measurement and adjustment have a certain lag. In order to ensure that the effluent water quality meets the standard, the effluent water quality will generally be too low, resulting in a significant increase in power consumption. Summary of the invention
[0003] The main purpose of the present invention is to provide a statistical analysis method for the operating status of rural domestic sewage treatment facilities. By collecting and collating the basic data of rural domestic sewage treatment facilities, and using the obtained basic data for data analysis and mathematical model construction, an overall evaluation of the operating energy consumption and process operation effect of sewage treatment facilities can be achieved.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a statistical analysis method for the operation status of rural domestic sewage treatment facilities, comprising the following steps: S1. Collect basic data of sites and affiliated facilities and form a data set; S2. Measure the inlet and outlet water quality of the site at different times; S3. Screen the non-zero coefficient features, and then establish a mathematical model based on the multi-layer perceptron artificial neural network on the basis of meeting the emission standards; S4. Obtain the basic data of sewage treatment facilities and equipment that need to be adjusted, and regularly measure the influent water quality in the regulating tank of the corresponding station, and calculate the expected pollutant removal rate based on the influent water quality and effluent water quality standard concentration; S5. Input the estimated pollutant removal rate, water inlet volume and water temperature calculated in S4 into the mathematical model of S3, and output the gas-water ratio; S6. Adjust the aeration fan power of the water treatment facility in S4 to meet the gas-water ratio output in S5, regularly check whether the effluent water quality meets the standard, and determine the energy saving and consumption reduction level after the effluent water meets the standard; S7. Iterate the final result in S6 into the mathematical model described in S3 to continuously optimize the model.
[0005] In S1, the basic data include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio and electricity consumption per ton of water, wherein the electricity consumption per ton of water is the ratio of the difference in daily meter readings of a single site to the daily water treatment volume, and the gas-water ratio is the ratio of the aeration volume per unit time to the water treatment volume.
[0006] In S2, the water quality of the inlet and outlet water of the site is obtained by collecting inlet samples from the regulating tank and outlet samples from the outlet well. The collection time for each site is mid-January, April, July, October, and December. In S3, a sparse model is used to screen non-zero coefficient features, and then a mathematical model is constructed based on a multi-layer perceptron artificial neural network. The mathematical model includes an input layer, an output layer, and an intermediate hidden layer.
[0007] The objective function to be minimized in the sparse model is: ; In the formula: In the formula: n is the total number of samples, A is the basis function matrix, w is the sample data, y is the output value, α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution, where, The larger it is, the fewer features are selected; The above function determines the features used by the neural network to build a prediction model, where the feature group X=x1,x2,x3,...x m and label y; For a set of training samples, the neuron learning function is: ; In the formula: In the formula: f is the activation function, represents the dot product of the weight vector and the input vector, the bias term is b1, and y is the output value; The operation status of rural domestic sewage treatment facilities is multi-classified using the activation normalized exponential function, which is described as: ; Where: Z i represents the i-th element of the Softmax input, which corresponds to the i-th class, K represents the number of classes, and the result is a vector containing the probability that sample x belongs to each class. =1 means the sum of the probabilities of the K classes is 1; Using the mean squared error loss function ; In the formula: In the formula: is the predicted value, y is the output value, W is the sample data, and α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution; By continuously updating the multi-layer perception weights to minimize the loss function, after calculating the loss, the back propagation propagates it from the output layer to the previous layer, providing an update value for each weight parameter to reduce the loss, and finally stops when the improvement in the loss is lower than a certain number.
[0008] In S4, the basic data of sewage treatment facilities and equipment include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio, and electricity consumption per ton of water. The inlet water quality in the regulating tank of the corresponding site is measured regularly, once every other day for three consecutive times. The maximum value of the three results is used as the basis for calculating the expected pollutant removal rate that meets the standards.
[0009] In S5, the estimated pollutant removal rate = (influent water quality - effluent water quality) / influent water quality × 100%; the estimated pollutant removal rate, influent volume, and water temperature data are derived from the monitoring data of the planned adjustment site.
[0010] In S6, adjusting the power of the aeration fan is to manually replace the fan with a specific power; and regularly testing the effluent water quality is to test the effluent water quality once a week after adjusting the power of the fan.
[0011] In S7, the optimization model is to measure the water temperature, water volume and inlet water quality data at that time while measuring the outlet water quality every week in S6, and list the obtained data in the data frame in S2 for model training in S3.
[0012] The present invention has the following beneficial effects: 1. The present invention collects and organizes the inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, and electricity consumption per ton of water of rural domestic sewage treatment facilities, and uses the obtained basic data for data analysis and mathematical model construction. By inputting the basic data such as inlet water quality and treatment scale of a specific site into the mathematical model, the process parameter data such as gas-water ratio and electricity consumption per ton of water are obtained, and then the gas-water ratio is executed to make the sewage treatment facility operate in the best state. The mathematical model obtained by this method can effectively guide the operation and management of rural domestic sewage treatment facilities and provide the optimal solution for operation and management of specific sites.
[0013] 2. The present invention conducts statistical analysis on the basic data of sewage treatment facilities to form a fixed and effective mathematical model, which is used to guide the operation and management of the site, and forms management measures to reduce energy consumption and improve treatment effects through input and output. The data obtained after the execution of the corresponding management measures will also feed back to optimize the mathematical model. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0015] Figure 1 It is a flow chart of the judgment process of the present invention.
[0016] Figure 2 Schematic diagram of the mean square error function. DETAILED DESCRIPTION
[0017] See also Figure 1 , a method for statistical analysis of the operating status of rural domestic sewage treatment facilities, comprising the following steps: S1. Collect basic data of sites and affiliated facilities and form a data set; S2. Measure the inlet and outlet water quality of the site at different times; S3. Screen the non-zero coefficient features, and then establish a mathematical model based on the multi-layer perceptron artificial neural network on the basis of meeting the emission standards; S4. Obtain the basic data of sewage treatment facilities and equipment that need to be adjusted, and regularly measure the influent water quality in the regulating tank of the corresponding station, and calculate the expected pollutant removal rate based on the influent water quality and effluent water quality standard concentration; S5. Input the estimated pollutant removal rate, water inlet volume and water temperature calculated in S4 into the mathematical model of S3, and output the gas-water ratio; S6. Adjust the aeration fan power of the water treatment facility in S4 to meet the gas-water ratio output in S5, regularly check whether the effluent water quality meets the standard, and determine the energy saving and consumption reduction level after the effluent water meets the standard; S7. Iterate the final result in S6 into the mathematical model described in S3 to continuously optimize the model.
[0018] In S1, the basic data include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio and electricity consumption per ton of water, wherein the electricity consumption per ton of water is the ratio of the difference in daily meter readings of a single site to the daily water treatment volume, and the gas-water ratio is the ratio of the aeration volume per unit time to the water treatment volume.
[0019] In S2, the water quality of the inlet and outlet water of the site is obtained by collecting inlet samples from the regulating tank and outlet samples from the outlet well. The collection time for each site is mid-January, April, July, October, and December. In S3, the sparse model lasso is used to screen non-zero coefficient features, and then the mathematical model is constructed based on the multi-layer perceptron artificial neural network ANN. The mathematical model includes an input layer, an output layer and an intermediate hidden layer.
[0020] The objective function to be minimized in the sparse model is: ; In the formula: In the formula: In the formula: n is the total number of samples, A is the basis function matrix, w is the sample data, y is the actual value of the gas-water ratio, and α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution, where, The larger it is, the fewer features are selected; in, The larger it is, the fewer features are selected; The above function determines the features used by the neural network to build a prediction model, where the feature group X=x1,x2,x3,...x m and label y; For a set of training samples, the neuron learning function is: ; In the formula: In the formula: f is the activation function, represents the dot product of the weight vector and the input vector, the bias term is b1, and y is the output value; For the multi-classification project of the operation status of rural domestic sewage treatment facilities, the activation normalized exponential function can be used, which is described as: ; Where: Z i represents the i-th element of the Softmax input, which corresponds to the i-th class, K represents the number of classes, and the result is a vector containing the probability that sample x belongs to each class. =1 means the sum of the probabilities of the K classes is 1; Using the mean squared error loss function ; In the formula: In the formula: is the predicted value, y is the output value, W is the sample data, and α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution.
[0021] By continuously updating the multi-layer perception weights to minimize the loss function, after calculating the loss, the back propagation propagates it from the output layer to the previous layer, providing an update value for each weight parameter to reduce the loss, and finally stops when the improvement in the loss is lower than a certain number.
[0022] In S4, the basic data of sewage treatment facilities and equipment include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio, and electricity consumption per ton of water. The inlet water quality in the regulating tank of the corresponding site is measured regularly, once every other day for three consecutive times. The maximum value of the three results is used as the basis for calculating the expected pollutant removal rate that meets the standards.
[0023] In S5, the estimated pollutant removal rate = (influent water quality - effluent water quality) / influent water quality × 100%; the estimated pollutant removal rate, influent volume, and water temperature data are derived from the monitoring data of the planned adjustment site.
[0024] In S6, adjusting the power of the aeration fan is to manually replace the fan with a specific power; and regularly testing the effluent water quality is to test the effluent water quality once a week after adjusting the power of the fan.
[0025] In S7, the optimization model is to measure the water temperature, water volume and inlet water quality data at that time while measuring the outlet water quality every week in S6, and list the obtained data in the data frame in S2 for model training in S3.
[0026] Embodiment 1: Step (1): Collect basic data of 825 sewage treatment facilities in Wujiang District. Each facility includes sampling data from 5 different dates, with a total of 4,125 samples, including data on inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio, and electricity consumption per ton of water. The basic data of sewage treatment facilities are organized into the following table:
[0027] Step (2): Determine the inlet and outlet water quality of the sewage treatment facility corresponding to step (1), including CODcr, ammonia nitrogen, total nitrogen, total phosphorus, and suspended solids, where the removal rate = (inlet concentration - outlet concentration) / inlet concentration, the air-water ratio is the ratio of the aeration volume to the water volume per unit time, and the power consumption per ton of water = the ratio of the total power consumption to the water volume per unit time.
[0028] Water quality testing methods and instruments are as follows:
[0029] Step (3): Sample construction; In this step, the data obtained in step (1) is preprocessed, and relatively obvious features are selected based on lasso, among which the non-zero coefficient features are water temperature, digestate reflux ratio, COD removal rate, ammonia nitrogen removal rate, total nitrogen removal rate, total phosphorus removal rate, water intake, gas-water ratio, and treatment scale. It is preliminarily concluded that gas-water ratio = 12.518*chemical oxygen demand removal rate-0.108*ammonia nitrogen removal rate-0.766*total phosphorus removal rate+0.690*total phosphorus removal rate+8.231*ton water power consumption+21.113*water temperature. The water quality test results are further compared and annotated, and are divided into two categories: whether they meet the standards or not, and training samples and test samples are constructed. The specific classification standards are implemented in accordance with the "Water Pollutant Discharge Standard for Rural Domestic Wastewater Treatment Facilities (DB32 / 3462-2020), among which those above the third-level standard are up to standard, and those below the third-level standard are not up to standard.
[0030] Step (4): Build a neural network model; The multi-layer perceptron artificial neural network consists of input and output layers and an intermediate hidden layer. The input layer and the hidden layer are fully connected and transmitted backwards through the connection coefficient and activation function. Data annotation is used to achieve the two-classification of water quality, which meets or does not meet the standard. The activation function of each layer uses the softmax activation function.
[0031] The dataset generated in step (1) was randomly split according to the ratio of test set: training set = 1:4. Finally, 3300 training datasets containing 2805 qualified samples and 495 unqualified samples and 825 test datasets containing 699 qualified samples and 126 unqualified samples were generated. When size=120, sizes=[462,100,10], epoch=1000 were set, the accuracy reached 91.11%, reaching the level of industrial application. Figure 2 .
[0032] Step (5): Input basic site data and apply it in practice; The treatment scale of Tianjiagang Sewage Treatment Station 01# is 10t / d, and the water intake is 6.13t / d. The measured water quality of the influent is CODcr of 197mg / L, ammonia nitrogen of 33mg / L, total phosphorus of 1.81mg / L, and total nitrogen of 18.4mg / L. The water intake of this station is implemented in accordance with the three-level discharge standard of water pollutants for rural domestic sewage treatment facilities, requiring CODcr of 120mg / L, ammonia nitrogen of 25mg / L, and water temperature of 26℃ during the test. If the discharge meets the standard, the CODcr removal rate needs to be above 39.1%, and the ammonia nitrogen removal rate needs to be above 24.2%. This project considers 10% redundancy, then the CODcr removal rate is 43.01%, and the ammonia nitrogen removal rate is 26.62%. Inputting the basic data into the mathematical model, the gas-water ratio is 8.64 and the power consumption per ton of water is 0.192kwh.
[0033] Step (6): The gas-water ratio of Tianjiagang Wastewater Treatment Station 01# was adjusted to 9 on site. After two weeks of operation, the CODcr of the effluent was measured to be 94.2 mg / L and the ammonia nitrogen was 18.2 mg / L. The actual power consumption per ton of water was 0.202 kWh.
[0034] Step (7): Iterate the data obtained in step (6). At the same time, compare the gas-water ratio of Tianjiagang Sewage Treatment Station 01# before adjustment to 14 and the power consumption per ton of water to 0.264 kwh. It is calculated that after the adjustment, the power consumption per ton of water per day is saved by 23.48%.
[0035] Example 2 Steps (1) to (4) are the same as in Example 1.
[0036] Step (5): Input the treatment scale of Wangzibang Sewage Treatment Station as 50t / d, and the average daily water intake is 35.65t / d. The measured water quality of influent CODcr is 207mg / L, ammonia nitrogen is 50.2mg / L, total phosphorus is 5.03mg / L, and total nitrogen is 44.8mg / L, which are input into the model. The station is implemented in accordance with the secondary discharge standard of water pollutants for rural domestic sewage treatment facilities, requiring CODcr to be 100mg / L, ammonia nitrogen to be 15mg / L, total phosphorus to be 3mg / L, and total nitrogen to be 30mg / L. The water temperature during the test is 23℃. This project considers 10% redundancy. In order to achieve standard discharge, the CODcr removal rate needs to be 56.9%, the ammonia nitrogen removal rate is at least 77.1%, the total phosphorus removal rate is 42.1%, and the total nitrogen removal rate is 36.3%. Inputting the basic data into the mathematical model, the gas-water ratio is 14.14 and the power consumption per ton of water is 0.312 kWh.
[0037] Step (6): The gas-water ratio of the Tianjiagang sewage treatment station was adjusted to 14.14 on site. After two weeks of operation, the water quality was measured to be 78.2 mg / L in CODcr, 10.3 mg / L in ammonia nitrogen, 1.7 mg / L in total phosphorus, and 21.4 mg / L in total nitrogen. The actual power consumption per ton of water was 0.322 kWh.
[0038] Step (7): Add the obtained data to the training data set to further optimize the model and improve the accuracy. After analysis, the gas-water ratio of Tianjiagang Wastewater Treatment Station 01# before adjustment was 20.54 and the power consumption per ton of water was 0.559 kwh. After the adjustment, the power consumption per ton of water per day was saved by 42.4%.
Claims
1. A statistical analysis method for the operating status of rural domestic sewage treatment facilities, characterized in that: The following steps are involved: S1. Collect basic data of sites and affiliated facilities and form a data set; S2. Measure the inlet and outlet water quality of the site at different times; S3. Screen the non-zero coefficient features, and then establish a mathematical model based on the multi-layer perceptron artificial neural network on the basis of meeting the emission standards; S4. Obtain the basic data of sewage treatment facilities and equipment that need to be adjusted, and regularly measure the influent water quality in the regulating tank of the corresponding station, and calculate the expected pollutant removal rate based on the influent water quality and effluent water quality standard concentration; S5. Input the estimated pollutant removal rate, water inlet volume and water temperature calculated in S4 into the mathematical model of S3, and output the gas-water ratio; S6. Adjust the aeration fan power of the water treatment facility in S4 to meet the gas-water ratio output in S5, regularly check whether the effluent water quality meets the standard, and determine the energy saving and consumption reduction level after the effluent water meets the standard; S7. Iterate the final result in S6 into the mathematical model described in S3 to continuously optimize the model.
2. A method for statistical analysis of the operating status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S1, the basic data include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio and electricity consumption per ton of water, wherein the electricity consumption per ton of water is the ratio of the difference in daily meter readings of a single site to the daily water treatment volume, and the gas-water ratio is the ratio of the aeration volume per unit time to the water treatment volume.
3. A method for statistical analysis of the operating status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S2, the water quality of the inlet and outlet water of the site is obtained by collecting inlet samples from the regulating tank and outlet samples from the outlet well.
4. A method for statistical analysis of the operating status of rural domestic sewage treatment facilities according to claim 3, characterized in that: The collection time for each site is mid-January, April, July, October, and December.
5. A method for statistical analysis of the operation status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S3, a sparse model is used to screen non-zero coefficient features, and then a mathematical model is constructed based on a multi-layer perceptron artificial neural network. The mathematical model includes an input layer, an output layer, and an intermediate hidden layer.
6. A method for statistical analysis of the operating status of rural domestic sewage treatment facilities according to claim 5, characterized in that: The objective function to be minimized in the sparse model is: ; Where n is the total number of samples, A is the basis function matrix, w is the sample data, y is the output value, and α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution. The larger it is, the fewer features are selected; The above function determines the features used by the neural network to build a prediction model, where the feature group X=x1,x2,x3,...x m and label y; For a set of training samples, the neuron learning function is: ; Where: f is the activation function, represents the dot product of the weight vector and the input vector, the bias term is b1, and y is the output value; The operation status of rural domestic sewage treatment facilities is multi-classified using the activation normalized exponential function, which is described as: ; Where: Z i represents the i-th element of the Softmax input, which corresponds to the i-th class, K represents the number of classes, and the result is a vector containing the probability that sample x belongs to each class. =1 means the sum of the probabilities of the K classes is 1; Using the mean squared error loss function ; Where: is the predicted value, y is the output value, W is the sample data, and α is the regularization parameter used to balance the accuracy of the system and the sparsity of the solution; By continuously updating the multi-layer perception weights to minimize the loss function, after calculating the loss, the back propagation propagates it from the output layer to the previous layer, providing an update value for each weight parameter to reduce the loss, and finally stops when the improvement in the loss is lower than a certain number.
7. A method for statistical analysis of the operation status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S4, the basic data of sewage treatment facilities and equipment include inlet and outlet water quality, aeration volume, pipe network length, number of service households, treatment scale, water volume, water temperature, gas-water ratio, and electricity consumption per ton of water. The inlet water quality in the regulating tank of the corresponding site is measured regularly, once every other day for three consecutive times. The maximum value of the three results is used as the basis for calculating the expected pollutant removal rate that meets the standards.
8. A method for statistical analysis of the operation status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S5, the estimated pollutant removal rate = (influent water quality - effluent water quality) / influent water quality × 100%; the estimated pollutant removal rate, influent volume, and water temperature data are derived from the monitoring data of the planned adjustment site.
9. A method for statistical analysis of the operation status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S6, adjusting the power of the aeration fan is to manually replace the fan with a specific power; and regularly testing the effluent water quality is to test the effluent water quality once a week after adjusting the power of the fan.
10. A method for statistical analysis of the operation status of rural domestic sewage treatment facilities according to claim 1, characterized in that: In S7, the optimization model is to measure the water temperature, water volume and inlet water quality data at that time while measuring the outlet water quality every week in S6, and list the obtained data in the data frame in S2 for model training in S3.
Citation Information
Cited By
Rural domestic sewage treatment facility operation health assessment device, method, equipment and medium
CN120069315A
