Method and system for converting water treatment process flow diagram into diagram model
Through image and text recognition algorithms and topological relationship conversion, the water treatment process flow chart is converted into a graph model, solving the problem of interaction between the water treatment process flow chart and computer system, and realizing the digital and intelligent transformation of the water treatment industry.
Patent Information
- Application Number
- CN202510248285.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-20
AI Technical Summary
The existing water treatment process flow chart cannot interact with modern computer systems, cannot achieve digital and intelligent transformation, and the graph model conversion method directly transplanted to other industries is unrealistic.
Image and text recognition algorithms are used to identify the graph and text logos in the water treatment process flow chart, extract engineering project information, process flow topology relationship, process unit information and component information, and convert it into a graph model through the step-by-step connection topology relationship between the parent node, child node, and grandchild node.
It realizes automatic conversion from traditional water treatment process flow chart to computer-available graph model, improves the analysis efficiency of water treatment process flow relationships, and supports digital and intelligent transformation.
Smart Images

Figure CN120181040A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular, to a method and system for converting a water treatment process flow chart into a graph model. Background Art
[0002] A water treatment process flow chart is the core design drawing for designing and recording key information such as the engineering overview, unit composition, water flow relationship, water quality situation, unit process characteristics, and component composition of the entire water treatment process in water treatment;
[0003] In practical applications, the water treatment process flow chart still exists in the form of drawings in the process design link and cannot interact with modern computer software and hardware such as computer databases, design record query and analysis systems, and water treatment professional Q&A robots; while the graph model can clearly and intuitively express the connection relationship between process units and the composition relationship with engineering projects and components in a visual way, and its unique "subject-verb-object" data storage structure naturally has an innate advantage in coupling with natural language processing; the water flow relationship, the inclusion and being-included relationship between components and process units, and the combination of projects and process units in water treatment process design are also naturally the best implementation objects of the graph model;
[0004] Although there are patents on related model conversion methods published in the power system, such as patent CN117493432A, due to the uniqueness of the water treatment system and the dependence on the process flow chart in the design, coupled with a large number of complex and unique water flow topological relationships, it is impractical to directly transplant the graph model conversion methods of other industries; therefore, there is still a need to specifically construct a set of conversion methods and systems for converting a water treatment process flow chart into a graph model to meet the needs of the water treatment industry for digital and intelligent transformation. Summary of the Invention
[0005] To solve the above technical problems, the present invention provides a method for converting a water treatment process flow chart into a graph model, including the following steps:
[0006] Step 1: Use an image and text recognition algorithm to recognize the graphics and text identifiers in the water treatment process flow chart to be converted;
[0007] Step 2: Based on the recognized graphics and text identifiers, extract the engineering project information, process flow topological relationship, process unit information, and process unit component information in the water treatment process flow chart;
[0008] Step 3: Divide the graph model nodes into three levels of mother nodes, child nodes, and grandchild nodes for a step-by-step connection topological relationship, corresponding to the step-by-step inclusion relationship of engineering projects, process units, and components respectively;
[0009] Step 4: Obtain the engineering project information;
[0010] Step Five: Convert the topological relationship of water flow in the obtained process flow into the connection relationship between sub-nodes in the graph model; convert the connection between the parent node and each sub-node into an inclusion relationship;
[0011] Step Six: Obtain the information of each process unit in the process flow diagram, and convert the topological relationship of water flow in the process unit in the flow diagram into the connection relationship between sub-nodes;
[0012] Step Seven: Convert the flow rate data and influent and effluent water quality data of each process unit into the attributes of the node connection relationship; convert the investment and energy consumption data of each process unit into the attributes of the nodes;
[0013] Step Eight: Obtain the component information of each process unit.
[0014] For further supplement to this technical solution, the engineering project information includes the name, investment, and basic location information of the engineering project; the parent node is the name of the engineering project, and convert the engineering project information into the attributes of the parent node.
[0015] For further supplement to this technical solution, the process unit information includes the flow rate, influent and effluent water quality, process unit investment, energy consumption data, etc. of each process unit in the process flow diagram; convert the flow rate data and influent and effluent water quality data of each process unit into the attributes of the node connection relationship; convert the investment and energy consumption data of each process unit into the attributes of the nodes; convert the inclusion relationship between the engineering project and the process unit into the connection relationship between the parent node and each sub-node.
[0016] For further supplement to this technical solution, the process unit component information includes the name, component specification, component energy consumption, and component price information of the components included in each process unit. Convert the name of each component into the name of the grandchild node, and convert the inclusion relationship between each process unit and its subordinate components into the connection relationship between the sub-node and the grandchild node; convert the other information of each component into the attributes of the grandchild node.
[0017] A conversion system from a water treatment process flow diagram to a graph model, including an identification recognition module, an information extraction module, a topological relationship conversion module, a three-level node identification and process unit connection relationship conversion module, and a node and connection attribute filling module;
[0018] The identification recognition module uses existing graphic and text recognition algorithms to identify the graphic and text identifiers in the water treatment process flow diagram to be converted;
[0019] The information extraction module is used to extract the engineering project information, process flow topological relationship, process unit information, and process unit component information content in the water treatment process flow diagram to be converted;
[0020] The topological relationship conversion module converts the hierarchical inclusion relationships among engineering projects, process units, and components into a three-level hierarchical connection topological relationship of corresponding parent nodes, child nodes, and grandchild nodes;
[0021] The three-level node identification and process unit connection relationship conversion module identifies the names of the three-level nodes of parent nodes, child nodes, and grandchild nodes as the corresponding engineering project, process unit, and component names, and at the same time converts the water flow sequence relationship between process units into the connection relationship of child nodes;
[0022] The node and connection attribute filling module fills the attributes of all nodes in the graph model and the attributes of the relationship connected to the child nodes.
[0023] A conversion system from a water treatment process flow chart to a graph model is applied to a terminal.
[0024] As a further supplement to this technical solution, the terminal includes a processor, a memory, and a computer program stored in the memory to complete the above conversion steps.
[0025] Its beneficial effects are as follows: it can improve the conversion rate of the water treatment process flow chart to a digital graph model, and can realize the automatic conversion of the traditional water treatment process flow chart to a graph model that can be utilized by a computer and store it as a computer graph model, so as to further establish a graph model database and improve the analysis efficiency of the water treatment process flow relationship. Brief Description of the Drawings
[0026] Figure 1 It is a schematic flowchart of an embodiment of the conversion method from a water treatment process flow chart to a graph model of the present invention;
[0027] Figure 2 It is a schematic structural diagram of an embodiment of the water treatment process flow chart covered by the present invention;
[0028] Figure 3 It is a water treatment process flow chart of an embodiment covered by the present invention;
[0029] Figure 4 It is a schematic structural diagram of an embodiment of the graph model covered by the present invention;
[0030] Figure 5 A schematic structural diagram of an embodiment of the conversion system from a water treatment process flow chart to a graph model of the present invention. Detailed Embodiments
[0031] To make it clearer for those skilled in the art to understand this technical solution, the technical solution of the present invention will be elaborated in detail below in conjunction with Figure 1 -5:
[0032] As shown in the figure, a method for converting a water treatment process flow chart into a graph model includes the following steps:
[0033] Step 1: Use an image and text recognition algorithm to recognize the graphics and text identifiers in the water treatment process flow chart to be converted as shown in Figure 3 the figure.
[0034] Step 2: Based on the basic structure of the water treatment process flow chart as shown in Figure 2 the figure, and the recognized graphics and text identifiers, extract the project information, process flow topology relationship, process unit information, and process unit component information in the water treatment process flow chart.
[0035] Step 3: Divide the graph model nodes into three levels of parent nodes, child nodes, and grandchild nodes with a hierarchical connection topology relationship, corresponding to the hierarchical inclusion relationships of projects, process units, and components respectively; Based on the process flow chart as shown in Figure 3 the figure, start to establish a graph model structure as shown in Figure 4 the figure.
[0036] Step 4: Obtain the project information.
[0037] Step 5: Through the obtained topological relationship of the water flow in the process flow, convert it into the connection relationship between child nodes in the graph model; Convert the connection between the parent node and each child node into an inclusion relationship.
[0038] Step 6: Obtain the information of each process unit in the process flow chart, and convert the topological relationship of the water flow in the process unit in the flow chart into a child node connection relationship.
[0039] Step 7: Convert the flow rate data and inlet and outlet water quality data of each process unit into attributes of the node connection relationship; Convert the investment and energy consumption data of each process unit into attributes of the node.
[0040] Step 8: Obtain the information of each process unit component.
[0041] Through the above steps, the automatic conversion of the traditional water treatment process flow chart into a graph model that can be utilized by a computer is realized. Finally, the water treatment process flow chart as shown in Figure 3 the figure can be converted into a computer graph model as shown in Figure 4 the figure.
[0042] Among them, the project information includes the basic information of the project name, investment, and location; The parent node is the project name, and the project information is converted into the attributes of the parent node.
[0043] Among them, the process unit information includes the flow rate, influent and effluent water quality, process unit investment, energy consumption data, etc. of each process unit in the process flow diagram; convert the flow rate data and influent and effluent water quality data of each process unit into the attributes of the node connection relationship; convert the investment and energy consumption data of each process unit into the attributes of the node; convert the inclusion relationship between the engineering project and the process unit into the connection relationship between the parent node and each child node.
[0044] Among them, the process unit component information includes the name, component specifications, component energy consumption, and component price information of the components included in each process unit. Convert the name of each component into the name of the grandchild node, and convert the inclusion relationship between each process unit and its subordinate components into the connection relationship between the child node and the grandchild node; convert the other information of each component into the attributes of the grandchild node.
[0045] A conversion system from a water treatment process flow diagram to a graph model, as Figure 5 shown, includes an identification recognition module, an information extraction module, a topological relationship conversion module, a three-level node identification and process unit connection relationship conversion module, and a node and connection attribute filling module;
[0046] The identification recognition module uses existing graphic and text recognition algorithms to identify the graphic and text identifications in the water treatment process flow diagram to be converted;
[0047] The information extraction module is used to extract the engineering project information, process flow topological relationship, process unit information, and process unit component information content in the water treatment process flow diagram to be converted;
[0048] The topological relationship conversion module converts the hierarchical inclusion relationships of engineering projects, process units, and components into the corresponding three-level hierarchical connection topological relationships of parent nodes, child nodes, and grandchild nodes;
[0049] The three-level node identification and process unit connection relationship conversion module identifies the names of the parent node, child node, and grandchild node as the corresponding engineering project, process unit, and component names, and at the same time converts the water flow sequence relationship between process units into the connection relationship of child nodes;
[0050] The node and connection attribute filling module fills the attributes of all nodes in the graph model and the attributes of the relationship connected to the child nodes.
[0051] Finally, an embodiment of the present invention also forms a terminal, which can be realized in a computer-readable storage medium to realize the automatic conversion of a traditional water treatment process flow diagram to a computer-utilizable graph model and store it as a computer graph model. The terminal includes a processor, a memory, and a computer program stored in the memory to complete the conversion steps in the conversion method from the water treatment process flow diagram to the graph model.
[0052] Among them, machine learning, image recognition, and computer graphic model storage technology are prior arts.
[0053] The above technical solutions only represent the preferred technical solutions of the technical solutions of the present invention. Some changes that those skilled in the art may make to some parts thereof all reflect the principles of the present invention and fall within the protection scope of the present invention.
Claims
1. A method for converting a water treatment process flow chart into a graphical model, characterized in that: The following steps are involved: Step 1: Use image and text recognition algorithms to identify the graphics and text logos in the water treatment process flow chart to be converted; Step 2: Based on the recognized graphics and text logos, extract the engineering project information, process flow topology relationship, process unit information, and process unit component information in the water treatment process flow chart; Step 3: Divide the graph model nodes into three layers of topological relationships: parent node, child node, and grandchild node, which correspond to the hierarchical inclusion relationship of engineering projects, process units, and parts respectively; Step 4: Get project information; Step 5: Convert the topological relationship of the water flow in the process flow into the connection relationship between child nodes in the graph model; convert the connection between the parent node and each child node into a containment relationship; Step 6: Obtain information about each process unit in the process flow chart, and convert the water flow topology relationship in the process unit in the process flow chart into a sub-node connection relationship; Step 7: Convert the flow data and inlet and outlet water quality data of each process unit into the attributes of the node connection relationship; convert the investment and energy consumption data of each process unit into the attributes of the node; Step 8: Obtain component information for each process unit.
2. A method for converting a water treatment process flow chart into a graphical model according to claim 1, characterized in that: The project information includes the name, investment, and location of the project; the parent node is the project name, and the project information is converted into the attributes of the parent node.
3. A method for converting a water treatment process flow chart into a graphical model according to claim 2, characterized in that: The process unit information includes the flow rate, inlet and outlet water quality, process unit investment, energy consumption data, etc. of each process unit in the process flow chart; The flow data and inlet and outlet water quality data of each process unit are converted into the attributes of the node connection relationship; the investment and energy consumption data of each process unit are converted into the attributes of the node; the inclusion relationship between the engineering project and the process unit is converted into the connection relationship between the parent node and each child node.
4. A method for converting a water treatment process flow chart into a graphical model according to claim 1, characterized in that: The process unit parts information includes the name, part specifications, part energy consumption, and part price information of the parts contained in each process unit. The name of each part is converted into a grandchild node name, and the inclusion relationship between each process unit and its subordinate parts is converted into a connection relationship between a child node and a grandchild node; other information of each part is converted into attributes of a grandchild node.
5. A system for converting a water treatment process flow chart into a graphical model according to claim 1, characterized in that: It includes an identification module, an information extraction module, a topological relationship conversion module, a three-level node identification and process unit connection relationship conversion module, and a node and connection attribute filling module; The identification recognition module uses an existing image and text recognition algorithm to recognize graphic and text identification in the water treatment process flow chart to be converted; The information extraction module is used to extract the engineering project information, process flow topology relationship, process unit information, and process unit component information content in the water treatment process flow diagram to be converted; The topology relationship conversion module converts the hierarchical inclusion relationship of engineering projects, process units, and parts into a corresponding three-layer hierarchical connection topology relationship of parent nodes, child nodes, and grandchild nodes; The three-level node identification and process unit connection relationship conversion module identifies the three-level node names of the parent node, child node, and grandchild node as corresponding engineering projects, process units, and parts names, and simultaneously converts the water flow sequence relationship between the process units into the connection relationship of the child nodes; The node and connection attribute filling module fills the attributes of all nodes in the graph model and the attributes of the relationship between the sub-nodes.
6. A conversion system from a water treatment process flow chart to a graphical model according to claim 5 is applied to a terminal.
7. A system for converting a water treatment process flow chart into a graphical model according to claim 6, characterized in that: The terminal includes a processor, a memory, and a computer program stored in the memory for completing the above conversion steps.