Control Method, Medium and Electronic Device of Intelligent Pipe Network User Terminal

By receiving user information, acquiring pipeline topology data, dividing molecular space and building an adaptive search tree, the problems of low efficiency and low accuracy of new user terminals in the existing technology are solved, and intelligent and efficient pipeline access and resource allocation are achieved.

CN120276354BActive Publication Date: 2025-08-01SHANGHAI THREE ZERO FOUR ZERO TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510759772.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-09
Publication Date
2025-08-01
Estimated Expiration
2045-06-09

AI Technical Summary

Technical Problem

The prior art is inefficient and accurate when adding user terminals, making it difficult to quickly and accurately generate adjustment and planning solutions, especially in multi-source supply and future planning, and it is difficult to cope with complex and changeable demand scenarios.

Method used

By receiving terminal information input by users, obtaining pipeline topology data, dividing molecular space, building an adaptive search tree, searching for the optimal access pipeline, determining the segmentation point, building the access pipeline of the user terminal, and combining simulation computing and visual analysis, providing intelligent path planning.

Benefits of technology

It realizes intelligent and efficient search for the optimal access pipeline when adding new user terminals, reduces manual calculation and evaluation time, finds the most cost-effective resource allocation method, and improves efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276354B_ABST
    Figure CN120276354B_ABST
Patent Text Reader

Abstract

The present application provides a control method, medium and electronic device for an intelligent pipe network user terminal. The method includes: receiving terminal information input by a user; obtaining pipeline topology data of an access pipe network, and dividing the pipeline topology of the pipe network into several subspaces based on the pipeline topology data; constructing an adaptive search tree for each subspace, obtaining the subspace closest to the user terminal based on the terminal information, and searching for an optimal access pipeline in the closest subspace based on the adaptive search tree; determining a splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline, and constructing an access pipeline for the user terminal with the attributes of the optimal access pipeline and the splitting point as the starting node of the user terminal and the position of the user terminal as the ending node. When a new user terminal is added to the pipe network in the present application, the optimal access pipeline can be searched intelligently and efficiently, effectively solving the problems of low efficiency and low accuracy in adding a new user terminal in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of smart city operation, and particularly relates to the technical field of intelligent pipe network user terminal control methods. Background Art

[0002] Pipe network simulation generally refers to steady-state simulation and transient simulation. Steady-state simulation mainly focuses on the behavior of the pipe network under stable operating conditions. This means that variables in the system, such as pressure, flow rate, and temperature, are considered constant during the simulation process. This type of simulation is usually used in the design stage to determine pipe sizes, the location and capacity of compressor stations, the requirements for gas storage facilities, etc. Steady-state simulation can help engineers and designers evaluate the performance of different design schemes and ensure that the system can operate effectively under expected loads. Transient simulation, on the other hand, considers the behavior of the pipe network under dynamic conditions, that is, when the system is subjected to external disturbances (such as sudden increases or decreases in demand, compressor failures, pipe ruptures, etc.), the changes in parameters such as pressure and flow rate in the pipe network over time. This type of simulation is more complex because it requires solving partial differential equations that vary with time, usually involving the comprehensive application of fluid mechanics, thermodynamics, and control theory.

[0003] Pipe network simulation is an interdisciplinary technology that involves multiple fields: fluid mechanics, thermodynamics, control theory, computer science, and mathematical modeling. It can be used to predict and optimize the performance of natural gas and steam transmission and distribution systems to ensure their safe, reliable, and efficient operation. At the same time, tens of thousands of nodes such as boilers, users, pressure regulating stations, valves, pumps, and steam traps are connected to the pipe network terminals, making the pipe network even more huge and complex; fast, accurate, and high-frequency simulation is widely needed. Natural gas and steam pipe networks are common energy transmission systems in industrial production and are widely used in industries such as chemical engineering, metallurgy, food, and pharmaceuticals. Natural gas and steam usually come from multiple gas sources (the selection, flow rate distribution, path planning and scheduling, and heat source adjustment of these heat sources have important impacts on the stability, energy efficiency, and cost control of natural gas and steam pipe networks).

[0004] Traditional methods for path planning of new customers in pipe networks rely on manual experience or simple automatic control logic and are difficult to cope with complex and changing demand scenarios. Especially in systems with multi-source supply and newly planned large customers in the future, how to quickly and accurately generate adjustment and planning schemes according to the real-time needs of future customers and the state of the pipe network is a major problem in pipe network control. Summary of the Invention

[0005] This application provides a control method, medium, and electronic device for an intelligent pipe network user terminal to solve the technical problems of low efficiency and low accuracy in adding new user terminals in the prior art.

[0006] In a first aspect, an embodiment of the present application provides a control method for an intelligent pipe network user terminal, including: receiving terminal information input by a user; obtaining pipeline topology data of an access pipe network, and dividing the pipeline topology of the pipe network into several subspaces based on the pipeline topology data; constructing an adaptive search tree for each of the subspaces, obtaining the subspace closest to the user terminal based on the terminal information, and searching for an optimal access pipeline in the closest subspace based on the adaptive search tree; determining a splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline, and constructing an access pipeline for the user terminal with the attributes of the optimal access pipeline and the splitting point as the starting node of the user terminal and the position of the user terminal as the ending node.

[0007] In an implementation manner of the first aspect, the obtaining pipeline topology data of the access pipe network and dividing the pipeline topology of the pipe network into several subspaces based on the pipeline topology data includes: obtaining the pipeline topology data; the pipeline topology data includes point table data of pipeline nodes and line table data of pipeline endpoints; constructing an undirected graph based on the point table data and the line table data, and calculating the centroid space coordinates of the undirected graph; offsetting the centroid space coordinates of multiple subspaces according to the centroid space coordinates; dividing the space according to the midpoint of the centroid space coordinates of each subspace to the centroid space coordinates of the undirected graph to form multiple subspaces, and configuring pipeline attributes for each of the subspaces.

[0008] In an implementation manner of the first aspect, the constructing an undirected graph based on the point table data and the line table data and calculating the centroid space coordinates of the undirected graph includes: taking each node in the point table data as a vertex, adding edges for each of the vertices according to the line table data to form an undirected graph in a point-edge structure; calculating the average value of the space coordinates of all nodes in the undirected graph, and taking the average value as the centroid space coordinates of the undirected graph.

[0009] In an implementation manner of the first aspect, the constructing an adaptive search tree for each of the subspaces includes: selecting any node on the edge of the subspace as the root node; obtaining a preset number of nodes closest to the root node as the leaf nodes of the next layer, and obtaining the node data of the leaf nodes and the pipeline data corresponding to the nodes; obtaining a preset number of nodes closest to each of the leaf nodes as the leaf nodes of the next layer of the leaf nodes, and obtaining the node data of the leaf nodes and the pipeline data corresponding to the nodes; repeating this step until all nodes of the subspace are traversed to form the adaptive search tree of the subspace.

[0010] In one implementation of the first aspect, the obtaining of the subspace closest to the user terminal based on the terminal information includes: obtaining the spatial coordinates and the lower pressure limit value of the user terminal based on the terminal information; calculating the distances from the user terminal to the centroids of the respective subspaces based on the spatial coordinates of the user terminal; screening, from the distances from the user terminal to the centroids of the respective subspaces, the subspace with the closest distance and the pressure satisfying the lower pressure limit value, and using this subspace as the subspace closest to the user terminal.

[0011] In one implementation of the first aspect, the searching for the optimal access pipeline in the closest subspace based on the adaptive search tree includes: traversing each node in the subspace closest to the user terminal based on the adaptive search tree to obtain the node closest to the user terminal and the pipeline corresponding to this node; determining whether the pipeline diameter of the pipeline corresponding to the node closest to the user terminal is greater than a preset pipeline diameter value, where the preset pipeline diameter value is the average diameter of the pipelines in the subspace that are greater than the lower pressure limit value; if so, determining the pipeline as the optimal access pipeline; if not, discarding this node and returning to continue obtaining the node closest to the user terminal and the pipeline corresponding to this node.

[0012] In one implementation of the first aspect, the determining of the splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline includes: respectively calculating the distances between the user terminal and the starting point and the ending point of the pipeline of the optimal access pipeline; determining whether the user terminal is closest to the starting point of the pipeline of the optimal access pipeline, if so, determining the splitting point of the optimal access pipeline based on a first preset splitting value, if not, determining the splitting point of the optimal access pipeline based on a second preset splitting value.

[0013] In one implementation of the first aspect, it further includes any one or more combinations of the following: detecting the connectivity between the access pipeline and the pipeline topology of the pipe network based on the undirected graph of the pipeline topology of the pipe network; inputting the working condition topology of the access pipeline into a pipe network simulator for simulation calculation to obtain a simulated distribution measurement result; analyzing the working condition topology of the access pipeline to obtain a visual chart data analysis result of the pipeline topology of the pipe network; the visual chart data analysis result includes one or more combinations of an access path, an influence range, and a cost estimate; providing an interface input interface for manual review and / or optimization suggestions for the user to mark doubts or put forward modification opinions on the interface.

[0014] In a second aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the control method of the intelligent pipe network user terminal described in any item of the first aspect of the present application.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, which includes: a memory storing a computer program; and a processor communicatively connected to the memory and executing the control method of the intelligent pipe network user terminal according to any one of the first aspects of the present application when calling the computer program.

[0016] The control method of the intelligent pipe network user terminal provided by the embodiment of the present application has the following beneficial effects:

[0017] When a new user terminal is added to the pipe network in the present application, the optimal access pipe is searched intelligently and efficiently, reducing the time for manual calculation and evaluation, and the most economical and effective resource allocation method can be found, effectively solving the technical problems of low efficiency and low accuracy in adding new user terminals in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It shows a flowchart of the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0019] Figure 2 It shows a flowchart of the processing of the terminal information input by the user in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0020] Figure 3 It shows a schematic diagram of the control principle of the access pipe in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0021] Figure 4 It shows a flowchart of constructing a subspace in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0022] Figure 5 It shows a schematic diagram of the specific implementation process of constructing a subspace in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0023] Figure 6 It shows a flowchart of obtaining the barycentric space coordinates of an undirected graph in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0024] Figure 7 It shows a flowchart of constructing an adaptive search tree for each subspace in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0025] Figure 8 It shows a flowchart of obtaining the subspace closest to the user terminal in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0026] Figure 9It shows the flowchart of obtaining the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0027] Figure 10 It shows the flowchart of optimizing and searching for the pipeline with the shortest path, suitable pipeline pressure level and pipe diameter corresponding to the access point in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0028] Figure 11 It shows the flowchart of determining the splitting point of the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0029] Figure 12 It shows the flowchart of a specific implementation manner of determining the splitting point of the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0030] Figure 13 It shows the flowchart of detecting the connectivity between the access pipeline and the pipeline topology of the pipe network in the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0031] Figure 14 It shows the flowchart of the overall implementation process of the control method of the intelligent pipe network user terminal according to an embodiment of the present application.

[0032] Figure 15 It shows the structural schematic diagram of the electronic device according to an embodiment of the present application. Specific implementation manner

[0033] The following uses specific specific examples to illustrate the implementation manners of the present application. Those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the principle of the present application. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0034] When adding new customers to the steam pipe network, the following methods are usually adopted:

[0035] 1. Manually add pipelines after determining the user point location in the GIS system.

[0036] 2. Use a program to directly connect the access point to the nearest pipeline.

[0037] 3. Use professional software to perform intelligent calculation to obtain results, and then use software such as Excel for data analysis.

[0038] The above methods have the following disadvantages:

[0039] 1. Manually add a pipeline in the GIS system after determining the user point location:

[0040] Manually performing path planning and adding users requires a large amount of time to collect data, analyze the current situation, and formulate solutions. Dynamic changes are difficult to capture, and it is difficult to update the model in real time manually to reflect the latest condition changes (such as new users, pipeline aging, etc.).

[0041] 2. Use a program to directly connect the access point to the nearest pipeline:

[0042] It is necessary to adjust multiple parameters according to the actual situation (such as pressure threshold, pipe diameter selection criteria). Direct connection to the nearest pipeline cannot fully cover all special situations in actual application scenarios (such as terrain obstacles, existing infrastructure limitations), resulting in a lack of flexibility in the solution.

[0043] 3. Use professional software to perform intelligent calculation and then use software such as Excel for data analysis:

[0044] Lack of automation. There is interaction between multiple independent software in the whole process, and there is a lack of an automated integration mechanism, which is not conducive to building an end-to-end workflow. Delayed feedback. Due to manual intervention and data transfer in multiple steps, it is difficult to achieve instant data analysis feedback, which is not beneficial to application scenarios that require rapid decision support. Difficult to dynamically adjust. Facing changing requirements or emergencies, it is difficult to quickly adjust the simulation model parameters and immediately view their impact on the final analysis results.

[0045] In view of the above problems of the prior art, the embodiment of the present application provides a control method for an intelligent pipe network user terminal, which is used to solve the technical problems of low efficiency and low accuracy in adding user terminals in the prior art.

[0046] The control method of the intelligent pipe network user terminal proposed in this application is a method for intelligently adding new users, intelligently planning the pipeline topology of the pipe network, intelligently simulating the transmission and distribution calculation, intelligently calculating the cost and construction cost, and data analysis during the initial stage or stable operation period of the steam pipe network construction. For example, when a user (such as a newly built community, factory or business park) hopes to connect to the existing urban heating pipe network system, the intelligent agent guides the user to input basic information (such as location, load demand, etc.) through the chat interface, and calls the internal simulation engine and self-developed algorithm to quickly generate a reasonable connection plan to form the pipeline topology of the new pipe network. Then, based on this pipeline topology of the pipe network, a simulation calculation is initiated for prediction and analysis and evaluation. The purpose of this application is to connect the user terminal to a reasonable pipeline in an intelligent and efficient manner through the control method of the intelligent pipe network user terminal, forming the pipeline topology of the complete steam pipe network. Then, based on the existing pipe network data and the needs of new users, simulations can be carried out to accurately predict the operating conditions of the pipe network under different scenarios. This helps to identify potential problems, such as insufficient pressure, flow overload, etc., and take measures in advance to solve them. With the development of the city and the change of user needs, the intelligent path planning is easy to adjust. By combining the intelligent agent, only by entering the user name or user address on the chat page, new needs or challenges can be quickly responded to, and the planning strategy can be flexibly adjusted to meet the needs of future development.

[0047] The following will be combined with the attached Figure 1 to the attached Figure 15 to describe in detail the technical solutions in the embodiments of this application. Enable those skilled in the art to understand and implement the control method of the intelligent pipe network user terminal in this embodiment without creative labor.

[0048] Figure 1 It is shown as the flowchart of the control method of the intelligent pipe network user terminal in the embodiment of this application. As Figure 1 shown, the control method of the intelligent pipe network user terminal provided in the embodiment of this application includes the following steps S100 to S500.

[0049] Step S100, receiving the terminal information input by the user;

[0050] Step S200, obtaining the pipeline topology data of the access pipe network, and dividing the pipeline topology of the pipe network into several subspaces based on the pipeline topology data;

[0051]

[0052] ​Step S400: Based on the distance between the user terminal and the optimal access pipeline, determine the splitting point of the optimal access pipeline, and construct the access pipeline of the user terminal with the attributes of the optimal access pipeline and the splitting point as the starting node of the user terminal and the location of the user terminal as the ending node.

[0053] When a new user terminal is added to the intelligent pipe network in the control method of the intelligent pipe network user terminal in this embodiment, the optimal access pipeline can be searched intelligently and efficiently, reducing the time for manual calculation and evaluation, and the most economical and effective resource allocation method can be found, effectively solving the technical problems of low efficiency and low accuracy in adding new user terminals in the prior art.

[0054] The above steps S100 to S400 in the control method of the intelligent pipe network user terminal in this embodiment will be described in detail below.

[0055] Step S100: Receive the terminal information input by the user.

[0056] In a specific implementation manner of this embodiment, the terminal information includes, but is not limited to, name, address, gas consumption, pressure requirement information, and gas usage period.

[0057] Figure 2 Shown is the processing flow chart of the terminal information input by the user in the control method of the intelligent pipe network user terminal in an embodiment of the present application. As Figure 2 shown, the receiving of the terminal information input by the user includes verifying the integrity of the terminal information and performing address parsing on the terminal information to obtain the location coordinates and / or map information of the user terminal.

[0058] Among them, in this embodiment, after receiving the initial information input by the user, a guiding prompt word for guiding the user to input the terminal information can be displayed on the input interface; then the terminal information input by the user based on the guiding prompt word is received.

[0059] The initial information input by the user is the user name or user address corresponding to the newly added user terminal. For example, the user inputs the newly added customer name or address name on the AI chat page.

[0060] The input interface is, for example, the AI chat page of the existing AI large model, and the AI chat page outputs prompt words to guide the user to use. In this embodiment, a specific implementation manner of receiving the terminal information input by the user based on the guiding prompt word, verifying the integrity of the terminal information, and performing address parsing on the terminal information to obtain the location coordinates and / or map information of the user terminal is as follows:

[0061] After the user enters the required information, the user information is verified. Once verified, the coordinates corresponding to the address are determined using the map API. If the coordinates are found, the user's message is immediately replied to in the message window. The reply message contains the pipeline network information and marks the newly added terminal user. The user can directly confirm and proceed to the next step, or click on the pipeline network to map the pipeline network, including but not limited to moving the terminal user and modifying the terminal user's attributes (daily gas usage or monthly gas usage). Before clicking OK, the user can modify or delete the location and modify the terminal user's attributes through the agent. However, if the user clicks OK, the next step will be automatically entered.

[0062] Prompt words for AI chat page:

[0063] You are an intelligent service assistant for a steam network user terminal. You are good at collecting user information through conversations, calling the map API to verify the address, and guiding the user to complete the terminal user registration process. The main process is:

[0064] Initial guidance: guides the user to use. "Welcome to the steam network expansion system! Please provide the following information for new users: (1) Customer name (2) Customer address (3) Gas or heating consumption (daily / monthly) (4) Pressure requirement (5) Gas or heating time period (can be entered in sections or provided all at once)".

[0065] In this embodiment, the integrity verification of the terminal information includes automatically detecting missing items and marking confirmed information with [ ].

[0066] "Received:

[0067] [Name] XX Company

[0068] [Address] Additional district and county information is required

[0069] [Gas volume] Monthly gas consumption 1500m³

[0070] [Pressure] 1.3Kpa

[0071] [Time] 7:00-22:00

[0072] Please complete the address with the zoning information."

[0073] Performing address parsing on the terminal information includes: removing spaces at the beginning of the address, removing abnormal characters in the address, detecting whether the address contains the province or city name, and if not, adding the province or city to the beginning of the address, and obtaining the longitude and latitude of the address through the Tiandi Map geocoding interface. Performing address parsing on the terminal information to obtain the location coordinates and / or map of the user terminal is, for example:

[0074] If the terminal information address is successfully resolved, it will be displayed:

[0075] "Address resolution successful!

[0076] Coordinates: Longitude 121.5064, Latitude 31.2452

[0077] Map preview: [Generate map thumbnail]

[0078] Please confirm the location accuracy"

[0079] If the terminal information address resolution fails, boot:

[0080] "No exact match found for the address, does it belong to the following locations:

[0081] No. 568, XX Road (Pudong New Area)

[0082] Lane 568, XX Road (Minhang District)

[0083] Map preview: [Generate map thumbnail]

[0084] Or re-describe a nearby landmark? You can also manually mark the location on the map."

[0085] Dynamic multi-round confirmation:

[0086] Please check the following information:

[0087] ┌──────────────

[0088] │ Company Name: XX Machinery Factory

[0089] │ Service address: No. 568, XX Road, Pudong New Area, Shanghai

[0090] │ Monthly gas consumption: 1800m³ ±5%

[0091] │ Pressure: 1.3Kpa ±5%

[0092] Gas usage period: 06:00-23:00 every day

[0093] └──────────────

[0094] Please enter xx to confirm, and indicate the item to be adjusted if you wish to modify.

[0095] This embodiment also includes handling parsing exceptions. For example, if a parameter is missing, the prompt is:

[0096] "To ensure service quality, we need to add [gas usage period]. What are the daily production hours for this user?"

[0097] If the user's fuzzy input is obtained, prompt:

[0098] "Multiple options were detected at the address 'XX Road near the bridge'. Do you need to:

[0099] 1. Manually mark the map location

[0100] 2. Provide a more accurate house number

[0101] 3. Access the real-time street view for confirmation?"

[0102] In this embodiment, when it is detected that the user changes the terminal information midway, a prompt for the updated information is given.

[0103] For example, "The [gas consumption] has been updated to 2000 m³ / month. It is necessary to re-match the pipeline pressure parameters. Calculating... Please wait a moment".

[0104] After the integrity verification and address parsing in this embodiment, a final confirmation of the terminal information input by the user is also performed:

[0105] For example, "All parameters have passed the system verification! Subsequent operations will be carried out".

[0106] Figure 3 It is shown as a schematic diagram of the control principle of the access pipeline in the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. As Figure 3 shown, the control of the access pipeline in the control method of the intelligent pipeline network user terminal in this embodiment includes:

[0107] Read the point table data and line table data in the pipeline network database.

[0108] Use the point table and line table to construct an undirected graph.

[0109] Calculate the centroid spatial coordinates of the undirected graph.

[0110] Calculate the centroid spatial coordinates of the subspace.

[0111] Subspace division.

[0112] Construct an adaptive spatial search tree.

[0113] Calculate the subspace closest to the access point.

[0114] Optimize the search for the pipeline with the shortest path, suitable pipeline pressure level, and pipe diameter corresponding to the access point.

[0115] Pipeline splitting.

[0116] Pipeline connection.

[0117] The above process will be specifically described below in combination with steps S200 to S400.

[0118] Step S200, obtain the pipeline topology data of the access pipeline network, and divide the pipeline topology of the pipeline network into several subspaces based on the pipeline topology data.

[0119] Figure 4 Shown is a flowchart of constructing subspaces in the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. As Figure 4 shown, in a specific implementation manner of this embodiment, the obtaining the pipeline topology data of the access pipeline network and dividing the pipeline topology of the pipeline network into several subspaces includes the following steps S210 to S240.

[0120] Step S210, obtain the pipeline topology data; the pipeline topology data includes the point table data of pipeline nodes and the line table data of pipeline endpoints. Among them, in this embodiment, the point table data contains the spatial coordinates (X, Y) of all nodes, and may also include other attributes such as ID, type, etc. The line table data includes the IDs of the two endpoints connected by each line, and the attributes of the line such as pipe diameter, pressure level, etc.

[0121] Step S220, construct an undirected graph based on the point table data and the line table data, and calculate the centroid spatial coordinates of the undirected graph. Consider each point in the point table as a vertex of the graph, add edges to these vertices according to the line table information, and use a Python library such as NetworkX to construct the undirected graph. Then calculate the average value of the spatial coordinates of all nodes in the undirected graph to obtain the centroid coordinates of the entire undirected graph.

[0122] Figure 5 Shown is a flowchart of obtaining the centroid spatial coordinates of the undirected graph in the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. Specifically, as Figure 5 shown, in a specific implementation manner of this embodiment, the constructing an undirected graph based on the point table data and the line table data and calculating the centroid spatial coordinates of the undirected graph includes the following steps S221 to S222.

[0123] Step S221, take each node in the point table data as a vertex, and add edges to each vertex according to the line table data to form an undirected graph with a point-edge structure;

[0124] Step S222, calculate the average value of the spatial coordinates of all nodes in the undirected graph, and take the average value as the centroid spatial coordinates of the undirected graph.

[0125] Step S230, offset the centroid spatial coordinates of multiple subspaces according to the centroid spatial coordinates.

[0126] Step S240: Divide the space according to the midpoint between the barycentric space coordinates of each subspace and the barycentric space coordinates of the undirected graph, form multiple subspaces, and configure pipeline attributes for each of the subspaces.

[0127] Figure 6 It is shown as a schematic diagram of the specific implementation process of constructing subspaces in the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. As Figure 6 shown, offset the barycentric space coordinates of K subspaces according to the barycentric space coordinates, save the coordinates to the new barycentric coordinate list. The value of K is generally defined as the integer obtained by dividing the number of line tables by 5000 to get a default K value, and it also supports the user to specify the K value. According to the obtained new barycentric coordinate list, combined with the barycentric space coordinates (original barycentric coordinates) of the undirected graph, start dividing the space from the midpoint between each new barycentric coordinate and the original barycentric coordinate, and divide to obtain a K + 1 - subspace undirected graph. Each part is regarded as an independent subspace undirected graph, and a set of line attributes is set for each subspace. For example, the line attribute of one subspace is {"pipe diameter": 360}, including the IDs of the two endpoints connected by each line, and line attributes such as pipe diameter and pressure level.

[0128] Step S300: Construct an adaptive search tree for each of the subspaces, obtain the subspace closest to the user terminal based on the terminal information, and search for the optimal access pipeline in the closest subspace based on the adaptive search tree.

[0129] In this embodiment, depth - first traverse the points and lines of each subspace, and use the spatial coordinates of the points to construct an adaptive spatial search tree. The construction principle of the adaptive spatial search tree is as follows: initialize the root node, insert point / line elements, perform adaptive splitting judgment, construct a complete tree structure, and depth - first traverse to visit each subspace. The search tree structure of each subspace is used to implement query and application functions, which helps to efficiently manage and query the point and line elements in the subspace.

[0130] Figure 7 It is shown as a flowchart of constructing an adaptive search tree for each subspace in the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. As Figure 7 shown, in a specific implementation manner of this embodiment, the constructing an adaptive search tree for each of the subspaces includes the following steps S311 to S313.

[0131] Step S311: Select any node on the edge of the subspace as the root node;

[0132] Step S312: Obtain a preset number of nodes closest to the root node as the leaf nodes of the next layer, and obtain the node data of the leaf nodes and the pipeline data corresponding to the nodes;

[0133] Step S313: Obtain a preset number of nodes closest to each of the leaf nodes as the leaf nodes of the next layer of the leaf nodes, and obtain the node data of the leaf node and the pipeline data corresponding to the node; repeat this step until all nodes in the subspace are traversed to form the adaptive search tree of the subspace.

[0134] In this embodiment, based on the spatial coordinates of the access point, calculate its distance to the centroid of each subspace to determine which subspace is closest to the access point. Figure 8 Shown is a flowchart of obtaining the subspace closest to the user terminal in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 8 shown, in a specific implementation manner of this embodiment, the obtaining the subspace closest to the user terminal based on the terminal information includes the following steps S321 to S323.

[0135] Step S321: Obtain the spatial coordinates and the lower pressure limit value of the user terminal based on the terminal information;

[0136] Step S322: Calculate the distance from the user terminal to the centroid of each of the subspaces based on the spatial coordinates of the user terminal;

[0137] Step S323: Screen out the subspace with the closest distance and the pressure satisfying the lower pressure limit value from the distances from the user terminal to the centroids of each of the subspaces, and use this subspace as the subspace closest to the user terminal.

[0138] Figure 9 Shown is a flowchart of obtaining the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 9 shown, in a specific implementation manner of this embodiment, the searching for the optimal access pipeline in the closest subspace based on the adaptive search tree includes the following steps S331 to S333.

[0139] Step S331: Traverse each node in the subspace closest to the user terminal based on the adaptive search tree to obtain the node closest to the user terminal and the pipeline corresponding to the node;

[0140] Step S332: Determine whether the pipeline diameter of the pipeline corresponding to the node closest to the user terminal is greater than the preset pipeline diameter value, where the preset pipeline diameter value is the average diameter of the pipelines in the subspace that are greater than the lower pressure limit value; if so, continue to execute Step S333: Determine the pipeline as the optimal access pipeline; if not, discard the node and return to Step S331 to continue obtaining the node closest to the user terminal and the pipeline corresponding to the node.

[0141] In this embodiment, the previously established spatial search tree is used to find a pipeline with the shortest path, a suitable pressure level, and a suitable pipe diameter that meets the requirements within the nearest subspace. The flow chart of optimizing the pipeline with the shortest path, the pipeline pressure level, and the pipe diameter adaptation corresponding to the search access point is as Figure 10 shown.

[0142] Step S400: Based on the distance between the user terminal and the optimal access pipeline, determine the splitting point of the optimal access pipeline, and construct the access pipeline of the user terminal with the attributes of the optimal access pipeline and the splitting point as the starting node of the user terminal and the position of the user terminal as the ending node.

[0143] Figure 11 It is shown as the flow chart of determining the splitting point of the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 11 shown, in a specific implementation manner of this embodiment, the determining the splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline includes the following steps S410 to S440.

[0144] Step S410: Calculate the distances between the user terminal and the starting point of the pipeline of the optimal access pipeline and the ending point of the pipeline respectively;

[0145] Step S420: Determine whether the user terminal is the closest to the starting point of the pipeline of the optimal access pipeline. If so, continue to execute Step S430 to determine the splitting point of the optimal access pipeline based on the first preset splitting value. If not, continue to execute Step S440 to determine the splitting point of the optimal access pipeline based on the second preset splitting value.

[0146] Figure 12 It is shown as the flow chart of a specific implementation manner of determining the splitting point of the optimal access pipeline in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 12 shown, after finding the optimal solution, that is, the nearest pipeline that meets all conditions, calculate the distances between the access point and the starting end point of the pipeline and the ending end point of the pipeline. If it is close to the starting end point of the pipeline, at the point at the quarter position of the pipeline, divide the selected pipeline into two segments, and add a new node as the splitting point of this segment of the pipeline. If it is close to the ending end point of the pipeline, at the point at the three-quarter position of the pipeline, divide the selected pipeline into two segments, and add a new node as the splitting point of this segment of the pipeline. [[ID= 25]]

[0147] Then create a new pipeline. One end of the new pipeline is the newly added node, and the other end is the point to be accessed. Ensure that this new pipeline can meet the requirements of the system, such as the pressure level, pipe diameter, etc. At the same time, spread the attributes of the nearest pipeline that meets all conditions after finding the optimal solution to the newly added pipeline.

[0148] In a specific implementation manner of this embodiment, it further includes detecting the connectivity between the access pipeline and the pipeline topology of the pipe network based on the undirected graph of the pipeline topology of the pipe network. Figure 13 It is shown as the flowchart of detecting the connectivity between the access pipeline and the pipeline topology of the pipe network in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 13 shown, it is detected whether there is an abnormal connectivity between the newly accessed users and the newly added pipelines.

[0149] Topological connectivity refers to whether there are paths connecting each node (vertex) within a network or graph structure in graph theory and network analysis. If there is at least one path between any two nodes in the network, the network is considered connected. In a network, this connectivity can be direct (i.e., there is a directly connected edge between two nodes), or indirect (connected through a series of intermediate nodes). In this embodiment, the newly added users, newly added pipelines, and the pipelines after splitting are checked whether they are connected through various point-line relationships or paths in the entire topological graph by creating an undirected graph.

[0150] In a specific implementation manner of this embodiment, it further includes: inputting the working condition topology of the access pipeline into a pipe network simulator for simulation calculation to obtain simulation results of analog transmission and distribution measurement. That is, the working condition topology after adding new users is input into the solver to initiate simulation calculation and the results are stored in the database for preservation.

[0151] In a specific implementation manner of this embodiment, it further includes: analyzing the working condition topology of the access pipeline to obtain visual chart data analysis results of the pipeline topology of the pipe network. That is, in this embodiment, the analysis of all node and pipeline data under the current working condition is supported. Among them, the visual chart data analysis results include one or more combinations of access paths, influence ranges, cost estimates, etc. That is, the content such as access paths, influence ranges, cost estimates, etc. is returned to the user in the form of pictures and texts. The visualization of AI analysis results is a process of converting complex data and analysis results into an easy-to-understand chart form for display to the user. Based on the stored simulation results and other data in the database, such as equipment acquisition data, cost data, etc., let AI perform intelligent analysis and display it on the user display page.

[0152] In a specific implementation manner of this embodiment, it further includes: providing an interface input interface for manual review and / or optimization suggestions, so that users can mark question points or put forward modification opinions on the interface. Providing an interface input interface for manual review / optimization suggestions is to ensure the accuracy and practicality of AI analysis results, provide tools for users, and allow users to directly mark question points or put forward modification opinions on the interface for manual review and / or optimization suggestions.

[0153] Figure 14The figure shows a flowchart of the overall implementation process of the control method for the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 14 shown, it includes the following processes:

[0154] User input information: The user inputs the newly added customer name or address name on the intelligent agent chat page;

[0155] Data parsing and preprocessing;

[0156] Intelligent calculation of suitable access points: Use the adaptive subspace search tree to add the pipeline connection and pipeline splitting algorithms for new users;

[0157] Topological connectivity check: Check whether there are connectivity anomalies for the newly connected users and the newly added pipelines;

[0158] Intelligent simulation of distribution calculation: Input the working condition topology after adding new users into the solver to initiate simulation calculation and save the results in the database;

[0159] Visual feedback of data analysis results: Return the access path, influence range, cost estimate, etc. to the user in the form of pictures and texts;

[0160] Manual review / optimization suggestions: Provide an expert intervention interface or optimization options if necessary.

[0161] In this embodiment, after adding new users, the intelligent control access point is used to control pipeline connection and pipeline splitting, without relying on traditional GIS tools or third-party libraries (such as general path search algorithms like Dijkstra, A*). Combining with actual engineering constraints (such as minimum turning radius, burial depth limit, avoidance of existing pipelines, etc.). Integrating the pressure lower limit and pipe diameter matching strategy to achieve the linkage calculation of connection path and characteristics such as pressure and pipe diameter. The algorithm in this embodiment is designed with lightweight, suitable for integration into the chatbot, and can return results within a few minutes or even seconds. In this embodiment, the tree is no longer constructed by dividing and rotating dimensions in a fixed order, improving the search efficiency. The internal optimization and data structure of the algorithm in this embodiment can complete the pipeline topology of the intelligent connection to form a new pipeline network for large pipeline networks (500,000 pipelines) within 1.5 seconds, support parallel search paths, and are applicable to distributed or GPU acceleration environments. And it supports multi-objective optimization, such as the shortest path, pipeline pressure level, and pipe diameter adaptation. The service quality of this embodiment is improved. The innovative idea of providing a transparent and visual access solution through the intelligent agent for the traditional pipeline network planning, which may require multiple meetings and document exchanges to determine the final plan, enhances the customer's trust. This embodiment has standardization and scalability, is applicable to multiple cities and various pipeline network types (water, gas, heat), and the algorithm is modularly designed, easy to reuse and migrate.

[0162] The embodiments of this application optimize the allocation of enterprise resources. Through the simulation analysis of different planning schemes, the most economical and effective resource allocation method can be found, avoiding unnecessary construction investment. For example, key parameters such as the optimal pipeline diameter, pump station location and capacity are determined, thereby reducing construction and operation costs. The embodiments of this application achieve a breakthrough improvement in four dimensions: efficiency, stability, economy, and adaptability through the intelligent agent architecture and multi-technology integration, providing a set of efficient, reliable and sustainable solutions for the intelligent upgrade of industrial steam pipe networks. Its core value lies in transforming the decentralized gas source / heat source control, manual experience and real-time data into systematic autonomous decision-making capabilities, significantly reducing energy waste and operation and maintenance costs. The embodiments of this application reduce communication costs and improve work efficiency. Traditional pipe network planning may require multiple meetings and document exchanges to determine the final plan. However, by interacting with the intelligent agent through the chat page, the communication links can be greatly reduced, the process can be simplified, and time can be saved. The automated simulation analysis reduces the time for manual calculation and evaluation, enabling engineers and technicians to focus more on solving complex problems rather than basic data processing work. The embodiments of this application accelerate the decision-making process and enhance the customer experience. By using the ability of the intelligent agent to quickly process information and simulate different schemes, multiple planning options and their expected effects can be provided to customers in a short time, helping customers make decisions faster. Providing an instant response and interactive service method allows customers to understand in real time how their needs are being met. This method is more intuitive and transparent, improving the customer's sense of participation and satisfaction.

[0163] The protection scope of the control method of the intelligent pipe network user terminal described in the embodiments of this application is not limited to the execution order of the steps listed in this embodiment. Any scheme achieved by adding or subtracting steps of the prior art and replacing steps according to the principle of this application is included in the protection scope of this application.

[0164] The embodiments of this application also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the control method of the intelligent pipe network user terminal provided in any embodiment of this application.

[0165] In the embodiments of the present application, any combination of one or more storage media may be adopted. The storage medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.

[0166] The embodiments of the present application also provide an electronic device. Figure 15 Shown is a schematic structural diagram of the electronic device 100 provided by the embodiments of the present application. In some embodiments, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), or other terminal devices. In addition, the control method for the intelligent pipe network user terminal provided by the present application may also be applied to databases, servers, and service response systems based on terminal artificial intelligence. The embodiments of the present application do not impose any restrictions on the specific application scenarios of the control method for the intelligent pipe network user terminal.

[0167] As Figure 15 shown, the electronic device 100 provided by the embodiments of the present application includes a memory 101 and a processor 102.

[0168] The memory 101 is used to store computer programs; preferably, the memory 101 includes: various media such as ROM, RAM, magnetic disks, USB flash drives, memory cards, or optical discs that can store program codes.

[0169] Specifically, the memory 101 may include a computer system-readable medium in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The electronic device 100 may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 101 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present application.

[0170] The processor 102 is connected to the memory 101 and is configured to execute the computer program stored in the memory 101, so that the electronic device 100 executes the control method of the intelligent pipe network user terminal provided in any embodiment of the present application.

[0171] Optionally, the processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0172] Optionally, the electronic device 100 in this embodiment may further include a display 103. The display 103 is communicatively connected to the memory 101 and the processor 102, and is configured to display the relevant GUI interaction interface of the control method of the intelligent pipe network user terminal.

[0173] In summary, when a new user terminal is added to the pipe network in the present application, the optimal access pipe is searched intelligently and efficiently, the calculation and evaluation time is reduced, the most economical and effective resource allocation method is found, and the technical problems of low efficiency and low accuracy when a new user terminal is added in the prior art are effectively solved. Therefore, the present application effectively overcomes the defects of the prior art and has higher industrial utilization value.

[0174] The above embodiments are only illustrative of the principles and effects of the present application and are not intended to limit the present application. Any person familiar with this technology may modify or change the above embodiments without departing from the technical framework and scope of the present application. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the technical framework and technical ideas disclosed in the present application should still be covered by the claims of the present application.

Claims

1. A control method for an intelligent pipe network user terminal, characterized in that Including: Receiving terminal information input by a user; Obtaining pipeline topology data of an access pipe network, and dividing the pipeline topology of the pipe network into several subspaces based on the pipeline topology data; Constructing an adaptive search tree for each of the subspaces, obtaining the subspace closest to the user terminal based on the terminal information, and searching for an optimal access pipeline within the closest subspace based on the adaptive search tree; The constructing an adaptive search tree for each of the subspaces includes: selecting any node on the edge of the subspace as the root node; obtaining a preset number of nodes closest to the root node as leaf nodes of the next layer, and obtaining the node data of the leaf nodes and the pipeline data corresponding to the nodes; obtaining a preset number of nodes closest to each of the leaf nodes as leaf nodes of the next layer of the leaf nodes, and obtaining the node data of the leaf nodes and the pipeline data corresponding to the nodes; repeating this step until all nodes of the subspace are traversed to form the adaptive search tree of the subspace; Based on the distance between the user terminal and the optimal access pipeline, determining a splitting point of the optimal access pipeline, and constructing an access pipeline for the user terminal with the attributes of the optimal access pipeline, the splitting point as the starting node of the user terminal, and the position of the user terminal as the ending node; The determining a splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline includes: Calculating the distances between the user terminal and the starting point of the pipeline of the optimal access pipeline and the ending point of the pipeline respectively; Judging whether the user terminal is closest to the starting point of the pipeline of the optimal access pipeline. If so, determining the splitting point of the optimal access pipeline based on a first preset splitting value; if not, determining the splitting point of the optimal access pipeline based on a second preset splitting value.

2. The control method of the intelligent pipe network user terminal according to claim 1, wherein The obtaining pipeline topology data of an access pipe network, and dividing the pipeline topology of the pipe network into several subspaces includes: Obtaining the pipeline topology data; the pipeline topology data includes point table data of pipeline nodes and line table data of pipeline endpoints; Constructing an undirected graph based on the point table data and the line table data, and calculating the centroid space coordinates of the undirected graph; Offsetting the centroid space coordinates of multiple subspaces according to the centroid space coordinates; Dividing the space according to the midpoint of the centroid space coordinates of each subspace to the centroid space coordinates of the undirected graph to form multiple subspaces, and configuring pipeline attributes for each of the subspaces.

3. The control method of the intelligent pipe network user terminal according to claim 2, characterized in that, The constructing an undirected graph based on the point table data and the line table data, and calculating the centroid space coordinates of the undirected graph includes: Taking each node in the point table data as a vertex, adding edges for each vertex according to the line table data to form an undirected graph with a point-edge structure; Calculating the average value of the space coordinates of all nodes in the undirected graph, and taking the average value as the centroid space coordinates of the undirected graph.

4. The control method of the intelligent pipe network user terminal according to claim 1, wherein, The obtaining the subspace closest to the user terminal based on the terminal information includes: Obtaining the space coordinates and the lower pressure limit value of the user terminal based on the terminal information; Calculate the distance from the user terminal to the centroid of each subspace based on the spatial coordinates of the user terminal; Select the subspace with the shortest distance and a pressure meeting the lower limit value of the pressure from the distances from the user terminal to the centroids of each subspace, and use this subspace as the subspace with the shortest distance from the user terminal.

5. The control method of the intelligent pipe network user terminal according to claim 1 or 4, characterized in that, The searching for the optimal access pipeline in the nearest subspace based on the adaptive search tree includes: Traverse each node in the subspace with the shortest distance from the user terminal based on the adaptive search tree to obtain the node with the shortest distance from the user terminal and the pipeline corresponding to this node; Determine whether the pipeline diameter of the pipeline corresponding to the node with the shortest distance from the user terminal is greater than a preset pipeline diameter value, where the preset pipeline diameter value is the average diameter of the pipelines greater than the lower limit value of the pressure in the subspace; If so, determine that the pipeline is the optimal access pipeline; If not, discard this node and return to continue to obtain the node with the shortest distance from the user terminal and the pipeline corresponding to this node.

6. The control method of the intelligent pipe network user terminal according to claim 1, characterized in that, It further includes any one or more combinations of the following: Detect the connectivity between the access pipeline and the pipeline topology of the pipe network based on the undirected graph of the pipeline topology of the pipe network; Input the working condition topology of the access pipeline into a pipe network simulator for simulation calculation to obtain a simulated distribution measurement result; Analyze the working condition topology of the access pipeline to obtain a visual chart data analysis result of the pipeline topology of the pipe network; the visual chart data analysis result includes one or more combinations of an access path, an influence range, and a cost estimate; Provide an interface for manual review and / or optimization suggestion input for the user to mark doubt points or put forward modification opinions on the interface.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the control method of the intelligent pipe network user terminal according to any one of claims 1 to 6.

8. An electronic device, characterized in that, The electronic device includes: A memory storing a computer program; A processor communicatively connected to the memory, and when calling the computer program, executes the control method of the intelligent pipe network user terminal according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Pipe network topology data compression method, device and equipment and readable storage medium

    CN117240305A

  • Special line access path planning method, device, equipment, medium and program product

    CN119299320A

  • Fluid pipeline topology optimization design method based on parameter simulation model

    CN120068331A