An edge-computing-based new pollutant toxicity grade evaluation method
By dividing time-segment processing units in edge computing and constructing a monitoring task association graph of data flow dependencies, the problem of one-sided evaluation results in existing methods is solved, and global collaborative evaluation of the toxicity level of new pollutants is realized, improving the accuracy of evaluation and the reliability of early warning.
Patent Information
- Application Number
- CN202611644581.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing edge computing-based methods for assessing the toxicity of new pollutants have failed to fully explore the inherent dependencies between different monitoring data, resulting in biased and inaccurate assessment results. Furthermore, they lack a comprehensive consideration of the risk transmission effect, which affects the reliability of early warnings.
By dividing the monitoring time-series data into several segmented processing units according to time segments, identifying the data flow dependencies between each segmented processing unit, constructing a monitoring task association graph, assigning processing to segmented processing units, generating on-site deployment configuration data, realizing risk propagation calculation, and determining the toxicity level assessment result by combining the preset toxicity level mapping threshold.
It improves the timeliness of data processing and the flexibility of resource scheduling, and realizes the leap from isolated assessment to global collaborative assessment, significantly improving the accuracy of toxicity level determination and the reliability of early warning.
Smart Images

Figure CN123142384A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of environmental monitoring and edge computing technology, and in particular to a new method for assessing the toxicity level of pollutants based on edge computing. Background Technology
[0002] In the process of industrialization and urbanization, the composition of water pollutants is becoming increasingly complex. New pollutants such as perfluorinated compounds, pharmaceuticals, and personal care products are characterized by low concentrations, high hazard, and strong cumulative effects, making them difficult to remove effectively using conventional water treatment processes, thus posing challenges to water environment risk management. These pollutants often exist in the environment at trace levels, but long-term exposure can lead to chronic toxicity, endocrine disruption, and even carcinogenic effects. Therefore, accurate and efficient assessment of their toxicity levels is a crucial link in water environment risk early warning and management. Traditional monitoring methods mainly rely on offline laboratory analysis, requiring multiple steps such as sampling, transportation, pretreatment, and instrument testing. This not only results in long analysis cycles and high costs but also fails to meet the needs of real-time response and dynamic early warning of water environment risks. In recent years, the rise of edge computing technology has provided a new technical path for water environment monitoring. By offloading computing tasks to network edge nodes, it can process monitoring data locally, significantly reducing data transmission latency and improving response speed. However, existing edge computing-based methods for assessing the toxicity of new pollutants still face significant challenges: each edge node typically processes its own collected monitoring data independently, failing to fully explore the inherent dependencies between different monitoring data, resulting in biased assessment results and limited accuracy; at the same time, the toxicity risk of new pollutants not only originates from local nodes, but also spreads and accumulates between monitoring network nodes. Existing methods lack a comprehensive consideration of the risk propagation effect and fail to collaboratively integrate the local assessment results of each node, making it difficult to form a global and accurate toxicity level judgment, which seriously restricts the reliability and practicality of early warning. Summary of the Invention
[0003] Based on this, the purpose of this application is to provide a new pollutant toxicity level assessment method based on edge computing, which solves the technical problems in the prior art, such as isolated processing of monitoring data by each edge node, failure to consider the inherent dependencies between data leading to one-sided assessment results, lack of comprehensive consideration of risk propagation effects, inability to achieve global collaborative fusion assessment, and thus affecting the reliability of early warning.
[0004] The novel pollutant toxicity level assessment method based on edge computing described in this application includes the following steps: Acquire monitoring time-series data of new pollutants collected by each edge computing node; divide the monitoring time-series data into time segments to generate several segmented processing units, and associate each segmented processing unit with the corresponding segmented monitoring time-series data; Based on several segmented processing units and their associated segmented monitoring time-series data, the data flow dependencies between each segmented processing unit are identified, and a monitoring task association graph is constructed, wherein the monitoring task association graph uses the segmented processing units as graph nodes and the data flow dependencies as directed edges of the nodes. The monitoring task association graph is segmented into processing units to obtain field deployment configuration data, which records the assignment relationship between each segmented processing unit and each edge computing node. Based on the on-site deployment configuration data, the segmented monitoring time series data bound to each segmented processing unit is distributed to the corresponding edge computing nodes, and each edge computing node is instructed to calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data. Based on the time series of the exposure risk index of each edge computing node, the initial risk weight of each segmented processing unit in the monitoring task association graph is calculated; based on the directed edges of the nodes in the monitoring task association graph, risk propagation calculation is performed to obtain the updated node risk weight of each segmented processing unit. Based on the updated node risk weights of each segmented treatment unit and the preset toxicity level mapping threshold, the assessment results of the new pollutant toxicity level corresponding to each segmented treatment unit are determined.
[0005] This application's embodiments divide the monitoring time-series data into several segmented processing units according to time segments, and extract the segmented monitoring time-series data associated with each segmented processing unit. This enables edge computing nodes to perform parallel computing based on fine-grained data processing units, effectively improving the timeliness of data processing and the flexibility of resource scheduling. Based on this, by identifying the data flow dependencies between each segmented processing unit and constructing a monitoring task association graph, with segmented processing units as graph nodes and data flow dependencies as directed edges, explicit modeling of potential spatiotemporal correlations and causal transmission paths in the monitoring data is achieved, providing a structured topological foundation for collaborative evaluation. Furthermore, by performing segmented processing unit assignment processing on the monitoring task association graph, on-site deployment configuration data recording the assignment relationships between each segmented processing unit and edge computing nodes is generated. This allows computing tasks to be adaptively allocated according to the real-time load and network status of edge nodes, avoiding processing delays or node overload problems caused by uneven resource allocation in traditional static deployments. Based on this configuration data, segmented monitoring time-series data is distributed to corresponding edge computing nodes. Each node independently calculates the exposure risk index time-series sequence, enabling rapid extraction of local risk characteristics. Subsequently, the initial risk weights of each segmented processing unit are calculated based on the exposure risk index time-series sequence of each node, providing quantitative input for risk propagation calculation. On this basis, risk propagation calculation is performed based on the directed edges of nodes in the monitoring task association graph. Through an iterative update mechanism, the local risks of each node are transmitted and superimposed along the dependent edges. This ensures that the updated node risk weights not only reflect local exposure levels but also incorporate indirect risk contributions from associated nodes, thus achieving a leap from isolated assessment to global collaborative assessment. Finally, based on the updated node risk weights and preset toxicity level mapping thresholds, the toxicity level assessment results corresponding to each segmented processing unit are determined. This allows the assessment results to comprehensively reflect the cumulative effect and propagation impact of pollutants in the monitoring network, significantly improving the accuracy of toxicity level determination and the reliability of early warning. This solves the problem of assessment bias caused by isolated processing and data fragmentation in existing methods, providing solid technical support for early warning of water environment risks from new pollutants.
[0006] To better understand and implement this application, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description
[0007] Figure 1 This is a flowchart illustrating the novel pollutant toxicity level assessment method based on edge computing, as described in this application. Detailed Implementation
[0008] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings. Wherein, when the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements.
[0009] It should be understood that the embodiments described below do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.
[0010] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application are also intended to include the plural forms unless the context clearly indicates otherwise. Furthermore, in the description of this application, unless otherwise stated, “a plurality” means two or more. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more associated listed items, for example, A and / or B, which can represent: A alone, A and B together, and B alone; the character “ / ” generally indicates that the preceding and following objects are in an “or” relationship.
[0011] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, this information should not be limited to these terms, and these terms are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances. Depending on the context, the word "if" as used in this application can be interpreted as "when," "when," or "in response to determination."
[0012] Please refer to Figure 1 The novel pollutant toxicity level assessment method based on edge computing described in this application includes the following steps: S101: Obtain the monitoring time series data of new pollutants collected by each edge computing node; divide the monitoring time series data into time segments to generate several segmented processing units, and associate each segmented processing unit with the corresponding segmented monitoring time series data; S102: Based on several segmented processing units and their associated segmented monitoring time-series data, identify the data flow dependencies between each segmented processing unit and construct a monitoring task association graph, wherein the monitoring task association graph uses segmented processing units as graph nodes and the data flow dependencies as directed edges of the nodes. S103: Perform segmented processing unit assignment processing on the monitoring task association diagram to obtain on-site deployment configuration data. The on-site deployment configuration data records the assignment relationship between each segmented processing unit and each edge computing node. S104: Based on the on-site deployment configuration data, distribute the segmented monitoring time series data bound to each segmented processing unit to the corresponding edge computing nodes, and instruct each edge computing node to calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data; S105: Calculate the initial risk weight of each segmented processing unit in the monitoring task association graph based on the time series sequence of the exposure risk index of each edge computing node; perform risk propagation calculation based on the directed edges of the nodes in the monitoring task association graph to obtain the updated node risk weight of each segmented processing unit. S106: Based on the updated node risk weights of each segmented treatment unit and the preset toxicity level mapping threshold, determine the assessment results of the new pollutant toxicity level corresponding to each segmented treatment unit.
[0013] This application's embodiments divide the monitoring time-series data into several segmented processing units according to time segments, and extract the segmented monitoring time-series data associated with each segmented processing unit. This enables edge computing nodes to perform parallel computing based on fine-grained data processing units, effectively improving the timeliness of data processing and the flexibility of resource scheduling. Based on this, by identifying the data flow dependencies between each segmented processing unit and constructing a monitoring task association graph, with segmented processing units as graph nodes and data flow dependencies as directed edges, explicit modeling of potential spatiotemporal correlations and causal transmission paths in the monitoring data is achieved, providing a structured topological foundation for collaborative evaluation. Furthermore, by performing segmented processing unit assignment processing on the monitoring task association graph, on-site deployment configuration data recording the assignment relationships between each segmented processing unit and edge computing nodes is generated. This allows computing tasks to be adaptively allocated according to the real-time load and network status of edge nodes, avoiding processing delays or node overload problems caused by uneven resource allocation in traditional static deployments. Based on this configuration data, segmented monitoring time-series data is distributed to corresponding edge computing nodes. Each node independently calculates the exposure risk index time-series sequence, enabling rapid extraction of local risk characteristics. Subsequently, the initial risk weights of each segmented processing unit are calculated based on the exposure risk index time-series sequence of each node, providing quantitative input for risk propagation calculation. On this basis, risk propagation calculation is performed based on the directed edges of nodes in the monitoring task association graph. Through an iterative update mechanism, the local risks of each node are transmitted and superimposed along the dependent edges. This ensures that the updated node risk weights not only reflect local exposure levels but also incorporate indirect risk contributions from associated nodes, thus achieving a leap from isolated assessment to global collaborative assessment. Finally, based on the updated node risk weights and preset toxicity level mapping thresholds, the toxicity level assessment results corresponding to each segmented processing unit are determined. This allows the assessment results to comprehensively reflect the cumulative effect and propagation impact of pollutants in the monitoring network, significantly improving the accuracy of toxicity level determination and the reliability of early warning. This solves the problem of assessment bias caused by isolated processing and data fragmentation in existing methods, providing solid technical support for early warning of water environment risks from new pollutants.
[0014] The novel pollutant toxicity level assessment method based on edge computing described in this application uses a computer device as the execution entity. This computer device can be a remote cloud-based central server, distinct from the edge computing nodes. Some steps of the method described in this application can be executed by the remote cloud-based central server, while some computational steps are decentralized to each edge computing node; specifically, the data preprocessing step can be completed either locally on the edge computing node or by the remote cloud-based central server.
[0015] In this embodiment, edge computing nodes are deployed at the monitoring sites for new water pollutants, specifically at sewage outlets, river monitoring sections, water treatment process units, and field sampling points. These are field edge devices with local data acquisition, preprocessing, storage, and computing power execution capabilities, distinct from remote cloud-based central servers. Each edge computing node integrates a pollutant detection sensor module, an environmental sensing module, a local storage unit, an edge computing processing unit, and a communication module. Specifically, the pollutant detection sensor module collects in-situ sampling values of new pollutant concentrations; the environmental sensing module simultaneously collects on-site environmental and sampling condition data such as hydrology, pH, and temperature; the local storage unit caches the raw monitoring data stream, intermediate calculation results, and segmented monitoring time-series data corresponding to the segmented processing unit; the edge computing processing unit handles tasks such as data preprocessing, window reorganization, and exposure risk recursive calculation; and the communication module handles a small amount of data transmission between nodes and, when necessary, uploads the final toxicity level assessment results to the backend. The entire raw monitoring data stream does not need to be transmitted back to the cloud center.
[0016] Multiple edge computing nodes collectively constitute a distributed monitoring network. Each edge computing node independently collects raw monitoring time-series data. In one embodiment, the edge computing nodes can perform preprocessing steps such as time granularity alignment, low-concentration data reconstruction, anomaly identification and correction, noise smoothing, and normalization to generate standard monitoring time-series data. In other embodiments, a remote cloud-based central server can receive the raw monitoring time-series data and complete the preprocessing steps to generate standard monitoring time-series data. Based on the monitoring task association diagram and on-site deployment configuration data, the edge computing nodes receive the segmented processing units assigned to them, perform windowed reorganization and exponential moving average recursive updates, and calculate the exposure risk index time-series sequence. In one embodiment, different edge computing nodes transfer the interactive data necessary for cross-unit group aggregation to complete cross-node aggregation correction calculations.
[0017] The following provides a detailed explanation of each step.
[0018] For step S101, acquire the monitoring time series data of new pollutants collected by each edge computing node; divide the monitoring time series data into time segments to generate several segmented processing units, and associate each segmented processing unit with the corresponding segmented monitoring time series data.
[0019] New pollutants refer to pollutants such as perfluorinated compounds, drug residues, and endocrine disruptors, which are characterized by low concentrations, high hazard, and strong cumulative effects, and are difficult to effectively capture using traditional monitoring methods.
[0020] Monitoring time-series data refers to multi-dimensional data such as pollutant concentrations, hydrological parameters, and environmental factors that are continuously collected by edge computing nodes in chronological order, forming a data sequence with timestamps.
[0021] A time segment refers to a continuous time interval in which monitoring time series data is divided according to a fixed duration or dynamic change characteristics, and is used to generate data blocks that can be processed independently.
[0022] A segmented processing unit refers to a basic processing unit generated by dividing monitoring time series data into time segments and associating corresponding segmented monitoring time series data. It serves as the basic unit for task scheduling and risk calculation.
[0023] Segmented monitoring time-series data refers to the subset of monitoring data bound to each segmented processing unit within the corresponding time segment, which includes multi-dimensional monitoring parameters within that time period.
[0024] This step provides the basic data units with temporal locality for the subsequent construction of the monitoring task association graph, and enables fine-grained data partitioning to support parallel processing and resource scheduling of edge nodes. Specifically, firstly, edge computing nodes deployed at key locations in the water environment monitoring network continuously collect multi-dimensional data such as the concentration of new pollutants, hydrological parameters, and environmental factors using sensors or online detection devices, forming monitoring time-series data arranged in chronological order. Subsequently, according to a preset fixed time window length or a time segment dynamically determined based on data change characteristics, the monitoring time-series data is divided into multiple continuous or non-continuous data segments. Each data segment is encapsulated as a segmented processing unit, and a one-to-one mapping relationship is established between this unit and the segmented monitoring time-series data it contains, thereby forming data blocks that can be independently allocated and computed.
[0025] In one embodiment, step S101, which involves acquiring the monitoring time-series data of new pollutants collected by each edge computing node, includes: Step S1011: Obtain the original monitoring time series data of new pollutants collected by each edge computing node at the water environment site.
[0026] Raw monitoring time series data refers to the initial monitoring data stream that is directly collected by edge computing nodes at the water environment site and is not processed, including raw information such as pollutant concentration sampling values and equipment operating status parameters.
[0027] Pollutant concentration sampling values refer to discrete values obtained by sensors detecting the concentration of new pollutants at a fixed sampling frequency, reflecting the level of pollutant exposure at a specific moment.
[0028] Equipment operating status parameters refer to the operating indicators of the monitoring equipment to which the edge computing node belongs, including sensor working status, communication module load, power supply voltage and calibration status, etc., which are used to help determine the validity of the data.
[0029] This step involves using edge computing nodes deployed at key locations in the water environment monitoring network to call sensor interfaces to read the concentration values of new pollutants at a preset sampling frequency, and simultaneously collecting the operating status parameters of the monitoring equipment. The two are then associated and packaged according to the collection timestamp to form the original monitoring time-series data stream.
[0030] Step S1012: Perform time granular alignment on the original monitoring time series data to generate a time-aligned time series record set.
[0031] Time granularity alignment refers to the process of unifying time-series data from different sources and with different sampling frequencies onto the same time base through resampling or interpolation, ensuring that the data are comparable in the time dimension.
[0032] The time-aligned time series record set refers to the record set consisting of pollutant concentration sampling values indexed by a unified timestamp and corresponding equipment operating status parameters after time granularity alignment processing.
[0033] This step eliminates inconsistencies in time references caused by differences in sampling frequencies between different sensors or nodes, providing a unified time index for subsequent time-series-dependent analyses. Specifically, it determines the target time granularity (e.g., 1 second, 1 minute), iterates through each record in the original monitoring time-series data, and aggregates multiple records within the same time granularity by taking the average, median, or retaining the latest value. Missing timestamps are marked as to be filled, ultimately generating a time-series record set with strictly equal-interval timestamps arranged and time-aligned.
[0034] Step S1013: Mark the sampling records with sampled values less than the preset detection limit as records to be reconstructed, and use the sequential statistical regression method to numerically reconstruct the records to be reconstructed to obtain a set of time-series records after low-concentration reconstruction.
[0035] The preset detection limit refers to the lowest reliably detectable threshold for pollutant concentration that is pre-set based on the detection capability of the monitoring equipment. Data below this threshold is considered undetectable or suspected to be affected by noise interference.
[0036] Records to be reconstructed refer to sampling records where the sampled value is less than the preset detection limit. Their original values cannot accurately reflect the true pollutant concentration and need to be reconstructed using statistical methods.
[0037] The ordinal statistical regression method is a regression estimation method based on ordinal statistics. It uses the ordered distribution characteristics of adjacent valid sample values to perform regression prediction on the record to be reconstructed and restore its reasonable concentration value.
[0038] The time series record set after low-concentration reconstruction refers to the complete time series record set formed by merging the original valid records with the records to be reconstructed after performing sequential statistical regression numerical reconstruction.
[0039] This step addresses the data distortion caused by the detection limit limitations of equipment for low-concentration pollutants, restoring their true concentration levels and preventing the accuracy of subsequent risk assessments from being affected by simply zeroing or discarding a large number of data points below the detection limit. Specifically, a detection limit threshold is pre-set based on the technical parameters of the monitoring equipment. The time-aligned time series record set is scanned one by one, and records with concentration sampling values below the threshold are marked as records to be reconstructed. Subsequently, valid sampling values within a preset window before and after the record to be reconstructed are extracted, constructing an ordinal statistic sequence. A regression model is used to establish a mapping relationship between time position and concentration value, predicting and estimating the record to be reconstructed. The estimated value replaces the original concentration sampling value, forming a reconstructed time series record set. In one feasible implementation, the detection limit is set to 0.1 μg / L. For the marked record, five valid sampling values before and after it are taken to form an ordered sequence. Least squares linear regression is used to fit the time sequence number and concentration value. The time sequence number of the record to be reconstructed is substituted into the regression equation to obtain the reconstructed concentration value. If the reconstructed value is still less than the detection limit, half of the detection limit is taken. Finally, the reconstructed record set is output.
[0040] Step S1014: Based on the variation amplitude of adjacent sampled values, the mean of the local time window, and the equipment operating status parameters, identify abnormal records in the time-series record set; for abnormal records that have both valid preceding and following sampled records, use adjacent valid preceding and following sampled records for interpolation correction; for abnormal records that do not have both valid preceding and following sampled records available, remove them.
[0041] The magnitude of change in adjacent sampling values refers to the absolute value of the concentration difference between two adjacent sampling times in the same monitoring sequence, which is used to characterize the drastic degree of change in pollutant concentration.
[0042] The local time window mean refers to the arithmetic mean of all valid sampled values within a specified time window, used to reflect the average pollution level during a local time period.
[0043] Abnormal records refer to time-series records that deviate significantly from the actual pollution situation due to equipment failure, environmental interference, or communication errors, and whose values clearly do not conform to the laws of pollutant migration and diffusion.
[0044] Interpolation correction refers to a data correction method that uses adjacent valid values to calculate and replace the original outlier value for outlier records with valid samples before and after.
[0045] Elimination refers to the operation of deleting abnormal records from the time series record set because there are no simultaneously available valid preceding and following sample records and they cannot be reliably corrected.
[0046] This step effectively filters out abnormal data caused by sensor malfunctions, communication interference, or sudden environmental noise, ensuring the reliability and continuity of the monitoring data sequence input to subsequent steps. In one implementation, for each time series record to be judged in the time series record set, the amplitude of the sampled value change between the record and the sampled values of adjacent time series records is calculated. The mean value of all valid sampled records within the local time window to which the record belongs is obtained, and the corresponding equipment operating status parameters are read. When the amplitude of the sampled value change is greater than a preset amplitude threshold, the sampled value of the record to be judged deviates from the mean value of the local time window, or the equipment operating status parameters fall outside the preset normal operating range of the equipment, the time series record is determined to be an abnormal record. After determining abnormal records based on the above indicators, for abnormal records with valid sampled records before and after, linear interpolation or spline interpolation is used to calculate the correction value using the valid values before and after and replace the original value; for records with continuous abnormalities or records with abnormalities at the beginning and end resulting in no valid references before and after, a rejection operation is performed.
[0047] Step S1015: Fill the missing positions in the time series record set after removing anomalies by interpolation, and use the moving average algorithm to smooth the noise, so as to obtain the noise-reduced time series record set.
[0048] A vacant position refers to a missing position in the time-series record set that corresponds to a non-contiguous timestamp due to data deletion after abnormal records have been removed.
[0049] Interpolation filling refers to the process of using effective data before and after the missing position to make numerical estimations and fill in the missing position, so as to restore the continuity of the time sequence.
[0050] The moving average algorithm refers to a smoothing method that sets a fixed width along the time axis and performs a weighted average or simple average on the data within the window to suppress random noise and highlight trend characteristics.
[0051] Noise smoothing refers to the process of reducing high-frequency random noise in monitoring time series data through filtering or averaging algorithms, thereby improving the data signal-to-noise ratio.
[0052] The denoised time series record set refers to the time series record set that has continuous timestamps and significantly reduced noise levels after interpolation padding and moving average noise smoothing.
[0053] This step restores the time series discontinuities caused by anomaly removal and suppresses high-frequency random noise in the remaining data, further improving data quality. Specifically, it iterates through the time series record set after anomaly removal, identifies missing timestamps caused by the removal operation, and estimates and fills the missing values using interpolation methods based on valid samples before and after (such as linear interpolation, spline interpolation, or spatial interpolation based on neighboring node data). Subsequently, it sets the sliding window width, calculates the average or weighted average of the data within the window point by point along the time axis, and replaces the original data points with the window mean to achieve noise smoothing.
[0054] Step S1016: Perform dimensional unification and normalization processing on the noise-reduced time series record set, and rearrange it according to the acquisition time order to obtain the monitoring time series data.
[0055] Dimensional unification refers to the process of converting monitoring data of different physical quantities into the same dimension or standard unit to eliminate the impact of dimensional differences on subsequent calculations.
[0056] Normalization refers to a mathematical transformation that scales data proportionally to make it fall into a specific range (such as [0, 1] or [-1, 1]), facilitating comprehensive comparison between data of different magnitudes and model input.
[0057] This step eliminates dimensional differences between different physical quantities, maps the data to a unified numerical range, and organizes it into a standardized monitoring time-series data format required for subsequent steps according to chronological order. Specifically, it extracts pollutant concentration sampling values and other environmental parameters that may be introduced from the denoised time-series record set, converts the concentration values to standard units (such as μg / L), and standardizes other parameters; then, it uses min-max normalization or Z-score normalization methods to linearly transform the data to the [0, 1] interval; finally, it sorts all records in ascending order according to the timestamps to ensure the continuity of the data in the time dimension, forming the final monitoring time-series data. In one feasible implementation, the dimensional unification method converts the concentration values output by different sensors to μg / L by multiplying them by a calibration coefficient. The normalization process uses the min-max method, with the formula x_norm=(x-x_min) / (x_max-x_min), where x_min and x_max are taken as the extreme values of historical data. After rearrangement, a monitoring time series data sequence with timestamps, normalized concentration values and device status is generated for use by the subsequent segmentation and processing unit in step S101.
[0058] This embodiment significantly improves the quality and availability of monitoring data collected by edge computing nodes through multi-stage data preprocessing, thereby enhancing the accuracy and reliability of the entire toxicity level assessment method from the data source.
[0059] For step S102, based on several segmented processing units and their associated segmented monitoring time-series data, the data flow dependency relationship between each segmented processing unit is identified, and a monitoring task association graph is constructed, wherein the monitoring task association graph uses the segmented processing units as graph nodes and the data flow dependency relationship as directed edges of the nodes.
[0060] Data flow dependency refers to the data transmission or risk impact relationship between different segmented processing units due to time-series processing logic, data causality, pollutant migration and / or hydrological correlation. It is the basis for constructing risk propagation paths. It can be determined by combining the time sequence, changes in exposure status, and the spatial distribution characteristics of edge computing nodes.
[0061] The monitoring task association graph refers to a topological graph constructed with segmented processing units as graph nodes and data flow dependencies as nodes and directed edges, used to describe the dependency structure between monitoring tasks.
[0062] A graph node is a vertex element in the monitoring task association graph, representing a segmented processing unit that carries the corresponding segmented monitoring time series data and risk weight information.
[0063] A directed edge in a node refers to a directed line segment in the graph that connects two nodes in the monitoring task association graph. The direction is from the source node of the data flow to the destination node, indicating the direction of risk or data dependency transmission.
[0064] This step extracts feature vectors from the associated segmented monitoring time series data for each segmented processing unit. Combining the temporal sequence, changes in exposure status, and spatial distribution characteristics of edge computing nodes, it determines whether there are data flow dependencies between different segmented processing units by calculating the similarity between feature vectors and the causal relationships derived from pollutant migration and transformation models or hydrological correlations. If a dependency exists, a directed edge is established between the corresponding graph nodes, with the edge pointing from the source node of the data flow to the destination node, and the edge weight reflecting the dependency strength. Finally, all segmented processing units are combined as nodes, and all identified data flow dependencies are combined as directed edges to form a monitoring task association graph.
[0065] In one embodiment, the data flow dependency is obtained based on the temporal sequence relationship between the monitoring time series data of each segment and the spatial distribution feature data of the corresponding edge computing nodes.
[0066] The temporal sequence refers to the order in which the segmented monitoring time series data associated with different segmented processing units are collected, reflecting the temporal causal logic of pollutant concentration changes and risk transmission.
[0067] Spatial distribution characteristic data refers to the geographical coordinates, node spacing, hydrological connectivity direction, and watershed topology of each edge computing node in the water environment monitoring network. It is used to characterize the spatial associations between monitoring nodes and the migration paths of pollutants. In this embodiment, the spatial distribution characteristic data is calculated by collecting the geographical location information of each edge computing node and the hydrological information from the water environment site. The hydrological information includes the hydrological connectivity direction and the watershed topology.
[0068] Step S102, which identifies the data flow dependencies between the segmented processing units, further includes: Step S1021: Determine the data flow dependency strength corresponding to each data flow dependency relationship; based on the data flow dependency strength, determine the edge weight of the directed edge of the node in the monitoring task association graph.
[0069] Data flow dependency strength refers to the value that quantifies the tightness of the data flow dependency relationship between different segmented processing units. It is usually calculated based on the temporal sequence, spatial distribution characteristics and data similarity, and is used to characterize the probability or magnitude of risk transmission.
[0070] Edge weight refers to the numerical attribute attached to the directed edges of nodes in the monitoring task association graph. Here, it represents the dependence strength of the corresponding data flow dependency relationship and is used to quantify the risk transmission ratio in risk propagation calculation.
[0071] Specifically, for each pair of segmented processing units with data flow dependencies, the temporal relationship between their corresponding segmented monitoring time series data and the spatial distribution feature data of their respective edge computing nodes are extracted to construct a comprehensive feature vector. Based on this feature vector, a preset weight calculation model (such as a distance decay function, a similarity kernel function, or a machine learning regressor) is used to calculate the dependency strength value. This dependency strength value is directly mapped to the edge weight of the directed edge of the corresponding node in the monitoring task association graph. If the dependency strength is higher, the edge weight is larger, and vice versa, thus establishing a weighted directed graph. In a feasible implementation, for temporal relationships, the reciprocal of the time interval between two segmented processing units is calculated as a time factor; for spatially distributed characteristic data, the spatial distance between edge computing nodes is calculated, and a hydrological flow attenuation coefficient is introduced to convert the spatial distance into a spatial factor; the time factor and the spatial factor are weighted and fused to obtain the dependency strength, with the formula: dependency strength = α × time factor + β × spatial factor, where α and β are preset balance coefficients; then the dependency strength is normalized to the interval [0, 1] and used as the edge weight of the directed edge of the corresponding node; if the dependency strength is less than the preset dependency strength threshold, the edge is removed, and finally an edge weight matrix is formed for use in risk propagation calculation.
[0072] This embodiment determines data flow dependencies by introducing temporal sequence and spatial distribution characteristics. Based on this, it calculates dependency strength to quantify the edge weights of directed edges, ensuring that the monitoring task association graph not only reflects the causal transmission paths between data but also accurately characterizes the differences in path strength. This weighted directed graph construction method provides differentiated propagation coefficients for subsequent risk propagation calculations, allowing risks to be proportionally distributed according to edge weights during propagation. This more accurately simulates the superposition and attenuation effects of toxicity risks caused by spatiotemporal differences of new pollutants in actual water environment networks. Simultaneously, the dependency strength quantification process integrates temporal and spatial factors, fully incorporating the physical laws of pollutant migration and transformation and network topology constraints in water environment monitoring.
[0073] In one embodiment, step S102, which identifies the data flow dependencies between the segmented processing units, includes: Step S1022: Extract the feature vectors of the segmented monitoring time series data associated with each segmented processing unit.
[0074] A feature vector is a numerical vector extracted from segmented monitoring time series data that can characterize the features of the data segment in terms of statistical characteristics, changing trends, or pollutant exposure status. It is used to quantitatively describe the data attributes of segmented processing units, so that the data features of different units can be compared in the same vector space.
[0075] This step involves using a feature extraction algorithm to calculate a numerical vector reflecting the amplitude, trend, periodicity, and fluctuation characteristics of the data for each segmented processing unit's bound time-series monitoring data. This allows for comparison of data features from different segmented processing units within the same vector space. In practice, for each segmented time-series monitoring data, statistical characteristics (such as mean, variance, and difference between maximum and minimum values), time-series characteristics (such as autocorrelation coefficient and local change trend indicators based on a sliding window), and frequency domain characteristics (such as the dominant frequency component after Fourier transform) can be calculated. These features are then combined to form a fixed-length feature vector. This vector should encompass the information on pollutant exposure status changes reflected in the segmented monitoring time-series data, including the increasing or decreasing trend of pollutant concentration, fluctuation amplitude, and rate of change.
[0076] Step S1023: Based on the temporal relationship of each segment monitoring time series data, the changes in exposure status, and the spatial distribution characteristics of edge computing nodes, calculate the similarity between the feature vectors corresponding to any two segment processing units.
[0077] Exposure status change refers to the dynamic changes in pollutant exposure status over time as reflected by segmented monitoring time series data, including the trend of increase or decrease in pollutant concentration, fluctuation range and rate of change, reflecting the evolution of pollution level contained in the original monitoring data.
[0078] The temporal sequence refers to the order in which the segmented monitoring time series data associated with different segmented processing units are collected, reflecting the temporal causal logic of pollutant concentration changes and risk transmission.
[0079] Spatial distribution characteristic data refers to the geographical coordinates, node spacing, hydrological connectivity direction, and watershed topology of each edge computing node in the water environment monitoring network. It is used to characterize the spatial association between monitoring nodes and the migration path of pollutants. Among them, hydrological information includes hydrological connectivity direction and watershed topology. Spatial distribution characteristic data is calculated by collecting the geographical location information of each edge computing node and the hydrological information of the water environment site.
[0080] This step assigns temporal proximity weights based on the chronological order and overlap of the time segments to which the segmented monitoring time-series data belong, reflecting the temporal causal logic of pollutant concentration changes and risk transmission. In the state dimension, it analyzes the synchronicity or leader-lag relationship of exposure state changes (i.e., the increasing / decreasing trend, fluctuation amplitude, and rate of change of pollutant concentration) reflected by the segmented monitoring time-series data. In the spatial dimension, it combines the spatial distribution characteristics of edge computing nodes (including geographical coordinates, node spacing, hydrological connectivity direction, and watershed topology) and constructs spatial distance or topological weights based on the hydraulic connections and connectivity between different monitoring points determined by hydrological correlation. The above multi-dimensional information is then integrated, and a vector similarity calculation method is used to calculate the similarity value between any two feature vectors. For example, for two segmented processing units A and B, the temporal proximity is first determined based on their temporal sequence. If they are temporally continuous, the time weight is 1; otherwise, it is reduced by the time interval. Second, the cross-correlation coefficient of pollutant concentration change trends in the segmented monitoring time series data of A and B is calculated to obtain the state change synchronicity score. Third, the spatial distribution feature data of the edge nodes to which A and B belong are queried, and based on hydrological association, it is determined whether they are in the same watershed and have the same hydrological connection direction. If so, the spatial weight is 1; otherwise, it is reduced by distance or connection probability. Finally, the time weight, state score, and spatial weight are weighted and summed, and then combined with the cosine similarity of the feature vectors to obtain the comprehensive similarity.
[0081] Step S1024: Based on the similarity between the feature vectors corresponding to any two segmented processing units, and combined with the regional causal association results obtained by the pollutant migration and transformation model and hydrological correlation calculation, determine whether there is a data flow dependency relationship between the two segmented processing units.
[0082] Hydrological correlation refers to the hydraulic connection and connectivity between different monitoring points determined by the geographical coordinates and node spacing of each edge computing node in the water environment monitoring network, as well as hydrological information (including hydrological connectivity direction, watershed topology, water flow direction and velocity, etc.). It reflects whether the water body and the pollutants it contains have the path basis and migration probability to migrate from one monitoring node to another. It is the core logical relationship characterizing the spatial correlation between monitoring nodes and the migration path of pollutants.
[0083] Pollutant migration and transformation models are mathematical models that describe the changes in concentration and distribution of pollutants in the aquatic environment caused by physicochemical processes such as movement, diffusion, adsorption, and degradation with water flow. They are used to quantify the transport relationship of pollutants between different spatial locations, and their calculations rely on parameters such as water flow path, flow velocity, and connection direction provided by hydrological correlation.
[0084] Regional causal association results refer to those calculated by pollutant migration and transformation models and hydrological correlations. They characterize the strength of causal influence between different regions due to water flow connections and pollutant transport. They are used to characterize the degree of correlation between changes in the state of one region and the impact on another region. These results, combined with data statistical similarity, are used to determine data flow dependencies.
[0085] This step first obtains the regional causal association results calculated from the pre-established pollutant migration and transformation model and hydrological correlation data. These results characterize the strength of causal influence between different regions due to water flow connections and pollutant transport. Then, the similarity obtained in step S1023 is fused with the regional causal association results for judgment: if the similarity is higher than a preset threshold, and the regional causal association results indicate the existence of a pollutant transport path or hydraulic connection (i.e., the strength of the causal influence is greater than a preset probability threshold), then a data flow dependency relationship is determined to exist between the two segmented processing units; otherwise, it is determined not to exist. In specific implementation, a similarity threshold of 0.7 and a causal association probability threshold of 0.5 can be set. For segmented processing units A and B, if their comprehensive similarity is 0.8, and the pollutant transport probability from node A to node B calculated based on the pollutant migration and transformation model and hydrological correlation is 0.6, then a data flow dependency relationship is determined between A and B, and a directed edge from node A to node B is established in the monitoring task correlation graph, with the direction determined according to the leader-lag of the causal relationship; conversely, if either the similarity or the causal probability is lower than the threshold, then no dependency relationship is determined.
[0086] The data flow dependency identification method provided in this embodiment extracts feature vectors from segmented monitoring time-series data, and calculates similarity by comprehensively considering the temporal sequence, changes in exposure status reflected in the original monitoring data, and spatial distribution characteristics of edge computing nodes. It then combines these with regional causal association results obtained from pollutant migration and transformation models and hydrological correlations for judgment. This achieves accurate identification of data flow dependencies from both statistical correlation and physical causality perspectives. It overcomes the shortcomings of isolated evaluation in traditional edge computing, enabling the constructed monitoring task association graph to truly reflect the spatiotemporal propagation characteristics of pollutants in the aquatic environment, providing a reliable foundation for subsequent risk propagation calculations and toxicity level assessments.
[0087] For step S103, the monitoring task association graph is processed by segmented processing unit assignment to obtain on-site deployment configuration data, which records the assignment relationship between each segmented processing unit and each edge computing node.
[0088] Segmented processing unit assignment refers to the optimization process of mapping segmented processing units to specific edge nodes based on the resource status of edge computing nodes and the topology of the monitoring task association graph.
[0089] On-site deployment configuration data refers to configuration files or data tables that record the assignment relationships between each segmented processing unit and each edge computing node, guiding data distribution and task execution.
[0090] The assignment relationship refers to the correspondence between each segmented processing unit recorded in the on-site deployment configuration data and the edge computing node responsible for processing it.
[0091] This step maps graph nodes to physical nodes based on the real-time computing capabilities and network status of edge nodes, achieving optimized allocation and load balancing of computing tasks. Specifically, using the acquired monitoring task association graph as input, and comprehensively considering the current CPU utilization, remaining memory, network bandwidth, and computational complexity of segmented processing units for each edge computing node, an optimization model is constructed with the goal of minimizing task completion time and maximizing resource utilization. By solving this model, it is determined which edge computing node should handle each segmented processing unit, and on-site deployment configuration data is generated. This data records the correspondence between the unique identifier of each segmented processing unit and the network address or node ID of the assigned edge computing node in the form of a mapping table or configuration file. In a feasible implementation, a graph partitioning heuristic algorithm can be used to divide the monitoring task association graph into multiple subgraphs, each corresponding to an edge computing node. During the partitioning process, it is ensured that the sum of edge weights within a subgraph is maximized while the sum of edge weights between subgraphs is minimized, thereby assigning strongly dependent segmented processing units to the same node, reducing cross-node data transmission, and finally outputting on-site deployment configuration data.
[0092] In one embodiment, step S103, which involves assigning segmented processing units to the monitoring task association diagram to obtain on-site deployment configuration data, includes: Step S1031: Obtain the available computing power resource information of each edge computing node; based on the directed edges of the nodes in the monitoring task association graph and the available computing power resource information of each edge computing node, assign and divide all segmented processing units to generate the on-site deployment configuration data.
[0093] Available computing resources information refers to quantitative indicators of the computing processing capabilities currently available to edge computing nodes, including but not limited to CPU idle rate, remaining memory capacity, GPU computing power margin, task queue length, and available network bandwidth, which are used to characterize the real-time carrying capacity of nodes to execute segmented processing unit computing tasks.
[0094] Specifically, firstly, the resource management module of the edge computing node periodically collects or queries the available computing resources of each node as needed to form a snapshot of the computing power status. Then, based on the monitoring task association graph, the data flow dependency strength represented by the directed edges of the nodes and the computational complexity of the segmented processing units are used as inputs to construct an optimization model with the objectives of minimizing the overall task completion time, minimizing the cross-node data transmission volume, and maximizing the utilization rate of computing resources. By solving this model, the target processing node of each segmented processing unit is determined, the assignment is completed, and the assignment results are solidified into on-site deployment configuration data. This data clearly records the mapping relationship between each segmented processing unit and the edge computing node.
[0095] This embodiment incorporates available computing resources and uses directed edges from the node association graph of the monitoring task to assign tasks. This ensures that the generation of on-site deployment configuration data not only considers the data dependencies between tasks but also dynamically adapts to the real-time load status of edge computing nodes. This effectively avoids the node overload or resource idleness problems caused by uneven computing power allocation in traditional static assignment, ensuring the computational efficiency and response speed of each edge node when processing segmented monitoring time-series data. Simultaneously, the dependency-based assignment strategy prioritizes the deployment of strongly correlated segmented processing units on the same or adjacent nodes, significantly reducing network latency and bandwidth consumption caused by cross-node data transmission.
[0096] In one embodiment, the available computing resources information includes the processing latency of edge computing nodes and the available cache capacity.
[0097] Processing latency refers to the time required for an edge computing node to complete a computation task and output a result from receiving data. It includes data reception delay, computation processing time, and result transmission time, reflecting the node's real-time response capability.
[0098] Available cache capacity refers to the amount of storage space that an edge computing node can currently use to store data to be processed and intermediate computation results. It is usually measured in bytes and determines the scale of data processing that the node can handle.
[0099] Step S1031, based on the directed edges of the nodes in the monitoring task association graph and the available computing power resource information of each edge computing node, assigns and divides all segmented processing units to generate on-site deployment configuration data, including: Step S10311: Obtain the computational parameters of each segmented processing unit.
[0100] The computational complexity parameter refers to the indicators of the computational resources required by the segmented processing unit. It is calculated based on the data segment length, the number of data reconstruction records, the number of anomaly correction records, and the number of cross-node dependency edges of the corresponding segmented monitoring time series data, and is used to evaluate the processing complexity of the unit.
[0101] The data segment length refers to the number of sampling records or data points contained in the segmented monitoring time series data associated with the segmented processing unit, reflecting the amount of data within that time segment.
[0102] Number of data reconstruction records: refers to the number of records to be reconstructed in the segmented monitoring time series data after numerical reconstruction using the sequential statistical regression method. The reconstruction operation requires additional computational overhead.
[0103] The number of abnormal correction records refers to the number of abnormal records in the segmented monitoring time series data that have been corrected by interpolation; it does not include abnormal records that are directly removed. Abnormal correction processing will result in corresponding computational resource consumption.
[0104] The number of cross-node dependent edges refers to the number of directed edges connecting different edge computing nodes to their respective segmented processing units, with the segmented processing unit as the source or destination node. Cross-node dependency means that additional data transmission and synchronous computation are required.
[0105] This step traverses each segmented processing unit in the monitoring task association graph, extracts the relevant attributes of its associated segmented monitoring time series data, including data segment length, number of data reconstruction records, number of anomaly correction records, and counts the number of cross-node dependency edges when the unit is a graph node; based on these attributes, a computational model for computational parameters is constructed, usually using a weighted summation method, assigning preset weight coefficients to different attributes, and calculating scalar values as the computational parameters for the segmented processing unit.
[0106] Step S10312: Based on the processing latency and available cache capacity of each edge computing node, determine the upper limit of the unit group load corresponding to the edge computing node; the upper limit of the unit group load is the maximum amount of computing that the edge computing node can bear.
[0107] The unit group load limit refers to the maximum amount of computing that the edge computing node can handle, determined by the processing latency and available cache capacity of the edge computing node. If this limit is exceeded, the node will be unable to complete the processing within the specified time or a cache overflow will occur.
[0108] This step assesses the actual processing capacity ceiling of each edge computing node, providing constraints for unit group assignment and preventing node overload. Specifically, it obtains the real-time processing latency and available cache capacity of each edge computing node, and establishes a load ceiling calculation model based on the node's computing architecture characteristics. This model maps processing latency to the amount of computation that can be processed per unit time, and available cache capacity to the amount of computation corresponding to the amount of intermediate data that can be temporarily stored. The smaller value or a combined weighted value is taken as the unit group load ceiling for that node. In a feasible implementation, the unit group load ceiling can be set as min(available cache capacity / single record memory usage × basic computing factor, preset time window / processing latency × baseline computing amount), where the basic computing factor and baseline computing amount are calibrated according to typical data preprocessing tasks. By obtaining node status information in real time, the unit group load ceiling of each node is dynamically calculated and updated to ensure that the assignment process reflects the current system resource status.
[0109] Step S10313: Traverse the monitoring task association graph, identify the directed edges of nodes whose data flow dependency strength is greater than the preset dependency threshold, and group the segmented processing units belonging to the same connected component into a unit group.
[0110] A connected component refers to a maximum interconnected subgraph in the monitoring task association graph, formed by directed edges connecting nodes whose data flow dependency strength is greater than a preset dependency threshold. Segmented processing units within the same connected component have strong dependencies. In this embodiment, a connected component refers to a weakly connected component, and bidirectional relationships between nodes are not required.
[0111] This step logically groups the segmented processing units based on strong dependencies, ensuring close data connections within each group and providing a structural foundation for subsequent group-based assignment and segmentation. Specifically, it first traverses all directed edges in the monitoring task's association graph, extracting edge weights (i.e., data flow dependency strength) and comparing them to a preset dependency threshold. Only edges with dependency strengths greater than the threshold are retained, forming a filtered subgraph. Then, a graph traversal algorithm is used to identify all connected components in this subgraph. Within each connected component, there is at least one path consisting of strong dependency edges between any two graph nodes. All segmented processing units within each connected component are grouped into a unit group, and the list of segmented processing units and their internal dependency edge information is recorded. In a feasible implementation, the preset dependency threshold can be set to 1.2 times the average edge weight. After filtering, a disjoint-set data structure algorithm is used to quickly divide the connected components, with each connected component forming a unit group. If a segmented processing unit has no strong dependency edges, it is treated as a separate unit group.
[0112] Step S10314: Perform edge node assignment for the unit group: calculate the total computational load of all segmented processing units within the unit group; if an edge computing node with a load limit greater than or equal to the total computational load is found, assign the unit group to that edge computing node; if no edge computing node is found, use the directed edge of the node with the weakest data flow dependency strength within the unit group as the splitting edge to split the unit group, generate two new unit groups, and return to the edge node assignment step.
[0113] The preset dependency threshold refers to the pre-set critical value of data flow dependency strength used to filter strong dependencies. Only directed edges of nodes with dependency strength greater than this threshold are retained for connected component identification.
[0114] Total computational load refers to the sum of the computational load parameters of all segmented processing units within a unit group, representing the overall computational resources required by the unit group.
[0115] A splitting edge refers to the directed edge of the node with the weakest data flow dependency when a splitting operation is required within a cell group. Removing it can divide the cell group into two new sub-cell groups, thereby reducing the computational load of each sub-cell group.
[0116] For each unit group, this step accumulates the computational load parameters of all its segmented processing units to obtain the total computational load; it then queries the unit group load limit of all edge computing nodes to find if there is a node whose load limit is not less than the total computational load; if so, it selects the node whose load limit best matches the total computational load for assignment; if not, it needs to find a split point within the unit group, that is, it traverses all directed edges of nodes in the unit group, finds the edge with the weakest data flow dependency strength as the split edge, removes the edge, and the original unit group splits into two new connected components, each forming a new unit group; then, it recursively executes the edge node assignment step for the newly generated unit groups until all unit groups are successfully assigned to suitable edge computing nodes. In a feasible implementation, the total computational load is calculated as the sum of the computational load parameters of each segmented processing unit within the unit group; when searching for nodes, the nodes are traversed in descending order of the load limit; when selecting the splitting edge, if there are multiple edges with the weakest dependency strength in the unit group, the cross-node dependency edge is selected first. After splitting, the unit group list is updated and the assignment process is repeated, which is implemented through recursion or loop until all assignments are completed.
[0117] Step S10315: Obtain the field deployment configuration data based on the assignment relationship between each segmented processing unit and the edge computing node.
[0118] This step solidifies the aforementioned assignment results into executable configuration information, guiding subsequent data distribution and task scheduling. Specifically, it summarizes the assignment relationships between all unit groups and edge computing nodes, expands them into a one-to-one mapping between segmented processing units and edge computing nodes, and stores them according to a preset data structure to form on-site deployment configuration data. This data includes at least a unique identifier for each segmented processing unit and the network address or node ID of the edge computing node to which it is assigned. In one feasible implementation, the on-site deployment configuration data can be organized as a set of key-value pairs, where the key is the segmented processing unit ID, and the value is the IP address and port number of the target edge node, along with a timestamp and version number. This data is then distributed to each node via the edge network for the data distribution module to read and execute subsequent steps.
[0119] This embodiment achieves refined and adaptive deployment of segmented processing units to edge nodes in the monitoring task association graph by introducing computational parameters for segmented processing units, upper limits on unit group loads for edge computing nodes, and a unit group partitioning and iterative assignment mechanism based on connected components. The final generated on-site deployment configuration data accurately records the assignment relationships, enabling efficient execution of subsequent data distribution and parallel computing.
[0120] In one embodiment, after step S103, which involves segmenting the monitoring task association diagram and assigning it to a processing unit to obtain the on-site deployment configuration data, the method further includes a step of dynamically adjusting the on-site deployment configuration data. Step S1031: Obtain the real-time computing load information of each edge computing node.
[0121] Real-time computing load information refers to a set of dynamic indicators that reflect the current backlog of computing tasks and processing pressure of edge computing nodes, including processing latency, number of pending segment processing units, number of processed sub-time segments, and total computing power of unit groups, which are used to evaluate the workload status of nodes in real time.
[0122] The number of pending segment processing units refers to the number of segment processing units that the edge computing node has received but has not yet started processing, or that are waiting in the processing queue, reflecting the scale of the node's current task queue.
[0123] The number of processed sub-time segments refers to the cumulative number of sub-time segments that the edge computing node has completed computation and output results within the current statistical period, reflecting the node's historical processing progress and throughput capacity.
[0124] The total computational load of a unit group refers to the sum of the computational load parameters of all segmented processing units within the unit group assigned to the edge computing node, representing the theoretical total computational load currently allocated to the node.
[0125] This step involves real-time monitoring of the workload status of each node in the edge computing cluster, providing data support for subsequent load balancing and dynamic scheduling. Specifically, a lightweight monitoring agent deployed on each edge computing node periodically collects data on the node's processing latency, the length of the current queue of pending processing units, the number of processed sub-time segments, and the total computational load of the unit group to which the node belongs. The collected data is then aggregated to the central scheduling module or distributed coordinator to form a real-time snapshot of computing load information.
[0126] Step S1032: Based on the real-time computing power load information, determine the edge load index; when the edge load index is greater than the preset load index threshold, dynamically adjust the assignment relationship between the subsequent segmented processing units to be processed and each edge computing node, and generate updated on-site deployment configuration data.
[0127] The edge load index is a scalar value used to quantify the current load level of edge computing nodes, which is calculated based on real-time computing power load information. The higher the value, the heavier the node load.
[0128] The preset load index threshold refers to the pre-set critical value of the edge load index. When the edge load index of a node exceeds this threshold, the dynamic adjustment mechanism of the assignment relationship is triggered.
[0129] The updated on-site deployment configuration data refers to the configuration data that is regenerated after dynamically adjusting the assignment relationship between the segmented processing unit and the edge computing node according to the real-time load. This data records the latest assignment relationship and is used to replace the original configuration to guide subsequent data distribution.
[0130] This step dynamically optimizes task allocation based on the real-time load status of nodes, avoiding processing delays caused by overload of some nodes, while making full use of idle node resources to ensure the timeliness and stability of the entire monitoring network's evaluation tasks. Specifically, firstly, a calculation model for edge load indicators is constructed based on various parameters in the real-time computing power load information. A weighted fusion method is typically used, combining processing latency, the number of pending segmented processing units, and the total computational load of the unit group, while also considering the processing efficiency reflected by the number of processed sub-time segments, to calculate the edge load indicator for each edge computing node. Then, the edge load indicator of each node is compared with a preset load indicator threshold. If the edge load indicator of any node exceeds the preset threshold, a dynamic adjustment mechanism is triggered. During dynamic adjustment, the subsequent pending segmented processing units on that node are identified. Combined with the real-time load indicators of other nodes, these segmented processing units are reassigned to nodes with lighter loads, the assignment relationship is updated, and new on-site deployment configuration data is generated. Simultaneously, the relevant data distribution module is notified to execute subsequent data transmission according to the new configuration.
[0131] This embodiment introduces a dynamic adjustment mechanism based on real-time computing load information after the on-site deployment configuration data is generated, enabling the task assignment of edge computing nodes to adapt to load fluctuations during system operation. First, multi-dimensional load information, including processing latency, the number of pending processing units, the number of processed sub-time segments, and the total computational load of unit groups, is collected in real time to comprehensively depict the working status of the nodes. Second, based on this information, an edge load index is constructed to accurately identify overloaded nodes. When the index exceeds a preset threshold, the load is shifted from overloaded nodes to lightly loaded nodes by reassigning subsequent pending processing units, effectively avoiding uneven resource utilization caused by static assignment.
[0132] For step S104, based on the field deployment configuration data, the segmented monitoring time series data bound to each segmented processing unit is distributed to the corresponding edge computing nodes, and each edge computing node is instructed to calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data.
[0133] The exposure risk index time series refers to the sequence value calculated by edge computing nodes based on the received segmented monitoring time series data and using a toxicity assessment model, reflecting the change of pollutant exposure risk over time within that time segment.
[0134] This step parses the on-site deployment configuration data, obtains the target edge node information for each segmented processing unit, and packages and sends the segmented processing unit and its bound segmented monitoring time-series data to the corresponding edge computing node via network communication protocols. Upon receiving the data, the edge node invokes a pre-built toxicity assessment model or machine learning algorithm to extract features and calculate risks from the segmented monitoring time-series data, outputting a time-varying exposure risk index sequence. Each value in this sequence corresponds to the pollutant exposure risk level at a specific moment or sub-interval within that time segment. In a feasible implementation, the edge computing node can use a pre-trained Long Short-Term Memory (LSTM) network model, inputting multi-dimensional environmental parameters from the segmented monitoring time-series data, and outputting an exposure risk index sequence at minute intervals for a future period. Each index value in the sequence is normalized, ranging from 0 to 1, representing the exposure risk level at that moment.
[0135] In one embodiment, step S104, which distributes the segmented monitoring time-series data bound to each segmented processing unit to the corresponding edge computing node based on the field deployment configuration data, further includes: Step S1041: Obtain the exposure risk recursive calculation model bound to each segmented processing unit.
[0136] The exposure risk recursive calculation model refers to a mathematical model based on a recursive algorithm that is used to progressively calculate the exposure risk index time series based on segmented monitoring time series data. This model uses the risk status of the previous moment or several moments to recursively calculate the risk value at the current moment. The calculation parameters of the model can be dynamically adjusted according to the data residuals and risk change trends, which can adapt to the streaming data processing needs of edge computing nodes, reduce redundant calculations and improve real-time performance.
[0137] This step pre-configures corresponding exposure risk recursive calculation models for different types of pollutants or different monitoring scenarios, and binds and stores the models with the segmented processing units. Before distribution, based on the identifier of the segmented processing unit or the attributes of the monitoring node to which it belongs, the corresponding model description file or algorithm parameters are extracted from the model library to form a model binding relationship. In a feasible implementation, a model version management database can be used. Each segmented processing unit is associated with a model ID when it is created. Step S1041 retrieves the model file corresponding to the model ID by querying the database. The model file contains the recursive formula, initial state parameters, and input data format definition, and is temporarily stored in memory in serialized form for subsequent distribution.
[0138] Step S1042: Based on the on-site deployment configuration data, the segmented monitoring time series data and exposure risk recursive calculation model bound to each segmented processing unit are distributed to the corresponding edge computing nodes, and each edge computing node is instructed to recursively calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data and exposure risk recursive calculation model.
[0139] This step parses the on-site deployment configuration data to determine the target edge nodes for each segmented processing unit. The segmented monitoring time-series data and the corresponding exposure risk recursive calculation model are encapsulated into a calculation task package and sent to the target nodes via a network communication protocol. Upon receiving the task package, the edge nodes load the model and initialize the recursive state. They process the segmented monitoring time-series data sequentially, either line by line or window by window, using a recursive algorithm to iteratively update the risk state, ultimately outputting the exposure risk index time-series sequence. In one feasible implementation, the task package is encapsulated in JSON format, containing a data array and model parameters. The edge nodes use an embedded script engine to execute the recursive calculation. The recursive formula can be expressed as: Current Risk Index = f(Current Monitoring Value, Previous Risk Index, Model Parameters), where f is a preset recursive function. During the calculation, the nodes cache intermediate states locally to support the seamless calculation of consecutive time segments. The final generated exposure risk index time-series sequence is returned to the central server via a message queue or stored in a local database.
[0140] This embodiment achieves dynamic matching and on-site recursive calculation of the calculation model by collaboratively distributing the exposure risk recursive calculation model and segmented monitoring time-series data to edge computing nodes, significantly improving the adaptability and real-time performance of new pollutant toxicity assessment. Specifically, step S1041 binds a dedicated recursive calculation model to each segmented processing unit, ensuring the targeting of the assessment algorithm under different pollutants or different hydrological conditions and avoiding the accuracy loss caused by general models. Step S1042 distributes the data and model together based on the on-site deployment configuration data, enabling edge nodes to directly execute recursive calculations without having to send the original data back to the central node, greatly reducing network bandwidth consumption and transmission latency. At the same time, the recursive calculation model uses historical risk states to gradually deduce the current risk, effectively integrating the time-series dependencies. This ensures that the output exposure risk index time-series not only reflects the instantaneous exposure level but also includes the cumulative effect and changing trend of pollutants, providing more accurate and continuous input data for the initial risk weight calculation and risk propagation fusion in the subsequent step S105.
[0141] In one embodiment, step S1042, where each edge computing node recursively calculates the corresponding exposure risk index time series based on the received segmented monitoring time series data and the exposure risk recursive calculation model, includes: Step S10421: Divide the segmented monitoring time series data into several sub-time segments; in chronological order, take the first sub-time segment as the current sub-time segment, and obtain a preset initial risk value as the risk value corresponding to the previous time segment.
[0142] Sub-time segments refer to time intervals with shorter durations that further subdivide segmented monitoring time series data. These serve as the smallest time processing unit for recursive calculations, enabling the gradual iterative updating of risk values.
[0143] The preset initial risk value refers to the initial value of the risk value of the previous time segment provided for the first sub-time segment when the recursive calculation begins. It is usually determined based on historical statistical data, environmental background values, or calibration experiments, and serves as the starting point for the recursive calculation.
[0144] This step divides the received segmented monitoring time-series data into uniform or non-uniform segments according to a preset sub-time segment length. Each sub-time segment contains continuous monitoring data points within that time period. Then, all sub-time segments are sorted in ascending order of timestamps, and the first sorted sub-time segment is selected and marked as the current sub-time segment to initiate the initial recursive calculation. Simultaneously, a preset initial risk value is obtained from the local configuration or central server and assigned the value to the risk value corresponding to the previous time segment, providing initial input for the recursive model. In a feasible implementation, the sub-time segment length can be set to 1 minute, dividing the 5-minute segmented monitoring time-series data into 5 sub-time segments, numbered sequentially from T1 to T5. T1 is taken as the current sub-time segment, and the preset initial risk value can be set to 0.05 (based on the background risk value of historical clean water bodies). This value is stored as the risk value at time T0 in the recursive status register for use in step S10422.
[0145] Step S10422, perform recursive calculation: Based on the monitoring time series data of the current sub-time segment, calculate the pollutant index data of the current sub-time segment; input the risk value corresponding to the previous time segment and the pollutant index data of the current sub-time segment into the exposure risk recursive calculation model to obtain the updated risk value and exposure risk index corresponding to the current sub-time segment; use the updated risk value corresponding to the current sub-time segment as the risk value corresponding to the previous time segment of the next sub-time segment; use the next sub-time segment of the current sub-time segment as the current sub-time segment, return to perform recursive calculation, until the calculation of all sub-time segments is completed.
[0146] The pollutant index data includes pollutant exposure intensity index, pollutant continuous change index, and pollutant fluctuation range index.
[0147] The pollutant exposure intensity index is a quantitative parameter calculated based on the monitoring time series data of the current sub-time segment, reflecting the cumulative exposure level of pollutant concentration during that period, and characterizing the intensity of the direct impact of pollutants on the environment.
[0148] The pollutant persistence index refers to a quantitative parameter calculated based on the monitoring time series data of the current sub-time segment, which reflects the changing trend and persistence of pollutant concentration over a continuous period of time, and characterizes the continuity of pollution events.
[0149] The pollutant fluctuation amplitude index is a quantitative parameter calculated based on the monitoring time series data of the current sub-time segment, reflecting the degree of drastic change in pollutant concentration during that period, and characterizing the stability of the pollution state.
[0150] The updated risk value refers to the risk quantification result of the current sub-time segment after inputting the risk value corresponding to the previous time segment and the pollutant index data of the current sub-time segment into the exposure risk recursive calculation model, and the result is used as the risk value of the previous time segment for the next sub-time segment recursively.
[0151] The exposure risk index refers to the index value that is output synchronously with the updated risk value, and has undergone normalization or standardization processing. It is used to intuitively represent the exposure risk level of the current sub-time segment and constitutes the basic element of the exposure risk index time series.
[0152] This step, for each current sub-time segment, first extracts its monitoring time-series data and calculates pollutant exposure intensity indicators (such as concentration integral value or mean), pollutant continuous change indicators (such as concentration change rate or trend slope), and pollutant fluctuation amplitude indicators (such as standard deviation or range) using statistical or feature extraction methods. Then, the risk value corresponding to the previous time segment is combined with the above three indicators to form a model input vector, which is input into the exposure risk recursive calculation model. The model outputs the updated risk value and exposure risk index of the current sub-time segment through a preset recursive function (such as a weighted fusion function, state-space equation, or neural network recursive layer). Next, the updated risk value is written to the state register to replace the original risk value of the previous time segment, and the pointer of the current sub-time segment is moved forward one position. The above calculation is repeated until all sub-time segments have been processed. In a feasible implementation, the pollutant exposure intensity index can be calculated as the product of the arithmetic mean of the concentration samples within a sub-time segment and the segment duration; the pollutant continuous change index can be calculated as the difference between the current segment mean and the previous segment mean; the pollutant fluctuation amplitude index can be calculated as the standard deviation of the concentration values within a segment; the exposure risk recursive calculation model adopts the recursive formula: updated risk value = α × risk value of the previous time segment + β × exposure intensity index + γ × continuous change index + δ × fluctuation amplitude index, where α, β, γ, and δ are model parameters, calibrated through training; the exposure risk index maps the updated risk value to the [0, 1] interval through the Sigmoid function; after each iteration, the status register is updated and the sub-time segment index is incremented until all sub-time segments are traversed.
[0153] Step S10423: Based on the exposure risk index corresponding to each sub-time segment, obtain the exposure risk index time series corresponding to the segmented monitoring time series data.
[0154] This step extracts the exposure risk index corresponding to each sub-time segment in chronological order, associates it with the corresponding timestamp or time segment identifier, and combines them to form a numerical sequence arranged by time, i.e., the exposure risk index time series sequence. In a feasible implementation, the exposure risk indices of each sub-time segment can be arranged into an array in ascending chronological order. The array index corresponds to the sub-time segment number, and each array element contains a timestamp, a risk index value, and the corresponding updated risk value. The sequence is output in JSON array or binary stream format for caching by edge computing nodes or uploading to the central server for processing in step S105.
[0155] This embodiment achieves the gradual generation and dynamic updating of the exposure risk index time series by subdividing segmented monitoring time series data into sub-time segments and employing a recursive calculation method. First, the division into sub-time segments provides fine-grained time processing units for the recursive calculation, enabling edge nodes to process data segment by segment in a streaming manner, avoiding the memory pressure and latency caused by calculating all data at once. Second, by introducing preset initial risk values and establishing a mechanism for transferring risk values from the previous time segment to the current segment, the recursive calculation can effectively integrate historical risk states and accurately capture the cumulative effect and time correlation of new pollutants in the aquatic environment. Third, the multi-dimensional calculation of pollutant index data (exposure intensity, continuous change, fluctuation amplitude) characterizes the dynamic features of pollutants from different perspectives, providing rich input information for the recursive model and improving the comprehensiveness of risk assessment. Finally, the iterative execution of the recursive model propagates local calculation results forward along the time axis, ensuring that the risk value of each sub-time segment includes historical influences. The output exposure risk index time series not only reflects instantaneous risk but also embodies the trend of risk evolution over time.
[0156] In one embodiment, during the recursive calculation process, step S10422 calculates the state residual between the current sub-time segment and the output risk value of the previous sub-time segment; when the state residual is greater than a preset residual threshold, or when the risk change direction of multiple consecutive sub-time segments is consistent, the smoothing coefficient of the exposure risk recursive calculation model is corrected, and the updated smoothing coefficient is used to participate in the recursive calculation of subsequent sub-time segments.
[0157] State residuals refer to the absolute value of the difference between the updated risk value output by the current sub-time segment and the risk value output by the previous sub-time segment during the recursive calculation process. They are used to quantify the degree of abrupt change in risk state between adjacent time segments.
[0158] The preset residual threshold refers to the pre-set critical value of the state residual. When the state residual is greater than this threshold, it indicates that the risk state has changed significantly, triggering the model parameter correction mechanism.
[0159] The direction of risk change refers to the trend of increase or decrease in risk values between adjacent sub-time segments. A positive sign usually indicates an increase in risk, and a negative sign indicates a decrease in risk. If the direction of risk change remains consistent across multiple consecutive sub-time segments, it reflects a continuous upward or downward trend in risk.
[0160] The smoothing coefficient is a parameter used in the exposure risk recursive calculation model to control the weighting of historical risk status and current pollutant index data. A larger smoothing coefficient means the model responds faster to the current data, while a smaller smoothing coefficient means the model output is smoother and less sensitive to noise.
[0161] The updated smoothing coefficient refers to the new smoothing coefficient obtained by dynamically adjusting the current state residual or risk change trend when the correction condition is triggered. It is used to replace the original smoothing coefficient in subsequent recursive calculations to adapt to changes in data distribution.
[0162] This embodiment effectively enhances the adaptability of the exposure risk recursive calculation model to dynamic changes in the concentration of new pollutants in the aquatic environment by introducing an adaptive correction mechanism for the smoothing coefficient based on state residuals and the direction of risk change during the recursive calculation process. When the pollutant concentration changes abruptly due to sudden emissions or dilution and diffusion, the state residual exceeds a preset threshold, and the model automatically increases the smoothing coefficient, giving greater weight to the pollutant index data of the current sub-time segment in the recursive calculation, thereby quickly tracking risk changes and avoiding lag in assessment results. When the pollutant concentration shows a continuous upward or downward trend, the risk change direction is consistent across multiple consecutive sub-time segments, and the model adjusts the smoothing coefficient accordingly, which can suppress assessment oscillations caused by short-term fluctuations or enhance response sensitivity in the early stages of a trend. This dynamic adjustment mechanism enables the recursive calculation model to maintain an optimal balance between smoothing and response under different pollution scenarios, and the output exposure risk index time series more accurately reflects the actual evolution of the exposure risk of new pollutants.
[0163] For step S105, the initial risk weight of each segmented processing unit in the monitoring task association graph is calculated based on the time series sequence of the exposure risk index of each edge computing node; based on the directed edges of the nodes in the monitoring task association graph, risk propagation calculation is performed to obtain the updated node risk weight of each segmented processing unit.
[0164] Initial risk weight refers to a scalar value calculated based on the time series of the exposure risk index, which characterizes the degree of risk contribution of the segmented processing unit in the initial state.
[0165] Risk propagation calculation refers to the calculation process that, based on the directed edges of nodes in the monitoring task association graph, transmits and superimposes the risk weights of each node along the dependency path through iteration or matrix operations.
[0166] The updated node risk weight refers to the final risk quantification value of each segmented processing unit obtained after risk propagation calculation, which integrates local exposure risk and global propagation impact.
[0167] This step transforms the local risk quantification results into the initial risk state of graph nodes, and achieves a leap from isolated assessment to global collaborative assessment by simulating the propagation and superposition of risks in the dependent network. Specifically, firstly, for each segmented processing unit, the time series of exposure risk indices calculated by its corresponding edge nodes is summarized and converted into a scalar value as the initial risk weight using statistical methods. Then, using the monitoring task association graph as a framework, the initial risk weight of each node is passed to downstream nodes along the outgoing edges using the propagation path defined by the directed edges of the nodes, through iterative updates or matrix operations. The downstream nodes weight and fuse the received risk values with their own initial risk weights. After multiple rounds of iteration until convergence, the updated node risk weight is obtained. This weight integrates the local exposure risk and the indirect risk contribution from other nodes.
[0168] In one embodiment, step S105, based on the directed edges of nodes in the monitoring task association graph, performs risk propagation calculation to obtain the updated node risk weights for each segmented processing unit, including: Step S1051: Using the initial risk weights of each segment processing unit in the monitoring task association graph as the initial state, the risk propagation update is iteratively executed based on the directed edges and edge weights of the nodes in the monitoring task association graph; after satisfying the preset iteration termination condition, the node risk weights of each segment processing unit after iterative update are output.
[0169] The initial state refers to the starting conditions for risk propagation calculation. The initial risk weights of each segment processing unit in the monitoring task association graph are used as the initial risk values of each graph node, forming the initial value vector for risk propagation iteration.
[0170] Edge weight refers to the numerical attribute attached to the directed edge of a node in the monitoring task association graph. Here, it represents the dependence strength of the corresponding data flow dependency relationship and is used in risk propagation calculation to quantify the proportion of risk transmission along that edge.
[0171] Iterative execution of risk propagation update refers to using the monitoring task association graph topology as a basis, according to the preset propagation rules, distributing the current risk weight of each graph node proportionally to the downstream nodes along the outgoing edges, and weighting and fusing the received risk value with the node's own risk, and cyclically executing this process to simulate the diffusion and superposition of risks in the network.
[0172] Preset iteration termination conditions refer to the pre-defined conditions used to determine when risk propagation calculations should stop. These typically include the number of iterations being greater than or equal to a preset upper limit, the change in node risk weights being less than a preset convergence threshold, or the risk distribution becoming stable. These conditions are used to balance computational accuracy and computational cost.
[0173] This embodiment achieves global collaborative quantification of the toxicity risk of new pollutants in the monitoring network by iteratively performing risk propagation calculations based on directed edges and edge weights of nodes in the monitoring task association graph, starting with initial risk weights. First, using the initial risk weights as the initial state ensures that the local exposure risk index can serve as the source input for risk propagation. Second, risk values are allocated proportionally according to edge weights, resulting in a greater proportion of risk transmission between nodes with higher dependency strength, accurately reflecting the impact of pollutant migration and hydrological associations on risk propagation. Third, the iterative update mechanism, through multiple rounds of risk diffusion and fusion, gradually converges the risk weights of each segmented processing unit to a stable value. This value integrates the risk contribution across the entire network, effectively overcoming the deficiency of traditional isolated assessments that ignore the influence of inter-node associations. Finally, preset iteration termination conditions ensure computational accuracy while avoiding resource waste caused by infinite iterations. The final updated node risk weights provide a global quantitative basis for subsequent toxicity level mapping, significantly improving the accuracy and reliability of early warning of new water pollutant risks.
[0174] In one embodiment, step S1051 iteratively performs the risk propagation update step, including iterative processing based on a random walk restart algorithm: Step S10511: Obtain the initial risk weight of each segmented processing unit; filter segmented processing units whose initial risk weight is greater than or equal to the preset restart screening threshold and whose window time proportion of the risk value that meets the preset conditions is greater than the preset proportion threshold, and generate a restart weight sequence; wherein, the restart injection weight corresponding to each segmented processing unit in the restart weight sequence is the product of the initial risk weight of the segmented processing unit and the preset restart coefficient.
[0175] The preset restart screening threshold refers to a pre-set critical value used to screen high initial risk segmented processing units. Only segmented processing units with an initial risk weight greater than or equal to this threshold are included in the candidate set of the restart weight sequence.
[0176] The window time ratio refers to the ratio of the number of aggregated windows meeting preset conditions to a preset continuous window number threshold within a continuous window segment corresponding to a segmented processing unit. It measures the degree of continuous risk exposure over time. A continuous window segment refers to a time period consisting of multiple consecutive aggregated windows within a time segment corresponding to a segmented processing unit, used to assess the continuous nature of risk over time. An aggregated window refers to a sub-time interval with a fixed duration obtained by further dividing the time segment corresponding to a segmented processing unit, serving as the basic unit for statistically analyzing risk values that meet preset conditions. The preset continuous window number threshold is a pre-set benchmark value used to normalize the number of aggregated windows, typically the total number of aggregated windows within a continuous window segment or a specific length, used to convert the number of aggregated windows meeting preset conditions into a ratio.
[0177] The preset percentage threshold refers to the minimum value of the window time percentage set in advance. When the window time percentage is greater than the threshold, it indicates that the risk has sufficient continuous exposure characteristics within the time segment, and the segmented processing unit can enter the restart weight sequence.
[0178] The restart weight sequence refers to the sequence of segmented processing units that meet the restart screening conditions and their corresponding restart injection weights, which are used to provide injection risk for the regression initial state in the random walk restart algorithm.
[0179] Restart injection weight refers to the weight value corresponding to each segment processing unit in the restart weight sequence, which is used for the periodic injection of risk propagation process. It is calculated as the product of the initial risk weight of the segment processing unit and the preset restart coefficient.
[0180] The preset restart coefficient is a coefficient used to control the strength of the restart injection weight. The value ranges from 0 to 1. The larger the coefficient, the stronger the pull-back effect of the restart injection on the node risk weight.
[0181] This step extracts the initial risk weights of each segmented processing unit from the initial risk weight calculation results in step S105. Then, for each segmented processing unit, it determines whether its initial risk weight is greater than or equal to a preset restart screening threshold. If so, it further calculates the window time percentage within the corresponding time segment. The window time percentage is calculated as follows: the time segment is divided into multiple aggregated windows, a continuous window segment composed of consecutive aggregated windows is identified, and the number of aggregated windows within the continuous window segment that meet preset conditions (such as an exposure risk index greater than a set value) is counted. This number is then divided by a preset continuous window number threshold to obtain a ratio. If this ratio is greater than a preset percentage threshold, the segmented processing unit is included in the restart weight sequence. For each segmented processing unit in the sequence, its initial risk weight is multiplied by a preset restart coefficient to obtain the corresponding restart injection weight. All restart injection weights and segmented processing unit identifiers together constitute the restart weight sequence. In other words, this step obtains the initial risk weights of each segmented processing unit; filters segmented processing units that meet two conditions to generate a restart weight sequence; the two conditions include: the initial risk weight of the segmented processing unit is greater than or equal to a preset restart screening threshold; and within the time segment corresponding to the segmented processing unit, the window time proportion of risk values that meet the preset conditions is greater than a preset proportion threshold. In a feasible implementation, the preset restart screening threshold can be set to the 80th percentile of all initial risk weights, the preset proportion threshold can be set to 0.6, the preset condition can be an exposure risk index greater than 0.5, the preset continuous window number threshold can be set to the total number of aggregated windows within a continuous window segment (e.g., 10), and the aggregated window duration can be set to 10 seconds; when calculating the window time proportion, the number of aggregated windows with an exposure risk index greater than 0.5 within the continuous window segment is counted and divided by 10 to obtain the ratio; the finally generated restart weight sequence is stored in dictionary form, with the segmented processing unit ID as the key and the restart injection weight as the value, for use in subsequent iterations.
[0182] Step S10512, execute the iterative processing steps: obtain the node weights of each segment processing unit in the current iteration round; for each segment processing unit, find all directed edges of nodes starting from that segment processing unit, and calculate the sum of the edge weights of these directed edges; for each directed edge of a node, according to the proportion of the edge weight to the total edge weight, split the node weight of the segment processing unit in the current round, obtain the propagation weight of the segment processing unit corresponding to the endpoint of the edge, and distribute it to the endpoint; accumulate the received propagation weights for each segment processing unit, and add the restart injection weights of the corresponding segment processing units in the restart weight sequence to generate the updated node weights of each segment processing unit in the current iteration round.
[0183] The current iteration round refers to the iteration number currently being executed in the risk propagation calculation, which starts from 1 and increments.
[0184] Node weight refers to the risk quantification value corresponding to the segmented processing unit in the current round during the risk propagation iteration process. It is the basis for calculating the propagation weight and the updated node weight.
[0185] The sum of edge weights refers to the sum of the weights of all directed edges originating from a certain segmented processing unit, and is used to normalize the allocation ratio.
[0186] Propagation weight refers to the risk value that is distributed to the segmentation processing unit corresponding to the endpoint of the edge after splitting the node weight of the source segmentation processing unit in the current round according to the proportion of the edge weight of the directed edge to the total edge weight.
[0187] The updated node weight refers to the node risk weight generated in the current iteration round by adding all the propagation weights received by each segment processing unit and the restart injection weight of the corresponding segment processing unit in the restart weight sequence. This weight serves as the input or final output for the next iteration.
[0188] At the start of each iteration, this step obtains the current node weight of each segmented processing unit (the initial risk weight in the first round, and the updated node weight output from the previous round in subsequent rounds). For each segmented processing unit in the graph, all directed edges originating from that unit in the monitoring task association graph are retrieved, and the edge weights of these edges are summed to obtain the total edge weight. For each edge, the ratio of the edge weight to the total edge weight is calculated, and this ratio is multiplied by the node weight of the current segmented processing unit to obtain the propagation weight distributed to the segmented processing unit at the edge's endpoint. This propagation weight is then sent to the corresponding endpoint. After all segmented processing units have completed the propagation weight distribution, each segmented processing unit summarizes the propagation weights received from all incoming edges and sums them to obtain the accumulated propagation weight value. Subsequently, it is checked whether the segmented processing unit exists in the restart weight sequence. If it exists, its corresponding restart injection weight is taken, and it is added to the accumulated propagation weight value to generate the updated node weight of that unit. If it does not exist, only the accumulated propagation weight value is used as the updated node weight.
[0189] Step S10513: When the change in the node weight of each segment processing unit in the current iteration and the previous iteration is less than the preset weight change stability threshold, or the iteration number is greater than or equal to the preset maximum iteration number, the iteration is terminated and the updated node risk weight of each segment processing unit is obtained; otherwise, the next iteration is initiated.
[0190] The weight change stability threshold refers to the maximum allowable change in the weight of each segment processing unit node between two adjacent iterations. When the change is less than this threshold, it is determined that the risk propagation has converged.
[0191] The maximum number of iterations refers to the pre-set upper limit of the maximum number of iterations for risk propagation calculation, which prevents infinite iterations and ensures computational efficiency.
[0192] This step determines the convergence state or forced termination condition of the risk propagation calculation, ensuring that the output results meet both accuracy requirements and computational feasibility, ultimately obtaining the node risk weights that integrate global propagation effects and local restart constraints. Specifically: after generating updated node weights in each iteration, the change between the updated node weight vector and the node weight vector of the previous iteration is calculated, typically using Euclidean distance or Manhattan distance as a metric; if the change is less than a preset weight change stabilization threshold, risk propagation is considered converged, and iteration stops; or, if the current iteration round is greater than or equal to the preset maximum iteration round, iteration is forcibly terminated; after termination, the updated node weights of the last round are output as the updated node risk weights for each segmented processing unit.
[0193] This embodiment effectively solves the problem of unlimited risk diffusion or excessive smoothing caused by complex network topology in traditional risk propagation by introducing a risk propagation computation mechanism based on a random walk restart algorithm. First, by setting a restart screening threshold and a window time proportion threshold, segmented processing units with high initial risk and continuous exposure are accurately selected as restart nodes. The window time proportion accurately reflects the degree of continuous risk exposure over time and assigns a restart injection weight based on the initial risk weight and a preset restart coefficient. In each iteration, node weights are split according to the edge weight ratio and propagation weights are distributed, achieving proportional diffusion of risk along dependent edges. Simultaneously, the restart injection weight is superimposed, ensuring that each node's risk weight absorbs the propagation risk in the network and periodically returns to a local high-confidence risk source, preventing risk dilution or deviation from reality during propagation. Finally, the algorithm maintains a balance between convergence and computational efficiency through a dual termination condition of a change threshold and a maximum number of iterations. The final updated node risk weight output integrates global topological information of the monitoring task association graph, the dependency strength represented by edge weights, and the local risk characteristics injected by the restart mechanism, significantly improving the accuracy and robustness of toxicity level assessment.
[0194] In one embodiment, step S105, which calculates the initial risk weight of each segmented processing unit within the monitoring task association graph based on the time-series sequence of the exposure risk index of each edge computing node, further includes cross-node aggregation and state correction processing steps. Step S1052: Obtain the time series of exposure risk index output by all edge computing nodes, and obtain all directed edges of the nodes in the monitoring task association graph.
[0195] This step retrieves the exposure risk index time series from the result cache or message queue of each edge computing node. Each series contains a timestamp and the corresponding risk value. At the same time, it reads all directed edges of the monitoring task association graph from the graph database or memory, including the start point, end point and edge weight information.
[0196] Step S1053: Select directed edges of nodes whose starting unit group and ending unit group are different; calculate the aggregation weight of each unit group based on the edge weight of the selected directed edges and the data transmission direction, and determine the order of aggregation processing.
[0197] A unit group refers to a collection of multiple segmented processing units arranged according to preset rules (such as the same monitoring node, the same pollutant type, or the same spatial area), which is used for resource scheduling, task assignment, and cross-node aggregation operations.
[0198] The unit group to which the starting point belongs and the unit group to which the ending point belongs refer to the unit group to which the starting point segment processing unit and the unit group to which the ending point segment processing unit belong in the directed edge of the node in the monitoring task association graph.
[0199] Aggregation weight refers to the weight coefficient calculated based on the edge weight of the directed edge of the node and the data transmission direction, which is used to weight and merge the risk values of each unit group when aggregating across unit groups.
[0200] The order of aggregation processing refers to the order in which aggregation operations are performed, determined by the dependencies between unit groups. It usually starts from the unit group at the source of the dependency and proceeds gradually downstream.
[0201] This step first assigns a unit group identifier to each segmented processing unit in the monitoring task association graph; it then traverses all directed edges of the nodes, checking whether the unit group to which the starting segmented processing unit belongs is different from the unit group to which the ending segmented processing unit belongs. If they are different, the edge is retained as a cross-unit group dependency edge; for each retained edge, the aggregate weight contribution of the edge to the ending unit group is calculated based on the edge weight and the data transmission direction (from the starting point to the ending point); the aggregate weight contributions of all edges whose ending points are in the same unit group are summarized to obtain the aggregate weight of the unit group; at the same time, based on the topology of the cross-unit group dependency edges, a topological sort is performed to determine the order in which each unit group performs aggregate processing, usually starting from the unit group with an in-degree of 0.
[0202] Step S1054: Based on the time stamps of the risk values in the time series of each exposure risk index, calculate the time offset between different unit groups; perform time lag compensation on the risk values according to the time offset, and aggregate the risk values with matching time stamps after time lag compensation into the same time window.
[0203] The timestamp refers to the timestamp corresponding to each risk value in the exposure risk index time series, used to identify the moment when the risk value was generated.
[0204] Time offset refers to the offset of risk values on the time stamp caused by data acquisition time difference, transmission delay or processing delay between different unit groups.
[0205] Time delay compensation refers to the process of correcting the time stamp of risk values based on time offset, so that the risk values of different unit groups are aligned in the time dimension.
[0206] The same time window refers to grouping risk values whose time stamps fall within the same time interval after time delay compensation together to form a temporary data set for aggregation calculation.
[0207] This step extracts the timestamps of the exposure risk index time series for every two dependent unit groups, and calculates the difference between the start time or key time point of the series as the time offset. The timestamps of the risk values are then shifted and corrected based on the time offset, ensuring that the corrected timestamps reflect the risk status at the same physical moment. Subsequently, a uniform time window length is set, and risk values whose corrected timestamps fall within the same time window are grouped together, forming a cross-unit group risk value set within each time window. In a feasible implementation, the time offset can be calculated using a cross-correlation function or set based on a known transmission delay; time delay compensation is achieved by adding or subtracting the offset from the timestamps; and the time window length is set to 1 minute, grouping risk values with compensated timestamps within the same minute into the same window.
[0208] Step S1055: For risk values within the same time window, sort and accumulate them according to the aggregation weight of the corresponding unit group to obtain the dependency weighted median value; determine the deviation limit range based on the dependency weighted median value and the preset window state fluctuation limit value, truncate the risk values that fall outside the range, and perform distributed aggregation operation according to the aggregation weight to obtain the aggregated window risk time series.
[0209] The weighted median relies on the median value, which is used to take the weighted median value after sorting the risk values within the same time window according to the aggregate weight of the corresponding unit group, and then uses it as a robust estimate of the risk concentration trend in that window.
[0210] The preset window status fluctuation limit refers to the pre-set allowable range for measuring the fluctuation of risk values within the window, and is used to determine the deviation limit range.
[0211] The deviation limit interval refers to the interval formed by expanding to both sides of the weighted median value based on the preset window state fluctuation limit, and is used to identify and eliminate abnormal risk values.
[0212] Boundary truncation refers to forcibly setting risk values that fall outside the deviation limit range to the range boundary value in order to suppress the impact of outliers on the aggregation results.
[0213] Distributed aggregation operation refers to the weighted summation or weighted average of the truncated risk values according to the aggregation weight of each unit group to obtain the aggregated window risk value.
[0214] The aggregated window risk time series refers to the time series formed by arranging the window risk values obtained from each time window through distributed aggregation operations in chronological order.
[0215] This step involves collecting the aggregate weights of all unit groups and their corresponding risk values for each time window; sorting the risk values by aggregate weight from largest to smallest, calculating the weighted cumulative sum, and taking the risk value corresponding to a cumulative sum greater than or equal to half of the total weight as the dependent weighted median; determining the deviation limit interval based on a preset window state fluctuation limit (e.g., ±20% of the median); comparing each risk value within the window with this interval, and truncating to the nearest interval boundary if it exceeds the limit; multiplying the truncated risk value by the corresponding unit group's aggregate weight and summing the results to obtain the aggregated risk value for that window; and iterating through all time windows to form the aggregated window risk time series. In a feasible implementation, the dependent weighted median can be calculated using linear interpolation; the preset window state fluctuation limit is set to 0.2 times the dependent weighted median; and the distributed aggregation operation uses the weighted summation formula: Aggregated risk value = Σ(truncated risk value × aggregate weight) / Σ aggregate weight.
[0216] Step S1056: Traverse the aggregated window risk time series and identify the number of windows that continuously meet the preset fluctuation conditions for risk value changes; divide the number of windows by the preset continuous window number threshold to obtain the continuous window ratio; calculate the continuous correction coefficient using the continuous window ratio, and use the continuous correction coefficient to numerically correct the window risk time series to obtain the corrected window risk time series.
[0217] The number of windows corresponding to continuous risk value changes meeting preset fluctuation conditions refers to the count of windows in a series of consecutive time windows where the risk value changes between adjacent windows meet preset conditions (such as the change amplitude not exceeding the preset window state fluctuation limit).
[0218] The continuous window ratio refers to the ratio obtained by dividing the number of windows that continuously meet the above conditions by a preset continuous window number threshold, and is used to measure the degree of continuous risk fluctuation.
[0219] The continuous correction coefficient refers to the coefficient calculated using a preset function based on the proportion of continuous windows, which is used to numerically correct the time series of window risks in order to compensate for the deviation caused by continuous fluctuations.
[0220] The corrected window risk time series refers to the window risk time series after being corrected by continuous correction coefficients.
[0221] This step sets preset fluctuation conditions, such as the change in risk values of adjacent windows not exceeding a preset window state fluctuation limit; it iterates through the aggregated window risk time series and counts the number of windows that continuously meet the condition; it divides this number by a preset threshold for the number of consecutive windows (e.g., 5) to obtain the proportion of consecutive windows; it uses a preset function (e.g., a linear function or a sigmoid function) to map the proportion of consecutive windows to a continuous correction coefficient, which is usually greater than 1 to amplify the risk or less than 1 to attenuate the risk; it multiplies each risk value in the window risk time series by the continuous correction coefficient to obtain the corrected window risk time series. In a feasible implementation, the preset fluctuation condition is set as the absolute value of the difference between risk values of adjacent windows being greater than 0.1; the proportion of consecutive windows is calculated as the number of consecutively satisfied windows / 5; the continuous correction coefficient = 1 + 0.5 × the proportion of consecutive windows; during correction, each risk value is multiplied by this coefficient.
[0222] Step S1057: Traverse the corrected window risk time series. When any risk value falls at the boundary of two preset adjacent risk threshold intervals, the risk value is moved back to the inside of one of the risk threshold intervals to obtain the comprehensive risk index time series.
[0223] The preset adjacent risk threshold intervals refer to multiple risk value intervals that are pre-divided for toxicity level assessment, with boundary values between adjacent intervals.
[0224] Risk value reversal refers to adjusting a risk value to the inside of one of two adjacent risk threshold ranges when the risk value falls exactly at the boundary of the two ranges, in order to avoid uncertainty in the level determination caused by the ambiguity of the boundary.
[0225] The composite risk index time series refers to the final risk index sequence after the callback process, which is used as the initial risk weight.
[0226] The comprehensive risk index refers to each risk value in the time series of the comprehensive risk index, which is directly used as the initial risk weight of the corresponding segmented processing unit.
[0227] This step presets multiple adjacent risk threshold intervals, such as [0, 0.2), [0.2, 0.4), etc.; it iterates through each risk value in the corrected window risk time series and checks whether it is equal to the boundary value of two intervals; if so, it is pulled back to the inside of one of the intervals according to the preset rules, such as pulling back to the inside of the lower interval or the inside of the higher interval, usually based on historical trends or context; after the pullback, a comprehensive risk index time series is formed.
[0228] Step S1058: Use each comprehensive risk index in the time series of the comprehensive risk index as the initial risk weight of the corresponding segmented processing unit.
[0229] This step associates each comprehensive risk index in the comprehensive risk index time series with the corresponding segmented processing unit, and uses it as the initial risk weight value of that unit in the monitoring task association graph; if a segmented processing unit does not have a corresponding comprehensive risk index, the default value or interpolation based on adjacent nodes is used.
[0230] This embodiment introduces cross-node aggregation and state correction processing steps in step S105 to achieve a precise mapping from the local exposure risk index of edge nodes to the global initial risk weight. By screening cross-unit group dependency edges and calculating aggregation weights and aggregation order, a reasonable cross-node information fusion path is established; calculating time offsets and performing time delay compensation eliminates the time asynchrony problem between different unit groups, ensuring the time consistency of risk values within the same time window; then, outlier truncation and distributed aggregation are performed using dependency-weighted median and deviation limit intervals, effectively suppressing the interference of abnormal data on the aggregation results and obtaining a robust window risk time series; next, the continuous correction coefficient is calculated by the continuous window proportion to dynamically correct the continuous fluctuation risk, thereby accurately capturing the continuous state of the risk stabilization period and enhancing the sensitivity of the assessment method to gradual pollution events; subsequently, the boundary risk values are processed by callback, avoiding the boundary ambiguity problem of toxicity level determination and improving the certainty of the assessment results; finally, the comprehensive risk index is used as the initial risk weight, providing accurate and continuous input for subsequent risk propagation calculations.
[0231] For step S106, based on the updated node risk weights of each segmented processing unit and the preset toxicity level mapping threshold, the assessment results of the new pollutant toxicity level corresponding to each segmented processing unit are determined.
[0232] The toxicity level mapping threshold refers to the risk weight threshold value set in advance based on toxicological data or environmental standards, which is used to divide continuous risk weights into different toxicity level intervals.
[0233] The assessment results of the toxicity level of new pollutants refer to the evaluation conclusions of the corresponding toxicity level (such as low risk, medium risk, high risk, etc.) determined by comparing the updated node risk weights of each segmented treatment unit with the toxicity level mapping threshold.
[0234] This step transforms the fused global risk quantification value into an intuitively interpretable toxicity level classification, providing a decision-making basis for water environment risk early warning. Specifically, one or more toxicity level mapping thresholds are pre-set. These thresholds are determined based on the toxicological data of new pollutants, environmental standards, or historical statistical results, and are used to divide continuous risk weight values into different toxicity level intervals. For each segmented processing unit in the monitoring task association graph, its updated node risk weight is compared with the preset thresholds, and the corresponding toxicity level is determined according to the interval in which the weight is located, such as low risk, medium risk, and high risk levels. Finally, the toxicity level assessment results of the new pollutants corresponding to each segmented processing unit are output. In one embodiment, based on the time segment corresponding to each segmented processing unit, the toxicity level assessment results of the new pollutants corresponding to each segmented processing unit and the corresponding time segment are output according to the time sequence relationship.
[0235] In one embodiment, the preset toxicity level mapping threshold includes multiple graded toxicity level mapping thresholds; Step S106, based on the updated node risk weights of each segmented treatment unit and the preset toxicity level mapping threshold, determines the assessment result of the new pollutant toxicity level for each segmented treatment unit, including: Step S1061: The updated node risk weight corresponding to each segmented processing unit is compared with multiple graded toxicity level mapping thresholds; based on the comparison results, the assessment result of the new pollutant toxicity level corresponding to each segmented processing unit is determined.
[0236] The graded toxicity level mapping threshold refers to the set of critical values that divide continuous risk weight values into multiple toxicity level intervals. It usually includes at least two thresholds, each of which corresponds to a level switching point, used to map the updated node risk weight to different toxicity levels.
[0237] Specifically, for each segmented processing unit in the monitoring task association graph, the updated scalar value of the node risk weight thereof is extracted; the weight value is compared one by one with a plurality of preset hierarchical toxicity level mapping thresholds in descending or ascending order, and the corresponding toxicity level is determined according to the threshold interval where the weight value falls, so as to generate a comparison result; finally, the comparison result is mapped to a specific toxicity level description (such as safe, alert, warning, dangerous, etc.), to form a new pollutant toxicity level assessment result for the segmented processing unit. In a practical implementable manner, four preset hierarchical toxicity level mapping thresholds T1, T2, T3, T4 are set, which satisfy T1<T2<T3<T4, and the node risk weight is compared with these thresholds: if the weight value is less than or equal to T1, the assessment result is level I (safe); if the weight value is greater than T1 and less than or equal to T2, the assessment result is level II (alert); if the weight value is greater than T2 and less than or equal to T3, the assessment result is level III (warning); if the weight value is greater than T3 and less than or equal to T4, the assessment result is level IV (high risk); if the weight value is greater than T4, the assessment result is level V (severe danger); after the comparison is completed through conditional judgment statements, the toxicity level assessment result of each segmented processing unit is output for invocation by the early warning system.
[0238] In this embodiment, multi-level comparison is performed on the updated node risk weights by introducing a plurality of hierarchical toxicity level mapping thresholds, so as to realize the scientific mapping of the new pollutant toxicity risk from continuous quantitative values to discrete levels. Compared with single threshold division, multi-threshold grading can describe the gradient change of the risk degree more finely, so that the assessment result not only reflects whether the risk exceeds the standard, but also accurately indicates the severity of the excess, providing a reliable basis for differentiated early warning response.
[0239] In one embodiment, the segmented processing unit is bound with corresponding time segment information; the new pollutant toxicity level assessment result of each segmented processing unit is bound with corresponding time segment information and edge computing node information; After the step S106 of determining the new pollutant toxicity level assessment result corresponding to each segmented processing unit based on the updated node risk weight of each segmented processing unit and the preset toxicity level mapping thresholds, the method further comprises: Step S1062: acquiring laboratory review data, wherein the laboratory review data includes a review toxicity level, review time and corresponding edge computing node information.
[0240] The laboratory review data refers to toxicity assessment data serving as a reference true value obtained after offline detection of water samples collected on site by using precision laboratory analytical instruments, which is used for verifying the accuracy of online assessment by edge computing nodes.
[0241] The review toxicity level refers to the pollutant toxicity level determined in the laboratory review data according to a standardized toxicology experimental procedure, which is usually used as a reference standard for assessment accuracy.
[0242] The verification time refers to the sample collection time or experimental analysis completion time corresponding to the laboratory verification data, and is used to match the online evaluation results in terms of time dimension.
[0243] This step involves periodically or as needed acquiring laboratory verification data for on-site water samples through a laboratory information management system or data interface. Each verification data entry includes the verified toxicity level, verification time, and information about the edge computing node that performed the water sample monitoring. This data is then correlated with the new pollutant toxicity level assessment results generated in step S1061 for each segmented treatment unit. In a feasible implementation, the laboratory verification data is synchronized from the laboratory database to the edge computing center server via a secure transmission protocol. The data format uses structured records, including fields for sample number, verification time, edge node ID, and verified toxicity level. The system caches this data in its local database, awaiting invocation in the matching and correction steps.
[0244] Step S1063: Match the laboratory verification data with the new pollutant toxicity level assessment results in terms of time and edge computing node dimensions, calculate the level difference value between the assessment level and the verification toxicity level; calculate the threshold adjustment amount based on the difference direction and difference magnitude of the level difference value, and use the recursive least squares algorithm to recursively correct the toxicity level mapping threshold to obtain the corrected toxicity level mapping threshold.
[0245] The grade difference value refers to the quantitative difference between the toxicity grade obtained from the online assessment and the toxicity grade verified by the laboratory. It is used to measure the degree of deviation between the edge computing assessment result and the baseline true value.
[0246] The direction of difference refers to the positive or negative attribute of the grade difference value. A positive sign indicates that the online assessment grade is higher than the review grade, and a negative sign indicates that the online assessment grade is lower than the review grade, reflecting the tendency of assessment deviation.
[0247] The magnitude of the difference refers to the absolute value of the difference in grades, reflecting the severity of the assessment deviation.
[0248] The threshold adjustment amount refers to the quantitative value calculated based on the direction and magnitude of the difference in the grade difference value, which is used to increase or decrease the threshold for mapping toxicity grade.
[0249] The recursive least squares algorithm is a recursive parameter estimation algorithm that can update model parameters online using new observation data. Here, it is used to recursively correct the toxicity level mapping threshold based on the level difference value, thereby achieving adaptive optimization of the threshold.
[0250] The corrected toxicity level mapping threshold refers to the new graded toxicity level mapping threshold obtained by recursively correcting based on laboratory verification data using the recursive least squares algorithm. It is used to replace the original threshold in the toxicity level assessment of subsequent newly added segmented processing units.
[0251] The newly added segmented processing unit refers to the segmented processing unit that has been newly received after the toxicity level mapping threshold correction has been completed, and which has not yet undergone toxicity level assessment.
[0252] This step establishes a closed-loop feedback mechanism between online assessment results and laboratory benchmarks. By quantifying deviations and recursively correcting grading thresholds, the toxicity level mapping standard can adapt to changes in pollution characteristics in different water areas and time periods, continuously improving the accuracy of assessments. Specifically, firstly, based on the time segment information and edge computing node information bound to the segmented processing units, the review time and edge computing node information of the laboratory review data are matched with the evaluation results in a two-dimensional manner to filter out evaluation results with the same edge computing node and overlapping or most recent time segments. Then, the difference between the successfully matched evaluation level and the review toxicity level is calculated, including the direction (positive or negative) and the magnitude (absolute value). Next, the threshold adjustment is calculated based on the direction and magnitude of the difference. For example, if the evaluation level is consistently higher than the review level, it indicates that the threshold setting is too low, leading to misjudgment, and the threshold needs to be adjusted upwards. Then, a recursive least squares algorithm is used to incorporate the threshold adjustment into the toxicity level mapping threshold update process. The algorithm uses the level difference value as the observation value and each grade threshold as the parameter to be estimated, using new matching data to recursively update the parameter estimate value to obtain the corrected toxicity level mapping threshold. The corrected threshold replaces the original threshold and is used for the toxicity level evaluation of subsequent newly added segmented processing units.
[0253] This embodiment introduces a threshold recursive correction mechanism based on laboratory verification data after the toxicity level assessment results are generated, constructing a complete closed loop from online assessment to offline verification and then to parameter self-optimization. This effectively solves the problem that static threshold settings in traditional methods cannot adapt to the dynamic changes in complex aquatic environments, significantly improving the long-term accuracy and reliability of new pollutant toxicity level assessments.
[0254] In one embodiment, after step S106, which determines the assessment result of the new pollutant toxicity level for each segmented processing unit based on the updated node risk weights of each segmented processing unit and a preset toxicity level mapping threshold, the step further includes an incremental update step for monitoring feedback data: Step S1064: Obtain monitoring feedback data, which includes subsequent raw sampling observation data, edge computing node operation statistics logs, and historical external verification results.
[0255] Monitoring feedback data refers to comprehensive data continuously generated during system operation that reflects the actual status and evaluation quality of the monitoring process. It includes subsequent raw sampling observation data, edge computing node operation statistical logs, and historical external verification results, providing multi-dimensional input for incremental updates.
[0256] Subsequent raw sampling observation data refers to the time-series data of pollutant concentrations that are collected and uploaded by monitoring sensors after the initial assessment, without preprocessing or only undergoing preliminary formatting, reflecting the latest evolution of the pollution situation.
[0257] Edge computing node operation statistics logs refer to log files automatically recorded by edge computing nodes during the execution of segmented processing unit computing tasks. These logs contain information such as processing latency, resource usage, task queue status, and error messages, and are used to characterize the real-time operational health status of the nodes.
[0258] Historical assessment external verification results refer to the comparison conclusions obtained after verifying past assessment results with data from third-party systems or historical laboratories. These conclusions include a judgment on the consistency between the assessment level and the benchmark level, and are used to track the long-term accuracy of the assessment model.
[0259] This step collects subsequent raw sampling observation data, operation statistics logs, and historical evaluation external verification results from monitoring sensors, edge computing node log systems, and external verification platforms through data interfaces. The three types of data are then correlated and aligned according to timestamps and edge computing node identifiers to form a structured monitoring feedback dataset.
[0260] Step S1065: Generate feedback state increment based on subsequent raw sampling observation data; according to the pre-established temporal dependency relationship between each segmented processing unit in the monitoring task association diagram, locate the existing segmented processing unit associated with the monitoring process to which the subsequent raw sampling observation data belongs, superimpose the feedback state increment onto the located segmented processing unit, and update the node state of the segmented processing unit, wherein the node state includes window state representation and recursive calculation intermediate quantity.
[0261] Feedback state increment refers to the quantitative data calculated based on subsequent raw sampling observation data, used to characterize the difference between the latest monitoring state and the original state of the existing segmented processing unit, and is used to update the node state.
[0262] The temporal dependency relationship refers to the sequential constraint between the time segments corresponding to different segmented processing units in the monitoring task association diagram, that is, the monitoring status of the previous time segment has a causal or recursive influence on the subsequent time segment.
[0263] Existing segmented processing units refer to segmented processing units that have been created and completed the initial risk assessment before the current incremental update step, and whose node status has been stored in the system.
[0264] Node state refers to the set of states maintained by the segmented processing unit in the monitoring task association graph to support recursive calculation and risk propagation, including window state representation and intermediate quantities for recursive calculation.
[0265] Window status characterization refers to the quantitative description of the risk value distribution, statistical characteristics, and continuous exposure status of each aggregated window within the time segment corresponding to the segmented processing unit, reflecting the pollution situation in a local period.
[0266] Intermediate variables in recursive calculations refer to temporary variables generated during the recursive calculation process that are used to connect the calculations of preceding and following sub-time segments, such as the risk value or state residual corresponding to the previous time segment.
[0267] This step first extracts features from the subsequent raw sampling observation data, calculates the deviation between the original state and the existing segmented processing unit, and generates feedback state increments. Then, it traverses the monitoring task association graph and determines the existing segmented processing units that are temporally continuous or causally related to the latest observation data based on the temporal dependency relationship. Next, the feedback state increments are superimposed onto the located segmented processing units according to the preset fusion rules, updating their window state representation and recursive calculation intermediate quantities, such as adjusting the risk value distribution of the aggregation window and updating the risk value corresponding to the previous time segment.
[0268] Step S1066: Based on the edge computing node operation statistics log and historical external verification results, calculate the node state difference between adjacent segmented processing units after the update. Combine the level difference between the assessment level and the review toxicity level, incrementally correct the data flow dependency strength between adjacent segmented processing units, and update the edge weight of the directed edge of the corresponding node in the monitoring task association graph according to the corrected data flow dependency strength.
[0269] The node state difference refers to the degree of difference between adjacent segmented processing units in the updated node state, and is used to quantify the abruptness or continuity of risk evolution between nodes.
[0270] Incremental correction refers to the optimization process of making local adjustments to the data flow dependency strength based on the node state difference and level difference, rather than recalculating globally, and is used to update edge weights.
[0271] This step first extracts indicators such as processing latency ratio and data loss rate of adjacent segmented processing units from the operation statistics log, and calculates the state difference based on the updated node state. Simultaneously, it obtains the grade difference value from historical external verification results. Then, it constructs an incremental correction model, mapping the node state difference and grade difference value to an adjustment amount for the data flow dependency strength, and locally corrects the edge weights between adjacent segmented processing units with temporal dependencies. Finally, it updates the corrected edge weights to the monitoring task association graph. In a feasible implementation, the node state difference is calculated as the absolute value of the difference between the risk weights of adjacent nodes after the update; the incremental correction model uses fuzzy rules or linear regression, increasing the dependency strength when the state difference is large and the grade difference value is positive; the corrected edge weight = original edge weight × (1 + adjustment coefficient), where the adjustment coefficient is obtained by weighting the normalized state difference and grade difference value; the updated edge weights are written back to the monitoring task association graph for use in the next round of S105 risk propagation calculation.
[0272] This embodiment achieves continuous adaptive optimization of the assessment model and network topology by introducing an incremental update mechanism for monitoring feedback data after toxicity level assessment. First, multi-dimensional feedback data, including subsequent raw sampling observation data, operational statistical logs, and historical external verification results, is acquired, providing a panoramic view of the system's actual operating status and external benchmarks. Based on temporal dependencies, associated segmented processing units are located, and the incremental feedback status is overlaid to update node states. This ensures that the window state representation of historical nodes and the intermediate quantities in recursive calculations reflect the latest pollution situation, avoiding the problem of state obsolescence due to time. By comprehensively utilizing operational logs and verification results to calculate node state differences and level differences, the data flow dependency strength is incrementally corrected, achieving dynamic optimization of edge weights. This allows the monitoring task association graph to accurately depict the true dependency evolution between nodes. This embodiment forms a complete incremental learning closed loop from data feedback and state updates to topology optimization, effectively overcoming the accuracy decay defect of static graph models in long-term monitoring, and significantly improving the long-term stability, adaptability, and engineering practical value of the new pollutant toxicity level assessment method.
[0273] In one embodiment, the novel edge computing-based pollutant toxicity level assessment method further includes an incremental streaming process step: Step S107: Continuously receive monitoring time-series data of newly added pollutants; divide the newly added monitoring time-series data into time segments to generate new segmented processing units; add the new segmented processing units to the monitoring task association graph and update the monitoring task association graph to obtain the on-site deployment configuration data corresponding to the new segmented processing units.
[0274] The incremental streaming processing step refers to a continuous processing flow that continuously receives monitoring time-series data of new pollutants, dynamically divides them into new segmented processing units, updates the monitoring task association diagram and on-site deployment configuration, and then distributes them to edge nodes to complete the assessment. This process is used to achieve long-term uninterrupted operation of assessment tasks.
[0275] The newly added monitoring time series data refers to the time series data stream that is continuously collected and transmitted by monitoring sensors after the current assessment period, which includes the concentration of the new pollutant and other relevant environmental parameters. It is the input source for incremental streaming processing.
[0276] A time segment refers to a data interval with a clear start and end timestamp, obtained by dividing continuous new pollutant monitoring time series data into fixed or non-fixed durations, and serves as the basic time unit for generating segmented processing units.
[0277] The monitoring task association graph refers to a directed graph structure with segmented processing units as graph nodes and data flow dependencies as directed edges, used to characterize the temporal sequence, exposure status changes, and spatial distribution characteristics of various monitoring tasks.
[0278] On-site deployment configuration data refers to the configuration information describing the assignment relationship between each segmented processing unit and the edge computing node. It includes the target node identifier, data distribution path, and computing resource allocation parameters, which are used to guide the specific distribution of data and the execution of computing tasks.
[0279] This step continuously acquires new monitoring time-series data through a streaming data receiving interface. The data is divided into sliding or rolling windows according to a preset time segment length. Each time segment generates a new segmented processing unit, and its time segment information and spatial distribution characteristics are extracted. Subsequently, the new segmented processing unit is added as a new node to the monitoring task association graph. Based on its temporal dependency relationship with existing segmented processing units, exposure state changes, and node spatial distribution characteristics, new directed edges are established and edge weights are initialized, thus completing the update of the monitoring task association graph. Based on the updated graph structure and the real-time computing load information of the edge computing nodes, a strategy consistent with step S103—based on computing resources, connected component grouping, and iterative partitioning and assignment—is used to allocate corresponding edge computing nodes to the new segmented processing units, generating their on-site deployment configuration data.
[0280] Step S108: Obtain the exposure risk recursive calculation model bound to the newly added segmented processing unit; based on the field deployment configuration data, distribute the segmented monitoring time series data and exposure risk recursive calculation model bound to the newly added segmented processing unit to the corresponding edge computing nodes to obtain the new pollutant toxicity level assessment results corresponding to the newly added segmented processing unit.
[0281] This step extracts a pre-configured exposure risk recursive calculation model from the attributes bound to each newly added segmented processing unit. This model corresponds to the segmented monitoring time series data. Subsequently, the on-site deployment configuration data of the unit is parsed to determine the target edge computing node. The segmented monitoring time series data and model file are packaged into a calculation task package and sent to the target node via the network. After receiving the task package, the edge computing node loads the model and initializes the recursive state. Following the recursive calculation process from steps S10421 to S10423, the segmented monitoring time series data is divided into sub-time segments, and the exposure risk index time series is calculated step by step. The central server or coordination node collects the calculation results returned by the edge nodes, combines them with the updated directed edges and edge weights of the nodes in the monitoring task association graph, executes the risk propagation calculation in step S105 and the toxicity level mapping in step S106, and finally obtains the new pollutant toxicity level assessment result corresponding to the newly added segmented processing unit.
[0282] This embodiment introduces an incremental streaming processing step to construct a complete streaming processing chain from data access, graph structure update, task assignment, edge computing to result generation, enabling the entire toxicity level assessment method to adapt to the actual scenario of continuous data generation in water environment monitoring. First, step S107 continuously receives new monitoring time-series data and generates new segmented processing units according to time segments, realizing the dynamic expansion of the assessment object and avoiding data backlog and delays in the traditional batch processing mode. Simultaneously, adding new nodes to the monitoring task association graph and updating edge relationships ensures that the global topology can reflect the latest monitoring task dependencies in a timely manner, providing an accurate graph structure foundation for subsequent risk propagation. Second, based on the updated graph structure and real-time load information, on-site deployment configuration data is generated, inheriting the advantages of computing power awareness and load balancing from previous embodiments, ensuring efficient distribution of new tasks. Third, step S108 acquires and distributes the exposure risk recursive calculation model and segmented monitoring time-series data, enabling edge computing nodes to perform recursive calculations locally, reducing network transmission overhead and improving response speed. Finally, combined with the risk propagation and level mapping of the central server, a global collaborative assessment of new data is achieved. The output new pollutant toxicity level assessment result not only includes local exposure risk but also incorporates the propagation effect in the network. This incremental streaming processing mechanism seamlessly connects with the static assessment and dynamic correction schemes formed in the aforementioned embodiments, together constituting a new pollutant toxicity level assessment system with self-evolution capabilities and long-term stable operation.
[0283] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of this application, and this application also intends to include these modifications and variations.
Claims
1. A novel pollutant toxicity level assessment method based on edge computing, characterized in that, Includes the following steps: Acquire monitoring time-series data of new pollutants collected by each edge computing node; divide the monitoring time-series data into time segments to generate several segmented processing units, and associate each segmented processing unit with the corresponding segmented monitoring time-series data; Based on several segmented processing units and their associated segmented monitoring time-series data, the data flow dependencies between each segmented processing unit are identified, and a monitoring task association graph is constructed, wherein the monitoring task association graph uses the segmented processing units as graph nodes and the data flow dependencies as directed edges of the nodes. The monitoring task association graph is segmented into processing units to obtain field deployment configuration data, which records the assignment relationship between each segmented processing unit and each edge computing node. Based on the on-site deployment configuration data, the segmented monitoring time series data bound to each segmented processing unit is distributed to the corresponding edge computing nodes, and each edge computing node is instructed to calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data. Based on the time series of the exposure risk index of each edge computing node, calculate the initial risk weight of each segmented processing unit in the monitoring task association graph; Based on the directed edges of the nodes in the monitoring task association graph, risk propagation calculation is performed to obtain the updated node risk weights of each segment processing unit. Based on the updated node risk weights of each segmented treatment unit and the preset toxicity level mapping threshold, the assessment results of the new pollutant toxicity level corresponding to each segmented treatment unit are determined.
2. The new pollutant toxicity level assessment method based on edge computing according to claim 1, characterized in that, The data flow dependency is obtained based on the temporal sequence relationship between the monitoring time series data of each segment and the spatial distribution characteristics of the corresponding edge computing nodes. The step of identifying data flow dependencies between different processing units also includes: Determine the data flow dependency strength corresponding to each data flow dependency relationship; Based on the data flow dependency strength, determine the edge weights of the directed edges of the nodes in the monitoring task association graph.
3. The new pollutant toxicity level assessment method based on edge computing according to claim 2, characterized in that, The steps of assigning segmented processing units to the monitoring task association diagram to obtain on-site deployment configuration data include: Obtain the available computing power resource information of each edge computing node, including the processing latency and available cache capacity of the edge computing node; obtain the computational load parameters of each segmented processing unit; Based on the processing latency and available cache capacity of each edge computing node, the upper limit of the unit group load corresponding to the edge computing node is determined; the upper limit of the unit group load is the maximum amount of computing power that the edge computing node can bear. Traverse the monitoring task association graph, identify directed edges of nodes with data flow dependency strength greater than a preset dependency threshold, and group segmented processing units belonging to the same connected component into a unit group; perform edge node assignment for the unit group: calculate the total computational load of all segmented processing units in the unit group; if an edge computing node with a load limit greater than or equal to the total computational load is found, assign the unit group to the edge computing node; if not found, use the directed edge of the node with the weakest data flow dependency strength in the unit group as a splitting edge to split the unit group, generate two new unit groups, and return to execute the edge node assignment step; The on-site deployment configuration data is obtained based on the assignment relationship between each segmented processing unit and the edge computing node.
4. The new pollutant toxicity level assessment method based on edge computing according to claim 2, characterized in that, Based on the directed edges of the nodes in the monitoring task association graph, the steps for performing risk propagation calculations to obtain the updated node risk weights for each segmented processing unit include: Using the initial risk weights of each segment processing unit in the monitoring task association graph as the initial state, the risk propagation update is iteratively executed based on the directed edges and edge weights of the nodes in the monitoring task association graph. After satisfying the preset iteration termination condition, the node risk weights of each segment processing unit after iterative update are output.
5. The new pollutant toxicity level assessment method based on edge computing according to claim 4, characterized in that, The steps for iteratively executing risk propagation updates include iterative processing based on a random walk restart algorithm: Obtain the initial risk weights for each segmented processing unit; Segmented processing units that have an initial risk weight greater than or equal to a preset restart screening threshold and whose window time proportion of risk values that meet preset conditions is greater than a preset proportion threshold are selected, and a restart weight sequence is generated. Perform the iterative processing steps: Obtain the node weights of each segment processing unit in the current iteration round; For each segmented processing unit, find all directed edges originating from that segmented processing unit and calculate the sum of the edge weights of these directed edges. For each directed edge, based on the proportion of the edge weight to the total edge weight, split the node weight of the segmented processing unit in the current round to obtain the propagation weight of the segmented processing unit corresponding to the endpoint of the edge and distribute it to the endpoint. Accumulate the received propagation weights for each segmented processing unit and add the restart injection weights of the corresponding segmented processing units in the restart weight sequence to generate the updated node weights of each segmented processing unit in the current iteration round. When the change in the node weight of each segment processing unit in the current iteration is less than the preset weight change stability threshold, or when the iteration number is greater than or equal to the preset maximum iteration number, the iteration is terminated and the updated node risk weight of each segment processing unit is obtained. Otherwise, proceed to the next iteration.
6. The new pollutant toxicity level assessment method based on edge computing according to claim 1, characterized in that, The step of distributing the segmented monitoring time-series data bound to each segmented processing unit to the corresponding edge computing node based on the on-site deployment configuration data further includes: Obtain the recursive calculation model for the exposure risk bound to each segmented processing unit; Based on the on-site deployment configuration data, the segmented monitoring time series data and exposure risk recursive calculation model bound to each segmented processing unit are distributed to the corresponding edge computing nodes, and each edge computing node is instructed to recursively calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data and exposure risk recursive calculation model.
7. The new pollutant toxicity level assessment method based on edge computing according to claim 6, characterized in that, The steps for each edge computing node to recursively calculate the corresponding exposure risk index time series based on the received segmented monitoring time series data and the exposure risk recursive calculation model include: The segmented monitoring time series data is divided into several sub-time segments; according to the time sequence, the first sub-time segment is taken as the current sub-time segment, and a preset initial risk value is obtained as the risk value corresponding to the previous time segment. Perform recursive calculation: Based on the monitoring time series data of the current sub-time segment, calculate the pollutant index data of the current sub-time segment; input the risk value corresponding to the previous time segment and the pollutant index data of the current sub-time segment into the exposure risk recursive calculation model to obtain the updated risk value and exposure risk index corresponding to the current sub-time segment; use the updated risk value corresponding to the current sub-time segment as the risk value corresponding to the previous time segment of the next sub-time segment; use the next sub-time segment of the current sub-time segment as the current sub-time segment, return to perform recursive calculation, until the calculation of all sub-time segments is completed; Based on the exposure risk index corresponding to each sub-time segment, the exposure risk index time series corresponding to the segmented monitoring time series data is obtained.
8. The new pollutant toxicity level assessment method based on edge computing according to claim 1, characterized in that, It also includes incremental streaming processing steps: The system continuously receives monitoring time-series data of newly added pollutants; it divides the newly added monitoring time-series data into time segments to generate new segmented processing units; it adds the new segmented processing units to the monitoring task association graph and updates the monitoring task association graph to obtain the field deployment configuration data corresponding to the new segmented processing units. Obtain the exposure risk recursive calculation model bound to the newly added segmented processing unit; Based on the on-site deployment configuration data, the segmented monitoring time series data and exposure risk recursive calculation model bound to the newly added segmented processing unit are distributed to the corresponding edge computing nodes to obtain the new pollutant toxicity level assessment results corresponding to the newly added segmented processing unit.
9. The new pollutant toxicity level assessment method based on edge computing according to claim 1, characterized in that, After the step of assigning segmented processing units to the monitoring task association diagram to obtain the on-site deployment configuration data, the method further includes a step of dynamically adjusting the on-site deployment configuration data: Obtain real-time computing load information for each edge computing node; Based on the real-time computing load information, the edge load index is determined; when the edge load index is greater than the preset load index threshold, the assignment relationship between the subsequent segmented processing units to be processed and each edge computing node is dynamically adjusted to generate updated on-site deployment configuration data.
10. The novel pollutant toxicity level assessment method based on edge computing according to claim 1, characterized in that, The steps for acquiring monitoring time-series data of new pollutants collected by each edge computing node include: Acquire raw time-series monitoring data of new pollutants collected on-site by each edge computing node in the water environment; The sampling records in the original monitoring time series data whose sampled values are less than the preset detection limit are marked as records to be reconstructed. The records to be reconstructed are numerically reconstructed to obtain a set of time series records after low-concentration reconstruction. Identify abnormal records in the time-series record set; for abnormal records that have both valid preceding and following sampling records, interpolate and correct them using adjacent valid preceding and following sampling records; remove abnormal records that do not have both valid preceding and following sampling records available simultaneously; fill the empty positions in the time-series record set after removing abnormal records with interpolation and perform noise smoothing to obtain a denoised time-series record set; perform dimensional unification and normalization processing on the denoised time-series record set, and rearrange it according to the acquisition time order to obtain the monitoring time-series data.
