CN-121999511-A - Cable connection identification information extraction method and system of transformer substation drawing
Abstract
The invention discloses a method and a system for extracting cable connection identification information of a transformer substation drawing, which are used for extracting line segment elements and annotation texts from a secondary equipment design drawing of the transformer substation, classifying the line segment elements by using a clustering algorithm fused by multidimensional features to obtain terminal strip frame line segment data and external cable trend line segment data, establishing spatial association mapping of the annotation texts and the external cable trend line segment data by using a three-level binding strategy to obtain an external cable line segment annotation group, identifying the annotation texts based on the terminal strip frame line segment data by using a dynamic abnormal spacing threshold to obtain terminal strip names, and extracting the cable connection identification information based on the external cable line segment annotation group and the terminal strip names, so that not only can text information in the secondary equipment design drawing be accurately extracted, but also cable connection identification information can be accurately identified, and cable connection identification information can be extracted by the external cable segment annotation group and the terminal strip names, thereby comprehensively, accurately and efficiently extracting the cable connection identification information.
Inventors
- LIU QIAOMEI
- FU ZHENING
- Zhang Chenzeyu
- HUANG GUANGXIN
- HUANG KAIMING
- LAN YANNING
- HUANG DISHENG
- Weng Zuchen
- Wang Jiangchu
- HUANG XIANGYU
- CHEN ZHE
- WU YIXIANG
- ZHOU YANG
- QIU XIAOJIE
- HUANG SHICHENG
- HUANG JIAXIN
Assignees
- 国网福建省电力有限公司
- 国网福建省电力有限公司超高压分公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251210
Claims (10)
- 1. The method for extracting the cable connection identification information of the transformer substation drawing is characterized by comprising the following steps of: extracting line segment elements and annotation texts from a secondary equipment design drawing of the transformer substation; classifying the line segment elements by using a clustering algorithm of multidimensional feature fusion to obtain terminal strip frame line segment data and external cable trend line segment data; establishing a spatial association mapping between the annotation text and the external cable trend line segment data by using a three-level binding strategy to obtain an external cable line segment annotation group, and identifying the annotation text based on the terminal strip frame line segment data by using a dynamic abnormal distance threshold to obtain a terminal strip name; And extracting cable connection identification information based on the external cable segment annotation group and the terminal strip name.
- 2. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 1, wherein classifying the line segment elements by using a clustering algorithm of multi-dimensional feature fusion to obtain terminal strip frame line segment data and external cable trend line segment data comprises: determining a line segment feature vector of each line segment element; generating a two-dimensional feature matrix according to each line segment feature vector; Clustering the two-dimensional feature matrix by using a clustering algorithm to obtain a terminal strip frame line reference cluster and an external cable trend line segment cluster; And correcting the terminal strip frame line reference cluster and the external cable trend line segment cluster by using a closed rectangle detection algorithm to obtain terminal strip frame line segment data and external cable trend line segment data.
- 3. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 2, wherein clustering the two-dimensional feature matrix by using a clustering algorithm to obtain a terminal strip frame line reference cluster and an external cable trend line segment cluster comprises: Calculating Euclidean distances between the line segment feature vectors in the two-dimensional feature matrix by using a density-based clustering algorithm, and dividing clusters based on the Euclidean distances to obtain divided clusters; calculating the variation coefficient of each divided cluster; And determining the divided clusters with the variation coefficient smaller than a preset coefficient as terminal strip frame line reference clusters, and determining the divided clusters with the variation coefficient larger than or equal to the preset coefficient as external cable trend line segment clusters.
- 4. A method for extracting cable connection identification information of a substation drawing according to claim 3, wherein the line segment feature vector comprises a length feature; Calculating the coefficient of variation of each divided cluster comprises: and calculating standard deviation and average value of the length characteristics of each divided cluster, and calculating a length variation coefficient according to the standard deviation and average value of the length characteristics.
- 5. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 2, wherein the step of correcting the terminal strip frame line reference cluster and the external cable trend line segment cluster by using a closed rectangle detection algorithm to obtain terminal strip frame line segment data and external cable trend line segment data comprises the steps of: Selecting a maximum closed rectangle based on the line segment feature vector of the terminal strip frame line reference cluster; determining the bounding box line of the largest closed rectangle; If the terminal strip frame wire in the terminal strip frame wire reference cluster is positioned in the boundary frame wire, reserving the terminal strip frame wire to obtain terminal strip frame wire segment data; and if the terminal strip frame wire in the terminal strip frame wire reference cluster is not positioned in the boundary frame wire, adding the terminal strip frame wire into the external cable trend line segment cluster to obtain external cable trend line segment data.
- 6. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 2, wherein the step of using a three-level binding strategy to establish a spatial association mapping between the annotation text and the external cable trend line segment data, and the step of obtaining the external cable line segment annotation group comprises the following steps: Binding the annotation text with the external cable trend line segment data by using a direct adjacent binding method according to the distance between the annotation text and the external cable trend line segment data to obtain a first external cable line segment annotation group; for the external cable trend line segment data which cannot be bound by using a direct adjacent binding method, binding with the annotation text by using an adjacent line segment backtracking binding method to obtain a second external cable line segment annotation group; Binding unbound annotation text with external cable trend line segment data closest to the unbound annotation text by using a floating annotation group association method to obtain a third external cable line segment annotation group; and obtaining an external cable segment annotation group according to the first external cable segment annotation group, the second external cable segment annotation group and the third external cable segment annotation group.
- 7. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 6, wherein the line segment feature vector comprises a direction feature; Binding the annotation text with the external cable trend line segment data by using a direct proximity binding method according to the distance between the annotation text and the external cable trend line segment data, and obtaining a first external cable line segment annotation group comprises: Determining the distance between the annotation text and the external cable trend line segment data and the direction of the annotation text; Binding the annotation text which is closest to the distance and has the direction consistent with the direction characteristic of the external cable trend line segment data with the external cable trend line segment data to obtain a first external cable line segment annotation group.
- 8. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 2, wherein the line segment feature vector comprises a direction feature and a midpoint coordinate; identifying the annotation text based on the terminal strip wire segment data by using a dynamic abnormal spacing threshold value, wherein obtaining the terminal ranking name comprises the following steps: classifying and sequencing the line segment data of the terminal strip frame line according to the midpoint coordinates and the direction characteristics to obtain sequenced line segment data of the terminal strip frame line of different categories; calculating the distance between each sequenced terminal strip wire segment data and adjacent terminal strip wire segment data of the same category, and calculating the average value of the distances; Determining target adjacent terminal strip frame line segment data with the distance larger than the average value, and combining the target adjacent terminal strip frame line segment data to obtain a terminal ranking area boundary group; Determining the terminal strip frame wire line segment data except for the terminal strip ranking area boundary group in the sequenced terminal strip frame wire line segment data as a terminal strip content frame wire; Binding the annotation text positioned in the terminal strip name area boundary group with the terminal strip name area boundary group by using a direct adjacent binding method, and determining the annotation text positioned in the terminal strip name area boundary group as a terminal strip name; and adding the terminal ranking names into an external cable segment annotation group corresponding to the terminal ranking name region boundary group.
- 9. The method for extracting the cable connection identification information of the transformer substation drawing according to claim 8, wherein extracting the cable connection identification information based on the external cable segment annotation group and the terminal strip name comprises: Combining the external cable segment annotation groups to obtain a cable connection relation network; extracting cable connection identification information from each external cable segment annotation group in the cable connection relation network by using a regular expression; and after the cable connection identification information is sequenced, generating a cable connection relation information table.
- 10. A system for extracting cable connection identification information of a substation drawing, comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor, when executing the computer program, implements the steps of a method for extracting cable connection identification information of a substation drawing according to any one of claims 1 to 9.
Description
Cable connection identification information extraction method and system of transformer substation drawing Technical Field The invention relates to the technical field of automation and informatization of power systems, in particular to a method and a system for extracting cable connection identification information of a transformer substation drawing. Background The design drawing of the secondary equipment of the transformer substation is a core basis for the implementation of the power system engineering, and key information such as cable connection relation, terminal strip layout and the like contained in the design drawing directly influences management matters such as installation, debugging and the like of the secondary equipment. At present, the cable connection relation in the design drawing of the secondary equipment mainly depends on manual identification and labeling, and has the problems of low labeling efficiency, easy error and the like, but the existing drawing identification technology can only extract text information in the drawing, and can not judge the cable connection identification and connection logic based on the space topological relation (such as parallelism and abnormal spacing) of line segments, so that the cable connection relation network is constructed incompletely, and the information extraction is incomplete. Disclosure of Invention The invention aims to solve the technical problem of providing a method and a system for extracting cable connection identification information of a transformer substation drawing, which can comprehensively, accurately and efficiently extract the cable connection identification information. In order to solve the technical problems, the invention adopts a technical scheme that: a method for extracting cable connection identification information of a transformer substation drawing comprises the following steps: extracting line segment elements and annotation texts from a secondary equipment design drawing of the transformer substation; classifying the line segment elements by using a clustering algorithm of multidimensional feature fusion to obtain terminal strip frame line segment data and external cable trend line segment data; establishing a spatial association mapping between the annotation text and the external cable trend line segment data by using a three-level binding strategy to obtain an external cable line segment annotation group, and identifying the annotation text based on the terminal strip frame line segment data by using a dynamic abnormal distance threshold to obtain a terminal strip name; And extracting cable connection identification information based on the external cable segment annotation group and the terminal strip name. In order to solve the technical problems, the invention adopts another technical scheme that: The cable connection identification information extraction system of the transformer substation drawing comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the following steps when executing the computer program: extracting line segment elements and annotation texts from a secondary equipment design drawing of the transformer substation; classifying the line segment elements by using a clustering algorithm of multidimensional feature fusion to obtain terminal strip frame line segment data and external cable trend line segment data; establishing a spatial association mapping between the annotation text and the external cable trend line segment data by using a three-level binding strategy to obtain an external cable line segment annotation group, and identifying the annotation text based on the terminal strip frame line segment data by using a dynamic abnormal distance threshold to obtain a terminal strip name; And extracting cable connection identification information based on the external cable segment annotation group and the terminal strip name. The method has the advantages that line segment elements and annotation texts are extracted from a secondary equipment design drawing of a transformer substation, a clustering algorithm fused by multidimensional features is used for classifying the line segment elements to obtain terminal strip frame line segment data and external cable trend line segment data, a three-level binding strategy is used for establishing spatial association mapping of the annotation texts and the external cable trend line segment data to obtain an external cable line segment annotation group, a dynamic abnormal spacing threshold is used for identifying the annotation texts based on the terminal strip frame line segment data to obtain terminal strip names, cable connection identification information is extracted based on the external cable line segment annotation group and the terminal strip names, the text information in the secondary equipment design drawing can be accurately extracted through the c