A sewage treatment monitoring method and system based on the Internet of Things
By constructing a sensor network and dynamic parallel kernel partial least squares analysis, combined with the water quality prediction model and environmental vulnerability index, the automatic adjustment of chemical reagent delivery solves the problem of insufficient data analysis in the sewage treatment system and achieves more intelligent monitoring and response, improving sewage treatment efficiency and environmental protection effects.
Patent Information
- Application Number
- CN202410897456.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-05
AI Technical Summary
In the existing sewage treatment monitoring methods based on the Internet of Things, data analysis is not in-depth enough, and smart sewage treatment systems require more intelligent monitoring and response methods.
Build a sensor network to collect data related to sewage treatment, use dynamic parallel kernel partial least squares method to analyze water quality data, build a water quality prediction model, calculate the water quality environmental vulnerability index, and automatically adjust the amount of chemical reagents based on the analysis results to evaluate the environmental impact of the sewage treatment process influence.
It achieves comprehensive data analysis of the sewage treatment system, foresees potential water quality problems, optimizes resource allocation and treatment effects, reduces water environment pollution risks, and improves response speed and efficiency.
Smart Images

Figure CN118444576B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sewage treatment, and in particular to a sewage treatment monitoring method and system based on the Internet of Things. Background Art
[0002] Wastewater treatment refers to the process of removing or converting harmful substances in wastewater into harmless substances, thereby reducing its harm to the environment. It is an important part of environmental engineering and public health, and is of great significance to protecting water resources and the ecological environment and ensuring public health. In the field of modern environmental engineering, the development of sewage treatment technology has always been at the core of the pursuit of higher efficiency, economy and environmental protection. Especially driven by the Internet of Things (IoT) technology, the sewage treatment field has begun to realize the transformation from the traditional passive treatment mode to the intelligent, dynamic and predictive management mode. Although some systems have implemented online monitoring, data analysis is often not in-depth enough, and intelligent sewage treatment systems still need smarter monitoring and response methods. Summary of the invention
[0003] In view of the problems existing in the above-mentioned existing sewage treatment monitoring method and system based on the Internet of Things, the present invention is proposed.
[0004] Therefore, the problem to be solved by the present invention is that although some systems have implemented online monitoring, the data analysis is often not in-depth enough, and the intelligent sewage treatment system still requires more intelligent monitoring and response methods.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a sewage treatment monitoring method based on the Internet of Things, which includes: building a sensor network to collect sewage treatment related data at each monitoring point, using dynamic parallel kernel partial least squares method to analyze the water quality data of the monitoring point; building a water quality prediction model to predict the water quality changes at the monitoring point, and calculating the water quality environmental vulnerability index of each monitoring point according to the real-time and predicted water quality data;
[0006] Automatically adjust the amount of chemical reagents added and execute according to the analysis results, evaluate the impact of the sewage treatment process on the environment and improve the sewage treatment process.
[0007] As a preferred solution of the Internet of Things-based sewage treatment monitoring method described in the present invention, the construction of a sensor network to collect sewage treatment related data refers to using multi-parameter water quality sensors and fixing each sensor at a key node of sewage treatment, connecting all sensors through a wireless sensor network, and using LoRaWAN technology to transmit the collected water quality data to a central processing system. After receiving the data, outlier detection and missing value processing are performed on the data and the timestamps of the collected water quality data are aligned.
[0008] As a preferred solution of the sewage treatment monitoring method based on the Internet of Things described in the present invention, wherein: the use of dynamic parallel kernel partial least squares method to analyze the water quality data of the monitoring point includes:
[0009] Analyze the sampling frequency of each data source of the data received by the central processing system, downsample the high-frequency data, upsample the low-frequency data, and make all data sources reach the same time granularity;
[0010] Use the same start time and end time to set a unified time window for all resampled data, perform approximate matching on the data sources, and merge all data sources into a unified data framework according to the time window;
[0011] Calculate the skewness and kurtosis of each parameter collected from the data source to obtain high-order statistics and store them in the feature database as statistical features, and mark each statistical feature with the corresponding timestamp and source;
[0012] Use fast Fourier transform to extract the frequency domain features of the time series data, calculate the main frequency components and corresponding amplitudes of the spectrum, select the main frequency as the time series feature, and store the extracted time series features in the feature database;
[0013] Construct a data association graph, use different monitoring points of the sewage treatment plant as nodes in the graph, use the distance between nodes as edges, and use the water quality similarity and geographical location information of the monitoring nodes to determine the weight of the edge;
[0014] Calculate the number of edges connected to each node in the graph, calculate the clustering coefficient of each node, and obtain the degree of connection C between the node's neighbor nodes i :
[0015] ,
[0016] Where, T i is the number of triangles passing through node i, b i is the degree of node i;
[0017] Calculate the betweenness centrality of each node to get the graph features;
[0018] The calculated graph features are integrated with the time series features and statistical features of the water quality data of the monitoring points in the feature database to form a comprehensive feature set;
[0019] Use the Gaussian kernel function to calculate the kernel matrix K of the fused data features:
[0020] ,
[0021] in is the kernel function parameter, x a and xj is the a-th and j-th data input;
[0022] Run partial minimum multiplication regression analysis on the data features after kernel transformation, use the information criterion method to determine the number of components L to be extracted, iterate based on the number of components L, calculate the weight vector w in each iteration, so that the component vector t has the maximum variance in the kernel space, and define the optimization goal as:
[0023] ,
[0024] ,
[0025] Where w is the weight vector, K is the current kernel matrix, T is the transpose operation, and t T is the transpose of the score vector t;
[0026] Update the kernel matrix K to remove the influence of the extracted components. The updated kernel matrix K+1 is expressed as:
[0027] ,
[0028] Repeat the component extraction step L times to extract L components;
[0029] The principal components extracted by partial least squares method and the corresponding weights were analyzed to identify the features that have the greatest impact on water quality changes.
[0030] As a preferred solution of the Internet of Things-based sewage treatment monitoring method of the present invention, wherein: the construction of a water quality prediction model to predict water quality changes at monitoring points refers to using a linear regression model to construct a water quality prediction model,
[0031] The historical water quality data of the monitoring points are used as training sets to input into the water quality prediction model for iterative training, and the loss function and Adam optimizer are defined to iteratively optimize the model parameters. When the loss of the water quality prediction model no longer decreases significantly during the continuous iteration process, the iteration is stopped and the model parameters are output to update the water quality prediction model.
[0032] The fused feature vector is input into the water quality prediction model to obtain the predicted value of the water quality parameters of the monitoring point in the future.
[0033] As a preferred solution of the sewage treatment monitoring method based on the Internet of Things of the present invention, wherein: the water quality environmental vulnerability index of each monitoring point is calculated based on real-time and predicted water quality data, including:
[0034] Based on the real-time analysis results of water quality data and the prediction output of the prediction model, select the parameters that affect the vulnerability of the water environment, assign weights based on the degree of impact of each parameter on the environment, and calculate the water environment impact value for each parameter:
[0035] ,
[0036] In the formula, E h is the water environment impact value of monitoring point h, p hk is the actual measured value of parameter k at monitoring point h, p k is the reference value of parameter k, is the standard deviation of parameter k, n is the total number of parameters, w k is the weight;
[0037] The weighted sum of water environment impact values of all selected parameters is calculated, the main features affecting water quality are identified from the dynamic parallel kernel partial least squares method, and the water environment vulnerability index is calculated:
[0038] Calculate the time dynamic response function p(t,τ) of the monitoring point:
[0039] ,
[0040] Where t is the current time, is the time delay of the environmental response to the actual change;
[0041] Calculate the distance attenuation function g(H) of the monitoring point:
[0042] ,
[0043] Where, d h is the distance from monitoring point h to the nearest pollution source, D is the distance scale, and α and β are adjustment parameters;
[0044] Comprehensive calculation of water environment vulnerability index V:
[0045] ,
[0046] In the formula, E h is the normalized environmental impact value of monitoring point h, E max is the maximum value of all normalized environmental impact values, and m is the total number of monitoring points.
[0047] As a preferred solution of the sewage treatment monitoring method based on the Internet of Things of the present invention, wherein: the automatic adjustment of the amount of chemical reagents added according to the analysis results and the execution of the water environment vulnerability index of each monitoring point calculated are used to sort the water environment vulnerability index in descending order and correspond to the monitoring points, and the sewage of the monitoring points is treated in sequence according to the sorting, and the treatment resources are preferentially allocated to the monitoring points with large water environment vulnerability index;
[0048] The threshold V of the vulnerability index is determined based on historical data analysis and water quality standards specified in environmental protection laws and regulations. The adjustment coefficient Q is automatically adjusted based on historical data through a genetic algorithm. The formula for adjusting the amount of chemical reagents is:
[0049] ,
[0050] In the formula, F is the adjusted amount of chemical reagents, F0 is the basic dose, f is the adjustment coefficient, and V is the vulnerability index;
[0051] The chemical reagents used in sewage treatment are added according to the calculated chemical reagent dosage.
[0052] As a preferred solution of the Internet of Things-based sewage treatment monitoring method described in the present invention, wherein: the evaluation of the impact of the sewage treatment process on the environment and the improvement of the sewage treatment process refers to real-time monitoring of changes in water quality during the sewage treatment process, determining the environmental baseline based on the environmental parameter status before sewage treatment, real-time collection of environmental data, calculation of changes in environmental parameters before and after sewage treatment, adjustment of sewage treatment process parameters according to changes in environmental parameters and sewage quality, and continued monitoring of the adjusted sewage treatment effect, regular generation of environmental impact reports, and recording of sewage treatment effects and environmental impact data.
[0053] Another object of the present invention is to provide a sewage treatment monitoring system based on the Internet of Things, which comprises:
[0054] Data acquisition module, used to collect water quality data from each monitoring point and transmit the data to the central processing system for pre-processing;
[0055] Data analysis module, used to extract water quality data features and analyze data using dynamic parallel kernel partial least squares method to identify key water quality change factors;
[0056] Water quality prediction module, used to build a water quality prediction model to predict future water quality changes at each monitoring point;
[0057] The adjustment module is used to calculate the water environment vulnerability index of each monitoring point and automatically adjust the amount of chemical reagents required for the monitoring point according to the vulnerability index;
[0058] The evaluation module is used to monitor the changes in water quality during the sewage treatment process and compare the changes in environmental parameters before and after treatment, evaluate the impact of the sewage treatment process on the environment and adjust the sewage treatment process parameters.
[0059] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of a sewage treatment monitoring method based on the Internet of Things when executing the computer program.
[0060] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a sewage treatment monitoring method based on the Internet of Things.
[0061] The beneficial effects of the present invention are as follows: the present invention collects water quality data from each sewage monitoring point by constructing a sensor network and uses the dynamic parallel kernel partial least squares method to analyze the water quality data, predicts future water quality changes and calculates the water environment vulnerability index to adjust the amount of chemical reagents released. The water quality data from each monitoring point can be comprehensively analyzed, potential water quality problems can be foreseen, and resources can be allocated and intervened in a targeted manner at each monitoring point, thereby optimizing sewage treatment effects, reducing the risk of water environment pollution, and improving the response speed and efficiency of the sewage treatment system. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0063] Figure 1 Schematic diagram of the process of sewage treatment monitoring method based on Internet of Things.
[0064] Figure 2 Schematic diagram of water quality data analysis for wastewater treatment monitoring method based on Internet of Things.
[0065] Figure 3 This is a structural diagram of the sewage treatment monitoring system based on the Internet of Things. DETAILED DESCRIPTION
[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0068] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0069] Example 1
[0070] Reference Figure 1 and Figure 2 , which is the first embodiment of the present invention, and this embodiment provides a sewage treatment monitoring method based on the Internet of Things. The sewage treatment monitoring method based on the Internet of Things includes:
[0071] S1. Build a sensor network to collect sewage treatment related data at each monitoring point, and use dynamic parallel kernel partial least squares method to analyze the water quality data at the monitoring point;
[0072] Specifically, building a sensor network to collect sewage treatment related data means using multi-parameter water quality sensors, including pH sensors, dissolved oxygen sensors, and ammonia nitrogen sensors, etc., fixing each sensor at the key nodes of sewage treatment, including the water inlet, biochemical reaction tank, sedimentation tank, and outlet, connecting all sensors through a wireless sensor network, and using LoRaWAN technology to transmit the collected water quality data to the central processing system. After receiving the data, the data will be detected for outliers and missing values, and the timestamps of the collected data will be aligned.
[0073] By building a sensor network and deploying it at key nodes, key data is collected from key stages of the sewage treatment process, which helps to monitor the changes in various physical and chemical indicators of sewage in real time, thereby more accurately evaluating the effectiveness of the treatment process and its environmental impact, greatly improving the speed of problem identification and response, and reducing environmental risks. The application of LoRaWAN ensures high efficiency and low energy consumption in data transmission, and is particularly suitable for use in vast or remote sewage treatment facilities. This technology supports long-distance communication, reduces the complexity and cost of infrastructure construction, and ensures the reliability and security of data transmission.
[0074] Furthermore, the dynamic parallel kernel partial least squares method is used to analyze the water quality data of the monitoring points, including:
[0075] Analyze the sampling frequency of each data source of the data received by the central processing system, downsample the high-frequency data, upsample the low-frequency data, and make all data sources reach the same time granularity;
[0076] Use the same start time and end time to set a unified time window for all resampled data, perform approximate matching on the data sources, and merge all data sources into a unified data framework according to the time window;
[0077] Calculate the skewness and kurtosis of each parameter collected from the data source to obtain high-order statistics and store them in the feature database as statistical features, and mark each statistical feature with the corresponding timestamp and source;
[0078] Use fast Fourier transform to extract the frequency domain features of the time series data, calculate the main frequency components and corresponding amplitudes of the spectrum, select the main frequency as the time series feature, and store the extracted time series features in the feature database;
[0079] Construct a data association graph, use different monitoring points of the sewage treatment plant as nodes in the graph, use the distance between nodes as edges, and use the water quality similarity and geographical location information of the monitoring nodes to determine the weight of the edge;
[0080] Calculate the number of edges connected to each node in the graph, calculate the clustering coefficient of each node, and obtain the degree of connection C between the node's neighbor nodes i :
[0081] ,
[0082] Where Ti is the number of triangles passing through node i, bi is the degree of node i, node degree refers to the number of edges connected to a node in the graph, and in this embodiment, it represents the number of direct connections between a monitoring point and other monitoring points, the number of triangles refers to a closed loop consisting of three interconnected edges, and the number of triangles of node i refers to the number of triangles passing through node i;
[0083] Calculate the betweenness centrality of each node to get the graph features;
[0084] The calculated graph features are integrated with the time series features and statistical features of the water quality data of the monitoring points in the feature database to form a comprehensive feature set;
[0085] Use the Gaussian kernel function to calculate the kernel matrix K of the fused data features:
[0086] ,
[0087] in is the kernel function parameter, x a and x j is the a-th and j-th data input;
[0088] Run partial minimum multiplication regression analysis on the data features after kernel transformation, use the information criterion method to determine the number of components L to be extracted, iterate based on the number of components L, calculate the weight vector w in each iteration, so that the component vector t has the maximum variance in the kernel space, and define the optimization goal as:
[0089] ,
[0090] ,
[0091] Where w is the weight vector, K is the current kernel matrix, T is the transpose operation, and t Tis the transpose of the score vector t;
[0092] Update the kernel matrix K to remove the influence of the extracted components. The updated kernel matrix K+1 is expressed as:
[0093] ,
[0094] Repeat the component extraction step L times to extract L components;
[0095] The principal components extracted by partial least squares method and the corresponding weights were analyzed to identify the features that have the greatest impact on water quality changes.
[0096] By downsampling and upsampling data with different sampling frequencies, all data sources are unified to the same time granularity. This step ensures the consistency and comparability of the data and lays the foundation for subsequent analysis. Using a unified time window for approximate matching and merging can reduce the complexity of data processing and improve the accuracy of data analysis. Calculating the skewness and kurtosis of each parameter and extracting high-order statistical features can capture extreme values and shape features in the data distribution. Using fast Fourier transform to extract frequency domain features can identify periodic changes and major frequency components in the data. Storing these features helps to fully understand water quality changes and provide rich information for subsequent feature fusion and analysis. By constructing a data association graph, the water quality similarity and geographic location information between monitoring points are taken into consideration, which can better understand and analyze the correlation between monitoring points. Calculating the number of edges, clustering coefficient and betweenness centrality of the nodes, and further analyzing the topological structure of the graph are helpful to identify key monitoring points and the main driving factors of water quality changes. Partial least squares regression analysis is run on the data features after kernel transformation. The number of components is extracted iteratively, and the weight vector is calculated to ensure the maximum variance in the kernel space. This method can identify the features that have the greatest impact on water quality changes and provide a scientific basis for sewage treatment. Through dynamic parallel processing, large-scale data can be analyzed in real time to improve the system response speed. The calculated graph features are fused with the time series features and statistical features in the feature database to form a comprehensive feature set. The Gaussian kernel function is used to calculate the kernel matrix of the fused data features to ensure that the data after feature fusion retains the nonlinear relationship of the original information. This comprehensive feature set provides a solid foundation for the final water quality prediction and decision-making.
[0097] S2. Construct a water quality prediction model to predict water quality changes at monitoring points, and calculate the water quality environmental vulnerability index of each monitoring point based on real-time and predicted water quality data;
[0098] Specifically, constructing a water quality prediction model to predict water quality changes at monitoring points refers to using a linear regression model to construct a water quality prediction model.
[0099] The historical water quality data of the monitoring points are used as training sets to input into the water quality prediction model for iterative training, and the loss function and Adam optimizer are defined to iteratively optimize the model parameters. When the loss of the water quality prediction model no longer decreases significantly during the continuous iteration process, the iteration is stopped and the model parameters are output to update the water quality prediction model.
[0100] The fused feature vector is input into the water quality prediction model to obtain the predicted value of the water quality parameters of the monitoring point in the future.
[0101] Linear regression models are widely used in various prediction tasks because of their simplicity and easy-to-interpret characteristics. In sewage treatment monitoring, the use of linear regression models can quickly identify the changing trends of water quality parameters and provide reliable prediction results, which helps to foresee potential water quality problems in advance, take preventive measures, and avoid environmental pollution incidents. In addition, the linear regression model has a small amount of calculation and is suitable for real-time applications, ensuring the efficient operation of the monitoring system. Through iterative training and optimization processes, the linear regression model can continuously adjust its parameters to minimize the prediction error. The Adam optimizer combined with momentum and adaptive learning rate can quickly converge to the global optimal solution and improve the accuracy and stability of the model. The accurate prediction of water quality parameters in the future can provide an important reference for the optimized operation of the sewage treatment system and ensure the effectiveness of the treatment process and environmental safety.
[0102] Furthermore, the water quality environmental vulnerability index of each monitoring point is calculated based on the real-time and predicted water quality data, including:
[0103] Based on the real-time analysis results of water quality data and the prediction output of the prediction model, select the parameters that affect the vulnerability of the water environment, assign weights based on the degree of impact of each parameter on the environment, and calculate the water environment impact value for each parameter:
[0104] ,
[0105] In the formula, E h is the water environment impact value of monitoring point h, p hk is the actual measured value of parameter k at monitoring point h, p k is the reference value of parameter k, which refers to the environmental quality standard. is the standard deviation of parameter k, n is the total number of parameters, w k are weights, determined by the analytic hierarchy process;
[0106] The weighted sum of water environment impact values of all selected parameters is calculated, the main features affecting water quality are identified from the dynamic parallel kernel partial least squares method, and the water environment vulnerability index is calculated:
[0107] Calculate the time dynamic response function of the monitoring point:
[0108] ,
[0109] Where t is the current time, It is the time delay of environmental response to actual changes, which is determined by analyzing the response time of historical events and the environmental recovery cycle. Events refer to historical pollution events.
[0110] Calculate the distance attenuation function of the monitoring point:
[0111] ,
[0112] Where, d h is the distance from the monitoring point h to the nearest pollution source, obtained through the geographic information system, D is the distance scale, set based on the scale of the monitoring area, α and β are adjustment parameters used to control the shape and rate of the distance decay function, obtained through genetic algorithm tuning based on historical data;
[0113] Comprehensive calculation of water environment vulnerability index V:
[0114] ,
[0115] In the formula, E h is the normalized environmental impact value of monitoring point h, E max is the maximum value of all normalized environmental impact values, and m is the total number of monitoring points.
[0116] By comprehensively considering the impact of various parameters on the water environment, the environmental impact value of each monitoring point is scientifically calculated. The weight determined based on the AHP method ensures the reasonable distribution of the impact of each parameter on environmental vulnerability, and improves the accuracy and reliability of the analysis. By introducing the time dynamic response function, the formula can more truly reflect the response speed and recovery ability of the environment to pollution events. This dynamic adjustment improves the predictive ability of the model, allowing the sewage treatment system to respond to emergencies more flexibly and reduce environmental risks. The distance attenuation function effectively describes the impact of pollution sources on different monitoring points. By considering the distance factor, the system can more accurately evaluate and manage pollution risks, optimize resource allocation, and improve the overall treatment effect. The water environment vulnerability index is comprehensively calculated, so that the system can comprehensively evaluate the environmental vulnerability of each monitoring point and optimize the sewage treatment strategy accordingly. This method improves the intelligence level of the sewage treatment system through scientific calculation and comprehensive analysis, and ensures the efficiency of the treatment process and the sustainability of the environment.
[0117] S3. Automatically adjust the amount of chemical reagents and execute them according to the analysis results, evaluate the impact of the sewage treatment process on the environment and improve the sewage treatment process;
[0118] Specifically, the amount of chemical reagents added is automatically adjusted according to the analysis results and the instructions are executed. According to the calculated water environment vulnerability index of each monitoring point, the water environment vulnerability index is sorted in descending order and corresponds to the monitoring point, and the sewage of the monitoring point is treated in sequence according to the sorting, and the treatment resources are preferentially allocated to the monitoring point with a large water environment vulnerability index;
[0119] The threshold V of the vulnerability index is determined based on historical data analysis and water quality standards specified in environmental protection laws and regulations. The adjustment coefficient Q is automatically adjusted based on historical data through a genetic algorithm. The formula for adjusting the amount of chemical reagents is:
[0120] ,
[0121] In the formula, F is the adjusted amount of chemical reagents, F0 is the basic dose, f is the adjustment coefficient, which is set through historical data analysis and actual scenarios, and V is the vulnerability index;
[0122] The chemical reagents used in sewage treatment are added according to the calculated chemical reagent dosage.
[0123] Through scientific calculation and sorting, we ensure that treatment resources are allocated preferentially to the areas most in need. This not only improves the effectiveness of sewage treatment, but also significantly reduces the possibility of pollution spread in high-risk areas and optimizes the resource utilization efficiency of the entire treatment system. The process of determining the vulnerability index threshold combines historical data and regulatory standards to ensure the scientificity and compliance of the treatment process. By setting reasonable thresholds, we can more effectively manage and control the sewage treatment process, improve the treatment effect and environmental protection compliance rate. The application of genetic algorithms ensures the precise optimization of the amount of chemical reagents. Through continuous iteration and optimization, the algorithm can find the optimal adjustment coefficient f based on actual water quality conditions and historical data. This not only improves the efficiency of chemical reagent use and reduces the waste of chemicals, but also ensures the optimization of treatment effects and reduces the risk of environmental pollution.
[0124] Furthermore, evaluating the impact of the sewage treatment process on the environment and improving the sewage treatment process refers to real-time monitoring of changes in water quality during the sewage treatment process, determining the environmental baseline based on the environmental parameter status before sewage treatment, real-time collection of environmental data, calculating changes in environmental parameters before and after sewage treatment, adjusting sewage treatment process parameters according to changes in environmental parameters and sewage quality and continuing to monitor the adjusted sewage treatment effects, regularly generating environmental impact reports, and recording sewage treatment effects and environmental impact data.
[0125] By establishing an environmental baseline, we can accurately assess the impact of the sewage treatment process on the environment, provide a scientific reference standard, monitor water quality changes in real time, and ensure that any abnormalities or emergencies in the treatment process can be discovered and handled in a timely manner. This immediate response capability improves the efficiency and reliability of sewage treatment, reduces potential harm to the environment, and systematically collects and calculates changes in environmental parameters, which helps to fully understand the dynamic changes in the sewage treatment process. This method not only improves the accuracy of data analysis, but also provides a scientific basis for adjusting treatment process parameters. Through systematic reports, potential problems in the treatment process can be identified, and improvement measures can be formulated to further optimize treatment processes and management strategies.
[0126] Example 2
[0127] Reference Figure 3 , which is the second embodiment of the present invention, and which is different from the previous embodiment, provides a sewage treatment monitoring system based on the Internet of Things, which includes:
[0128] Data acquisition module, used to collect water quality data from each monitoring point and transmit the data to the central processing system for pre-processing;
[0129] Data analysis module, used to extract water quality data features and analyze data using dynamic parallel kernel partial least squares method to identify key water quality change factors;
[0130] Water quality prediction module, used to build a water quality prediction model to predict future water quality changes at each monitoring point;
[0131] The adjustment module is used to calculate the water environment vulnerability index of each monitoring point and automatically adjust the amount of chemical reagents required for the monitoring point according to the vulnerability index;
[0132] The evaluation module is used to monitor the changes in water quality during the sewage treatment process and compare the changes in environmental parameters before and after treatment, evaluate the impact of the sewage treatment process on the environment and adjust the sewage treatment process parameters.
[0133] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0134] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0135] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0136] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit with a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit with a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
Claims
1. A sewage treatment monitoring method based on the Internet of Things, characterized in that: include, Build a sensor network to collect sewage treatment related data at each monitoring point, and use dynamic parallel kernel partial least squares method to analyze the water quality data at the monitoring points; Construct a water quality prediction model to predict water quality changes at monitoring points, and calculate the water quality environmental vulnerability index of each monitoring point based on real-time and predicted water quality data; Automatically adjust the amount of chemical reagents and execute them according to the analysis results, evaluate the impact of the sewage treatment process on the environment and improve the sewage treatment process; The construction of the sensor network to collect sewage treatment related data refers to using multi-parameter water quality sensors and fixing each sensor at a key node of sewage treatment, connecting all sensors through a wireless sensor network, using LoRaWAN technology to transmit the collected water quality data to a central processing system, performing outlier detection and missing value processing on the data after receiving the data, and aligning the timestamp of the collected water quality data; The use of dynamic parallel kernel partial least squares method to analyze the water quality data of monitoring points includes: Analyze the sampling frequency of each data source of the data received by the central processing system, downsample the high-frequency data, upsample the low-frequency data, and make all data sources reach the same time granularity; Use the same start time and end time to set a unified time window for all resampled data, perform approximate matching on the data sources, and merge all data sources into a unified data framework according to the time window; Calculate the skewness and kurtosis of each parameter collected from the data source to obtain high-order statistics and store them in the feature database as statistical features, and mark each statistical feature with the corresponding timestamp and source; Use fast Fourier transform to extract the frequency domain features of the time series data, calculate the main frequency components and corresponding amplitudes of the spectrum, select the main frequency as the time series feature, and store the extracted time series features in the feature database; Construct a data association graph, use different monitoring points of the sewage treatment plant as nodes in the graph, use the distance between nodes as edges, and use the water quality similarity and geographical location information of the monitoring nodes to determine the weight of the edge; Calculate the number of edges connected to each node in the graph, calculate the clustering coefficient of each node, and obtain the degree of connection C between the node's neighbor nodes i : , Where, T i is the number of triangles passing through node i, b i is the degree of node i; Calculate the betweenness centrality of each node to get the graph features; The calculated graph features are integrated with the time series features and statistical features of the water quality data of the monitoring points in the feature database to form a comprehensive feature set; Use the Gaussian kernel function to calculate the kernel matrix K of the fused data features: , in is the kernel function parameter, x a and x j is the a-th and j-th data input; Run partial minimum multiplication regression analysis on the data features after kernel transformation, use the information criterion method to determine the number of components L to be extracted, iterate based on the number of components L, calculate the weight vector w in each iteration, so that the component vector t has the maximum variance in the kernel space, and define the optimization goal as: , , Where w is the weight vector, K is the current kernel matrix, T is the transpose operation, and t T is the transpose of the score vector t; Update the kernel matrix K to remove the influence of the extracted components. The updated kernel matrix K+1 is expressed as: , Repeat the component extraction step L times to extract L components; Analyze the principal components extracted by partial least squares method and the corresponding weights to identify the features that have the greatest impact on water quality changes; The construction of a water quality prediction model to predict changes in water quality at monitoring points refers to using a linear regression model to construct a water quality prediction model, inputting historical water quality data of the monitoring points as a training set into the water quality prediction model for iterative training, defining a loss function and an Adam optimizer to iteratively optimize model parameters, and stopping the iteration to output model parameters and update the water quality prediction model when the loss of the water quality prediction model no longer decreases significantly during continuous iterations; The fused feature vector is input into the water quality prediction model to obtain the predicted value of the water quality parameter of the monitoring point in the future period of time; The water quality environmental vulnerability index of each monitoring point is calculated based on the real-time and predicted water quality data, including: Based on the real-time analysis results of water quality data and the prediction output of the prediction model, select the parameters that affect the vulnerability of the water environment, assign weights based on the degree of impact of each parameter on the environment, and calculate the water environment impact value for each parameter: , In the formula, E h is the water environment impact value of monitoring point h, p hk is the actual measured value of parameter k at monitoring point h, p k is the reference value of parameter k, is the standard deviation of parameter k, n is the total number of parameters, w k is the weight; The weighted sum of water environment impact values of all selected parameters is calculated, the main features affecting water quality are identified from the dynamic parallel kernel partial least squares method, and the water environment vulnerability index is calculated: Calculate the time dynamic response function p(t,τ) of the monitoring point: , Where t is the current time, is the time delay of the environmental response to the actual change; Calculate the distance attenuation function g(H) of the monitoring point: , Where, d h is the distance from monitoring point h to the nearest pollution source, D is the distance scale, and α and β are adjustment parameters; Comprehensive calculation of water environment vulnerability index V: , In the formula, E h is the normalized environmental impact value of monitoring point h, E max is the maximum value of all normalized environmental impact values, and m is the total number of monitoring points.
2. The method for monitoring sewage treatment based on the Internet of Things according to claim 1, characterized in that: The automatic adjustment of the amount of chemical reagents added according to the analysis results and the execution thereof means that the water environment vulnerability index of each monitoring point is sorted in descending order according to the calculated water environment vulnerability index and corresponds to the monitoring point, and the sewage of the monitoring point is treated in sequence according to the sorting, and the treatment resources are preferentially allocated to the monitoring point with a large water environment vulnerability index; The threshold V of the vulnerability index is determined based on historical data analysis and water quality standards specified in environmental protection laws and regulations. The adjustment coefficient Q is automatically adjusted based on historical data through a genetic algorithm. The formula for adjusting the amount of chemical reagents is: , In the formula, F is the adjusted amount of chemical reagents, F0 is the basic dose, f is the adjustment coefficient, and V is the vulnerability index; The chemical reagents used in sewage treatment are added according to the calculated chemical reagent dosage.
3. The method for monitoring sewage treatment based on the Internet of Things according to claim 2, characterized in that: The assessment of the impact of the sewage treatment process on the environment and improvement of the sewage treatment process refers to real-time monitoring of changes in water quality during the sewage treatment process, determining the environmental baseline based on the environmental parameter status before sewage treatment, real-time collection of environmental data, calculation of changes in environmental parameters before and after sewage treatment, adjustment of sewage treatment process parameters according to changes in environmental parameters and sewage quality, and continued monitoring of the adjusted sewage treatment effects, regular generation of environmental impact reports, and recording of sewage treatment effects and environmental impact data.
4. A sewage treatment monitoring system based on the Internet of Things based on the sewage treatment monitoring method based on the Internet of Things according to any one of claims 1 to 3, characterized in that: include, Data acquisition module, used to collect water quality data from each monitoring point and transmit the data to the central processing system for pre-processing; Data analysis module, used to extract water quality data features and analyze data using dynamic parallel kernel partial least squares method to identify key water quality change factors; Water quality prediction module, used to build a water quality prediction model to predict future water quality changes at each monitoring point; The adjustment module is used to calculate the water environment vulnerability index of each monitoring point and automatically adjust the amount of chemical reagents required for the monitoring point according to the vulnerability index; The evaluation module is used to monitor the changes in water quality during the sewage treatment process and compare the changes in environmental parameters before and after treatment, evaluate the impact of the sewage treatment process on the environment and adjust the sewage treatment process parameters.
5. A computer device comprising: Memory and processor; The memory stores a computer program, characterized in that when the processor executes the computer program, the steps of the sewage treatment monitoring method based on the Internet of Things described in any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the sewage treatment monitoring method based on the Internet of Things described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Sewage treatment system and sewage treatment method
CN117699958A
