Control method of intelligent pipe network user terminal, medium and electronic equipment

Through the intelligent pipeline user terminal control method, the adaptive search tree and simulation calculation are used to solve the problems of low efficiency and low accuracy when adding new user terminals, and fast and economical pipeline topology planning and simulation analysis are realized, supporting dynamic adjustment and immediate response.

CN120276354AActive Publication Date: 2025-07-08SHANGHAI THREE ZERO FOUR ZERO TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art has low efficiency and low accuracy when adding user terminals, making it difficult to generate adjustment and planning solutions quickly and accurately. Especially in multi-source supply and future planning, traditional methods are 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 efficient and accurate search of the optimal access pipeline when adding new user terminals, reduces manual calculation and evaluation time, finds the most cost-effective resource allocation method, and supports dynamic adjustment and immediate response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120276354A_ABST
    Figure CN120276354A_ABST
Patent Text Reader

Abstract

The invention provides a control method of an intelligent pipe network user terminal, a medium and electronic equipment. The method comprises the following steps: receiving terminal information input by a user; acquiring pipeline topology data accessed to the pipe network, and dividing the pipeline topology of the pipe network into a plurality of subspaces based on the pipeline topology data; constructing a self-adaptive search tree of each subspace, obtaining the subspace closest to the user terminal based on the terminal information, and searching an optimal access pipeline in the closest subspace based on the self-adaptive search tree; and determining a segmentation point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline, and constructing the access pipeline of the user terminal by taking the attribute of the optimal access pipeline and the segmentation point as a starting node of the user terminal and taking the position of the user terminal as a termination node. When the user terminal is newly added to the pipe network, the optimal access pipeline is intelligently and efficiently searched, and the problems of low efficiency and low accuracy when the user terminal is newly added in the prior art are effectively solved.
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, takes into account 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 and composite technology that involves multiple disciplines: 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, ensuring 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 regulation of these heat sources have important impacts on the stability, energy efficiency, and cost control of natural gas and steam pipe networks.

[0004] The traditional method for path planning of new customers in the pipe network relies on manual experience or simple automatic control logic and is difficult to cope with complex and changing demand scenarios. Especially in a system with multi-source supply and new large customers planned 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 between the centroid space coordinates of each subspace and 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: using 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 with a point-edge structure; calculating the average value of the space coordinates of all nodes in the undirected graph, and using 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 method of obtaining 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 whose pressure meets 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 method of 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 that the pipeline is 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 method of determining the 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 and the ending point of the pipeline of the optimal access pipeline respectively; 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 graph data analysis result of the pipeline topology of the pipe network; the visual graph 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 question points 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 when invoking the computer program, executes the control method of the intelligent pipe network user terminal according to any one of the first aspects of the present application.

[0016] The control method of the intelligent pipe network user terminal provided by the embodiment of the present application has the following beneficial effects: 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

[0017] 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.

[0018] Figure 2 It shows a flowchart of processing 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.

[0019] 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.

[0020] 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.

[0021] 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.

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

[0023] 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.

[0024] 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.

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

[0026] Figure 10 It shows a flowchart for optimizing and searching for a 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.

[0027] Figure 11 It shows a flowchart for determining the segmentation 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.

[0028] Figure 12 It shows a flowchart of a specific implementation manner for determining the segmentation 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 13 It shows a flowchart for 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.

[0030] Figure 14 It shows a 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.

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

[0032] 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, and 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.

[0033] When adding new customers to the steam pipe network, it is usually through the following several methods: 1. Manually add a pipeline in the GIS system after determining the user point location.

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

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

[0036] The above methods have the following disadvantages: 1. Manually add a pipeline after determining the user point location in the GIS system: Manually planning the path 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 by manual methods to reflect the latest condition changes (such as new users, pipeline aging, etc.).

[0037] 2. Use a program to directly connect the access point to the nearest pipeline: It is necessary to adjust multiple parameters according to the actual situation (such as pressure threshold, pipe diameter selection standard). Direct connection to the nearest pipeline cannot fully cover all special cases in actual application scenarios (such as terrain obstacles, existing infrastructure restrictions), resulting in a lack of flexibility in the solution.

[0038] 3. Use professional software to intelligently calculate the results and then perform data analysis using software such as Excel: Lack of automation. There is an 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 quick decision-making 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.

[0039] 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 new user terminals in the prior art. The control method for 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 of the steam pipe network construction or during the stable operation period. For example, when a user (such as a newly built community, factory, or commercial park) hopes to connect to the existing heating pipe network system in the city, 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 algorithms to quickly generate a reasonable access 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 intelligently and efficiently connect the user terminal to a reasonable pipeline through the control method of the intelligent pipe network user terminal, form the pipeline topology of the complete steam pipe network, and then simulate based on the existing pipe network data and the new user requirements to accurately predict the operation status 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 requirements, the intelligent path planning is easy to adjust. Combining with the intelligent agent, only by entering the user name or user address on the chat page can quickly respond to new requirements or challenges, and flexibly adjust the planning strategy to meet the needs of future development.

[0040] 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. It enables 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.

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

[0042] Step S100, receiving the terminal information input by the user; Step S200, obtaining the pipeline topology data of the access pipe network, and dividing the pipeline topology of the pipe network into several sub-spaces based on the pipeline topology data; Step S300, constructing an adaptive search tree for each of the sub-spaces, obtaining the sub-space closest to the user terminal based on the terminal information, and searching for the optimal access pipeline in the closest sub-space based on the adaptive search tree; 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.

[0043] When a new user terminal is added to the intelligent pipeline network in the control method of the intelligent pipeline network user terminal in this embodiment, it can efficiently search for the optimal access pipeline, reduce the time of manual calculation and evaluation, find the most economical and effective resource allocation method, and effectively solve the technical problems of low efficiency and low accuracy in adding new user terminals in the prior art.

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

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

[0046] 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.

[0047] Figure 2 Shown is the processing flow chart of the terminal information input by the user in the control method of the intelligent pipeline network user terminal in an embodiment of this 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.

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

[0049] 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.

[0050] The input interface is, for example, the AI chat page of an existing large AI 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 words, 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: After the user enters the required information, the user information is verified. After the verification is passed, the coordinates corresponding to the address are determined according to the map API. If the coordinates are found, the user's message is immediately replied in the message window. The reply message contains the pipeline network information and marks the newly added terminal users. The user can directly confirm to proceed to the next step, or click on the pipeline network to map the pipeline network, including but not limited to moving terminal users, modifying the attributes of terminal users (daily gas consumption or monthly gas consumption), etc. Before clicking OK, the user can modify or delete the location and modify the attributes of the terminal user through the intelligent agent, but if the user clicks OK, it will automatically proceed to the next step.

[0051] Prompt words for AI chat page: {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 addition process. The main process is: Initial guidance: guide users to use. "Welcome to the steam network expansion system! Please provide the following information for new users: (1) Customer name (2) Customer detailed address (3) Gas or heating consumption (day / month) (4) Pressure requirement (5) Gas or heating time period (can be entered in sections or provided all at once)".

[0052] In this embodiment, the integrity verification of the terminal information includes automatically detecting missing items and marking confirmed information with [ ]. “Received: [Name] XX Company [Address] Additional district and county information is required [Gas volume] Monthly gas consumption 1500m³ [Pressure] 1.3Kpa [Time] 7:00-22:00 Please complete the zoning information in the address."

[0053] Performing address parsing on the terminal information includes: removing the space at the beginning of the address, removing abnormal characters in the address, detecting whether there is a province or city name in the address, 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: If the address resolution of the terminal information is successful, it will be displayed: "Address resolution successful! Coordinates: longitude 121.5064, latitude 31.2452 Map preview: [Generate map thumbnail] Please confirm the location accuracy" Boot when address resolution of terminal information fails: "No exact match address found. Does it belong to the following location: No. 568, XX Road (Pudong New Area) No. 568, Lane XX Road (Minhang District) Map preview: [Generate map thumbnail] Or re-describe the surrounding landmarks? You can also manually mark the location on the map".

[0054] Dynamic multi-round confirmation: "Please check the following information: ┌────────────── │ Company Name: XX Machinery Factory │ Service Address: No. 568, XX Road, Pudong New Area, Shanghai │ Monthly gas consumption: 1800m³ ±5% │ Pressure: 1.3Kpa ±5% │ Gas usage period: 06:00-23:00 every day └────────────── Please enter xx to confirm, and describe the items to be adjusted if you want to modify".

[0055] In this embodiment, it also includes handling parsing exceptions. For example, if a parameter is missing, prompt: "To ensure service quality, [gas usage period] needs to be supplemented. What is the user's daily production time?" If fuzzy input from the user is obtained, prompt: "Multiple options are detected for the address 'XX Road near the bridge'. Do you need to: 1. Manually mark the map location 2. Provide a more accurate house number 3. Access real-time street view for confirmation?"

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

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

[0058] After integrity verification and address resolution in this embodiment, a final confirmation of the terminal information input by the user is also performed: For example, "All parameters have passed the system verification! Subsequent operations will be carried out".

[0059] Figure 3It shows a schematic diagram of the control principle of the access pipeline in the control method of the intelligent pipe 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 pipe network user terminal in this embodiment includes: Read the point table data and line table data in the pipe network database.

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

[0061] Calculate the centroid space coordinates of the undirected graph.

[0062] Calculate the centroid space coordinates of the subspace.

[0063] Subspace division.

[0064] Construct an adaptive spatial search tree.

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

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

[0067] Pipeline splitting.

[0068] Pipeline connection.

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

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

[0071] 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. As Figure 4 shown, in a specific implementation manner of this embodiment, the 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 includes the following steps S210 to S240.

[0072] 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.

[0073] Step S220: Construct an undirected graph based on the point table data and the line table data, and calculate the barycentric spatial coordinates of the undirected graph. Consider each point in the point table as a vertex of the graph, add edges for 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 barycentric coordinates of the entire undirected graph.

[0074] Figure 5 It shows a flowchart of obtaining the barycentric spatial coordinates of an undirected graph in the control method of the intelligent pipe 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 barycentric spatial coordinates of the undirected graph includes the following steps S221 to S222.

[0075] Step S221: Take each node in the point table data as a vertex, and add edges for each vertex according to the line table data to form an undirected graph with a point-edge structure; Step S222: Calculate the average value of the spatial coordinates of all nodes in the undirected graph, and use the average value as the barycentric spatial coordinates of the undirected graph.

[0076] Step S230: Offset the barycentric spatial coordinates of multiple subspaces according to the barycentric spatial coordinates.

[0077] Step S240: Divide the space according to the midpoints of the barycentric spatial coordinates of each subspace to the barycentric spatial coordinates of the undirected graph, form multiple subspaces, and configure pipe attributes for each subspace.

[0078] Figure 6 It shows a schematic diagram of the specific implementation process of constructing subspaces in the control method of the intelligent pipe network user terminal according to an embodiment of the present application. As Figure 6 shown, offset the barycentric spatial coordinates of K subspaces according to the barycentric spatial coordinates, save the coordinates to a 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 value of K, and it also supports the user to specify the value of K. According to the obtained new barycentric coordinate list, combined with the barycentric spatial coordinates (original barycentric coordinates) of the undirected graph, start dividing the space from the midpoint of each new barycentric coordinate to the original barycentric coordinate, and divide to obtain K + 1 subspaces of the undirected graph. Each part is regarded as an independent undirected graph of a subspace, 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.

[0079] 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 within the closest subspace based on the adaptive search tree.

[0080] In this embodiment, traverse the points and lines of each subspace in depth-first order, 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 traverse and visit each subspace in depth-first order. The search tree structures of each subspace are used to implement query and application functions, which helps to efficiently manage and query the points and line elements within the subspace.

[0081] Figure 7 It is shown as the flowchart of constructing the 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. As Figure 7 shown, in a specific implementation manner of this embodiment, the construction of the adaptive search tree for each of the subspaces includes the following steps S311 to S313.

[0082] Step S311: Select any node on the edge of the subspace as the root node; 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; 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 nodes and the pipeline data corresponding to the nodes; repeat this step until all nodes of the subspace are traversed to form the adaptive search tree of the subspace.

[0083] 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 It is shown as the 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 of the subspace closest to the user terminal based on the terminal information includes the following steps S321 to S323.

[0084] Step S321: Obtain the spatial coordinates and the lower pressure limit value of the user terminal based on the terminal information; 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; Step S323: From the distances from the user terminal to the centroids of the respective subspaces, filter out the subspace with the shortest distance and whose pressure meets the lower limit value of the pressure, and use this subspace as the subspace closest to the user terminal.

[0085] Figure 9 Shown is a flowchart for obtaining the optimal access pipeline in the control method of the intelligent pipeline 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 nearest subspace based on the adaptive search tree includes the following steps S331 to S333.

[0086] Step S331: Traverse each node in the subspace closest to the user terminal based on the adaptive search tree, and obtain the node closest to the user terminal and the pipeline corresponding to this node; 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 limit value of the pressure; if so, continue to execute Step S333: Determine the pipeline as the optimal access pipeline; if not, discard this node and return to Step S331 to continue obtaining the node closest to the user terminal and the pipeline corresponding to this node.

[0087] In this embodiment, using the previously established spatial search tree, search for the pipeline with the shortest path, suitable pressure level, and pipeline diameter that meet the requirements in the nearest subspace. The flowchart for optimizing the search for the pipeline with the shortest path, suitable pipeline pressure level, and pipeline diameter corresponding to the access point is as Figure 10 shown.

[0088] 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, the splitting point as the starting node of the user terminal, and the position of the user terminal as the ending node.

[0089] Figure 11 Shown is a flowchart for determining the splitting point of the optimal access pipeline in the control method of the intelligent pipeline 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.

[0090] 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; Step S420: Determine whether the user terminal is closest to the starting point of the optimal access pipeline. If so, proceed to step S430 to determine the splitting point of the optimal access pipeline based on a first preset splitting value. If not, proceed to step S440 to determine the splitting point of the optimal access pipeline based on a second preset splitting value.

[0091] Figure 12 Shown is a flowchart of a specific implementation manner for 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 closest 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 one-quarter 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 three-quarters 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.

[0092] 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 pressure level, pipe diameter, etc. At the same time, spread the attributes of the closest pipeline that meets all conditions after finding the optimal solution to the newly added pipeline.

[0093] 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 Shown is a 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, detect whether there are connectivity anomalies between the newly accessed user and the newly added pipeline.

[0094] 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, by creating an undirected graph, check whether the newly added user, the newly added pipeline, and the pipeline after splitting are connected through various point-line relationships or paths in the entire topological graph.

[0095] In a specific implementation manner of this embodiment, it further includes: inputting the working condition topology of the access pipeline into a pipeline network simulator for simulation calculation to obtain the simulation result of the simulated transmission and distribution measurement. That is, inputting the working condition topology after adding new users into the solver to initiate simulation calculation and storing the obtained result in the database.

[0096] In a specific implementation manner of this embodiment, it further includes: analyzing the working condition topology of the access pipeline to obtain the visual chart data analysis result of the pipeline topology of the pipeline 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 result includes one or more combinations of access path, influence range, cost estimation, etc. That is, the content such as access path, influence range, cost estimation, etc. is returned to the user in the form of pictures and texts. The visualization of the AI analysis result 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 device acquisition data, cost data, etc., let the AI perform intelligent analysis and display it on the user display page.

[0097] In a specific implementation manner of this embodiment, it further includes: providing an interface input interface for manual review and / or optimization suggestions for the user to mark doubt 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 the AI analysis result, provide a tool for the user, and allow the user to directly mark doubt points or put forward modification opinions on the interface for manual review and / or optimization suggestions. Figure 14 It shows a flowchart of the overall implementation process of the control method of the intelligent pipeline network user terminal according to an embodiment of the present application. As Figure 14 shown, it includes the following processes: User input information: The user inputs the name of the newly added customer or the address name on the intelligent agent chat page; Data parsing and preprocessing; Intelligently calculate the appropriate access point: Use the pipeline connection and pipeline splitting algorithm of the adaptive subspace search tree for the newly added user; Topological connectivity check: Check whether there is abnormal connectivity for the newly accessed user and the newly added pipeline; Intelligent simulation of transmission and distribution measurement: Input the working condition topology after adding new users into the solver to initiate simulation calculation and store the obtained result in the database; Visual feedback of data analysis results: Return the content such as access path, influence range, cost estimation, etc. to the user in the form of pictures and texts; Manual review / optimization suggestions: If necessary, provide an expert intervention interface or optimization options.

[0098] In this embodiment, after adding a new user, the access point is intelligently controlled to control the pipeline connection and pipeline splitting, without relying on traditional GIS tools or third-party libraries (such as Dijkstra, A* and other general path search algorithms). Combined with actual engineering constraints (such as minimum turning radius, buried depth limit, existing pipeline avoidance, etc.). The lower limit of pressure and pipe diameter matching strategy are integrated to realize the linkage calculation of connection path and pressure, pipe diameter and other characteristics. The algorithm in this embodiment is lightweight and suitable for integration into a chat robot, and the results are returned within a few minutes or even seconds. This embodiment no longer divides the dimensions in a fixed order to build a tree, thereby improving the search efficiency. The internal optimization and data structure of the algorithm in this embodiment can complete the intelligent connection of a large pipe network (50W pipes) within 1.5 seconds to form a new pipe network pipeline topology, support parallel search paths, and be suitable for distributed or GPU accelerated environments. And support multi-objective optimization, such as the shortest path, pipe pressure level, and pipe diameter adaptation. The service quality of this embodiment is improved, and the traditional pipe network planning may require multiple meetings and document exchanges to determine the final solution. Through the intelligent agent, a transparent and visual access solution is provided, which enhances the customer's trust. This embodiment is standardized and scalable, and is applicable to multiple cities and multiple types of pipe networks (water, gas, and heat). The algorithm is modularly designed and easy to reuse and migrate.

[0099] The embodiment of the present application optimizes the resource allocation of the enterprise. Through the simulation analysis of different planning schemes, the most economical and effective resource allocation method can be found to avoid unnecessary construction investment. For example, the optimal pipeline diameter, pump station location and capacity and other key parameters are determined to reduce construction and operation costs. The embodiment of the present application achieves breakthrough improvements in efficiency, stability, economy, and adaptability through the integration of intelligent body architecture and multiple technologies, and provides a set of efficient, reliable and sustainable solutions for the intelligent upgrade of industrial steam pipelines. Its core value lies in converting 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 embodiment of the present application reduces communication costs and improves work efficiency. Traditional pipeline planning may require multiple meetings and document exchanges to determine the final solution. Interacting with the intelligent body through the chat page can greatly reduce communication links, simplify processes, and save time. Automated simulation analysis reduces the time for manual calculation and evaluation, allowing engineers and technicians to focus more on solving complex problems rather than basic data processing. The embodiments of the present application accelerate the decision-making process and improve the customer experience. By using the ability of intelligent agents to quickly process information and simulate different solutions, customers can be provided with multiple planning options and their expected effects in a short period of 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 met. This method is more intuitive and transparent, and improves customer participation and satisfaction.

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

[0101] The embodiments of the present 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 the present application.

[0102] In the embodiments of the present application, any combination of one or more storage media can be used. The storage medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can 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, RAM, ROM, 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 can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device.

[0103] 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 in the embodiments of the present application. In some embodiments, the electronic device can 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), and other terminal devices. In addition, the control method of the intelligent pipe network user terminal provided in the present application can 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 of the intelligent pipe network user terminal.

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

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

[0106] 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.

[0107] The processor 102 is connected to the memory 101 and is used to execute the computer programs 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.

[0108] 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.

[0109] 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 used to display the relevant GUI interaction interface of the control method of the intelligent pipe network user terminal.

[0110] In summary, when adding a new user terminal to the pipe network in the present application, the optimal access pipeline 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 double low efficiency and accuracy in adding new user terminal users 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.

[0111] 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 can 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 art without departing from the technical framework and technical concept 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 pipeline network, and dividing the pipeline topology of the pipeline 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; 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.

2. The control method of the intelligent pipe network user terminal according to claim 1, characterized in that, The obtaining the pipeline topology data of the access pipeline network and dividing the pipeline topology of the pipeline 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 barycentric space coordinates of the undirected graph; Offsetting the barycentric space coordinates of multiple subspaces according to the barycentric space coordinates; Dividing the space according to the midpoint between the barycentric space coordinates of each subspace and the barycentric 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, wherein, The constructing an undirected graph based on the point table data and the line table data and calculating the barycentric space coordinates of the undirected graph includes: Taking each node in the point table data as a vertex, adding edges to 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 barycentric space coordinates of the undirected graph.

4. The control method of the intelligent pipe network user terminal according to claim 1, characterized in that 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 an adaptive search tree of the subspace.

5. 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; Calculating the distance from the user terminal to the barycenter of each subspace based on the space coordinates of the user terminal; Selecting the subspace with the closest distance and satisfying the pressure lower limit value from the distances from the user terminal to the barycenters of each subspace, and taking this subspace as the subspace closest to the user terminal.

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

7. The control method of the intelligent pipe network user terminal according to claim 1, characterized in that, The determining the splitting point of the optimal access pipeline based on the distance between the user terminal and the optimal access pipeline includes: Calculate the distances between the user terminal and the start point and the end point of the optimal access pipeline respectively; Determine whether the user terminal is closest to the start point of the optimal access pipeline. If so, determine the splitting point of the optimal access pipeline based on a first preset splitting value; if not, determine the splitting point of the optimal access pipeline based on a second preset splitting value.

8. The control method of the intelligent pipe network user terminal according to claim 1, characterized in that, It also 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 doubtful points or put forward modification opinions on the interface.

9. 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 8.

10. 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 8.

Citation Information

Patent Citations

  • Region nearest neighbor inquiry system and method supporting privacy protection in obstacle space

    CN104581633A

  • A system and method for planning a water pipe path in a large community

    CN109033484A

  • Space-time data retrieval method based on space grid coding

    CN116049521A

  • 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