Water network work order generation method and system based on swarm intelligence and deep reinforcement learning
By using swarm intelligence and deep reinforcement learning, structured work orders are automatically generated, solving the problem of disconnect between intelligent decision-making and on-site execution in water network operation and maintenance. This achieves a fully automated link from multi-source data perception to work order generation, improving operation and maintenance efficiency and accuracy.
Patent Information
- Application Number
- CN202611572336.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-12
- Publication Date
- 2026-11-27
AI Technical Summary
In the current operation and maintenance of water networks, there is a disconnect between intelligent decision-making and on-site execution. The solutions output by intelligent decisions need to be manually translated into work orders, which is time-consuming, labor-intensive, and prone to human error.
By employing a method based on swarm intelligence and deep reinforcement learning, structured operation and maintenance task semantic data objects are generated through multi-source data fusion, anomaly monitoring, fault location, and event level assessment. A directed acyclic graph (DAG) is constructed, and hydraulic simulation and scheduling are performed in conjunction with a digital twin model of the water network, automatically generating executable structured work orders.
It has realized a fully automated chain for water network operation and maintenance, from multi-source data perception to work order generation, completely eliminating manual judgment and work order drafting processes, shortening fault handling response time, and ensuring lossless automated transformation of decisions.
Smart Images

Figure CN123180979A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent operation and maintenance technology for water network engineering, and in particular to a method and system for generating water network work orders based on swarm intelligence and deep reinforcement learning. Background Technology
[0002] With the advancement of the integrated "sky-ground-water" sensing system in water network projects, water network operation and maintenance data exhibits characteristics such as multi-source heterogeneity, large scale, and dynamic changes. It already covers standard specifications, inspection texts and images, multispectral remote sensing images, as well as real-time sensor data and equipment operating data such as pressure, flow, water quality, and water level.
[0003] To process the aforementioned data and support decision-making, the field of water network engineering has gradually introduced intelligent decision-making technologies, represented by large language models, forming an operation and maintenance architecture with large models as the cognitive decision-making center and mechanistic intelligent agents as professional execution units. This architecture has been applied in scenarios such as flood control scheduling, water resource allocation, and water transmission and distribution control. For example, the invention patent with publication number CN122365302A discloses a multi-agent collaborative intelligent method for handling pipeline network faults. It constructs multiple professional intelligent agents such as scheduling, hydrological analysis, and constraint verification. The agents exchange information and make collaborative decisions according to a preset communication protocol, outputting operation plans or scheduling plans described in natural language. The intelligent capabilities of this type of solution are concentrated in the "decision plan generation" stage, and its output is natural language text oriented towards human understanding. It can output event levels, but it does not involve the stage of converting the decision plan into an executable operation and maintenance work order on site.
[0004] Meanwhile, existing commercial water utility work order systems also cannot be integrated with the aforementioned intelligent decision-making process. Currently, water utility work orders are mainly generated through the work order module in water utility ERP / SCADA systems, filled out manually by maintenance personnel or generated according to fixed form templates. Work orders are presented in human-readable text descriptions and tables, supporting approval workflows and status tracking. The content and generation process of these work orders rely on manual input, and their format does not include structured fields that can be parsed by automated systems, such as unique equipment identifiers, operating parameters, execution sequences, and safety constraints.
[0005] In summary, it can be seen that existing water network operation and maintenance technologies have significant shortcomings: there is a gap between intelligent decision-making and on-site execution, and the disposal solutions output by intelligent decisions still need to be translated manually, which is not only time-consuming and labor-intensive, but also prone to human error. Summary of the Invention
[0006] One of the objectives of this invention is to provide a water network work order generation method based on swarm intelligence and deep reinforcement learning, so as to solve the problem that decision schemes in existing water network operation and maintenance intelligent decision-making and work order management technologies are difficult to automatically convert into executable structured work orders.
[0007] The second objective of this invention is to provide a water network work order generation system based on swarm intelligence and deep reinforcement learning, so as to solve the problem that decision schemes in existing water network operation and maintenance intelligent decision-making and work order management technologies are difficult to automatically convert into executable structured work orders.
[0008] One of the objectives of this invention is achieved as follows: The present invention provides a water network work order generation method based on swarm intelligence and deep reinforcement learning, comprising the following steps: S1. Collect and integrate multi-source heterogeneous operation and maintenance data of the water network to obtain a unified water network operation status data object; S2. Based on the water network operation status data object, complete the anomaly monitoring, fault location, event level and risk assessment, and output the structured operation and maintenance task semantic data object, denoted as TT; S3. Perform dynamic task decomposition on the semantic data objects of structured operation and maintenance tasks, and automatically inject physical topology constraints in combination with the water network topology knowledge graph to construct a directed acyclic graph (DAG) carrying mandatory task dependencies. S4. Input the directed acyclic graph (DAG) into the digital twin model of the water network to conduct hydraulic simulation, calculate the hydraulic impact score, and when it is determined that there is a risk of secondary disasters, correct and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the simulation verification. S5. A hybrid scheduling strategy combining swarm intelligence and deep reinforcement learning is adopted to effectively allocate atomic subtasks within a directed acyclic graph (DAG) to various specialized intelligent agents. S6. Each professional intelligent agent conducts debate and negotiation based on the interlocking rule knowledge base, performs security and resource verification on the effective directed acyclic graph (DAG) subtasks allocated in step S5, and outputs the structured processing results. S7. Aggregate the structured processing results according to the preset standardized work order data model, perform quality verification, generate maintenance work orders that can be parsed by the automated system, and complete the distribution. S8. Collect the full lifecycle execution feedback data of the operation and maintenance work orders, and perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
[0009] The specific method of step S2 includes: S21. Anomaly Monitoring: Based on the water network operation status data object, cross-modal anomaly detection is performed in conjunction with the water network topology knowledge graph to identify abnormal phenomena in the water network and generate structured event objects, denoted as EE; S22. Fault location: Read the structured event object EE to perform fault classification, and combine it with the water network topology knowledge graph to determine the fault type and fault topology location; S23. Event Level and Risk Assessment: Based on the fault type, fault topology location and real-time water network conditions, assess the scope of the fault's impact, classify the event level, and calculate the risk score. S24. Operation and maintenance intent parsing: Combining fault type, fault topology location, event level and risk score, the operation and maintenance intent is parsed to generate the structured operation and maintenance task semantic data object TT.
[0010] The task dynamic decomposition described in step S3 is implemented as a hybrid decomposition mode that integrates a rule base and a proximal policy optimization (PPO) deep reinforcement learning network. The Proximal Policy Optimization (PPO) deep reinforcement learning network is pre-trained using expert operation and maintenance trajectory data for behavior cloning to complete cold start initialization. When performing task decomposition online, the decomposition actions output by the rule base and the decomposition actions output by the Proximal Policy Optimization (PPO) deep reinforcement learning network are dynamically weighted and fused according to the rule matching rate corresponding to the current task, and the operation and maintenance task is split based on the fused decomposition actions.
[0011] In step S4, the digital twin model of the water network has two hydraulic simulation modes: by default, the POD-RBF reduced-order proxy model is used to carry out rapid hydraulic pre-simulation; when a high-risk operation and maintenance scenario is identified, it automatically switches to the full-precision CFD simulation mode. If the hydraulic simulation determines that there is a risk of secondary disasters, the directed acyclic graph (DAG) is corrected by at least one method, such as inserting buffer adjustment tasks, adjusting the task execution sequence, or splitting large value operations. The correction is iterated until a valid directed acyclic graph (DAG) that has passed the simulation verification is obtained.
[0012] The execution process of the hybrid scheduling strategy in step S5 includes: S51. Cold start scheduling: An improved artificial bee colony (IABC) is used to perform a global search on an effective directed acyclic graph (DAG) to generate scheduling expert samples. The scheduling expert samples are then used to complete the pre-training of the proximal policy optimization (PPO) deep reinforcement learning network. S52. Bidirectional Collaborative Optimization: After the system is running stably, the Proximal Policy Optimization (PPO) deep reinforcement learning network outputs the scheduling strategy and the corresponding Q value. The Q value is used as heuristic information input to the Improved Artificial Bee Colony (IABC). The Improved Artificial Bee Colony (IABC) and the Proximal Policy Optimization (PPO) deep reinforcement learning network output candidate scheduling schemes respectively. S53. Physical feasibility verification: Input all candidate scheduling schemes into the water network digital twin model to complete the hydraulic feasibility verification and eliminate scheduling schemes with hydraulic safety risks. S54. Confidence Determination and Subtask Allocation: Determine the confidence of the output policy of the PPO deep reinforcement learning network for near-end policy optimization. If the confidence meets the threshold requirement, select the optimal scheduling scheme for the output of the PPO deep reinforcement learning network for near-end policy optimization. If the confidence is insufficient, fall back to the feasible scheduling scheme of the improved artificial bee colony (IABC). Based on the selected scheduling scheme, allocate the atomic subtasks in the effective directed acyclic graph (DAG) to each specialized agent.
[0013] Step S6 specifically includes the following steps: S61. Rule Retrieval and Task Acquisition: The security audit agent acquires the sub-tasks of the valid directed acyclic graph (DAG) assigned in step S5, and retrieves the water network security interlocking structured rules stored in the interlocking rule knowledge base; each water network security interlocking structured rule includes a rule ID, preconditions, prohibited operations, triggering conditions, severity level, and correction suggestions; S62. Matching and auditing and generating structured questions: The security auditing agent matches and verifies the subtasks within the effective directed acyclic graph (DAG) with each of the structured rules for water network security interlocking, identifies violations, and generates structured questions. S63. Iterative adjustment of atomic subtasks: The scheme generation agent adjusts and optimizes the atomic subtasks in the effective directed acyclic graph (DAG) based on the correction suggestions in the structured question, and obtains the updated atomic subtasks. S64. Circular verification until the termination condition is met: The updated atomic subtask is resubmitted to the security audit agent for repeated matching and auditing, and iterative adjustments are made until all structured questions are eliminated or the number of iterations reaches the preset maximum debate round, and the structured processing result is obtained.
[0014] The second objective of this invention is achieved as follows: This invention provides a water network work order generation system based on swarm intelligence and deep reinforcement learning, used to implement the aforementioned water network work order generation method based on swarm intelligence and deep reinforcement learning, characterized in that it includes: The multi-source data sensing and fusion module is used to collect and fuse multi-source heterogeneous operation and maintenance data of the water network to obtain a unified water network operation status data object. The multi-agent collaborative diagnosis and analysis module is used to complete anomaly monitoring, fault location, event level and risk assessment based on the water network operation status data object, and output structured operation and maintenance task semantic data object, denoted as TT; The dynamic task orchestration engine is used to complete task decomposition, topology mapping, hydraulic simulation pre-play correction, and intelligent scheduling of sub-tasks based on the structured operation and maintenance task semantic data object TT, so as to realize the dynamic orchestration and optimization of water network operation and maintenance tasks. A professional intelligent agent cluster includes at least a solution generation intelligent agent, a security audit intelligent agent, and a resource matching intelligent agent. The professional intelligent agent cluster is configured with an interlocking rule knowledge base for conducting debate and negotiation based on the interlocking rule knowledge base, performing security and resource verification on the effective directed acyclic graph (DAG) subtasks allocated in step S5, and outputting structured processing results. The automatic work order generation module is used to aggregate and verify the structured processing results according to a preset standardized work order data model, generate maintenance work orders that can be parsed by the automated system, and complete the distribution. The closed-loop self-learning module is used to collect the execution feedback data of the entire life cycle of the operation and maintenance work order, and to perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
[0015] The dynamic task orchestration engine includes a dynamic task decomposer, a topology DAG building unit, a digital twin pre-modeler, an improved artificial bee colony-near-end strategy optimized IABC-PPO hybrid scheduler, and an execution status monitor. The task dynamic decomposer is used to dynamically decompose the structured operation and maintenance task semantic data object TT. The topology DAG construction unit is used to query the water network topology knowledge graph and automatically inject physical topology constraints to construct a directed acyclic graph (DAG) carrying mandatory task dependencies. The digital twin pre-simulation device is used to input the directed acyclic graph (DAG) into the water network digital twin model to carry out hydraulic pre-simulation, calculate hydraulic impact scores, and correct and iterate the directed acyclic graph (DAG) when it is determined that there is a risk of secondary disasters, so as to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification. The improved artificial bee colony-proximal strategy optimization IABC-PPO hybrid scheduler is used to assign atomic subtasks within the effective directed acyclic graph (DAG) to various specialized intelligent agents using a hybrid scheduling strategy that combines swarm intelligence and deep reinforcement learning. The execution status monitor is used to monitor the task execution status based on the anti-jitter trigger mechanism, and triggers dynamic re-arrangement when preset conditions are met.
[0016] The task dynamic decomposer incorporates a five-tuple rule base built from the operation and maintenance procedures and a proximal policy optimization (PPO) deep reinforcement learning network pre-trained with behavior clones. Based on the rule matching rate, the task dynamic decomposer dynamically weights and fuses the rule output actions and reinforcement learning output actions, and completes the task decomposition of the structured operation and maintenance task semantic data object TT based on the fusion result.
[0017] The digital twin pre-simulation system incorporates a POD-RBF reduced-order surrogate model and a full-precision CFD simulation mode, and is configured with high-risk operation judgment conditions. When the judgment conditions are met, it automatically switches to full-precision CFD simulation. The digital twin pre-simulation system obtains a hydraulic impact score through simulation pre-simulation. If it determines that there is a risk of secondary disasters, it executes a DAG correction strategy to correct and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification.
[0018] The beneficial effects of this invention are as follows: This invention constructs a fully automated operation and maintenance (O&M) chain, achieving an end-to-end autonomous closed loop from water network perception—diagnosis—decision-work order—execution. It is the first to realize a fully automated chain for water network O&M, from multi-source data perception, intelligent fault diagnosis, task semantic parsing, dynamic task orchestration to the generation of standardized executable work orders. By structurally converting the natural language decision results of intelligent agents into a unified task semantic representation TT, and then automatically aggregating and outputting machine-parsable work orders through a standardized work order model, it completely eliminates the cumbersome process of relying on manual judgment, manual work order drafting, and manual verification in the traditional model. This achieves a lossless, automated transformation of O&M decisions from "intelligent output" to "engineering-implemented work orders," significantly shortening the fault handling and response chain. Attached Figure Description
[0019] Figure 1 This is a flowchart of the water network work order generation method of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] Example 1 like Figure 1 As shown, the present invention provides a water network work order generation method based on swarm intelligence and deep reinforcement learning, comprising the following steps: S1. Collect and integrate multi-source heterogeneous operation and maintenance data of the water network to obtain a unified water network operation status data object.
[0022] In step S1, multi-source heterogeneous operation and maintenance data of the water network are collected. This multi-source heterogeneous operation and maintenance data includes real-time sensing data and offline prior data. The offline prior data is used to construct a water network topology knowledge graph, an interlocking rule knowledge base, and a digital twin model of the water network offline. The real-time sensing data includes time-series data of pressure, flow, water level, and equipment status collected in real time by the pipeline network sensor cluster, as well as on-site operation and maintenance inspection text data and inspection image data.
[0023] First, range normalization is performed on the real-time time-series data to construct a standardized time-series matrix. Then, a pre-trained language model is used to extract the text embedding vectors of the inspection documents, and a convolutional neural network or visual Transformer is used to extract the feature vectors of the inspection images. Subsequently, cross-modal fusion of the time-series matrix, text vectors, and image vectors is performed through concatenation or attention fusion mechanisms to generate a unified water network operation status data object, denoted as [object name missing]. , This is a structured state vector, which is output to subsequent steps for fault diagnosis and analysis.
[0024] The specific representation of each field in the structured state vector is as follows: Time series data (pressure / flow / water level / equipment status): represented in the form of a time series matrix, i.e. Where T is the time window step size and F is the feature dimension of the measurement point. The rows of the matrix correspond to sampling times, the columns correspond to measurement points, and the elements x... {t,f} This represents the value of the f-th measurement point at the t-th sampling time after normalization (such as range normalization).
[0025] Inspection text features: The text embedding vector is extracted using a pre-trained language model (such as BERT or domain-adjusted LLM), and represented as a fixed-length vector. , Embed dimensions into the model.
[0026] Image features: High-level semantic features of the image are extracted using a Convolutional Neural Network (CNN) or a Visual Transformer, and then flattened and represented as a fixed-length vector. d image The feature dimensions after flattening.
[0027] Finally, through concatenation or attention fusion mechanisms, the aforementioned time series matrix, text vectors, and image vectors are integrated into a unified water network operation status data object. This serves as the input for subsequent modules.
[0028] S2. Based on the water network operation status data object, complete the anomaly monitoring, fault location, event level and risk assessment, and output the structured operation and maintenance task semantic data object TT.
[0029] The specific method of step S2 includes: S21. Anomaly Monitoring: Based on the aforementioned water network operation status data object, i.e. As input, cross-modal anomaly detection is performed using a water network topology knowledge graph to identify abnormal phenomena in the water network and generate structured event objects (EEs); this step is performed by the impact assessment agent.
[0030] In step S21, after identifying the abnormal phenomena in the water network through cross-modal anomaly detection, the anomaly-related information is encapsulated according to a predefined event JSON data template (JSON Schema) to generate a standardized structured event object (EE). The event object EE uniformly adopts the JSON structured format, and the field definition specifications are as follows: { "event_id": "EVT-2024-001", "event_type": "structural deformation", "timestamp": "2024-05-28T14:30:00Z", "location": {"longitude": 116.48, "latitude": 39.90, "topo_node_id": "CH-XX-123"}, "feature_vector": [0.82, 0.15, 0.03], "related_devices": ["DEV-VALVE-001", "DEV-PUMP-002"], "confidence": 0.95, "data_source": ["displacement_sensor", "inspection_image"] } The meanings of the above fields are explained as follows: event_id: A globally unique event ID used to distinguish different abnormal events; event_type: The type of abnormal event, such as pipe leakage, structural deformation, pressure exceeding limit, etc.; timestamp: The UTC standard timestamp at which the exception was triggered; location: An abnormal location nested object, containing latitude and longitude coordinates and the water network topology node number topo_node_id, used to connect to the water network topology knowledge graph to complete fault location; feature_vector: The abnormal feature vector corresponding to this abnormality matching; related_devices: A list of unique identifiers for associated abnormal pipeline network devices; confidence: Anomaly detection confidence level value; data_source: The type of data source that triggers this exception, including sensor time series data, inspection images, inspection text, etc.
[0031] After generating a structured event object (EE) that conforms to the above JSON structure, the EE is sent to step S22 for the fault location stage to read and complete the fault classification and topology location matching.
[0032] S22. Fault Location: Read the structured event object EE to perform fault classification, and combine it with the water network topology knowledge graph to determine the fault type and fault topology location; in this embodiment, output the fault type label. (e.g., "pipeline leakage", "lining bulge", "pump bearing overheating") and location of the fault. (Latitude and longitude + water network topology node ID); This step is performed by the diagnostic positioning agent.
[0033] S23. Event Level and Risk Assessment: Based on the fault type, fault topology location, and real-time water network conditions, assess the impact range of the fault, classify the event level, and calculate the risk score; in this embodiment, the impact assessment agent uses... and As input, assess the scope and urgency of the event, and output the event level: With risk score .
[0034] S24. Operation and Maintenance Intent Resolution: Operation and maintenance intent resolution is performed by comprehensively considering fault type, fault topology location, event level, and risk score to generate the structured operation and maintenance task semantic data object TT. In this embodiment, the operation and maintenance intent resolution intelligent agent uses... These five parameters serve as input, transforming the diagnostic assessment results into a structured operational task semantic data object TT. TT is a key data structure connecting "diagnostic decision-making" and "work order generation," containing fields such as target object, time window, safety level, and hydraulic constraints.
[0035] In this embodiment, step S24 integrates fault type, fault topology location, event level and risk score to complete the operation and maintenance intent parsing, and encapsulates all constraints and attribute information of the operation and maintenance task according to the preset task JSON template (JSON Schema) to generate a structured operation and maintenance task semantic data object TT that can be automatically parsed by the machine, which serves as the standardized input for the dynamic decomposition of the task and the construction of the directed acyclic graph (DAG) in step S3.
[0036] TT is a key data structure connecting diagnostic decisions and work order generation. It contains core constraint fields such as target object, time window, security level, and hydraulic constraints, uniformly carrying all task semantic information for a single maintenance event, enabling data exchange between the upstream diagnostic module and the downstream task orchestration and work order generation modules. The structured maintenance task semantic data object (TT) uniformly adopts the JSON structured format, as exemplified below: { "task_id": "TS-2024-001", "task_type": "emergency repair", "target_objects": ["CH-XX-123"], "constraints": { "time_window_hours": 24, "safety_level": "high risk", resource_limits": ["crane_max_height_5m"], "hydraulic_constraints": ["max_pressure_drop_0.2MPa"]}, "priority": "urgent", "required_capabilities": ["concrete_repair", "slurry_injection"] } The meanings of the above fields are explained as follows: task_id: A globally unique identifier for operation and maintenance tasks, used for task identification and tracing throughout its entire lifecycle, and associated with upstream structured event objects (EEs); task_type: The type of operation and maintenance task, including categories such as emergency repair, daily inspection, equipment maintenance, and pipeline pressure regulation. It is used to match the operation and maintenance procedure rule base and support dynamic task decomposition. target_objects: A set of unique identifiers for water network topology nodes and equipment corresponding to the fault, which connects to the water network topology knowledge graph to provide physical topology objects for building task-dependent DAGs; constraints: A multi-dimensional nested structure of operational constraints, containing four types of constraint parameters: time_window_hours: The longest allowed execution window for the task; safety_level: The safety risk level of operation and maintenance, which is used for subsequent security verification by the interlocking rule knowledge base; resource_limits: Restrictions on the use of resources such as construction equipment, materials, and manpower; hydraulic_constraints: Thresholds for hydraulic parameters of the pipeline network, used for digital twin hydraulic pre-simulation verification; priority: Task execution priority is divided into urgent, normal, and delayed, providing a basis for scheduling decision weights for the IABC-PPO hybrid scheduling strategy; required_capabilities: The operation and maintenance capabilities required to complete the current task. It is used to match the functions of various professional intelligent agents and realize the intelligent allocation of subtasks.
[0037] The TT generated based on the above unified JSON Schema has standardized and complete operational semantic constraints, and can be directly input into the task dynamic decomposer to complete the splitting of atomic subtasks without manual parsing and conversion.
[0038] S3. Perform dynamic task decomposition on the structured operation and maintenance task semantic data object TT, and automatically inject physical topology constraints in combination with the water network topology knowledge graph to construct a directed acyclic graph (DAG) carrying mandatory task dependencies.
[0039] The dynamic task decomposition is achieved through a hybrid decomposition mode that integrates a rule base with a proximal policy optimization (PPO) deep reinforcement learning network.
[0040] The Proximal Policy Optimization (PPO) deep reinforcement learning network is pre-trained using expert operation and maintenance trajectory data for behavior cloning to complete cold start initialization. When performing task decomposition online, the decomposition actions output by the rule base and the decomposition actions output by the Proximal Policy Optimization (PPO) deep reinforcement learning network are dynamically weighted and fused according to the rule matching rate corresponding to the current task. Based on the fused decomposition actions, the complex operation and maintenance task is split into a set of atomic subtasks.
[0041] The system queries the water network topology knowledge graph to obtain the space of pipeline equipment and hydraulic linkage constraints. It adds physical execution dependency edges to the atomic subtasks obtained by splitting them, establishes the sequential execution logic between subtasks, and finally outputs the initial directed acyclic graph DAG0 with physical dependency edges, which is then sent to step S4 to carry out hydraulic simulation pre-play.
[0042] In this embodiment: (a) Formal definition of the rule base: The rule base used for dynamic task decomposition in this step is defined as a set of quintuples, which contain five dimension attributes: in: : Unique identifier for the rule; condition: First-order logic predicate formula, such as: "task_type='pipe repair'AND fault_locationIN topo.downstream(GATE-UP-001)"; action: Subtask decomposition actions, output as a sequence of atomic tasks; priority: rule priority (1~10), used to resolve rule conflicts (higher priority rules override lower priority rules); confidence: Rule confidence level (0~1), the confidence level value is determined according to the authority level of operation and maintenance procedures and emergency plans.
[0043] This rule base is extracted from water network operation and maintenance procedures, maintenance manuals, and emergency response plans, and stored in IF-THEN format. A rule conflict detection mechanism is implemented: when two rules meet their conditions but conflict in their actions, the system selects the rule with the higher priority value for execution; if the priorities are the same, a manual review is triggered, and the conflict case is added to the revision list for subsequent rule base iterations and optimizations.
[0044] (b) Rule matching rate and λ dynamic weighting: For the current task semantic representation TT and the context CC, the rule matching rate is defined as: in A subset of rules related to the current task type (indexed by task_type). When When =0, the rule matching rate Undefined, system setting The system relies entirely on RL strategies.
[0045] The weighted fusion coefficient λ between the rule-decomposed actions and the RL policy network actions is: in σ is the rule matching rate threshold (default 0.6, the dividing point), and σ controls the transition steepness (default 0.1).
[0046] when (as when) When λ = 0.8, then λ ≈ 0.88. (At times) the system is rule-based. (At times) it is primarily based on Reinforcement Learning (RL). Time (e.g.) When =0.4, ≈0.12, at this time When this occurs, the system primarily uses the RL strategy. Final action decomposition: .in, This represents the decomposed actions output by the rule base. This represents the decomposed action of the RL policy network output.
[0047] (c) Behavioral cloning pre-training of the PPO policy network: The PPO policy network is initialized from expert data during the cold start phase through behavioral cloning. (Expert trajectory dataset) It consists of the following sources: (1) manual decomposition steps in historical high-quality work orders; (2) decomposition results of the rule base in typical scenarios (used to ensure that the initial output of the policy conforms to the basic procedures and avoids completely random actions when the cold start is performed). It should be emphasized that the goal of behavior clone pre-training is only to initialize the policy network parameters so that it has basic usability in the early stage of deployment, rather than taking the upper limit of the rule base as the final performance goal of the policy; subsequently, PPO continuously optimizes the policy through online interaction with the digital twin simulation environment, and can learn decomposition policies that exceed the rule base in scenarios where the rule base coverage is insufficient.
[0048] The loss function for behavioral cloning is: in For policy networks, This is for expert actions. After pre-training, the strategy is optimized through interaction between PPO and the digital twin simulation environment.
[0049] (d) MDP modeling of task decomposition: The Markov decision process for task decomposition is defined as follows: State space: in, This represents the state vector at step t of the task decomposition. This is the set of remaining tasks to be decomposed. For context feature vectors, Encoding the water network topology structure. This represents the current rule matching rate. Action space: Decomposing actions This involves breaking down the current task into subtasks or assigning it to a specific professional category; in the action space definition, the previously vague phrase "break down the current task into subtasks or assign it to a specific professional category" is refined and explicitly specified. Each has its own definition.
[0050] Reward function: in To estimate the total completion time (in minutes, ranging from [0,120], positively normalized to [0,1]); Resource consumption cost (unit: RMB 10,000, value range [0,50], positively normalized to [0,1]); Assign an inherent safety risk score to the event (unit: none, value range [0,1], mapped according to the event level (Level I~IV)). The topological constraint satisfaction (unit: li san zhi, value range: +1 or -100, not normalized, directly used as a penalty / reward item, such as +1 when all tasks in the DAG satisfy the physical topological dependency of the water network, and -100 (large penalty item) when there is an operation order that violates the topological interlocking, thus forcibly embedding the physical laws of the water network into the reward signal.
[0051] The reward implementation method when +1 and -100 occur simultaneously: The above reward function uses a conditional penalty term mechanism to achieve hard embedding of physical constraints. Specifically, when all tasks in the DAG satisfy the physical topology dependency of the water network, The value is +1 (providing positive rewards to guide the strategy to learn compliant operations); if there is an operation that violates the topological interlocking sequence, this item is directly set to -100 (extreme penalty, significantly reducing the Q value of the action, thus being significantly suppressed in subsequent policy iterations). In the actual code implementation, to avoid excessive Q-value variance and training instability caused by extreme penalties, the system also uses an action masking mechanism—actions that would cause topological violations are directly filtered out during the action selection stage. Only when action masking fails (such as a new scenario not covered by the rule base) is an extreme penalty of -100 used as a fallback, thereby forcibly embedding the physical laws of the water network into the reward signal.
[0052] (e) Topology knowledge graph query and automatic generation of topology mandatory dependency rules.
[0053] After completing the task decomposition action output and MDP strategy optimization, the system automatically parses the physical connection relationship of the equipment based on the water network topology knowledge graph, embeds upstream and downstream interlocking of pipelines, operation timing, and equipment linkage constraints into the atomic subtask sequence, and automatically generates mandatory pre-dependency rules that can be encoded into DAG edges. The specific execution steps are as follows: Step 1: Object Extraction. Parse and extract unique identifiers for the target objects in the water network involved in this operation and maintenance from the task semantic representation TT, including equipment entity identifiers such as pipeline segment ID, valve ID, and pump station ID; Step 2: Topological Neighborhood Query. Based on the extracted target device ID, the standard query interface of the water network topology knowledge graph is called to obtain all topological neighbors, upstream and downstream connections, device subordination relationships, and catchment area boundary topology information corresponding to the target device.
[0054] Step 3: Automatic Generation of Topology Dependency Rules. Based on the graph query results, the system automatically derives and generates mandatory pre-dependent rules and temporal constraints for tasks adapted to this operation and maintenance scenario, and encodes them as DAG directed edge weights and pre-constraint conditions. The system's topology query interface specification, dependency generation logic, and exception handling mechanism are as follows: (1) Topology query interface specification: Interface input: Target object unique identifier Object_ID (e.g., pipe segment ID P-088, valve ID GATE-UP-001), query direction (upstream UP / downstream DOWN / adjacent ADJ), query depth (default 1 hop, maximum 3 hops).
[0055] Interface output (return structure): Returns a structured topology query result object in JSON format, containing status codes, a list of query results, and metadata.
[0056] (2) Dependency rule generation logic (based on the interface return result) If the target object is "pipeline segment P", then query its upstream valve set. Generate dependencies: (for all) ; If the target object is "Pump Station S", then query its power supply line and standby pump status to generate dependencies: (If the main pump needs to be shut down for maintenance); If the target operation involves gate opening adjustment, then the generation rate constraint is: |Δopening|≤5% / 30min (as a time-dependent encoding into the DAG edge weights).
[0057] (3) Exception handling mechanism: When the topology query interface returns an exception or data is missing, the system executes the following processing procedure: Node Not Found: If the target object ID is not registered in the knowledge graph, the system will automatically revert to the manual review process and add the missing node to the "Topology Supplementation To-Do List".
[0058] Interface timeout or service unavailable: The system initiates an automatic retry mechanism (retrying 3 times by default, with a 1-second interval). If it still fails, it will degrade to using locally cached topology snapshot data (if the cache exists) and send an alarm notification to the operations and maintenance personnel.
[0059] Empty Upstream Valves (Empty_Upstream_Set): If the returned upstream_valves is an empty array, the system determines that the pipeline may be a source section or the map relationship is missing, triggers a safety warning, and inserts a placeholder task for "manual confirmation of isolation plan" into the DAG, and strictly prohibits the automatic generation of subsequent repair dependencies.
[0060] Data Conflict: If the local cached topology data is inconsistent with the real-time query results of the knowledge graph, the topology dependency relationship will be updated based on the real-time graph data, and a data conflict audit log will be recorded for subsequent knowledge graph iteration optimization and topology quality governance.
[0061] S4. Input the directed acyclic graph (DAG) into the digital twin model of the water network to conduct hydraulic simulation, calculate the hydraulic impact score, and when it is determined that there is a risk of secondary disaster, modify and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the simulation verification.
[0062] In step S4, the digital twin model of the water network has two hydraulic simulation modes: by default, the POD-RBF reduced-order proxy model is used to carry out rapid hydraulic pre-simulation; when a high-risk operation and maintenance scenario is identified, it automatically switches to the full-precision CFD simulation mode; if the hydraulic pre-simulation determines that there is a risk of secondary disasters, the directed acyclic graph (DAG) is corrected by inserting buffer adjustment tasks, adjusting the task execution sequence, and splitting large value operations by at least one method, and the correction is iterated until a valid directed acyclic graph (DAG) that has passed the pre-simulation verification is obtained.
[0063] In this embodiment, the entire hydraulic simulation and DAG iterative verification process is completed by a digital twin pre-simulation system: the digital twin pre-simulation system inputs DAG0 into its built-in simulation engine, which is configured with two working modes. The default mode uses the ROM proxy model (in this embodiment, the POD-RBF reduced-order proxy model) for rapid simulation. If the current maintenance operation is identified as a high-risk scenario, it automatically switches to full-precision CFD simulation mode to perform detailed hydraulic calculations. After simulation, the hydraulic impact score Impact(DAG0) corresponding to the current task scheme is quantitatively output. A risk judgment threshold is set. When Impact(DAG0) > 0, it indicates that the execution sequence of this sub-task carries the risk of secondary disasters such as pipeline overpressure and sudden flow changes. The system automatically adjusts the task execution order, splits large-value operations, or inserts buffers to adjust the task, generating a corrected directed acyclic graph (DAG'), and re-enters the simulation engine to repeat the hydraulic pre-simulation and score calculation. This iterative correction continues until the hydraulic impact score no longer triggers the secondary disaster risk judgment condition, finally outputting a valid directed acyclic graph (DAG) that has passed the pre-simulation verification. validated The data is then sent to step S5 to carry out multi-agent hybrid scheduling and allocation.
[0064] In this embodiment, specifically: (a) POD-RBF proxy model construction (default real-time simulation engine): To achieve minute-level real-time preview, this invention employs the intrinsic orthogonal decomposition-radial basis function interpolation method (POD-RBF) to construct a hydraulic reduced-order model (ROM): Offline phase: A large number of simulations (covering different boundary conditions and different combinations of operations) are run on a high-performance computing cluster using a digital twin model of the water network (built based on computational fluid dynamics (CFD) and hydraulic transient model).
[0065] The Latin hypercube sampling (LHS) method is used to sample in the boundary condition space to generate a sample containing... A simulation database of sample groups. The different boundary conditions covered include: valve opening degree. Pump speed Initial water level wait.
[0066] The first The full-field physical quantities (such as pressure and water level) obtained from this simulation are in The values at each spatial grid node are arranged into a column vector. Construct a snapshot matrix Parameter value range: , Depends on mesh generation accuracy (usually) ).
[0067] POD decomposition: Perform intrinsic orthogonal decomposition on the simulation database to extract the prior art. Order POD basis functions ( (Based on maintaining an energy level of over 99%) For snapshot matrix Perform eigenorthogonal decomposition (equivalent to singular value decomposition SVD): in, It is a left singular vector matrix. A diagonal matrix (diagonal elements) (for singular values) It is a right singular vector matrix.
[0068] Before extraction POD basis functions truncation order Determined according to the energy preservation criterion: In the formula: For the first There are 1 singular values; k is the truncation order, usually k∈[10,50] (dynamically determined according to the actual energy decay rate).
[0069] RBF interpolation: This constructs a mapping relationship between the POD basis coefficients and boundary conditions (valve opening, pump speed, initial water level / pressure, etc.) using RBF interpolation. Let the boundary conditions be: The corresponding POD coefficient vector is The RBF interpolation model is expressed as: in, Radial basis functions (Gaussian kernel is used in this invention) ) , is the Euclidean distance between the current parameter and the j-th sample parameter. These are the RBF weighting coefficients; represents optional polynomial terms (used to ensure affine accuracy), and L is the number of polynomial terms.
[0070] The Gaussian kernel width ϵ∈[0.1,1.0] (determined based on cross-validation); weights The solution is obtained by solving the linear system of equations ΦW=A, where , This is the POD coefficient matrix of the training samples.
[0071] For the newly given boundary condition p∗, its global prediction solution can be reconstructed as: u(p∗)≈Φkα(p∗)=ΦkΦ⁻¹A Inference speed: ROM inference takes approximately 0.5~2 seconds per iteration, while full-precision CFD simulation takes approximately 5~10 minutes per iteration, representing a real-time performance improvement of approximately 150~600 times. Accuracy verification: On a verification set containing 400 operating conditions (including 100 boundary conditions), the maximum pressure prediction deviation of ROM is ≤5%, and the water level prediction deviation is ≤3% (deviation definition: |predicted value - CFD simulation value| / CFD simulation value × 100%), meeting the accuracy requirements for engineering simulation.
[0072] (b) High-risk operation identification and CFD switching: When the simulation scenario contains any of the following conditions, the system automatically switches from the ROM proxy model to full-precision CFD simulation. The table below shows the high-risk operation judgment and CFD switching threshold for digital twin simulation:
[0073] (Note: The above thresholds are determined based on empirical data of typical urban water networks (pipe diameter distribution DN200~DN1800, design pressure 0.4~1.6MPa). In actual deployment, the thresholds need to be scaled according to the design standards of the target water network: (1) The pipe diameter threshold can be set to "pipe diameter ≥ 95th percentile of the pipe diameter distribution of the water network"; (2) The number of pumping stations threshold can be set to "30% of the total number of pumping stations in the water network"; (3) The flow change threshold and water level warning threshold are specified by the operation and maintenance procedures based on the design margin of the specific water network. Parameter sensitivity analysis shows that the impact of adjusting the pipe diameter threshold in the range of DN600~DN1000 on the overall safety compliance rate is <2% (verified in a test set of 50 scenarios).) The specific switching execution process is as follows: Step 1: Real-time Trigger Condition Detection. After receiving the DAG to be simulated and the current boundary conditions, the digital twin pre-simulation system first traverses the operation sequence in the DAG. The system extracts the types of operation objects involved (valves, pumping stations, gates), pipe diameter parameters, and the number of concurrent scheduling nodes, and calls the ROM proxy model to perform rapid hydraulic calculations to obtain preliminary predicted water level and flow rate changes. If the extracted features or preliminary prediction results match any of the conditions in Table 2, the system immediately triggers a switching decision.
[0074] Step 2: Task Status Freeze and Snapshot Saving. Once a switch is determined, the system immediately pauses the current ROM pre-run process and freezes the context state of the current pre-run task. The system packages the current DAG structure to be pre-run, water network topology data, current boundary conditions (initial water level, pressure, valve opening, pump speed, etc.), and the specific attributes of the current trigger conditions (such as "hitting DN≥800mm main pipe valves" or "hitting ≥3 pump station joint commissioning") into a standardized data snapshot and writes it to the intermediate cache.
[0075] Step 3: CFD Simulation Task Packaging and Scheduling. The system automatically packages the data snapshot into the input file (including mesh file, initial conditions, boundary conditions, and governing equation parameters) required by a full-precision CFD solver (such as a transient model based on the water hammer characteristic line method or two-dimensional shallow water equations). Subsequently, the system submits the computation task to the cloud-side high-performance computing cluster through the cloud-edge collaborative interface. (Note: According to the settings in Section 4.3.3 above, a full-precision CFD simulation takes approximately 5-10 minutes per run.)
[0076] Step 4: Asynchronous Waiting and State Synchronization. Due to the difference between the CFD simulation time (5-10 minutes) and the online decision window (minutes), the system employs an asynchronous waiting mechanism. During CFD calculations, the execution status monitor marks the current task as "high-precision pre-simulation" and can continue to schedule other independent tasks not involving this water network sub-map, avoiding overall system congestion. If the triggering condition involves global scheduling (e.g., joint commissioning of ≥3 pumping stations), the system enters a global waiting state.
[0077] Step 5: CFD Result Analysis and DAG Verification. After the CFD simulation is completed, the system reads the calculation results, extracts the time-series pressure, flow rate, and water level data of key nodes, and calculates the hydraulic impact score. .like If a preset threshold is reached, a strict correction strategy (adding buffer tasks, adjusting the operation order, or splitting operations) will be implemented to generate the corrected result. ′, and will Resubmit the simulation (if the revised simulation still involves high-risk operations, then perform CFD verification again).
[0078] Step 6: Exception Handling and Safety Rollback Mechanism. To address potential exceptions during CFD switching, the system implements the following safety policies: If the CFD solution fails to converge or times out (exceeding the preset maximum waiting time limit): immediately abort the current CFD task, and the system reverts to the ROM proxy model, but forcibly increases the safety margin threshold of the ROM results (e.g., increases the safety margin threshold of the ROM results). Allowable threshold (The value was lowered to a more conservative level), and a warning label of "High-risk operation, manual review required" was inserted into the generated DAG.
[0079] HPC resource unavailable or communication interrupted: Automatic retry (default 3 times, 5-second interval). If it still fails, the snapshot data is temporarily saved, a degradation warning signal is generated, and the DAG distribution process is suspended until the CFD service is restored or manual intervention is required.
[0080] Safety fallback: Under any circumstances, if CFD fails to execute successfully, the system is strictly prohibited from automatically sending high-risk operation DAGs that have not been verified by high-precision simulation directly to the work order system. It must wait for manual confirmation before it can continue.
[0081] (c) Hydraulic impact score and DAG correction: Digital twin previewer for a given task sequence Perform simulation and output hydraulic impact score: In the formula, : Water network node index, i∈{1,2,…,N}, where N is the total number of nodes participating in the pre-evaluation; t: Simulation time step, corresponding to a certain moment in the execution process of the task sequence Seq; Pi(t) and Hi(t): Predicted pressure and water level at node i at time t; Pi(0) and Hi(0): The pressure and water level reference values of node i before the start of the rehearsal (initial moment); Pimax and Himax: Design pressure limit and warning water level limit (normalized baseline) for node i. : These are the weighting coefficients for the pressure term and the water level term, respectively, and they satisfy... Its physical meaning refers to the degree of emphasis that decision-makers place on different dimensions of hydraulic security. (Default) It can be adjusted according to engineering preferences (increase if pressure safety is emphasized). (The range is between [0,1]). : This is the maximum allowed fluctuation threshold (default 10% and 8%). Only fluctuations exceeding this threshold are included in the impact score.
[0082] Regarding the confirmation of the judgment criteria: The original text sets θ Impact The preset threshold is set to 0 by default. Based on the structural analysis of formula (6): the formula internally uses -θ P and -θ H The allowable safe fluctuation ranges (10% and 8%) have been deducted, meaning that as long as the node pressure fluctuation does not exceed 10% and the water level fluctuation does not exceed 8%, the result of max(0,…) inside the formula will always be 0. Therefore, if and only if Impact(Seq)=0, it is determined that there is no risk of secondary disasters; if Impact(Seq)>0 (i.e., θImpact=0), then it is determined that there is a risk of secondary disasters, triggering the DAG correction strategy.
[0083] After a risk is triggered, the system performs the following specific corrective actions (assuming the initial DAG is...). ) Strategy 1 (Add buffer tasks): System scan For nodes that cause Impact > 0 (such as nodes with drastic changes in valve opening), insert one or more "slow adjustment" buffer tasks before the node. The specific logic is as follows: break down the original large single-step operation into a series of smaller, tiered operations. Strictly follow the original specification of "adjusting the opening by 5% each time, with a 30-minute interval" to generate a buffer subtask sequence, and inject this sequence as a prerequisite dependency into the DAG. .
[0084] Strategy Two (Adjusting Order): System Analysis The execution time window for medium- and high-risk operation nodes can be adjusted by reordering the topology to move the high-risk operation node to a low-load period of the system (such as the low water demand period at night) to reduce the impact on the overall hydraulic state of the system, provided that the topology dependency and resource constraints are met.
[0085] Strategy 3 (Reducing Intensity): When it is not possible to effectively insert buffers or adjust time windows, the system will break down a single large operation into multiple smaller operations. The specific logic is as follows: the operation node is cloned into multiple serial atomic task nodes, each node only executes a portion of the original operation, and forced temporal dependency edges are automatically generated between adjacent nodes to ensure that the operation is completed in multiple time steps.
[0086] Specific process: Generated after correction The process of re-entering the pre-tester for verification can be described by the following iterative expression: until in The DAG correction operator (including logical combinations of strategies one through three above) is used, where k is the number of correction iterations. The system iteratively executes the process of "pre-calculating Impact → applying the correction operator Φ → generating a new DAG" until... (i.e., determining that there is no risk of secondary disasters) or triggering a safety rollback mechanism (if multiple consecutive corrections still do not meet the requirements, the automatic process is paused and manual review is triggered to prevent infinite looping of computing resources).
[0087] In backtesting of 50 historical fault events (test environment: an open-source water network hydraulic transient simulation kernel, covering different pipe diameters from DN200 to DN1800, and single-pump-station to 5-pump-station commissioning scenarios), the safety compliance rate increased from 78% to 96% after introducing digital twin pre-simulation (judgment criteria: no node pressure exceeded 1.2 times the design pressure or water level exceeded the warning level after execution). A total of 23 secondary disaster risks were identified in the pre-simulation, all of which were corrected before execution. Specifically, the 23 risks included: 11 instances of pressure surges caused by rapid valve closure (ΔP>15%), 7 instances of sudden drops in downstream water levels caused by centralized pump shutdowns (ΔH>10%), and 5 instances of flow exceeding limits caused by gate regulation (Q>120% of design flow). Correction strategy distribution (counted by 'risk', only the dominant correction strategy for each risk is counted; if multiple correction methods are tried for a certain risk, only the dominant strategy that finally takes effect is counted): 14 cases of adding buffer tasks, 5 cases of adjusting the operation order, and 4 cases of splitting operations. All of them passed the pre-run verification after correction.
[0088] S5. A hybrid scheduling strategy combining swarm intelligence and deep reinforcement learning is adopted to allocate atomic subtasks within the effective directed acyclic graph (DAG) to various specialized agents. In this embodiment, step S5 configures the agent dynamic scheduler. The agent dynamic scheduler adopts an IABC-DRL hybrid adaptive scheduling architecture and receives the effective directed acyclic graph (DAG) that has passed pre-run verification. validated The process involves matching and assigning each atomic subtask to a suitable specialized agent, outputting a task-agent assignment mapping table (Assignment) that stores the correspondence between subtasks and agents. The execution process of the IABC-DRL hybrid adaptive scheduling includes: S51. Cold Start Scheduling: An improved artificial bee colony (IABC) is used to schedule the effective directed acyclic graph (DAG). validated A global search is performed to generate scheduling expert samples, and the scheduling expert samples are used to complete the pre-training of the Proximal Policy Optimization (PPO) deep reinforcement learning network. S52. Two-way collaborative optimization: After the system is running stably, the Proximal Policy Optimization (PPO) deep reinforcement learning network outputs the scheduling strategy and the corresponding Q value. The Q value is used as heuristic information input to the Improved Artificial Bee Colony (IABC). The Improved Artificial Bee Colony (IABC) and the Proximal Policy Optimization (PPO) deep reinforcement learning network output candidate scheduling schemes respectively. S53. Physical feasibility verification: Input all candidate scheduling schemes into the water network digital twin model to complete the hydraulic feasibility verification and eliminate scheduling schemes with hydraulic safety risks. S54. Confidence Determination and Subtask Allocation: Determine the confidence of the output policy of the PPO deep reinforcement learning network for near-end policy optimization. If the confidence meets the threshold requirement, select the optimal scheduling scheme for the output of the PPO deep reinforcement learning network for near-end policy optimization; if the confidence is insufficient, fall back to the feasible scheduling scheme of the improved artificial bee colony (IABC); based on the selected scheduling scheme, allocate the effective directed acyclic graph (DAG). validated The atomic subtasks within the task are assigned to various specialized intelligent agents, generating a task-agent assignment mapping table (Assignment).
[0089] In this embodiment, the present invention makes the following three improvements to the standard artificial bee colony algorithm (ABC) (distinguishing it from existing ABC variants): Improvement 1: Adaptive Neighborhood Search Radius The neighborhood search radius of the hired bee in the t-th iteration is no longer fixed, but adaptively adjusted according to the crowding of the current solution: in: r ij (t): The neighborhood search radius of the j-th dimension decision variable of the i-th nectar source for the hired bee at the t-th iteration; r max : The upper bound of the neighborhood search radius (initial maximum search radius), corresponding to the global exploration phase in the early stage of the algorithm; r min The lower bound (minimum search radius) of the neighborhood search radius corresponds to the later stage of local refinement in the algorithm; T max The maximum number of iterations of the IABC algorithm (i.e., the total number of iterations when the algorithm terminates). t: Current iteration number, t∈[0,Tmax]; Let be the standard deviation of the j-th decision variable in the current population, used to measure the crowding of that dimension; η is an adjustment coefficient (default 0.1) used to measure the crowding of this dimension.
[0090] Improvement 2: Observe the Q-value guidance of bee selection probability. The probability of a bee choosing nectar source i is observed to be: in: Pi: The probability that the observed bee chooses the i-th nectar source.
[0091] Fitnessi: The fitness value of the i-th honey source (i.e., the current candidate scheduling scheme), calculated based on the scheduling objective function (such as completion time, resource consumption, etc.).
[0092] Fitnessj: The fitness value of the j-th nectar source, used for normalization.
[0093] The sum of fitness of all nectar sources in the current population corresponds to the classic ABC roulette wheel selection mechanism (based on fitness).
[0094] ): The DRL policy network evaluates the Q-value of action i in state s. Here, action i corresponds to the scheduling action represented by the i-th honey source (i.e., the decision to assign the subtask to a specific specialized agent).
[0095] : Softmax normalize the Q-values of all candidate honey source actions.
[0096] Temperature coefficient (default 0.5).
[0097] : Dynamic weighting coefficient, used to adjust the fusion ratio of "classic ABC fitness" and "DRL Q value guidance".
[0098] The first term is the classic ABC roulette wheel selection (based on fitness), and the second term is the Q-value guide term of the DRL policy network output (temperature coefficient τ=0.5).
[0099] The curve is an S-shaped curve that monotonically decreases from 1 to 0 with the number of iterations t (κ is the rate of change coefficient, default 0.05). Verification shows that when t=0, α=2 / (1+1)=1; when t→∞, α→0. This S-shaped curve achieves a smooth transition from "exploration-driven" to "utilization-driven".
[0100] Improvement 3: Adaptive Diversity Maintenance of Scout Bees When a certain nectar source is continuous If the update is not performed, a scout bee will be triggered to conduct a random exploration. Designed for adaptive values: (10) in: : The scout bee trigger threshold at the t-th iteration (i.e., the maximum number of consecutive times the nectar source has not been updated).
[0101] Set as the base threshold (default 20). This is an indicator of population diversity (average distance between individuals). φ is a magnification factor (default 5). When population diversity decreases, Reduce the size of the area to trigger exploration earlier and avoid getting trapped in local optima.
[0102] Population diversity indicators The average Euclidean distance among all individuals in the population is used as the representation, and the specific expression is as follows: Where N is the population size, and Xi(t) is the position vector of the i-th nectar source at the t-th iteration.
[0103] When population diversity decreases, Llimit decreases, triggering exploration earlier and avoiding getting trapped in local optima.
[0104] (3) DRL Policy Network (PPO) Modeling: The scheduling decision MDP is defined as follows: State space: (Sharing the same context as the task decomposition MDP, but with different action spaces and reward emphases, forming two distinguishable MDP entities) The remaining set of tasks to be decomposed. For context feature vectors, (Encoding of the water network topology diagram).
[0105] : This refers to the set of remaining subtasks to be assigned. Since this MDP is responsible for assigning the atomic subtasks output by the task decomposer to specialized agents, this specifically refers to the sequence of remaining subtasks that have not yet been assigned. The specific encoding method is as follows: the attributes of each subtask (task type, target device ID, estimated time, priority, etc.) are vectorized and finally concatenated into a variable-length task list feature matrix.
[0106] : This is the context feature vector, whose tensor form is a continuous numerical vector of fixed length. It is derived from the fusion features of the current water network operation status (such as the normalized values of pressure, flow, and water level readings of each node) and system resource status (such as the current load of each agent, the number of available spare parts, etc.) extracted by the system from the multi-source heterogeneous data perception module (module 1).
[0107] This encodes the topological structure of the water network. It typically uses a combination of adjacency matrices and node feature matrices from a graph neural network (GNN), or a sequence of discrete identifiers generated based on the topological structure, to characterize the current physical connectivity of the water network and the upstream and downstream relationships of nodes involved in subtasks.
[0108] Action space: Action allocation for agents The action space assigns the currently unassigned subtasks to specific professional agents. The essence of this action space is "assignment," which means deciding which professional agent should be responsible for executing the current subtask. Agent_1 to Agent_k correspond to professional roles such as scheme generation agent, security audit agent, and resource matching agent, respectively (the specific roles depend on the set of agents activated during system deployment).
[0109] Reward function: in, (Minimize completion time) (Minimize resource consumption) (Physical security rewards are directly linked to the hydraulic impact score of the digital twin simulator.) (Topological constraint satisfaction). Weights Dynamically adjust based on scenario through multi-objective preference learning.
[0110] The Impact(Seq) in the formula directly originates from the hydraulic impact score output by the digital twin pre-simulation system after simulating the sub-task sequence Seq. Its meaning is: to calculate whether the pressure and water level fluctuations at the water network nodes exceed the safety threshold (θ) during the execution of the operation sequence. P =10%, θ H=8%). This comes from the safety verification results of the scheduling scheme by the physics simulation engine (default POD-RBF proxy model, high-risk switching CFD). In the reward function, Rsafety=1-Impact(Seq) ensures that the reinforcement learning agent tends to choose physically safer scheduling allocation strategies that do not cause secondary disasters.
[0111] Regarding the range and relationship of the weights α, β, γ, and δ: The paper clearly states that "the weights α, β, γ, and δ are dynamically adjusted according to the scenario through multi-objective preference learning".
[0112] Based on the multi-objective optimization theory and the setting logic of wP+wH=1 in the formula (6) above, these four weight coefficients must mathematically satisfy the following constraints: (1) Non-negativity: α, β, γ, δ ≥ 0; (2) Usually set as normalized weights, that is, satisfying α+β+γ+δ=1 (or maintain the relative proportion and the sum is a constant, depending on the specific algorithm implementation of multi-objective preference learning), so as to ensure the stability of the magnitude of the reward function Rtotal in different scenarios.
[0113] (3) Their relative sizes reflect the scheduling preferences in the current scenario: for example, if the current scenario is in a critical period of flood control with extremely high physical security requirements, the multi-objective preference learning will output a larger γ value and a smaller α value; if the current scenario is in a regular low-load maintenance period, minimizing the completion time will be the priority, and the α value will dominate. The specific dynamically adjusted values are generated in real time by the system's built-in multi-objective preference learning module based on the current context Ccontext, without the need for manual preset of fixed values.
[0114] From "Simulation Result Impact(Seq)" to "Reward Signal" The specific mapping interface and mathematical expression for "" are as follows: The meaning of this interface is that the digital twin pre-model takes the calculated hydraulic impact score Impact(Seq) as input and directly converts it into a reward signal for reinforcement learning through the above mapping function. When Impact(Seq) = 0 (i.e., no risk of secondary disasters, pipeline pressure fluctuations not exceeding 10%, and water level fluctuations not exceeding 8%), Achieve a maximum value of 11 (provide a positive reward); when Impact(Seq)>0, the reward value decreases linearly with the increase of risk, thus ensuring that the solution output by any mode (IABC or DRL) must be physically feasible in the digital twin, otherwise a high reward cannot be obtained.
[0115] Bidirectional guidance and coordination mechanism between IABC and DRL: The bidirectional bootstrapping and collaborative architecture of IABC and DRL includes scheduling mode switching in four phases: cold start, transition, stabilization, and abnormal switching.
[0116] The architecture includes four phases of scheduling mode switching: cold start, transition, stabilization, and abnormal switching, as shown in the table below for the IABC and DRL bidirectional bootstrapping and coordination phases.
[0117] (5) Safety rollback mechanism: When the confidence level of the Q-value output by the PPO strategy is: Below the preset threshold When the default value is 0.3, the system will automatically revert to the rule base or IABC search mode.
[0118] The specific meanings of each symbol in the formula are as follows (corresponding to annotation 2): Q(s,a): The Q value output by the PPO policy network (action value network) for action a in state s, representing the expected reward prediction for "taking the scheduling assignment action in this state".
[0119] max a Q(s,a): The maximum value among all possible agent actions a assigned in the current state s. It represents the policy network's preference or confidence ceiling for the current "best action".
[0120] mean a Q(s,a): The arithmetic mean of the Q values of all possible actions a given state s. It represents the policy network's average estimate or baseline expectation of the current action space.
[0121] Q conf (Q-value confidence): Defined as the difference between the maximum Q-value and the average Q-value, it essentially measures the discriminative power or advantage of the "optimal action" compared to the "average action". The larger the difference, the more confident and certain the policy network is in choosing the optimal action; the smaller the difference, the less obvious the policy network's preference for each action, and the higher the uncertainty in the decision-making process.
[0122] It should be noted that θ Q =0.3 is an empirical value determined in previous experiments based on the simulation environment used in this system (EPANET 2.2 kernel, 127-node water network). The absolute scale of the Q value is affected by the reward function design and needs to be recalibrated under different environments or different reward scaling factors. In actual deployment, it is recommended to collect data by pre-running 100 decision cycles. The distribution, with the lower quartile as θ. Q The initial value is set and dynamically updated during system operation. Before completing 100 full operation and maintenance loops, the system operates with IABC as the primary strategy for security, and the PPO policy network is in the offline pre-training and parallel evaluation phase. Only when the online Q-value confidence consistently meets the target (in 50 consecutive decisions) will the PPO policy network be updated. Only after the proportion exceeding its recent moving average (window 50) is >80% will online inference be gradually taken over.
[0123] S6. Each specialized intelligent agent conducts debate and negotiation based on the interlocking rule knowledge base to determine the effective directed acyclic graph (DAG) allocated in step S5. validated The internal atomic subtask performs security and resource verification and outputs the structured processing results.
[0124] Step S6 specifically includes the following steps: S61. Rule Retrieval and Task Acquisition: The security audit agent acquires the valid directed acyclic graph (DAG) allocated in step S5. validated The internal sub-task retrieves the water network security interlocking structured rules stored in the interlocking rule knowledge base; each of the water network security interlocking structured rules includes a rule ID, preconditions, prohibited operations, trigger conditions, severity level, and correction suggestions.
[0125] S62. Matching and auditing, and generating structured questions: The security auditing agent will match the valid directed acyclic graph (DAG). validated The internal subtasks are matched and verified one by one with each of the aforementioned water network security interlocking structured rules, identifying violations and generating a standardized structured question list C; the resource matching agent simultaneously verifies resource feasibility, outputs resource-related structured questions, and integrates them to form a complete question set.
[0126] S63. Iterative Adjustment of Atomic Subtasks: The scheme generation agent, based on the correction suggestions within all structured challenges output by the security audit agent and resource matching agent, adjusts the effective directed acyclic graph (DAG). validated The internal atomic subtasks were adjusted and optimized to obtain the updated atomic subtasks.
[0127] The above adjustments and optimizations are achieved through a multi-agent debate and negotiation process, with the interaction steps detailed below: S631. The solution generation agent outputs a draft of the disposal solution based on the assigned sub-tasks, and obtains the corresponding sequence of operation steps. S632. The security auditing agent matches each operation in the solution with the interlocking rule knowledge base one by one to generate a structured question carrying a rule ID and correction suggestions. S633, The resource matching agent simultaneously initiates a resource feasibility challenge; S634. The solution generation agent responds to each of the correction suggestions in the two types of questions, modifies the initial draft of the solution item by item, and simultaneously adjusts the execution actions, timing and resource configuration of the atomic subtasks to complete the overall optimization of the atomic subtasks and obtain the updated atomic subtasks.
[0128] S64. Repeated verification until termination conditions are met: The updated atomic subtask is resubmitted to the security audit agent for repeated matching and auditing. Steps S62 and S631-S634 are repeated to complete iterative adjustments. This process continues until all structured questions are eliminated or the number of iterations reaches the preset maximum number of debate rounds (3 rounds by default in this embodiment). The structured processing result is obtained, and the structured result set Result of each agent is output. Agent .
[0129] In addition, step S6 also includes step S65: S65. Real-time monitoring of execution status and task rescheduling: The execution status monitor monitors the execution status of operation and maintenance tasks in real time based on the anti-jitter triggering mechanism. When the monitoring indicators meet the rescheduling triggering conditions and pass the anti-jitter filtering verification, it jumps back to S61 and restarts a complete cycle of rule retrieval, multi-agent debate and negotiation and verification.
[0130] The following section fully elaborates on the dynamic re-arrangement debouncing trigger mechanism that carries the re-arrangement trigger condition. The entire mechanism takes the re-arrangement trigger condition as the core criterion and is equipped with feature normalization calculation, timer state machine debouncing logic, and re-arrangement infinite loop protection upper limit, which are defined as follows: (1) List of ΔC variables and normalization method: Let ΔC be the total change in the current context relative to the last arrangement.
[0131] Its variable list originates from the "unified water network operation status characterization data" mentioned earlier, specifically including: pressure change rate, flow change rate, water level change rate, equipment status changes, and changes in available resource quantity at monitoring points. Due to the different dimensions of each characteristic (e.g., pressure MPa, flow rate m³), 3 ( / s), first perform range normalization mapping to the [0,1] interval, then obtain ΔC through weighted summation or finding the maximum deviation. The normalization formula for weighted summation is: Where K is the number of feature variables, The weight coefficients for each feature (satisfying) =1, the specific value is dynamically set by the multi-objective preference learning module according to the scenario). , The historical upper and lower bounds of the features are defined. This normalization method ensures the additivity of features with different dimensions in the overall change.
[0132] (2) Rearrangement triggering conditions: The comprehensive change obtained based on normalization The failure rate of execution is statistically analyzed in real time. rate Construct re-running trigger conditions; among which for Preset threshold A threshold was preset for the failure rate, and both were calibrated using historical on-site data.
[0133] This invention does not provide The specific value is due to the following reasons. The appropriate value depends heavily on the scale, fluctuation characteristics, and operation and maintenance response speed requirements of the specific water network. In actual deployment, it needs to be determined through historical data statistics or offline parameter sensitivity experiments, and is not a fixed constant that can be preset in this invention.
[0134] fail rate The formula for calculating the (execution failure rate) is defined as follows: ; in, This represents the number of subtasks whose status changes to "failed" or "timed out" within the current scheduling period. This represents the total number of subtasks within the current scheduling period.
[0135] (3) Timer state machine and reprogramming debouncing logic: The timer state machine contains four states: IDLE, COUNTING, TRIGGERED, and RESET.
[0136] When detected or fail_rate When the state changes from IDLE to COUNTING, the timer starts. Within (default setting is 5 minutes). If the threshold state persists, the state switches to TRIGGERED when the timer reaches τmin, and re-arrangement is initiated; If the change falls below the threshold within τmin, the state switches to RESET, cancels the current trigger, and returns to IDLE to avoid system oscillation and resource waste caused by frequent disturbances.
[0137] (4) Rearrange the dead loop protection limit (dead loop prevention mechanism) To prevent infinite re-arrangement loops caused by continuous extreme anomalies in the physical environment or the failure of the DAG correction logic to converge, the system sets a maximum limit on the number of consecutive re-arrangements. When the cumulative number of reorderings of the same task sequence reaches... (Specific values need to be configured according to computing resources and response time requirements during system deployment.) When the system pauses the automatic re-arrangement process, forces a switch to manual review mode, and issues a high-level alarm, thereby achieving a balance between "system self-healing" and "resource protection".
[0138] In this embodiment, (a) Construction of the interlocking rules knowledge base (the sole data foundation for debate): The security audit agent's challenge triggering mechanism and rule reliance do not depend on LLM probabilistic reasoning, but rather on deterministic matching based on a structured interlocking rule knowledge base: each operation is compared against the rule table line by line, and a match triggers a structured challenge. The challenge involves rules... id Directly referencing the rule table ID makes the challenge verifiable and traceable. The LLM, the foundation of the security audit agent, only plays a role in the following aspects: (1) converting the structured challenge data (rule ID + correction suggestion + matching conditions) into natural language expression; (2) understanding the semantics of the solution generation agent's response and judging whether it has been sufficiently corrected. The triggering of the challenge (rule matching) is deterministic, and the content of the challenge (rule ID) is traceable, which is different from the non-deterministic solution in the general agent debate framework that relies entirely on the LLM's 'common sense judgment' to generate the challenge. The knowledge base is constructed in the following way: Step 1 (Rule Extraction): Extract interlocking constraints from the water network safety operation procedures, pump station interlocking protection logic diagram, and SCADA system control logic table, in the form of: .
[0139] Step 2 (Rule Encoding): Encode all interlocking constraints into the following rule table structure, refer to the table below:
[0140] Step 3 (Matching-Based Review): When reviewing a solution, the security review agent does not rely on the probabilistic reasoning of the LLM (i.e., it does not let the LLM judge whether the solution has problems based on its "gut feeling"). Instead, it performs a deterministic matching of each operation sequence in the solution with the rule table—a structured challenge is triggered when a rule is matched. The LLM is only responsible for organizing the rule ID and correction suggestions into natural language challenge text after the matching is triggered, and for understanding whether the solution generation agent's response to the rule ID has met the correction requirements.
[0141] Step 4 (Forced Correction): After receiving a challenge, the solution-generating agent must modify the solution according to the "Correction Suggestion" field in the rule table (insert the prerequisite task specified by the correction suggestion into the DAG), otherwise it cannot proceed to the next round of debate.
[0142] (b) Debate and negotiation process: The initial draft of the intelligent agent's output processing plan (sequence of operation steps) is generated. The security auditing agent matches each operation in the solution with the interlocking rule base to generate a list of questions. (13) like The solution-generating agent must respond to and correct the solution one by one (inserting the task specified by the correction suggestion). The resource matching agent can simultaneously raise resource feasibility questions (such as "the required equipment is not available within 3 hours"). Repeat steps 2-4 until all questions are resolved (consensus is reached) or the maximum number of debate rounds is reached (default 3 rounds; preliminary experimental comparisons have shown that the work order integrity gain tends to converge and the delay is controllable at 3 rounds).
[0143] If unresolved questions remain after the maximum number of debate rounds (default 3 rounds), the system will implement the following safety fallback and manual intervention rules: The system employs a tiered challenge interception mechanism: It determines the severity of a challenge based on the "Severity Level" field recorded in the interlocking rule knowledge base. If an unresolved challenge contains any "Critical" or "High-Risk" rules (such as R001, R002, R005 in Table 4), the system determines that the current solution poses an unacceptable security risk and immediately triggers a "Security Blocking" flag, preventing the solution from automatically being converted into an executable work order. If an unresolved challenge only involves lower-level (non-critical / high-risk) challenges, the system allows the generation of a work order, but mandates the addition of a prominent "High-Risk Operation, No Consensus" warning label to the "Security and Compliance" field group of the work order.
[0144] Generate a manual review work order: The system packages the DAG of solutions that have not passed the debate, the list of unresolved questions (including rule ID, matching conditions, and correction suggestions), and the complete debate process log into a "work order pending manual review" (the "status tracking" field group in the corresponding standardized work order data model is set to "pending manual adjudication"), and pushes it to the operation and maintenance management personnel.
[0145] Human decision-making and system execution rules: Upon receiving this work order, the human operator can choose one of the following three actions: Forced authorization: After manual confirmation that the risk is acceptable, the system is authorized to enforce the original plan (the system records the authorization action and the operator's ID).
[0146] Manual modification of the solution: The DAG and work order solutions are manually modified based on the content of the questions raised. The modified solutions need to be re-entered into the debate and negotiation process (or directly confirmed and approved manually).
[0147] Return for re-diagnosis: If the human operator determines that the current diagnosis or task analysis contains a fundamental error, the system will return to Module 3 for re-diagnosis and task analysis. The system records the human decision and updates the work order status from "Pending Human Decision" to the corresponding result.
[0148] Controversial Case Retention: The system automatically stores the unresolved cases from the above three rounds into the "Controversial Case Library" as training data for subsequent updates to the interlocking rule base or fine-tuning of the professional intelligent agent LLM (closed-loop A), thus enabling the continuous evolution of the system.
[0149] S7. Aggregate the structured processing results according to the preset standardized work order data model, perform quality verification, generate maintenance work orders that can be parsed by the automated system, and complete the distribution.
[0150] In this embodiment, the work order automatic generation module receives the output Result from each professional intelligent agent. Agent It performs data aggregation, dual-mode format conversion, quality verification (including consistency scoring), and distribution to target systems or personnel, with the final output being a standardized operation and maintenance work order (WorkOrder).
[0151] In this embodiment, the comprehensive score for work order quality consistency is defined as: In the formula, These indicate whether there are missing device IDs, missing operation parameters, missing timing definitions, missing security constraints, or missing resource requirements. These are the corresponding weights (each defaults to 0.2), and .
[0152] It should be noted that this scoring framework uses a simplified model of "independent scoring for each dimension." The five dimensions may exhibit some degree of correlation in engineering practice (e.g., missing device IDs are often accompanied by missing parameters). In actual deployment, the weights... Expert calibration can be performed based on specific engineering scenarios using the Analytic Hierarchy Process (AHP); the scoring results are used for the relative ranking of work order quality rather than absolute measurement. The same scoring criteria and weighting configuration are used in the comparative experiment of this invention (before and after enabling debate), so the validity of the conclusions of the effect comparison is not affected.
[0153] Automatic determination rules for five-dimensional indicators The automatic determination of the above five binary indicators (0 or 1) does not rely on a single technology, but adopts a hybrid determination mechanism of "multi-source cross-validation": (Missing Device ID): Based on Schema Validation. The system performs a structured match between the work order data and the required "Device ID" field in the standardized work order data model (Section 4.6). If the corresponding field is empty or is not a valid device ID registered in the topological knowledge graph, it is determined as 1.
[0154] (Missing Operation Parameters): Based on rule validation + LLM extraction. First, the operation parameters (such as valve opening, pump speed, etc.) are validated to ensure they are complete. For unstructured operation instructions described in natural language, a large language model (LLM) is used to perform named entity recognition (NER) and information extraction to determine whether key parameters are missing.
[0155] (Missing temporal definition): Based on topology graph verification. Check if there are isolated atomic task nodes (without defined preceding or following dependencies) in the generated DAG. If so, it is determined as 1.
[0156] (Omission of security constraints): Verification based on interlocking rule base. The security auditing agent is invoked to perform a matching audit of each operation sequence against the interlocking rule knowledge base. If a matching "fatal / high-risk" rule is found in the rule base that has not been triggered or marked, it is judged as 1.
[0157] (Resource Requirement Gap): Based on resource database verification. The resource requirements (personnel, equipment, spare parts) in the work order are compared with the background resource database. If there is a missing value for the resource type or it cannot be matched with the existing resource ledger, it is judged as 1.
[0158] The fallback mechanism: For ambiguous scenarios that cannot be covered by the above automatic judgment, or for disputed work orders with a system confidence level below a certain level, the system will transfer them to manual review, and the result of manual review will be the final judgment value for that dimension.
[0159] Weight calibration, correlation processing, and regeneration of unqualified paths: Weight calibration method: The default weight (0.2) is only an initialization parameter. In actual deployment, the weight w i Expert calibration can be performed using the Analytic Hierarchy Process (AHP) based on specific engineering scenarios to construct a judgment matrix and calculate eigenvectors to obtain weights. Alternatively, data-driven calibration can be used, with historical manually reviewed data as labels, and optimization algorithms such as logistic regression or gradient descent can be used to fit the weight configuration that best reflects the current water network operation and maintenance quality requirements.
[0160] Five-Dimensional Correlation Handling: This scoring framework adopts a simplified model of "independent scoring for each dimension." In engineering practice, the five dimensions may exhibit a certain degree of correlation (e.g., missing device IDs are often accompanied by missing parameters). To eliminate scoring bias caused by correlation, in actual deployment, orthogonalization methods such as Principal Component Analysis (PCA) can be used to reduce the dimensionality of the five indicators and extract mutually independent evaluation dimensions; alternatively, regularization (such as L2 regularization) can be used to constrain weights, preventing excessive penalty for other dimensions due to missed detections in one dimension. The scoring results are only used for relative ranking of work order quality, not absolute measurement. The same standards and configurations are used in the comparative experiment (before and after enabling debate), therefore, the validity of the comparative conclusions is not affected.
[0161] Unqualified thresholds and regeneration paths: Unacceptable threshold: The system sets a pass / fail threshold θquality (the specific value needs to be calibrated offline by engineers in conjunction with water network operation and maintenance standards, or determined after system parameter sensitivity experiments; it is not a fixed number preset in this invention). When Scorequality < θquality, the work order is judged to be unacceptable.
[0162] Regenerate Path: If the path is not qualified, the system will not issue it directly, but will instead regenerate the path. First, the reasons for non-compliance ( to The structured feedback of items with a value of 1 is given to the solution-generating agent; Secondly, trigger the multi-agent debate and negotiation mechanism (if it has not yet been triggered), or increase the maximum number of debate rounds to force the solution-generating agent to revise the solution based on the questions raised. Finally, if the issue remains unsatisfactory after multiple rounds of regeneration (e.g., if the issue is still unresolved after reaching the highest debate round), it will automatically be transferred to the manual review queue (processing logic is the same as the "safety fallback and manual takeover rules"), where manual intervention will be used to modify or adjudicate the issue.
[0163] Standardized work order data model The system pre-defines a unified standardized work order data model, serving as a unified carrier for aggregating processing results and encapsulating standardized operation and maintenance work orders. This model supports both human-readable and machine-readable output modes, leveraging different rendering template engines to achieve a dual-mode output mechanism of one-time data encapsulation and multi-format, multi-terminal distribution. The complete field groupings, core fields, JSON identifiers, and business definitions are shown in the table below.
[0164] S8. Collect the full lifecycle execution feedback data of the operation and maintenance work orders, and perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
[0165] This step utilizes two independent, collaborative, self-evolving closed loops to achieve incremental learning optimization. These loops consist of loop A for large model iteration and loop B for scheduling strategy iteration. The dual loops rely on feedback data from the entire lifecycle of work orders to update the model in parallel. The specific optimization logic for each loop is as follows: Closed-loop A: Incremental fine-tuning of the professional agent LLM model (corresponding to incremental closed-loop learning of the professional agent large model).
[0166] Record complete operational data throughout the entire lifecycle of work orders. Use manually modified compliant operation and maintenance work orders as positive DPO samples and original AI-generated work orders as negative samples. Use the DPO / RLHF method to perform incremental fine-tuning on the built-in large language model of each professional intelligent agent.
[0167] Closed-loop B: Online optimization of PPO scheduling strategy network (corresponding to incremental closed-loop learning of deep reinforcement learning scheduling strategy).
[0168] The Impact(Seq) output from the digital twin hydraulic simulation of the water network corresponding to the current task sequence is used as the reward feedback for the PPO reinforcement learning network. Based on the actual execution effect of the work orders, the PPO policy network within the hybrid scheduling architecture is iteratively updated online. Two closed loops simultaneously carry out incremental learning, relying on the dual-closed-loop collaborative mechanism to continuously improve the output quality of the intelligent agent's solution and the rationality of sub-task scheduling, driving the system's adaptive evolution.
[0169] In this embodiment, the training objective of closed-loop incremental learning DPO is defined as: in, These are the log-ratio of positive sample preference and the log-ratio of negative sample preference, respectively, and are defined as follows: In the above formula, The policy LLM to be fine-tuned (the superscript LLM is used for scheduling policy networks) These are model parameters; The reference LLM (usually the original model parameters before fine-tuning, fixed and frozen, used to constrain the model after fine-tuning from deviating excessively from the original distribution); The input prompts correspond to the input context of a single maintenance loop. This is a positive sample, corresponding to a "work order that has been manually modified"; The negative sample corresponds to the "original AI-generated work order"; For the preference dataset, consisting of effective triples constitute; It is the standard Sigmoid activation function; The temperature hyperparameter of DPO (used to control the degree to which the model deviates from the reference model; the specific value needs to be determined experimentally in engineering practice and is not preset to a fixed value in this invention). This represents the expectation on the preference dataset.
[0170] Preference dataset The construction method is as follows: For each complete operation and maintenance loop, the system automatically records the input prompt word x (including task semantic representation TT, context CC and historical diagnostic results), positive samples (Work order content that has been manually modified, actually executed, and passed security audit) and negative samples (The original work order content generated by the system's AI but before it was manually modified); if the manual process did not make any modifications to the original work order (i.e.) If the sample is not included in the preference dataset, it will not be included because there is no preference information available for learning.
[0171] It should be noted that the closed loop A (LLM layer DPO fine-tuning) and closed loop B (PPO optimizing the scheduling policy network) described in the above formula are two independent learning loops with different frequencies: closed loop A optimizes the LLM generation capabilities of each professional agent, and closed loop B optimizes the policy network of the IABC-DRL scheduler; closed loop A is updated in batches after accumulating a certain number of manually corrected samples, while closed loop B can be updated online after each scheduling cycle; the data source for closed loop A is the manually corrected work orders, and the data source for closed loop B is the digital twin simulation reward; new task patterns discovered by the scheduling layer (closed loop B) during operation are fed back as new corpus to the preference dataset of the LLM layer (closed loop A). This achieves a dual-loop collaborative evolution: "the scheduling layer discovers new patterns → the LLM layer absorbs new knowledge." Through incremental fine-tuning of DPO in loop A, the LLM generation capabilities of each professional agent continuously improve with operational practice. Without altering the already correctly generated content, the system gradually learns the implicit preferences in manual corrections, reducing the manual correction rate for similar work orders over time and lowering long-term operational labor costs. This closed loop complements the debate and negotiation mechanism: debate and negotiation intercept foreseeable errors before execution, while DPO fine-tuning continuously absorbs implicit knowledge from post-execution experience.
[0172] Example 2 The present invention provides a water network work order generation system based on swarm intelligence and deep reinforcement learning, which is used to implement the water network work order generation method based on swarm intelligence and deep reinforcement learning in Embodiment 1. The system includes: a multi-source data perception and fusion module, which is used to collect multi-source heterogeneous operation and maintenance data of the water network and fuse and process them to obtain a unified water network operation status data object. The multi-agent collaborative diagnosis and analysis module is used to complete anomaly monitoring, fault location, event level and risk assessment based on the water network operation status data object, and output structured operation and maintenance task semantic data object (TT). The dynamic task orchestration engine is used to complete task decomposition, topology mapping, hydraulic simulation pre-play correction, and intelligent scheduling of sub-tasks based on structured operation and maintenance task semantic data objects (TT), thereby realizing the dynamic orchestration and optimization of water network operation and maintenance tasks. A professional intelligent agent cluster includes at least a solution generation intelligent agent, a security audit intelligent agent, and a resource matching intelligent agent. The professional intelligent agent cluster is configured with an interlocking rule knowledge base for conducting debate and negotiation based on the interlocking rule knowledge base, performing security and resource verification on the atomic subtasks within the effective directed acyclic graph (DAG) allocated in step S5, and outputting structured processing results. The automatic work order generation module is used to aggregate and verify the structured processing results according to a preset standardized work order data model, generate maintenance work orders that can be parsed by the automated system, and complete the distribution. The closed-loop self-learning module is used to collect the execution feedback data of the entire life cycle of the operation and maintenance work order, and to perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
[0173] In this embodiment, the data interaction and connection relationships between the modules are as follows: The multi-source data perception and fusion module outputs the fused unified water network operation status data object to the multi-agent collaborative diagnosis and analysis module; the multi-agent collaborative diagnosis and analysis module receives the water network operation status data object, completes fault diagnosis and risk assessment, and outputs structured operation and maintenance task semantic data object to the dynamic task orchestration engine; the dynamic task orchestration engine completes task decomposition, topology constraint construction, digital twin hydraulic pre-simulation correction, and multi-agent hybrid scheduling allocation, and outputs a valid directed acyclic graph to the multi-agent security debate verification module; the multi-agent security debate verification module relies on the built-in interlocking rule knowledge base and professional agent cluster to complete the security... The resource constraint debate and verification process outputs structured processing results to the automatic work order generation module. This module aggregates the structured processing results, performs work order quality consistency verification, encapsulates them into standardized work orders, and distributes them. Simultaneously, it outputs the work order's entire lifecycle execution feedback data to the closed-loop self-learning module. Based on the collected work order lifecycle feedback data, the closed-loop self-learning module executes two sets of incremental learning loops in parallel. These loops optimize the professional agent's built-in large language model and the deep reinforcement learning scheduling strategy network within the dynamic task orchestration engine, respectively. The updated model parameters are then fed back into the multi-agent collaborative diagnosis and analysis module and the dynamic task orchestration engine, enabling continuous adaptive iterative optimization of the entire system.
[0174] The dynamic task orchestration engine includes a dynamic task decomposer, a topology DAG building block, a digital twin pre-show, an improved artificial bee colony-near-end policy optimization (IABC-PPO) hybrid scheduler, and an execution status monitor. The task dynamic decomposer is used to dynamically decompose the structured operation and maintenance task semantic data object (TT). The topology DAG construction unit is used to query the water network topology knowledge graph and automatically inject physical topology constraints to construct a directed acyclic graph (DAG) carrying mandatory task dependencies. The digital twin pre-simulation device is used to input the directed acyclic graph (DAG) into the water network digital twin model to carry out hydraulic pre-simulation, calculate hydraulic impact scores, and correct and iterate the directed acyclic graph (DAG) when it is determined that there is a risk of secondary disasters, so as to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification. The improved artificial bee colony-proximal policy optimization (IABC-PPO) hybrid scheduler is used to assign atomic subtasks within the effective directed acyclic graph (DAG) to various specialized agents using a hybrid scheduling strategy that combines swarm intelligence and deep reinforcement learning. The execution status monitor is used to monitor the task execution status based on the anti-jitter trigger mechanism, and triggers dynamic re-arrangement when preset conditions are met.
[0175] The task dynamic decomposer incorporates a five-tuple rule base built from the operation and maintenance procedures and a proximal policy optimization (PPO) deep reinforcement learning network pre-trained with behavior clones. Based on the rule matching rate, the task dynamic decomposer dynamically weights and fuses the rule output actions and reinforcement learning output actions, and completes the task decomposition of the structured operation and maintenance task semantic data object (TT) based on the fusion result.
[0176] The digital twin pre-simulation system incorporates a POD-RBF reduced-order surrogate model and a full-precision CFD simulation mode, and is configured with high-risk operation judgment conditions. When the judgment conditions are met, it automatically switches to full-precision CFD simulation. The digital twin pre-simulation system obtains a hydraulic impact score through simulation pre-simulation. If it determines that there is a risk of secondary disasters, it executes a DAG correction strategy to correct and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification.
[0177] Example 3 I. Preliminary Experimental Data and Quantification Results The table below compares the key performance indicators of the present invention with those of the conventional / baseline solutions.
[0178] II. Ablation Experiment Design To quantify the contribution of each core module, the following ablation experiment was designed to compare four configurations on the same batch of historical fault data (50 scenarios). The table below shows the ablation experiment design (comparison of four configurations):
[0179] Ablation experiment conclusions: The pre-simulation module contributed the most to the safety compliance rate (78%→96%, an increase of 18 percentage points), verifying the core role of digital twin pre-simulation in eliminating secondary disaster risks; The debate and negotiation module contributed the most to the integrity of the work order (0.82→0.94), verifying the significant effect of multi-perspective verification on improving the quality of work orders; Topology constraint injection has the greatest impact on the interlocking violation rate (19%→0), verifying the decisive role of topology-aware DAG construction in eliminating physically infeasible solutions; While ensuring compliance and integrity, the IABC-DRL hybrid scheduling improves the average time from 2.2 minutes (pure rules) to 3.2 minutes (an increase of about 45%), but in return, it achieves higher scenario adaptability and scheduling optimization (a 15% improvement in over-volume metrics).
[0180] It should be noted that the work order integrity score (0.85) after configuration (d) 'removing topology constraints' is slightly higher than that after configuration (b) 'removing rehearsal' (0.82). This is because the work order integrity score focuses on information integrity (device ID, parameters, timing, etc.) and is less related to physical topology constraints. However, the safety pass rate is far more affected by topology constraints than by rehearsal—without topology constraints, the DAG does not contain physically dependent edges, resulting in an interlocking violation rate as high as 19%, thus reducing the safety pass rate to 74%. This data difference actually confirms the core contribution of the topology constraint module to physical safety.
[0181] The data in the table are the averages after running 5 independent, repeated experiments (with the scenario order randomly shuffled each time) on 50 test scenarios. Standard deviations: For the complete system, the standard deviations for each indicator are ±3.2% for safety compliance rate, ±0.03% for work order integrity, ±0% for interlock violation rate, and ±0.4 min for average time consumption; the standard deviation ranges for other configurations are explained in Table 10 of Section 6.1. For simplicity, only the averages are listed in the table. All configurations used the same random seed and experimental conditions as in Example 1.
[0182] In summary, the present invention has the following beneficial effects: 1. Construct a fully automated operation and maintenance chain to achieve an end-to-end autonomous closed loop of water network perception, diagnosis, decision-making, work order, and execution.
[0183] This invention is the first to achieve a fully automated workflow for water network operation and maintenance, encompassing multi-source data perception, intelligent fault diagnosis, task semantic parsing, dynamic task orchestration, and standardized executable work order generation. By structurally converting the natural language decision results of intelligent agents into a unified task semantic representation TT, and then automatically aggregating and outputting machine-parseable work orders through a standardized work order model, it completely eliminates the cumbersome process of relying on manual judgment, manual work order drafting, and manual verification in the traditional model. This achieves a lossless and automated transformation of operation and maintenance decisions from "intelligent output" to "engineering implementation work orders," significantly shortening the fault handling and response chain.
[0184] 2. Construction of a physical constraint-compliant DAG driven by a topology knowledge graph ensures that the operation and maintenance sequence conforms to the physical operation rules of the pipeline network.
[0185] Compared to traditional pure logic task orchestration, which ignores the interlocking relationships in the water network topology, this invention automatically resolves physical constraints such as upstream and downstream equipment connections, valve isolation, and pump station linkages by querying the water network topology knowledge graph. It automatically transforms the pipeline topology relationships into task prerequisites and temporal constraints, constructing a valid DAG with physical legitimacy. This effectively avoids violations such as reverse operations, lack of isolation, and topology conflicts that easily occur in manual or general intelligent orchestration, ensuring the physical rationality of operation and maintenance operations from the task source.
[0186] 3. A dual-mode digital twin hydraulic pre-simulation verification mechanism enables proactive risk control of hydraulic safety in scheduling schemes.
[0187] This invention innovatively employs a dual-mode hydraulic verification mechanism: a default rapid pre-simulation using the POD-RBF reduced-order proxy model and automatic switching to CFD full-precision simulation for high-risk operating conditions. This mechanism can complete hydraulic impact assessments of large-scale operation and maintenance plans within minutes. By quantifying hydraulic indicators such as pipeline pressure fluctuations and water level changes, it identifies and eliminates unreasonable task sequences that are prone to causing secondary disasters such as water hammer, negative pressure, and overflows in advance. This achieves a "hydraulic physical feasibility verification" capability that pure IT scheduling systems cannot provide, greatly improving the engineering safety and robustness of operation and maintenance plans.
[0188] 4. Improved hybrid adaptive scheduling of artificial bee colony and PPO deep reinforcement learning, balancing global optimization accuracy and online real-time performance.
[0189] This invention addresses the slow iteration speed of traditional intelligent algorithms and the tendency of reinforcement learning to fall into decision uncertainty. It improves the artificial bee colony algorithm by implementing adaptive search radius, Q-value-guided selection probability, and adaptive reconnaissance threshold, and constructs a hybrid scheduling architecture combining IABC global optimization and PPO online inference. During the cold start phase, IABC ensures global search capability, while PPO enables rapid decision-making during the stable phase. Simultaneously, a Q-value confidence backoff mechanism mitigates model uncertainty risks. Compared to traditional optimization algorithms such as NSGA-II, this invention reduces the single-step scheduling inference latency from 50-100ms to 5-15ms, improving scheduling real-time performance by 5-10 times, thus meeting the timeliness requirements of emergency water network scheduling.
[0190] 5. A multi-agent interlocking rule debate and negotiation mechanism eliminates work order security and logical flaws at the mechanism level.
[0191] Unlike the randomness and instability of freely generated solutions from a single large model, this invention constructs a multi-agent debate and negotiation system for solution generation, security review, and resource matching. It relies on a structured interlocking rule knowledge base for rigid matching-based review, rather than simply depending on model reasoning. The security agent initiates structured challenges to high-risk and critical interlocking constraints, and the solution agent corrects each challenge until a consensus is reached. This effectively avoids common work order defects such as missing parameters, timing errors, omissions of security constraints, and resource allocation gaps, significantly improving the standardization and security redundancy of work order generation.
[0192] 6. Multi-dimensional work order quality verification and standardized dual-mode output enable one-time generation and multi-terminal adaptation and deployment.
[0193] This invention constructs a five-dimensional work order quality scoring system encompassing equipment integrity, parameter completeness, timing validity, safety compliance, and resource matching. This system can automatically quantify and screen for non-compliant work orders and trigger iterative regeneration and manual fallback mechanisms. Simultaneously, it constructs an eight-field standardized work order data model, supporting both human-readable text and machine-readable JSON / XML dual-mode rendering output. It is compatible with multi-terminal calls from field maintenance terminals, SCADA systems, and maintenance management platforms, enabling structured, standardized, and automated execution of work orders for engineering implementation.
[0194] 7. The LLM-DPO and PPO dual closed-loop incremental self-evolution mechanism enables long-term iterative optimization of the system.
[0195] This invention constructs a dual-loop self-learning system that is independent yet complementary: Loop A, based on manually corrected work order preference samples, continuously fine-tunes the large-scale professional intelligent agent model through the DPO algorithm, accumulating implicit operation and maintenance experience and reducing the rate of manual correction; Loop B, relying on real-time rewards from digital twin hydraulic systems, iteratively optimizes the scheduling PPO policy network online, continuously improving the adaptability to complex working conditions. Simultaneously, novel working condition samples mined by the scheduling layer feed back into the LLM training corpus, achieving a two-way collaborative upgrade where "scheduling evolution drives text generation evolution," enabling the system to possess long-term self-learning, self-adaptive, and self-optimizing capabilities.
[0196] 8. Improve efficiency and speed across the entire supply chain, significantly reduce labor costs, and enhance the efficiency of emergency operation and maintenance of the water network.
[0197] Traditional manual work order generation takes 40-60 minutes, while this invention can achieve fully automated closed-loop work order generation in a typical scenario in 2.8±0.4 minutes, improving overall efficiency by approximately 16 times. The end-to-end time consumption is achieved through the collaborative efforts of multiple modules, including data fusion, intelligent diagnosis, topology orchestration, twin simulation, intelligent scheduling, debate verification, and work order aggregation. Even in large-scale pipeline network scenarios, the total time consumption is still controlled within 5 minutes, meeting the industry's mandatory requirement of a 15-minute response window for emergency water network operation and maintenance. This significantly reduces the workload of manual judgment, verification, and form filling, and is adapted to the fully automated operation and maintenance needs of modern smart water networks.
[0198] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for generating water network work orders based on swarm intelligence and deep reinforcement learning, characterized in that, Includes the following steps: S1. Collect and integrate multi-source heterogeneous operation and maintenance data of the water network to obtain a unified water network operation status data object; S2. Based on the water network operation status data object, complete the anomaly monitoring, fault location, event level and risk assessment, and output the structured operation and maintenance task semantic data object, denoted as TT; S3. Perform dynamic task decomposition on the semantic data objects of structured operation and maintenance tasks, and automatically inject physical topology constraints in combination with the water network topology knowledge graph to construct a directed acyclic graph (DAG) carrying mandatory task dependencies. S4. Input the directed acyclic graph (DAG) into the digital twin model of the water network to conduct hydraulic simulation, calculate the hydraulic impact score, and when it is determined that there is a risk of secondary disasters, correct and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the simulation verification. S5. A hybrid scheduling strategy combining swarm intelligence and deep reinforcement learning is adopted to effectively allocate atomic subtasks within a directed acyclic graph (DAG) to various specialized intelligent agents. S6. Each professional intelligent agent conducts debate and negotiation based on the interlocking rule knowledge base, performs security and resource verification on the effective directed acyclic graph (DAG) subtasks allocated in step S5, and outputs the structured processing results. S7. Aggregate the structured processing results according to the preset standardized work order data model, perform quality verification, generate maintenance work orders that can be parsed by the automated system, and complete the distribution. S8. Collect the full lifecycle execution feedback data of the operation and maintenance work orders, and perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
2. The water network work order generation method based on swarm intelligence and deep reinforcement learning according to claim 1, characterized in that, Step S2 specifically includes the following methods: S21. Anomaly Monitoring: Based on the water network operation status data object, cross-modal anomaly detection is performed in conjunction with the water network topology knowledge graph to identify abnormal phenomena in the water network and generate structured event objects, denoted as EE; S22. Fault location: Read the structured event object EE to perform fault classification, and combine it with the water network topology knowledge graph to determine the fault type and fault topology location; S23. Event Level and Risk Assessment: Based on the fault type, fault topology location and real-time water network conditions, assess the scope of the fault's impact, classify the event level and calculate the risk score. S24. Operation and maintenance intent parsing: Combining fault type, fault topology location, event level and risk score, the operation and maintenance intent is parsed to generate the structured operation and maintenance task semantic data object TT.
3. The water network work order generation method based on swarm intelligence and deep reinforcement learning according to claim 1, characterized in that, The task dynamic decomposition described in step S3 is implemented as a hybrid decomposition mode that integrates a rule base and a proximal policy optimization (PPO) deep reinforcement learning network. The Proximal Policy Optimization (PPO) deep reinforcement learning network is pre-trained using expert operation and maintenance trajectory data for behavior cloning to complete cold start initialization. When performing task decomposition online, the decomposition actions output by the rule base and the decomposition actions output by the Proximal Policy Optimization (PPO) deep reinforcement learning network are dynamically weighted and fused according to the rule matching rate corresponding to the current task, and the operation and maintenance task is split based on the fused decomposition actions.
4. The water network work order generation method based on swarm intelligence and deep reinforcement learning according to claim 1, characterized in that, In step S4, the digital twin model of the water network has two hydraulic simulation modes: by default, the POD-RBF reduced-order proxy model is used to carry out rapid hydraulic pre-simulation; when a high-risk operation and maintenance scenario is identified, it automatically switches to the full-precision CFD simulation mode. If the hydraulic simulation determines that there is a risk of secondary disasters, the directed acyclic graph (DAG) is corrected by at least one method, such as inserting buffer adjustment tasks, adjusting the task execution sequence, or splitting large value operations. The correction is iterated until a valid directed acyclic graph (DAG) that has passed the simulation verification is obtained.
5. The water network work order generation method based on swarm intelligence and deep reinforcement learning according to claim 1, characterized in that, The execution process of the hybrid scheduling strategy in step S5 includes: S51. Cold start scheduling: An improved artificial bee colony (IABC) is used to perform a global search on an effective directed acyclic graph (DAG) to generate scheduling expert samples. The scheduling expert samples are then used to complete the pre-training of the proximal policy optimization (PPO) deep reinforcement learning network. S52. Two-way collaborative optimization: After the system is running stably, the Proximal Policy Optimization (PPO) deep reinforcement learning network outputs the scheduling strategy and the corresponding Q value. The Q value is used as heuristic information input to the Improved Artificial Bee Colony (IABC). The Improved Artificial Bee Colony (IABC) and the Proximal Policy Optimization (PPO) deep reinforcement learning network output candidate scheduling schemes respectively. S53. Physical feasibility verification: Input all candidate scheduling schemes into the water network digital twin model to complete the hydraulic feasibility verification and eliminate scheduling schemes with hydraulic safety risks. S54. Confidence Determination and Subtask Allocation: Determine the confidence of the output policy of the PPO deep reinforcement learning network for near-end policy optimization. If the confidence meets the threshold requirement, select the optimal scheduling scheme for the output of the PPO deep reinforcement learning network for near-end policy optimization. If the confidence is insufficient, fall back to the feasible scheduling scheme of the improved artificial bee colony (IABC). Based on the selected scheduling scheme, allocate the atomic subtasks in the effective directed acyclic graph (DAG) to each specialized agent.
6. The water network work order generation method based on swarm intelligence and deep reinforcement learning according to claim 1, characterized in that, Step S6 specifically includes the following steps: S61. Rule Retrieval and Task Acquisition: The security audit agent acquires the sub-tasks of the valid directed acyclic graph (DAG) assigned in step S5, and retrieves the water network security interlocking structured rules stored in the interlocking rule knowledge base; each water network security interlocking structured rule includes a rule ID, preconditions, prohibited operations, triggering conditions, severity level, and correction suggestions; S62. Matching and auditing and generating structured questions: The security auditing agent matches and verifies the subtasks within the effective directed acyclic graph (DAG) with each of the structured rules for water network security interlocking, identifies violations, and generates structured questions. S63. Iterative adjustment of atomic subtasks: The scheme generation agent adjusts and optimizes the atomic subtasks in the effective directed acyclic graph (DAG) based on the correction suggestions in the structured question, and obtains the updated atomic subtasks. S64. Circular verification until the termination condition is met: The updated atomic subtask is resubmitted to the security audit agent for repeated matching and auditing, and iterative adjustments are made until all structured questions are eliminated or the number of iterations reaches the preset maximum debate round, and the structured processing result is obtained.
7. A water network work order generation system based on swarm intelligence and deep reinforcement learning, used to implement the water network work order generation method based on swarm intelligence and deep reinforcement learning as described in any one of claims 1-6, characterized in that, include: The multi-source data sensing and fusion module is used to collect and fuse multi-source heterogeneous operation and maintenance data of the water network to obtain a unified water network operation status data object. The multi-agent collaborative diagnosis and analysis module is used to complete anomaly monitoring, fault location, event level and risk assessment based on the water network operation status data object, and output structured operation and maintenance task semantic data object, denoted as TT; The dynamic task orchestration engine is used to complete task decomposition, topology mapping, hydraulic simulation pre-play correction, and intelligent scheduling of sub-tasks based on the structured operation and maintenance task semantic data object TT, so as to realize the dynamic orchestration and optimization of water network operation and maintenance tasks. A professional intelligent agent cluster includes at least a solution generation intelligent agent, a security audit intelligent agent, and a resource matching intelligent agent. The professional intelligent agent cluster is configured with an interlocking rule knowledge base for conducting debate and negotiation based on the interlocking rule knowledge base, performing security and resource verification on the effective directed acyclic graph (DAG) subtasks allocated in step S5, and outputting structured processing results. The automatic work order generation module is used to aggregate and verify the structured processing results according to a preset standardized work order data model, generate maintenance work orders that can be parsed by the automated system, and complete the distribution. The closed-loop self-learning module is used to collect the execution feedback data of the entire life cycle of the operation and maintenance work order, and to perform incremental closed-loop learning on the deep reinforcement learning scheduling strategy and the professional intelligent agent large model respectively.
8. The water network work order generation system based on swarm intelligence and deep reinforcement learning according to claim 7, characterized in that, The dynamic task orchestration engine includes a dynamic task decomposer, a topology DAG building block, a digital twin pre-show, an improved artificial bee colony-near-end strategy optimized IABC-PPO hybrid scheduler, and an execution status monitor. The task dynamic decomposer is used to dynamically decompose the structured operation and maintenance task semantic data object TT. The topology DAG construction unit is used to query the water network topology knowledge graph and automatically inject physical topology constraints to construct a directed acyclic graph (DAG) carrying mandatory task dependencies. The digital twin pre-simulation device is used to input the directed acyclic graph (DAG) into the water network digital twin model to carry out hydraulic pre-simulation, calculate hydraulic impact scores, and correct and iterate the directed acyclic graph (DAG) when it is determined that there is a risk of secondary disasters, so as to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification. The improved artificial bee colony-proximal strategy optimization IABC-PPO hybrid scheduler is used to assign atomic subtasks within the effective directed acyclic graph (DAG) to various specialized intelligent agents using a hybrid scheduling strategy that combines swarm intelligence and deep reinforcement learning. The execution status monitor is used to monitor the task execution status based on the debouncing trigger mechanism, and triggers dynamic re-arrangement when preset conditions are met.
9. The water network work order generation system based on swarm intelligence and deep reinforcement learning according to claim 8, characterized in that, The task dynamic decomposer incorporates a five-tuple rule base constructed from operation and maintenance procedures and a proximal policy optimization (PPO) deep reinforcement learning network pre-trained with behavior clones. Based on the rule matching rate, the task dynamic decomposer dynamically weights and fuses the rule output actions and reinforcement learning output actions, and completes the task decomposition of the structured operation and maintenance task semantic data object TT based on the fusion result.
10. The water network work order generation system based on swarm intelligence and deep reinforcement learning according to claim 8, characterized in that, The digital twin pre-simulation device has a built-in POD-RBF reduced-order proxy model and a full-precision CFD simulation mode, and is configured with high-risk operation judgment conditions. When the judgment conditions are met, it automatically switches to full-precision CFD simulation. The digital twin pre-simulation device obtains a hydraulic impact score through simulation. If it determines that there is a risk of secondary disasters, it executes a DAG correction strategy to correct and iterate the directed acyclic graph (DAG) to obtain a valid directed acyclic graph (DAG) that has passed the pre-simulation verification.
Citation Information
Patent Citations
Multi-agent collaborative pipe network fault intelligent processing method
CN122365302A
