A sewage near-zero discharge intelligent monitoring method and system based on internet of things perception
By constructing a multi-dimensional water quality fingerprint map and a dynamic material tracking chain, combined with a full-process digital twin model, the problems of poor spatiotemporal alignment of data and difficulty in anomaly location in the near-zero wastewater discharge monitoring system were solved. This enabled high-precision state perception of the wastewater treatment system and anomaly source location, thereby improving the system's intelligent decision-making capabilities.
Patent Information
- Application Number
- CN202611695079.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-30
- Publication Date
- 2026-11-27
AI Technical Summary
Existing near-zero wastewater discharge monitoring systems lack online sensing of key process parameters such as membrane pressure difference, flux changes, and concentrate enrichment factor. Traditional monitoring methods suffer from lag, high wiring costs, poor scalability, and difficulty in achieving high-precision cross-unit correlation model prediction and control. Furthermore, the large sensor errors make it difficult to meet the requirements for reliable compliance determination.
By deploying sensing terminals to acquire multi-source monitoring data in real time, a multi-dimensional water quality fingerprint map and a dynamic material tracking chain are constructed. The entire process digital twin model is integrated to achieve the decomposition of spatiotemporal coupling relationship and accurate location of anomaly sources. Adaptive acquisition and filtering technologies are used to remove invalid data, and a multi-dimensional anomaly judgment matrix is constructed for comprehensive scoring.
It achieves intelligent perception of the entire process status, significantly improves the effectiveness and completeness of monitoring data, enhances the fault tolerance and adaptability of the monitoring system, accurately locates the source of anomalies and determines the propagation path, and improves the intelligent decision-making level of the monitoring system.
Smart Images

Figure CN123179255A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water environment monitoring and wastewater treatment technology, and more specifically, to an intelligent monitoring method and system for near-zero wastewater discharge based on Internet of Things (IoT) sensing. Background Technology
[0002] Near-zero discharge of wastewater has become a rigid requirement in the industrial and municipal wastewater treatment sectors. Current near-zero discharge mainly relies on a combination of processes such as membrane treatment, advanced oxidation, and evaporation crystallization. However, its operation faces multiple challenges, including membrane fouling, evaporation scaling, and strong coupling of multiple process units. An anomaly in any stage can escalate, leading to excessive permeate levels or system shutdown. However, existing monitoring coverage is mostly limited to the final discharge point, lacking online sensing of key process parameters such as membrane pressure difference, flux changes, and concentrate enrichment factor, making anomaly tracing difficult. Traditional manual sampling and wired communication methods suffer from significant lag, high wiring costs, poor scalability, and a lack of network interruption recovery and self-diagnostic mechanisms, making them prone to packet loss and drift in industrial interference environments. Independent operation of individual instruments can only achieve simple over-limit alarms, failing to establish cross-unit correlation models to predict the transmission impact of water quality fluctuations on subsequent processes and provide proactive control suggestions.
[0003] More importantly, the near-zero emission boundary places stringent demands on monitoring accuracy. When effluent COD is below 20 mg / L and total nitrogen is below 10 mg / L, the relative error of conventional sensors can exceed ±15%, with zero-point and temperature drift issues being particularly prominent, making it difficult to meet the requirements for reliable compliance determination. Although the rapid development of IoT wireless sensor networks (LoRa, NB-IoT), edge computing, and deep learning algorithms in recent years has provided new paths to solve these problems, enabling low-power, high-density networking, source data preprocessing, and multi-dimensional time-series correlation mining and trend prediction, there is currently a lack of a mature monitoring solution that systematically integrates these technologies and adapts to the specific process constraints of near-zero emissions (such as optimized sensor deployment, spatiotemporal data alignment, and virtual soft measurement). Therefore, how to construct a full-process intelligent monitoring method based on IoT sensing to achieve high-density sensing, cross-unit collaborative early warning, and precise control is an urgent problem to be solved. Summary of the Invention
[0004] To address the aforementioned technical problems, this invention proposes an intelligent monitoring method and system for near-zero wastewater discharge based on Internet of Things (IoT) sensing. This method solves the technical problems of poor spatiotemporal alignment of data in existing monitoring systems, inability to sense key parameters online, difficulty in characterizing the coupling relationship between units, and difficulty in anomaly location. It achieves intelligent sensing of the entire process status and accurate location of anomaly sources.
[0005] The first aspect of this invention provides an intelligent monitoring method for near-zero wastewater discharge based on Internet of Things (IoT) sensing, comprising the following steps: Multi-source monitoring data is acquired in real time through sensing terminals deployed in each process unit of the near-zero wastewater discharge treatment system; Based on the multi-source monitoring data, a multi-dimensional water quality fingerprint spectrum is constructed. The multi-dimensional water quality fingerprint spectrum is matched with the normal operating condition benchmark fingerprint database, the water quality deviation index of each process unit is calculated, and the preliminary judgment result of the anomaly type is output. Based on the hydraulic residence time of each process unit, the migration path of water in the treatment process is virtually marked to form a dynamic material tracking chain. Potential fault sources are identified by comparing the differences in water quality indicators of the same water mass at upstream and downstream nodes. By integrating the multi-source monitoring data with the material tracking chain, a full-process digital twin model is constructed, and virtual sensing variables of each process unit are output in real time. Using the multi-source monitoring data and the virtual sensing variables as input, the spatiotemporal coupling relationship between each process unit is decomposed into two dimensions, namely, co-frequency correlation and time-delay correlation, and then encoded in parallel. The dual-branch coding results are fused to predict the state change trend and confidence interval of each process unit in the future multiple time steps. A multidimensional anomaly determination matrix is constructed and comprehensively scored to generate a full-link monitoring conclusion that includes anomaly source location information and propagation path.
[0006] In this solution, multi-source monitoring data is acquired in real time through sensing terminals deployed in each process unit of the near-zero wastewater discharge treatment system, specifically including: Sensing terminals, including water quality spectral sensors, electrochemical sensors, pressure sensors, temperature sensors, and flow sensors, are deployed at preset monitoring points in each process unit. Before data acquisition, each sensing terminal injects an ultrasonic pulse signal into the flow path. By detecting the attenuation characteristics of the ultrasonic pulse signal after propagation through the flow path, it is determined whether there are air bubbles or interference from pipe wall deposits in the current flow path. If interference is present, the current data acquisition is marked as invalid and temporarily stored. Data acquisition is repeated after the flow path is cleaned. Each sensing terminal automatically matches the signal amplification factor according to the conductivity range of the current water sample, dynamically adjusts the filtering parameters by tracking the background noise in real time, and automatically adjusts the acquisition frequency according to the rate of change of the measured parameters, and submits the preprocessed data packets to the sending queue. After receiving the data packet, the edge computing gateway reassembles it in an orderly manner according to the timestamp and node number to generate a time-aligned standardized multi-source monitoring data sequence.
[0007] In this scheme, the extraction of water quality characteristic fingerprints specifically includes: The ultraviolet-visible full-band absorption spectrum, three-dimensional fluorescence spectrum and attenuated total reflectance infrared spectrum of water samples from each process unit are extracted from the multi-source monitoring data and then preprocessed to form a standardized water quality fingerprint vector. During normal operation, historical water quality fingerprint samples under different operating conditions of each process unit are collected. The cluster center and number of clusters are automatically determined by adaptive clustering based on density peak. The samples are divided into several operating condition clusters. The center vector of each cluster is used as the benchmark fingerprint and the cluster sample density is used as the confidence weight to construct the benchmark fingerprint database of each process unit. The current water quality fingerprint vector is matched cluster by cluster with the benchmark fingerprint database of the corresponding process unit. A hybrid metric that integrates Euclidean distance and cosine similarity is used to calculate the comprehensive similarity. The maximum similarity is taken and corrected with the corresponding confidence weight. The water quality deviation index is calculated based on the corrected similarity. The water quality deviation index is compared with a preset multi-level threshold range to determine the current operating condition. When there is a significant deviation or a serious anomaly, the corresponding preliminary judgment result of the anomaly type is output according to the spectral feature with the lowest matching degree.
[0008] In this solution, forming a dynamic material tracking chain specifically includes: Using the outlet of the inlet regulating tank as the initial marker injection point, virtual tracer markers carrying identifiers and injection timestamps are periodically generated at preset time intervals. The theoretical hydraulic residence time is calculated based on the effective volume of each process unit and the current real-time influent flow rate. Then, a correction factor and a temperature compensation term obtained by mapping the real-time operating parameters of each process unit are introduced to dynamically compensate the theoretical hydraulic residence time, thus obtaining the real-time dynamic hydraulic residence time. Based on the injection timestamp of the virtual tracer, the real-time dynamic hydraulic residence time of each process unit is superimposed to calculate the predicted time window for the virtual tracer to reach the inlet and outlet of each process unit. The monitoring data of each process unit are matched in the time domain according to the collection timestamp and the predicted time window. The monitoring data belonging to the same virtual tracer constitute the dynamic material tracking chain of the virtual tracer. The theoretical mass difference of the target pollutant between the inlet and outlet of each process unit is calculated based on the principle of material conservation. The theoretical mass difference is then compared with the actual removal amount of each process unit to calculate the material conservation closure residual of the tracking chain. If the closure residual is less than the preset tolerance, the tracking chain is deemed valid and output.
[0009] In this scheme, potential sources of failure are identified by comparing differences in water quality indicators of the same water mass at upstream and downstream nodes. Specifically, this includes: Based on the dynamic material tracking chain, the water quality index monitoring values of the virtual tracer when it flows through the inlet and outlet of the current process unit are extracted, the actual removal amount of the current process unit is calculated, and the actual removal amount is divided by the theoretical maximum removable amount of the current process unit under the current operating conditions to obtain the real-time removal contribution rate of the current process unit. For each process unit, a historical removal contribution rate time series window with an adaptively set maintenance length is used. When the deviation between the current removal contribution rate and the mean within the window exceeds three times the historical standard deviation within the window, it is determined that the removal contribution rate of the process unit has abruptly changed. In response to a sudden change in the removal contribution rate, the preliminary judgment result of the anomaly type of the current process unit is retrieved, a three-dimensional fault feature vector is constructed and matched with a preset fault feature knowledge base, and the fault mode with the highest similarity is selected as the preliminary locking result. A consistency check is performed along the upstream and downstream of the dynamic material tracking chain. If there is a reasonable causal sequence relationship between the upstream and downstream mutations, the locking result is confirmed. Otherwise, the first unit in the dynamic material tracking chain that shows abnormal characteristics is taken as the fault source and the locking result is output.
[0010] In this solution, a full-process digital twin model is constructed to output virtual sensing variables of each process unit in real time, specifically including: A full-process topology is constructed with each process unit as a node and the direction of water flow as an edge. The temporal relationship provided by the dynamic material tracking chain is used as an anchor point to perform spatiotemporal alignment on the monitoring data of each process unit, generating a full-process state space matrix. A full-process digital twin model is constructed based on the topology and state space matrix. The theoretical value of the outlet is derived from the inlet state and operating parameters of the process unit. The theoretical value of the outlet is compared with the actual monitoring value. If the deviation exceeds the tolerance, the outlet monitoring value is reconstructed and corrected according to the material conservation constraints and the upstream water quality. The boundary conditions of the digital twin model are updated using the reconstructed and corrected data. Using the digital twin model with the current inlet status and operating parameters of each process unit as input, a full-process simulation is performed. The simulated values of all state variables output by the digital twin model at the target process unit are extracted and used as virtual sensing variable estimates of each parameter of the process unit.
[0011] This scheme predicts the state change trends and confidence intervals of each process unit over multiple time steps in the future, specifically including: The monitoring data and virtual sensor variables of all process units at the current time and a preset number of historical times are organized into multi-node historical state tensors and then standardized. A multi-head self-attention mechanism is used to encode the system-wide spatial state snapshots at each time step, and the synchronization influence weights between nodes are calculated to obtain the co-frequency correlation coding sequence at each historical time step. Calculate the time delay correlation coefficient of any two process unit state sequences under different lag step lengths, select the lag step length corresponding to the peak value as the optimal transmission delay step length, and perform time domain alignment on each unit state sequence accordingly. Use a graph attention network to output the time delay correlation coding vector. The co-frequency associated coding sequence and the time-delay associated coding vector are fused and input into a temporal convolutional network to predict the predicted values of each parameter for the next K time steps. The Monte Carlo random deactivation method is used to sample multiple times, and the mean of the sampling results is used as the final predicted value, and the standard deviation is used as the confidence interval.
[0012] This solution generates end-to-end monitoring conclusions that include anomaly source location information and propagation path, specifically including: A multidimensional anomaly determination matrix is constructed with each process unit as the row and anomaly determination indicators as the column. The anomaly determination indicators include water quality deviation index, degree of deviation of removal contribution rate, distance of virtual sensing variable from safety boundary and state deterioration slope. An influence transmission coefficient matrix is constructed using the synchronous influence weight between process units and the optimal transmission delay step size. This matrix is then used to correct the multidimensional anomaly judgment matrix, so that the severity of the anomaly reflects the actual impact of the upstream anomaly on the downstream unit after it propagates through the material. The modified multidimensional anomaly determination matrix is assigned adaptive weights to each index and then summed to obtain the comprehensive score of each process unit. A weighted directed anomaly propagation graph is constructed using the comprehensive score of each process unit as the node weight and the influence transmission relationship between process units as the edge. Starting from the node whose score exceeds the warning threshold, the first node that exceeds the threshold and none of the upstream nodes exceed the threshold is identified as the anomaly source. The path from the anomaly source to the downstream warning node is determined as the anomaly propagation path. By integrating the comprehensive scores of each unit, the abnormal source node, the abnormal propagation path, and the preliminary judgment results of the abnormal type, a full-link monitoring conclusion is generated, which includes the health level, abnormal source location information, propagation path, and fault type.
[0013] A second aspect of the present invention provides an intelligent monitoring system for near-zero wastewater discharge based on Internet of Things (IoT) sensing, the system comprising: The perception layer module is used to collect multi-source monitoring data in real time. The perception terminal communicates with the edge computing gateway through a self-organizing wireless sensor network. Each perception terminal starts collecting data synchronously and adjusts the collection frequency adaptively according to the working conditions. Water quality fingerprint extraction module: used to extract the spectral features of water samples from each process unit from the multi-source monitoring data to construct a standardized water quality fingerprint vector, match the current fingerprint with the preset benchmark fingerprint library, calculate the water quality deviation index and output the preliminary judgment result of the anomaly type; Material tracking module: used to generate virtual tracer tags and perform time-domain correlation matching of monitoring data in combination with the dynamic hydraulic residence time of each process unit to form a dynamic material tracking chain. Based on the material tracking chain, the removal contribution rate of each process unit is calculated, and based on the removal contribution rate and the preliminary judgment result of the anomaly type, potential fault sources are identified. Digital twin module: Used to build a full-process digital twin model with each process unit as a node and the water flow direction as an edge, to perform the step-by-step transmission and deduction of the state variables of the whole process, and to output the virtual sensing variables of each process unit in real time. Dual-branch spatiotemporal decoupling prediction module: This module is used to decompose the spatiotemporal coupling relationship between each process unit into two dimensions, namely, co-frequency correlation and time-delay correlation, and encode them in parallel. It then fuses the dual-branch coding results to predict the state change trend and confidence interval of each process unit in the future multiple time steps. The end-to-end anomaly comprehensive judgment module is used to integrate the output results of each module to construct a multi-dimensional anomaly judgment matrix and perform comprehensive scoring to generate end-to-end monitoring conclusions that include anomaly source location information and propagation path.
[0014] Compared with the prior art, the beneficial effects of the present invention are as follows: At the data perception level, this invention completely eliminates sampling time deviations between multiple sensors through a synchronous trigger acquisition mechanism, and automatically removes invalid data caused by air bubbles and pipe wall deposits through an embedded flow path state determination mechanism. Combined with adaptive conditioning and variable sampling strategies, this ensures that the monitoring system automatically intensifies data acquisition during periods of water quality fluctuation and reduces load during steady-state conditions, significantly improving the effectiveness and completeness of monitoring data. At the fingerprint recognition level, this invention constructs a multidimensional water quality fingerprint spectrum that integrates ultraviolet-visible absorption spectroscopy, three-dimensional fluorescence spectroscopy, and attenuated total reflectance infrared spectroscopy. This elevates water quality monitoring from single numerical comparison to the spectrum recognition level. Combined with an adaptive clustering benchmark library and multi-level threshold matching, it can not only detect water quality deviations but also preliminarily identify pollutant types, significantly shortening the response cycle from anomaly detection to type determination.
[0015] In terms of expanding perception dimensions and predictive capabilities, this invention constructs a full-process digital twin model that combines mechanistic framework and data-driven hybrid modeling. This enables virtual sensing output of unmeasurable key parameters such as membrane fouling layer thickness and concentrate supersaturation. Furthermore, it seamlessly switches to virtual substitute signals in case of physical sensor failure, significantly improving the fault tolerance and operational continuity of the monitoring system. Regarding spatiotemporal correlation characterization, this invention decomposes the spatiotemporal coupling of each process unit into two independent dimensions—synchronous fluctuations at the same frequency and time-delayed transmission delay—in parallel encoding. This effectively overcomes the shortcomings of traditional single-model approaches that confuse these two dimensions, greatly improving the accuracy and interpretability of end-to-end state prediction. In terms of comprehensive judgment, this invention integrates multi-dimensional information to construct an anomaly judgment matrix. Through weighted directed graph reverse tracing, it accurately locates the anomaly source and determines the complete propagation path, providing maintenance personnel with clear handling guidelines and comprehensively enhancing the monitoring system's adaptability and intelligent decision-making level under complex operating conditions. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments or examples of the present invention, the accompanying drawings used in the embodiments or examples will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained according to these drawings without creative effort.
[0017] Figure 1 A flowchart of a near-zero wastewater discharge intelligent monitoring method based on Internet of Things (IoT) sensing is shown. Figure 2 The flowchart for extracting water quality characteristic fingerprints is shown; Figure 3 A flowchart is shown to generate end-to-end monitoring conclusions that include anomaly source location information and propagation path; Figure 4 A block diagram of a near-zero wastewater discharge intelligent monitoring system based on Internet of Things (IoT) sensing is shown. Detailed Implementation
[0018] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.
[0019] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0020] Example 1 like Figure 1 As shown, this embodiment provides a near-zero discharge intelligent monitoring method for wastewater based on Internet of Things (IoT) sensing, including: Step S1: Acquire multi-source monitoring data in real time through sensing terminals deployed in each process unit of the near-zero wastewater discharge treatment system.
[0021] It should be noted that the near-zero wastewater treatment system includes at least an influent equalization tank, an ultrafiltration membrane unit, a reverse osmosis membrane unit, an advanced oxidation unit, and an evaporation crystallization unit. Each process unit is equipped with multiple types of sensing terminals, including water quality spectral sensors, electrochemical sensors, pressure sensors, temperature sensors, and flow sensors. Each sensing terminal communicates with an edge computing gateway through a self-organizing wireless sensor network. This self-organizing wireless sensor network uses a dynamic routing protocol, supporting plug-and-play sensing nodes and autonomous removal of faulty nodes. All sensing terminals are synchronously started to collect data using an external trigger source, ensuring that the sampling start time of each sensor is consistent. Before data collection, each sensing terminal injects an ultrasonic pulse signal into the flow path. By detecting the attenuation characteristics of the ultrasonic pulse signal after propagation through the flow path, it determines whether there is air bubble entrainment or interference from pipe wall deposits in the current flow path. If interference is present, the current data collection is marked as invalid and temporarily stored, and data collection is resumed after the flow path is cleaned. Each sensing terminal automatically matches the signal amplification factor based on the conductivity range of the current water sample, ensuring the acquired signal remains within the optimal quantization range of the analog-to-digital converter. It also dynamically adjusts filtering parameters in real-time to suppress power frequency interference and equipment noise. Simultaneously, each sensing terminal automatically adjusts its sampling frequency based on the rate of change of the measured parameter: reducing the sampling frequency in steady-state conditions to decrease data transmission load, and increasing the sampling frequency during transient fluctuations to capture critical change details. Each sensing terminal submits pre-processed data packets to a transmission queue according to priority, uploading them to the edge computing gateway using a hybrid transmission protocol based on channel contention and priority scheduling. Urgent data can preempt channel resources to ensure critical sampling data is uploaded with minimal latency. Upon receiving the data packets from each sensing terminal, the edge computing gateway reassembles them in an orderly manner based on timestamps and node numbers, forming a time-aligned, standardized multi-source monitoring data sequence.
[0022] Step S2: Construct a multidimensional water quality fingerprint spectrum based on the multi-source monitoring data, match the multidimensional water quality fingerprint spectrum with the normal operating condition benchmark fingerprint database, calculate the water quality deviation index of each process unit, and output the preliminary judgment result of the anomaly type.
[0023] It should be noted that, as Figure 2As shown, the UV-Vis full-band absorption spectrum, three-dimensional fluorescence spectrum, and attenuated total reflectance infrared spectrum of water samples from each process unit were extracted from the acquired multi-source monitoring data. After spectral band splicing and normalization of the three spectral data collected from the same water sample at the same time, a feature screening method based on the maximum information coefficient was used to remove redundant features in the original fingerprint vector whose mutual information with other spectral band feature values was lower than a preset threshold. Representative and complementary feature subsets were retained to form a standardized water quality fingerprint vector for the water sample at the current time. During normal operation, historical water quality fingerprint vector samples of each process unit under various operating conditions were continuously collected to form the benchmark sample set for each unit. An adaptive clustering algorithm based on density peaks was applied to the benchmark sample sets of each unit to automatically determine the cluster radius and the number of cluster centers, dividing the sample set into several operating condition clusters. The center vector of each operating condition cluster was used as the benchmark fingerprint of that cluster, and the sample distribution density of each cluster was used as the confidence weight of the benchmark fingerprint. Finally, a differentiated benchmark fingerprint library containing multiple cluster benchmark fingerprints and their confidence weights was constructed for each process unit.
[0024] The water quality fingerprint vector acquired at the current sampling time is matched cluster by cluster with the baseline fingerprint database of the corresponding process unit, and the comprehensive similarity between the water quality fingerprint vector and each cluster of baseline fingerprints is calculated. The comprehensive similarity adopts a hybrid metric combining Euclidean distance and cosine similarity to take into account the matching quality of the fingerprint vector in both amplitude and shape dimensions, expressed as: ,in This is a water quality fingerprint vector. As the baseline fingerprint vector, For Euclidean distance, For cosine similarity, , The weighting coefficient is used. The maximum comprehensive similarity among all clusters is taken as the matching similarity of the current fingerprint, and the corrected matching similarity is obtained by weighting the cluster corresponding to the maximum similarity. The water quality deviation index is calculated based on the corrected matching similarity, and the water quality deviation index has an inverse monotonic relationship with the corrected matching similarity. The calculated water quality deviation index is compared with a preset multi-level threshold range: if the deviation index is less than the first threshold, the current operating condition is judged to be normal; if the deviation index is between the first threshold and the second threshold, it is judged to be slightly deviated from the water quality, and the initial judgment result of slow water quality deterioration is output; if the deviation index is between the second threshold and the third threshold, it is judged to be significantly deviated from the water quality, and the features of several spectral segments with the lowest matching degree between the current water quality fingerprint vector and the benchmark fingerprint database are further extracted, and the corresponding anomaly type initial judgment result is output based on the pollutant type identifiers corresponding to these features; if the deviation index exceeds the third threshold, it is judged to be severely abnormal in water quality, and the initial judgment result of new pollutant intrusion or process failure is output by combining the overall similarity distribution characteristics of the current fingerprint and all clusters in the benchmark fingerprint database.
[0025] Step S3: Based on the hydraulic residence time of each process unit, the migration path of water in the treatment process is virtually marked to form a dynamic material tracking chain. Potential fault sources are identified by comparing the differences in water quality indicators of the same water mass at upstream and downstream nodes.
[0026] It should be noted that, using the outlet of the influent regulating tank as the initial marker injection point, virtual tracer markers are periodically generated at preset time intervals. Each virtual tracer marker carries an identifier and an injection timestamp. These virtual tracer markers flow through subsequent process units with the water, and are identified and their arrival times recorded by sensing terminals at the inlet and outlet of each process unit, respectively, forming an arrival time sequence of the virtual tracer markers in each process unit. These virtual tracer markers do not introduce any physical substances into the water; they exist only in the monitoring system as data logic.
[0027] The theoretical hydraulic retention time is calculated based on the effective volume of each process unit and the current real-time influent flow rate. ,in The effective volume of the process unit The current real-time influent flow rate is used. A correction factor is introduced to dynamically compensate for the theoretical hydraulic residence time. This correction factor is obtained by mapping at least one operating parameter from each process unit, including real-time stirring speed, cross-flow velocity at the film surface, and evaporation circulation flow rate. A compensation term for the effect of temperature on liquid viscosity is also included to accurately reflect the residence time drift caused by deviations from the design conditions, ultimately yielding the dynamic hydraulic residence time. ,in This is a correction factor obtained by mapping operating parameters such as stirring speed, cross-flow velocity at the film surface, and evaporation circulation flow rate. This is a compensation term for the effect of temperature on liquid viscosity. For each virtual tracer, based on the injection timestamp, the real-time dynamic hydraulic residence time of each process unit is superimposed to calculate the predicted time window for the virtual tracer to reach the inlet and outlet of each process unit. The sampling data of each process unit in the acquired multi-source monitoring data are correlated and matched with the predicted time window according to the acquisition timestamp to determine the virtual tracer to which the sampling data belongs. The sampling data belonging to the same virtual tracer and passing through the inlet and outlet of each process unit sequentially along the flow direction constitute the dynamic material tracking chain of the virtual tracer.
[0028] The water quality index data contained in each of the constructed dynamic material tracking chains are arranged according to the process flow sequence, and the theoretical mass difference of the target pollutant between the inlet and outlet of each process unit is calculated based on the principle of material conservation. ,in These are the inlet and outlet flow rates of the process unit, respectively. These represent the target pollutant concentrations at the inlet and outlet, respectively. The theoretical mass difference is then compared with the actual removal rate of each process unit to calculate the mass conservation closure residual of the tracing chain. , This represents the actual amount removed by the process unit (by mass). If the closed residual is less than the preset tolerance, the material tracking chain is deemed valid and output for subsequent steps. If the closed residual is greater than the preset tolerance, data mismatch or sensor anomaly is determined within the material tracking chain, triggering time synchronization verification and data acquisition validity review of the sensing terminals at the mismatch nodes. Based on the review results, mismatched data in the tracking chain is removed or corrected to ensure that the output dynamic material tracking chain meets the mass conservation constraint.
[0029] Based on this, using a dynamic material tracking chain, the water quality index monitoring values corresponding to the same virtual tracer marker at the inlet and outlet of the process unit are extracted, and the actual removal amount of the water quality index by the process unit is calculated. The actual removal amount is the absolute difference or relative percentage between the outlet concentration and the inlet concentration of the process unit. Dividing the actual removal amount by the theoretical maximum removable amount of the process unit under the current operating conditions yields the real-time removal contribution rate of the process unit. The theoretical maximum removable amount is determined by the design parameters of the process unit, the upper limit of mass transfer efficiency under the current operating conditions, and the thermodynamic equilibrium limit.
[0030] A fixed-length historical removal contribution rate time series window is maintained for each process unit. The length of the window is adaptively set according to the hydraulic residence time of the process unit to cover the complete operating characteristics of the process unit within its normal fluctuation cycle. At each new sampling time, the deviation between the current real-time removal contribution rate and the average removal contribution rate within the historical window is calculated, and the deviation is compared with a multiple of the historical standard deviation within the window. When the deviation exceeds three times the historical standard deviation within the window, a sudden change in the removal contribution rate of the process unit is determined, and the direction of the change is recorded as either an upward or downward change.
[0031] In response to a sudden change in the removal contribution rate of a process unit, the preliminary judgment results of the anomaly type output by the process unit at the same time segment are retrieved, and a three-dimensional fault feature vector is constructed, consisting of the direction and magnitude of the change in removal contribution rate and the preliminary judgment result of the anomaly type. The three-dimensional fault feature vector is then matched with the feature vectors of each fault mode in a preset fault feature knowledge base, which includes membrane fouling fault modes, membrane rupture and leakage fault modes, advanced oxidation failure fault modes, and evaporation crystallization and fouling fault modes, along with their corresponding standard three-dimensional feature vectors. The fault mode with the highest similarity is selected as the preliminary locking result. Simultaneously, the three-dimensional fault feature vector is subjected to a propagation consistency check along the upstream and downstream directions of the dynamic material tracking chain. If a reasonable causal temporal relationship exists between the change in the removal contribution rate of the upstream unit and the change in the removal contribution rate of the downstream unit, the preliminary locking result is confirmed and the locking result is output; otherwise, it is determined to be cross-interference, and the first unit in the dynamic material tracking chain exhibiting an anomaly is identified as the fault source, and the locking result is output again.
[0032] Step S4: Integrate the multi-source monitoring data with the material tracking chain to construct a full-process digital twin model and output the virtual sensing variables of each process unit in real time.
[0033] It should be noted that a full-process topology diagram is constructed using each process unit as a node and the water flow direction indicated by the dynamic material tracking chain as an edge. The water quality indicators and operating parameters of each process unit from the acquired multi-source monitoring data are used as multi-dimensional state feature vectors of the nodes. The migration time sequence relationship of the same water mass between nodes provided by the dynamic material tracking chain is used as a time anchor point. The multi-dimensional state feature vectors of each node are time-sequentially aligned along the topology to form a full-process state space matrix. The rows of the state space matrix represent the state vectors of each process unit at the same time, and the columns represent the state sequences of the same process unit at different times. Each element in the matrix carries its associated virtual tracer information, ensuring physical consistency of the state data in both spatial and temporal dimensions. Based on the topology and state space matrix, a full-process digital twin model is constructed. This digital twin model uses the operating parameters of each process unit as input variables and the outlet water quality indicators and operating parameters of each unit as output variables. Through the serial relationship between adjacent nodes in the topology, the output variables of each unit are used as input variables for downstream nodes, realizing the step-by-step transmission and deduction of the full-process state variables.
[0034] Based on the interconnected relationships of adjacent nodes in the overall process topology diagram, the theoretical state vector at the process unit outlet is derived using the inlet state vector of each process unit as input and the operating parameters and equipment characteristic parameters of the process unit itself as transformation conditions. The theoretical state vector is then compared with the actual monitored state vector at the process unit outlet to calculate the deviation vector. If the deviation rate of each element in the deviation vector is less than the preset tolerance, the state data of the process unit is deemed to meet physical consistency. If the deviation rate of any element in the deviation vector exceeds the preset tolerance, the state data of the process unit is deemed to have physical inconsistency. Based on the upstream water quality, the transformation characteristics under historical normal operating conditions of the process unit, and material conservation constraints, the actual monitored value at the outlet is reconstructed and corrected to ensure that the corrected outlet state vector is as close as possible to the actual monitored value while meeting the physical consistency constraints. The boundary conditions of the digital twin model are updated using the reconstructed and corrected data to ensure that the derivation results of the digital twin model are consistent with the actual monitored data.
[0035] Using the aforementioned digital twin model, the current inlet status and operating parameters of each process unit are used as inputs to drive the model to perform a full-process simulation. The simulated values of all state variables output by the digital twin model at the target process unit are extracted and used as virtual sensing variable estimates for each parameter of the process unit. These state variables include key process parameters that cannot be directly measured online and measurable parameters from deployed physical sensors. For key process parameters that cannot be directly measured online, a multi-condition joint search is performed on the historical database using the current inlet status, outlet status, and operating parameters as matching conditions. Multiple historical records that meet the matching conditions are selected. The values of the same key process parameter in these multiple historical records are weighted and averaged. The weighting coefficient is determined by the feature similarity between each historical record and the current operating condition, resulting in optimized estimates of the key process parameters. When the physical sensors are working normally, the estimated deviation of the virtual sensing variables is calculated using the reconstructed and corrected outlet status vector as a reference. This estimated deviation is then fed back as a correction amount in real time to dynamically fine-tune the output values of the virtual sensing variables. When the physical sensors of a process unit malfunction or the output signal is abnormal, the weighted average of the key process parameter values corresponding to multiple historical records that meet the highest matching conditions in the historical database is called as the virtual substitute value of the physical sensors, using the process unit's inlet state vector and operating parameters as input conditions, to ensure that the state vector of the process unit remains continuous and complete in the entire process state space matrix.
[0036] Step S5: Using the multi-source monitoring data and the virtual sensing variables as input, the spatiotemporal coupling relationship between each process unit is decomposed into two dimensions, namely, co-frequency correlation and time-delay correlation, and then encoded in parallel. The dual-branch coding results are fused to predict the state change trend and confidence interval of each process unit in the future multiple time steps.
[0037] It should be noted that the multi-source monitoring data and virtual sensor variables of all process units at the current time t and the previous L historical times are organized according to the process unit order and parameter type to construct a multi-node historical state tensor with dimensions N×P×L, where N is the total number of process units, P is the total number of parameters contained in each unit, and L is the length of the historical backtracking window. Each dimension of the parameters in the state tensor is then standardized.
[0038] The state vectors of each unit at time t are extracted from the standardized multi-node historical state tensor to form a snapshot of the entire system's spatial state at time t for N nodes. A multi-head self-attention mechanism is used to encode this spatial state snapshot. By calculating the query-key-value dot product attention score between the state vectors of any two process units at the same time, the synchronization influence weight matrix of each node at the current time is obtained. Each element in the synchronization influence weight matrix represents the instantaneous correlation strength between the corresponding two process units at the same time section, reflecting the synchronization fluctuation relationship caused by shared water intake conditions, shared auxiliary systems, or process series coupling. Multiple attention heads in the multi-head self-attention mechanism focus on synchronization correlation patterns in different dimensions. The outputs of each head are concatenated and fused to obtain the same-frequency correlation encoding vector at time t. The above process is repeated for each time point within the historical backtracking window to obtain the same-frequency correlation encoding sequence for each historical time point.
[0039] For any two process units i and j, take their state sequences within the historical backtracking window and calculate the time delay correlation coefficient under different lag step sizes d. The time delay correlation coefficient is obtained by fixing the state sequence of unit i and shifting the state sequence of unit j forward by d time steps, and then calculating the Pearson correlation coefficient between them. The value of d ranges from 0 to the maximum number of time steps corresponding to the material transfer delay from the upstream unit to the downstream unit, and is expressed as: , Let i be the state value of process unit i at time t. Let j be the state value of process unit j at time t+d. , For process unit i, j The mean of states within the historical backtracking window To efficiently calculate the length, the number of matching sample pairs in the sequence.
[0040] The optimal transmission delay step size between unit i and unit j is selected as the lag step size that makes the delay correlation coefficient reach its peak. ,in This represents the maximum number of time steps corresponding to the material transfer delay from the upstream unit to the downstream unit. Based on the optimal transfer delay step size, the state sequences of each unit are shifted in the opposite direction according to their respective time offsets relative to the reference unit, so that the state sequences of units with upstream and downstream relationships are realigned to the same reference time on the time axis. For the time-domain aligned state sequences of each unit, a graph attention network is used for spatial correlation encoding. This graph attention network uses each process unit as a node, and the combination of the optimal transfer delay step size between units and the time delay correlation coefficient as the initial value of the edge weights. Through an attention mechanism, it adaptively learns the feature aggregation weights of each node under different delay relationships, and outputs a time delay correlation encoding vector.
[0041] The co-frequency correlation encoding sequence and the time-delay correlation encoding vector are cross-concatenated and fused according to their respective correspondences in the time and feature dimensions to obtain a fused spatiotemporal correlation feature vector. This fused spatiotemporal correlation feature vector is input into a sequence prediction module based on a temporal convolutional network. This temporal convolutional network employs dilated convolution and residual connection structures, expanding the receptive field layer by layer to cover historical dependencies at different scales, and outputs predicted values for each parameter of each process unit over the next K time steps. Simultaneously, a Monte Carlo random inactivation method is used to randomly sample neurons in the temporal convolutional network multiple times. Each sampled subnetwork generates a set of predicted values, and the mean of the predicted value set is calculated as the final predicted value. The standard deviation of the predicted value set is calculated as the confidence interval of the predicted value at the corresponding time step.
[0042] The relationship between ultrafiltration membrane units and reverse osmosis membrane units is illustrated using an example.
[0043] All process units' current time t and previous L historical time points' multi-source monitoring data and virtual sensor variables are organized according to process unit order and parameter type, constructing an N×P×L multi-node historical state tensor, which is then standardized. In the same-frequency correlation branch, a multi-head self-attention mechanism captures the synchronous linkage response of ultrafiltration membrane units and reverse osmosis membrane units at the same time due to shared feed water conditions (such as fluctuations in the influent water quality of the same feed water equalization tank) or shared auxiliary systems (such as the same antiscalant dosing system). The self-attention mechanism calculates the query-key-value dot product attention score between the state vectors of the two units to obtain the synchronous influence weight of the two at the current time, outputting the same-frequency correlation encoding sequence, reflecting the degree of direct influence of the instantaneous change in the effluent water quality of the ultrafiltration membrane unit on the reverse osmosis membrane unit at the same time section. The influence is mainly generated when there is no significant material transport delay under shared operating conditions. In the time-delay correlation branch, for ultrafiltration membrane units and reverse osmosis membrane units, due to the series connection, the permeate water of the ultrafiltration membrane unit enters the reverse osmosis membrane unit after being transported through pipelines, and there is a transport delay between the two determined by the material flow. The time-delay correlation branch calculates the time-delay correlation coefficient between the state sequences of the ultrafiltration membrane unit and the reverse osmosis membrane unit at different lag steps, and selects the lag step that maximizes the correlation coefficient as the optimal transmission delay step. Assuming the optimal transmission delay step corresponds to time τ, this means that the state change of the ultrafiltration membrane unit at a certain moment will be reflected in the monitoring data of the reverse osmosis membrane unit after time τ. Based on the optimal transmission delay step, the time-delay correlation branch realigns the state sequences of the ultrafiltration and reverse osmosis membrane units on the time axis, placing the historical data of the ultrafiltration membrane unit and the delayed historical data of the reverse osmosis membrane unit on the same time reference. Then, a graph attention network is used for spatial correlation encoding, outputting a time-delay correlation encoding vector.
[0044] The synchronous correlation coding sequence output from the synchronous correlation branch and the time-delay correlation coding vector output from the time-delay correlation branch are cross-concatenated and fused to obtain a fused spatiotemporal correlation feature vector that contains both synchronous linkage information and delayed transmission information. After the fused feature is input into a temporal convolutional network, the network can accurately predict the permeate water quality change trend of the reverse osmosis membrane unit over multiple time steps in the future, and provide the confidence interval of the predicted value. The dual-branch decoupling design overcomes the defect of traditional single prediction models that confuse synchronous linkage and delayed transmission, making the prediction results more consistent with the actual engineering characteristics of near-zero emission systems.
[0045] When any water quality indicator at the final effluent outlet exceeds the near-zero discharge threshold within a predicted future time window, a set of currently available drainage paths is obtained. These drainage paths include a return path to the equalization tank, a supply path to non-critical water points within the plant area, a temporary storage path to the emergency discharge tank, and a path that maintains discharge but reduces the recovery rate. Using the current system state as the initial condition, the state response of each process unit in the entire process within the predicted time window is simulated after implementing drainage operations using each drainage path. The comprehensive cost corresponding to each drainage path is calculated. The comprehensive cost includes any combination of energy consumption increment, reagent consumption increment, permeate recovery rate loss, and system remaining lifespan loss. With the goal of minimizing the comprehensive cost, the optimal drainage path is selected from the set of drainage paths, and the valve switching operation sequence and parameter adjustment suggestions for the associated process units corresponding to this path are output simultaneously as decision support information for the monitoring conclusions.
[0046] Step S6: Construct a multidimensional anomaly determination matrix and perform a comprehensive score on the multidimensional anomaly determination matrix to generate a full-link monitoring conclusion that includes anomaly source location information and propagation path.
[0047] It should be noted that, as Figure 3 As shown, the water quality deviation index and the preliminary judgment result of the anomaly type output in step S2, the potential fault source locked in step S3, the virtual sensing variables and their state approaching the safety boundary output in step S4, and the future state prediction value and contribution heatmap of each node output in step S5 are integrated to construct an N-row, M-column multidimensional anomaly judgment matrix with each process unit as the row and multiple anomaly judgment indicators as the column, where N is the total number of process units and M is the total number of anomaly judgment indicators. The anomaly judgment indicators include the water quality deviation index and its rate of change of each unit, the degree of deviation of the removal contribution rate of each unit from the benchmark value, the percentage distance of the virtual sensing variables of each unit from the operational safety boundary, and the state deterioration slope of each unit within the future prediction time window. The element value in the i-th row and j-th column of the matrix represents the severity of the anomaly of the i-th process unit under the j-th type of anomaly judgment indicator. The value of the element is normalized and uniformly mapped to the range of 0 to 1, where the closer the value is to 1, the more severe the anomaly under the indicator.
[0048] An inter-unit influence transmission coefficient matrix is constructed using the inter-unit synchronization influence weight matrix and the optimal transmission delay step size. The element in the i-th row and j-th column of the influence transmission coefficient matrix represents the attenuation ratio when the abnormal state of the j-th process unit is transmitted to the i-th process unit. Multiplying each column vector in the multidimensional anomaly judgment matrix with the corresponding column element of the influence transmission coefficient matrix yields the corrected value of each unit's anomaly judgment index after considering upstream influence transmission. This ensures that the anomaly severity in the matrix reflects the actual impact of upstream unit anomalies on downstream units after material propagation, rather than isolated anomaly manifestations of individual units.
[0049] For the revised multidimensional anomaly determination matrix, a weighted comprehensive scoring method is used to calculate a multidimensional anomaly comprehensive score for each process unit. This method assigns different weight coefficients to each anomaly determination indicator. These weight coefficients are adaptively determined based on the indicator type and current operating conditions. Each indicator value is multiplied by its corresponding weight coefficient, and then summed using weighted methods to obtain the comprehensive anomaly score for the process unit. A higher score indicates a greater overall anomaly risk for the unit. The comprehensive anomaly score covers two time dimensions: the degree of deviation from the unit's current state and the predicted future deterioration trend.
[0050] Using the comprehensive anomaly score of each process unit as the node weight, and the synchronization influence weight matrix and the optimal transmission delay step size as the edge weights and directions, a weighted directed anomaly propagation graph is constructed. A source path search is performed on this graph. Starting from any node whose comprehensive anomaly score exceeds the warning threshold, the path backtracks along the edge direction to the upstream node. If the comprehensive anomaly score of an upstream node also exceeds the warning threshold, the backtracking continues until the first node whose comprehensive anomaly score exceeds the warning threshold but whose upstream nodes do not exceed the warning threshold is reached. This node is identified as the anomaly source node. The complete path from the anomaly source node, propagating sequentially along the edge direction to each downstream warning node, is determined as the anomaly propagation path.
[0051] By integrating the comprehensive anomaly scores of each process unit, the anomaly source node, and the anomaly propagation path, and combining this with the preliminary anomaly type judgment result corresponding to the anomaly source node in step S2, a full-link monitoring conclusion is generated. The monitoring conclusion includes at least the health level identifier of each process unit, anomaly source location information, a visual description of the anomaly propagation path, and the most likely fault type at the anomaly source node. The full-link monitoring conclusion is pushed to the user terminal, and graded early warning signals are generated at the process units involved in the anomaly source node and anomaly propagation path.
[0052] Example 2 like Figure 2As shown, the present invention also provides an intelligent monitoring system for near-zero wastewater discharge based on Internet of Things (IoT) sensing, which adopts the method described in Embodiment 1. The system includes a sensing layer module, a water quality fingerprint extraction module, a material tracking module, a digital twin module, a dual-branch spatiotemporal decoupling prediction module, and a full-link anomaly comprehensive judgment module.
[0053] The sensing layer module is deployed in each process unit and consists of multiple types of sensing terminals for real-time acquisition of multi-source monitoring data from each process unit. Each sensing terminal includes at least a water quality spectral sensor, an electrochemical sensor, a pressure sensor, a temperature sensor, and a flow sensor, and communicates with an edge computing gateway via a self-organizing wireless sensor network. Each sensing terminal uses the same external trigger source to synchronously start acquisition and adaptively adjusts the acquisition frequency according to the flow path state and parameter change rate. The sensing terminal has a built-in micro-flow path state discrimination module that injects an ultrasonic pulse signal into the flow path before each acquisition cycle. The module determines the current internal state of the flow path by detecting the attenuation characteristics of the ultrasonic pulse signal after propagation through the flow path. If air bubbles or interference from pipe wall deposits are present, the current acquisition data is marked as invalid and temporarily stored until the flow path is cleaned again, at which point acquisition is retried. The sensing terminal has a built-in programmable gain amplifier and adaptive filtering circuit that automatically matches the amplification factor according to the conductivity range of the current water sample and dynamically adjusts the filtering parameters in real-time based on background noise. Each sensing terminal automatically adjusts the acquisition frequency according to the change rate of the measured parameter, reducing the sampling frequency in steady state and increasing the sampling frequency during transient fluctuations. Each sensing terminal submits the pre-processed data packets to the transmission queue, which then uploads them to the edge computing gateway via a self-organizing wireless sensor network. The edge computing gateway reassembles the data packets in an orderly manner based on the timestamp and node number, forming a time-aligned standardized multi-source monitoring data sequence.
[0054] The water quality fingerprint extraction module receives multi-source monitoring data uploaded by the sensing layer module and extracts the UV-Vis full-band absorption spectrum, three-dimensional fluorescence spectrum, and attenuated total reflectance infrared spectrum of water samples from each process unit. After spectral splicing, normalization, and redundant feature removal, a standardized water quality fingerprint vector is constructed. During normal system operation, this module collects historical water quality fingerprint samples under various operating conditions of each process unit. It automatically determines the cluster centers and number of clusters using an adaptive clustering algorithm based on density peaks, dividing the samples into several operating condition clusters. Using the cluster center vector as the baseline fingerprint and the cluster sample density as the confidence weight, a differentiated baseline fingerprint library for each process unit is constructed. This module matches the current water quality fingerprint vector with the baseline fingerprint library of the corresponding process unit cluster by cluster. A hybrid metric combining Euclidean distance and cosine similarity is used to calculate the comprehensive similarity. The maximum similarity is taken and corrected with the corresponding confidence weight. Based on the corrected similarity, a water quality deviation index is calculated. The water quality deviation index is compared with a preset multi-level threshold range, and a preliminary judgment result of the anomaly type is output.
[0055] The material tracking module generates virtual tracer markers at preset time intervals, starting from the outlet of the influent regulating tank. It calculates the dynamic hydraulic retention time based on the effective volume of each process unit and the real-time influent flow rate. The module then performs time-domain correlation matching between the monitoring data of each process unit and the virtual tracer markers to form a dynamic material tracking chain. Based on this dynamic material tracking chain, the module extracts the water quality index monitoring values of the same virtual tracer marker when it flows through the inlet and outlet of a process unit, calculates the actual removal amount of the process unit, and divides the actual removal amount by the theoretical maximum removal amount of the process unit under the current operating conditions to obtain the real-time removal contribution rate of each process unit. A historical removal contribution rate time series window is adaptively set for the maintenance length of each process unit. When the deviation of the current removal contribution rate from the mean within the window exceeds three times the historical standard deviation within the window, it is determined that a sudden change has occurred in the removal contribution rate of the process unit. In response to a sudden change in the removal contribution rate, the module retrieves the preliminary judgment result of the abnormality type of the unit output by the water quality fingerprint extraction module, constructs a three-dimensional fault feature vector and matches it with a preset fault feature knowledge base, selects the fault mode with the highest similarity as the preliminary locking result, and outputs the final locking result after performing a propagation consistency check along the upstream and downstream of the dynamic material tracking chain.
[0056] The digital twin module is used to construct a full-process topology with each process unit as a node and the water flow direction as an edge. It uses the temporal relationship provided by the dynamic material tracking chain as an anchor point to spatiotemporally align the monitoring data of each process unit, thus constructing a full-process digital twin model. The digital twin model uses the operating parameters of each process unit as input variables and the outlet water quality indicators and operating parameters of each unit as output variables. It achieves the step-by-step transmission and deduction of the full-process state variables through the serial relationship between adjacent nodes in the topology. The module derives the theoretical outlet value from the inlet state and operating parameters of the process unit, compares the theoretical value with the actual monitoring value, and if the deviation exceeds the tolerance, it reconstructs and corrects the outlet monitoring value according to material conservation constraints and upstream water quality. The boundary conditions of the digital twin model are then updated using the reconstructed and corrected data. The module utilizes the digital twin model to perform a full-process simulation using the current inlet status and operating parameters of each process unit as input. It extracts the simulated values of all state variables output from the target process unit as estimated virtual sensing variables for each parameter. Using the current inlet status, outlet status, and operating parameters as matching conditions, it performs a multi-condition joint search of the historical database. The search results are then weighted and averaged according to feature similarity to obtain optimized estimates of the virtual sensing variables. When the physical sensors are working normally, the virtual sensing variables are dynamically fine-tuned based on the reconstructed and corrected outlet status. When the physical sensors malfunction, the module automatically switches to virtual substitution mode and outputs virtual substitution values.
[0057] The dual-branch spatiotemporal decoupling prediction module receives multi-source monitoring data from the perception layer module and virtual sensing variables from the digital twin module. It decomposes the spatiotemporal coupling relationship between each process unit into two dimensions: co-frequency correlation and time-delay correlation, and encodes them in parallel. The dual-branch encoding results are then fused to predict the state change trend and confidence interval of each process unit over multiple future time steps. The module organizes the monitoring data and virtual sensing variables of all process units at the current time and a preset number of historical times into a multi-node historical state tensor and performs standardization. The module uses a multi-head self-attention mechanism to encode the system-wide spatial state snapshot at each time step, calculates the synchronization influence weights between nodes, and obtains the co-frequency correlation encoding sequence for each historical time step. The module calculates the time-delay correlation coefficient between any two process unit state sequences at different lag steps, selects the lag step corresponding to the peak value as the optimal transmission delay step, performs temporal alignment on the state sequences of each unit, and outputs the time-delay correlation encoding vector using a graph attention network. The module integrates the co-frequency associated coding sequence and the time-delay associated coding vector, inputs them into the temporal convolutional network to predict the predicted values of each parameter for the next K time steps, and uses the Monte Carlo random deactivation method to sample multiple times, using the mean of the sampling results as the final predicted value and the standard deviation as the confidence interval.
[0058] The end-to-end anomaly comprehensive judgment module integrates the water quality deviation index and preliminary anomaly type judgment results output by the water quality fingerprint extraction module, the potential fault sources locked by the material tracking module, the virtual sensor variables output by the digital twin module and their states approaching the safety boundary, and the future state prediction values and contribution heatmaps of each node output by the dual-branch spatiotemporal decoupling prediction module. This constructs a multi-dimensional anomaly judgment matrix and performs a comprehensive score, generating an end-to-end monitoring conclusion containing anomaly source location information and propagation paths. The module constructs a multi-dimensional anomaly judgment matrix with each process unit as a row and anomaly judgment indicators as columns. These indicators include at least the water quality deviation index, the degree of deviation in the removal contribution rate, the distance of the virtual sensor variable approaching the safety boundary, and the state degradation slope. The module constructs an influence transmission coefficient matrix using the synchronization influence weights between process units and the optimal transmission delay step size. This matrix is then used to correct the multi-dimensional anomaly judgment matrix, ensuring that the severity of the anomaly reflects the actual impact of upstream anomalies on downstream units after propagation through materials. Finally, the module assigns adaptive weights to each indicator in the corrected matrix and performs a weighted summation to obtain a comprehensive score for each process unit. The module constructs a weighted directed anomaly propagation graph using the comprehensive score of each process unit as the node weight and the influence transmission relationship between process units as the edges. It traces back from the node whose score exceeds the warning threshold, identifying the first node to exceed the threshold and none of its upstream nodes exceeding the threshold as the anomaly source. The path from the anomaly source to the downstream warning nodes is then determined as the anomaly propagation path. This module integrates the comprehensive scores of each unit, the anomaly source node, the anomaly propagation path, and the initial anomaly type judgment results to generate a full-link monitoring conclusion including health level, anomaly source location information, propagation path, and fault type. This conclusion is then pushed to the user terminal and a graded warning signal is generated.
[0059] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A smart monitoring method for near-zero wastewater discharge based on Internet of Things (IoT) sensing, characterized in that, Includes the following steps: Multi-source monitoring data is acquired in real time through sensing terminals deployed in each process unit of the near-zero wastewater discharge treatment system; Based on the multi-source monitoring data, a multi-dimensional water quality fingerprint spectrum is constructed. The multi-dimensional water quality fingerprint spectrum is matched with the normal operating condition benchmark fingerprint database, the water quality deviation index of each process unit is calculated, and the preliminary judgment result of the anomaly type is output. Based on the hydraulic residence time of each process unit, the migration path of water in the treatment process is virtually marked to form a dynamic material tracking chain. Potential fault sources are identified by comparing the differences in water quality indicators of the same water mass at upstream and downstream nodes. By integrating the multi-source monitoring data with the material tracking chain, a full-process digital twin model is constructed, and virtual sensing variables of each process unit are output in real time. Using the multi-source monitoring data and the virtual sensing variables as input, the spatiotemporal coupling relationship between each process unit is decomposed into two dimensions, namely, co-frequency correlation and time-delay correlation, and then encoded in parallel. The dual-branch coding results are fused to predict the state change trend and confidence interval of each process unit in the future multiple time steps. A multidimensional anomaly determination matrix is constructed and comprehensively scored to generate a full-link monitoring conclusion that includes anomaly source location information and propagation path.
2. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, Multi-source monitoring data is acquired in real time through sensing terminals deployed in each process unit of the near-zero wastewater discharge treatment system, specifically including: Sensing terminals, including water quality spectral sensors, electrochemical sensors, pressure sensors, temperature sensors, and flow sensors, are deployed at preset monitoring points in each process unit. Before data acquisition, each sensing terminal injects an ultrasonic pulse signal into the flow path. By detecting the attenuation characteristics of the ultrasonic pulse signal after propagation through the flow path, it is determined whether there are air bubbles or interference from pipe wall deposits in the current flow path. If interference is present, the current data acquisition is marked as invalid and temporarily stored. Data acquisition is repeated after the flow path is cleaned. Each sensing terminal automatically matches the signal amplification factor according to the conductivity range of the current water sample, dynamically adjusts the filtering parameters by tracking the background noise in real time, and automatically adjusts the acquisition frequency according to the rate of change of the measured parameters, and submits the preprocessed data packets to the sending queue. After receiving the data packet, the edge computing gateway reassembles it in an orderly manner according to the timestamp and node number to generate a time-aligned standardized multi-source monitoring data sequence.
3. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, Extracting water quality characteristic fingerprints specifically includes: The ultraviolet-visible full-band absorption spectrum, three-dimensional fluorescence spectrum and attenuated total reflectance infrared spectrum of water samples from each process unit are extracted from the multi-source monitoring data and then preprocessed to form a standardized water quality fingerprint vector. During normal operation, historical water quality fingerprint samples under different operating conditions of each process unit are collected. The cluster center and number of clusters are automatically determined by adaptive clustering based on density peak. The samples are divided into several operating condition clusters. The center vector of each cluster is used as the benchmark fingerprint and the cluster sample density is used as the confidence weight to construct the benchmark fingerprint database of each process unit. The current water quality fingerprint vector is matched cluster by cluster with the benchmark fingerprint database of the corresponding process unit. A hybrid metric that integrates Euclidean distance and cosine similarity is used to calculate the comprehensive similarity. The maximum similarity is taken and corrected with the corresponding confidence weight. The water quality deviation index is calculated based on the corrected similarity. The water quality deviation index is compared with a preset multi-level threshold range to determine the current operating condition. When there is a significant deviation or a serious anomaly, the corresponding preliminary judgment result of the anomaly type is output according to the spectral feature with the lowest matching degree.
4. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, The formation of a dynamic material tracking chain specifically includes: Using the outlet of the inlet regulating tank as the initial marker injection point, virtual tracer markers carrying identifiers and injection timestamps are periodically generated at preset time intervals. The theoretical hydraulic residence time is calculated based on the effective volume of each process unit and the current real-time influent flow rate. Then, a correction factor and a temperature compensation term obtained by mapping the real-time operating parameters of each process unit are introduced to dynamically compensate the theoretical hydraulic residence time, thus obtaining the real-time dynamic hydraulic residence time. Based on the injection timestamp of the virtual tracer, the real-time dynamic hydraulic residence time of each process unit is superimposed to calculate the predicted time window for the virtual tracer to reach the inlet and outlet of each process unit. The monitoring data of each process unit are matched in the time domain according to the collection timestamp and the predicted time window. The monitoring data belonging to the same virtual tracer constitute the dynamic material tracking chain of the virtual tracer. The theoretical mass difference of the target pollutant between the inlet and outlet of each process unit is calculated based on the principle of material conservation. The theoretical mass difference is then compared with the actual removal amount of each process unit to calculate the material conservation closure residual of the tracking chain. If the closure residual is less than the preset tolerance, the tracking chain is deemed valid and output.
5. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 4, characterized in that, Potential sources of failure can be identified by comparing differences in water quality indicators of the same water mass at upstream and downstream nodes. Specifically, these include: Based on the dynamic material tracking chain, the water quality index monitoring values of the virtual tracer when it flows through the inlet and outlet of the current process unit are extracted, the actual removal amount of the current process unit is calculated, and the actual removal amount is divided by the theoretical maximum removable amount of the current process unit under the current operating conditions to obtain the real-time removal contribution rate of the current process unit. For each process unit, a historical removal contribution rate time series window with an adaptively set maintenance length is used. When the deviation between the current removal contribution rate and the mean within the window exceeds three times the historical standard deviation within the window, it is determined that the removal contribution rate of the process unit has abruptly changed. In response to a sudden change in the removal contribution rate, the preliminary judgment result of the anomaly type of the current process unit is retrieved, a three-dimensional fault feature vector is constructed and matched with a preset fault feature knowledge base, and the fault mode with the highest similarity is selected as the preliminary locking result. A consistency check is performed along the upstream and downstream of the dynamic material tracking chain. If there is a reasonable causal sequence relationship between the upstream and downstream mutations, the locking result is confirmed. Otherwise, the first unit in the dynamic material tracking chain that shows abnormal characteristics is taken as the fault source and the locking result is output.
6. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, Construct a full-process digital twin model to output virtual sensing variables for each process unit in real time, specifically including: A full-process topology is constructed with each process unit as a node and the direction of water flow as an edge. The temporal relationship provided by the dynamic material tracking chain is used as an anchor point to perform spatiotemporal alignment on the monitoring data of each process unit, generating a full-process state space matrix. A full-process digital twin model is constructed based on the topology and state space matrix. The theoretical value of the outlet is derived from the inlet state and operating parameters of the process unit. The theoretical value of the outlet is compared with the actual monitoring value. If the deviation exceeds the tolerance, the outlet monitoring value is reconstructed and corrected according to the material conservation constraints and the upstream water quality. The boundary conditions of the digital twin model are updated using the reconstructed and corrected data. Using the digital twin model with the current inlet status and operating parameters of each process unit as input, a full-process simulation is performed. The simulated values of all state variables output by the digital twin model at the target process unit are extracted and used as virtual sensing variable estimates of each parameter of the process unit.
7. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, Predicting the state change trends and confidence intervals of each process unit over multiple future time steps, specifically including: The monitoring data and virtual sensor variables of all process units at the current time and a preset number of historical times are organized into multi-node historical state tensors and then standardized. A multi-head self-attention mechanism is used to encode the system-wide spatial state snapshots at each time step, and the synchronization influence weights between nodes are calculated to obtain the co-frequency correlation coding sequence at each historical time step. Calculate the time delay correlation coefficient of any two process unit state sequences under different lag step lengths, select the lag step length corresponding to the peak value as the optimal transmission delay step length, and perform time domain alignment on each unit state sequence accordingly. Use a graph attention network to output the time delay correlation coding vector. The co-frequency associated coding sequence and the time-delay associated coding vector are fused and input into a temporal convolutional network to predict the predicted values of each parameter for the next K time steps. The Monte Carlo random deactivation method is used to sample multiple times, and the mean of the sampling results is used as the final predicted value, and the standard deviation is used as the confidence interval.
8. The intelligent monitoring method for near-zero wastewater discharge based on IoT sensing according to claim 1, characterized in that, Generate end-to-end monitoring conclusions that include anomaly source location information and propagation path, specifically including: A multidimensional anomaly determination matrix is constructed with each process unit as the row and anomaly determination indicators as the column. The anomaly determination indicators include water quality deviation index, degree of deviation of removal contribution rate, distance of virtual sensing variable from safety boundary and state deterioration slope. An influence transmission coefficient matrix is constructed using the synchronous influence weight between process units and the optimal transmission delay step size. This matrix is then used to correct the multidimensional anomaly judgment matrix so that the severity of anomalies reflects the actual impact of upstream anomalies on downstream units after propagation through materials. The modified multidimensional anomaly determination matrix is assigned adaptive weights to each index and then summed by weight to obtain the comprehensive score of each process unit. A weighted directed anomaly propagation graph is constructed using the comprehensive score of each process unit as the node weight and the influence transmission relationship between process units as the edge. Starting from the node whose score exceeds the warning threshold, the graph backtracks backward and identifies the first node that exceeds the threshold and none of the upstream nodes exceed the threshold as the anomaly source. The path from the anomaly source to the downstream warning node is determined as the anomaly propagation path. By integrating the comprehensive scores of each unit, the abnormal source node, the abnormal propagation path, and the preliminary judgment results of the abnormal type, a full-link monitoring conclusion is generated, which includes the health level, abnormal source location information, propagation path, and fault type.
9. A near-zero discharge intelligent monitoring system for wastewater based on Internet of Things (IoT) sensing, characterized in that, The method described in any one of claims 1 to 8 includes: Perception layer module: used to collect multi-source monitoring data in real time. The sensing terminal communicates with the edge computing gateway through a self-organizing wireless sensor network. Each sensing terminal starts collecting data synchronously and adjusts the collection frequency adaptively according to the working conditions. Water quality fingerprint extraction module: used to extract the spectral features of water samples from each process unit from the multi-source monitoring data to construct a standardized water quality fingerprint vector, match the current fingerprint with the preset benchmark fingerprint library, calculate the water quality deviation index and output the preliminary judgment result of the anomaly type; Material tracking module: used to generate virtual tracer tags and perform time-domain correlation matching of monitoring data in combination with the dynamic hydraulic residence time of each process unit to form a dynamic material tracking chain. Based on the material tracking chain, the removal contribution rate of each process unit is calculated, and based on the removal contribution rate and the preliminary judgment result of the anomaly type, potential fault sources are identified. Digital twin module: Used to build a full-process digital twin model with each process unit as a node and the water flow direction as an edge, to perform the step-by-step transmission and deduction of the state variables of the whole process, and to output the virtual sensing variables of each process unit in real time. Dual-branch spatiotemporal decoupling prediction module: This module is used to decompose the spatiotemporal coupling relationship between each process unit into two dimensions, namely, co-frequency correlation and time-delay correlation, and encode them in parallel. It then fuses the dual-branch coding results to predict the state change trend and confidence interval of each process unit in the future multiple time steps. The end-to-end anomaly comprehensive judgment module is used to integrate the output results of each module to construct a multi-dimensional anomaly judgment matrix and perform comprehensive scoring to generate end-to-end monitoring conclusions that include anomaly source location information and propagation path.
