Site clustering method, system, device and medium in power communication service data

By using the high-dimensional embedding representation method of routing knowledge graph in power communication business data and performing site clustering based on the Struc2vec algorithm, the problem of poor site matching in the existing technology is solved and more accurate site clustering and data are achieved. Cleaning reduces the difficulty of use.

CN114357268BActive Publication Date: 2024-10-15CHINA ELECTRIC POWER RESEARCH INSTITUTE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210017652.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-07
Publication Date
2024-10-15
Estimated Expiration
2042-01-07

AI Technical Summary

Technical Problem

The existing technology relies on character-level edit distance calculations when matching sites in power communication business data, making it difficult to accurately process keywords in device names and requiring a priori benchmark data sets, resulting in poor matching results and difficulty in use.

Method used

A high-dimensional embedding representation method based on routing knowledge graph is adopted, and the high-dimensional embedding representation of each site is obtained through the Struc2vec algorithm. Topology structure information is considered for clustering, site redundancy is eliminated and routing information is standardized.

Benefits of technology

It improves the accuracy of clustering between sites, reduces site redundancy, reduces the difficulty of data cleaning, does not rely on a priori site name benchmark data, and standardizes the information deviation entered by different business personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114357268B_ABST
    Figure CN114357268B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of power system automation, and discloses a site clustering method, system, device and medium in power communication business data, including: obtaining a routing knowledge graph of the power system; obtaining a high-dimensional embedding representation of each site in the routing knowledge graph; searching for a high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site, and obtaining the closest site to the current site; when the closest site of the closest site of the current site is the current site, the current site and the closest site of the current site are aggregated into the same type of site. It effectively eliminates site redundancy in the business routing information of the power system, standardizes site information in routing information, standardizes information deviations entered by different business personnel, completes data cleaning to a certain extent, and does not require prior site name benchmark data, which greatly reduces the difficulty of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of power system automation, and relates to a site clustering method, system, equipment and medium in power communication service data. Background Art

[0002] The power communication business data submitted by different regions is not only complex in structure, but also huge in scale, which requires a lot of manpower to clean and verify. To solve this problem, it is necessary to carry out research on cleaning and verification technology for power communication management ledgers and network management data, so as to improve the intelligent level of operation and maintenance management, reduce the pressure on operation and maintenance personnel, and reduce costs.

[0003] At present, the power communication management ledger and network management data automation processing technology mainly starts from the character level perspective, and performs matching verification based on the edit distance between the names of power communication equipment. For example, based on character-level matching, it is proposed to match different site names by calculating the edit distance between the site names in the routing information. The main operation process is as follows: 1. Obtain the site names in a certain area as benchmark data; 2. Clean and segment the routing information in the business information of the area to obtain a single site name; 3. Calculate the edit distance between the site name formed in 2 and each site name in the benchmark data in 1; 4. Sort the edit distances obtained in 3, and take the first K with the smallest edit distance as the recommended matching data; 5. Set a threshold to treat two sites with sufficiently close edit distances as the same site, thereby reducing site redundancy in routing information and standardizing site names in routing information.

[0004] However, the use of the above method requires a relatively accurate benchmark data set, and the matching and correction of site data can only be achieved on the basis of the benchmark data set, which makes it difficult to use. At the same time, calculating the edit distance between two site name strings at the character level will process the site name strings with the same weight, and cannot grasp the keywords in the device name very well. For example, if the word to be matched is "Tagou transformer", there are two device names "Tawan transformer" and "Tagou" in the benchmark data. Obviously, the matching result of "Tagou transformer" should be "Tagou", but the edit distance between the words to be matched "Tagou transformer" and "Tawan transformer" and "Tagou" is 1, which cannot be accurately matched. In addition, this method only uses the edit distance between two site names as a matching indicator, but in some cases, the edit distance between two identical site names may be very large. For example, the edit distance between "Simens Tagou" and "Simens Tagou" is large, but these two usually represent the same site. If only the edit distance is used for judgment, it is likely to be wrong. It can be seen that this method can only consider the matching of each type of power communication equipment name separately, and the matching effect is poor. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a site clustering method, system, device and medium in power communication business data.

[0006] In order to achieve the above object, the present invention adopts the following technical solutions:

[0007] In a first aspect of the present invention, a method for clustering sites in power communication service data comprises:

[0008] Obtain the routing knowledge graph of the power system;

[0009] Obtaining a high-dimensional embedding representation of each site in the routing knowledge graph;

[0010] Search the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site to obtain the site closest to the current site;

[0011] When the closest site to the closest site of the current site is the current site, the current site and the closest site to the current site are aggregated into similar sites.

[0012] Optionally, the specific method for obtaining the routing knowledge graph of the power system is: obtaining the business routing data of the power system and performing semantic segmentation to obtain structured linked list data; and constructing the routing knowledge graph of the power system based on the structured linked list data.

[0013] Optionally, the specific method for obtaining the high-dimensional embedded representation of each site in the routing knowledge graph is: obtain and obtain the distance between any two sites in the routing knowledge graph at each hop based on the degree and number of hops of each site in the routing knowledge graph; construct a hierarchical weighted graph of the power system based on the distance between any two sites in the routing knowledge graph at each hop and the number of hops of each site; perform sequence sampling of each site in the hierarchical weighted graph to obtain the sequence sampling results of each site, and train the vertex sequence sampling results of each site through the word2vec algorithm to obtain the high-dimensional embedded representation of each site.

[0014] Optionally, the specific method for obtaining the distance between any two sites in the routing knowledge graph at each hop according to the degree and hop number of each site in the routing knowledge graph is:

[0015] The distance f between any two stations can be obtained by the following formula k (u,u):

[0016] f k (u, v) = f k-1 (u,v)+g(s(R k (u)), s(R k (v)))

[0017] k≥0 and|R k (u)|,|R k (v)|>0

[0018] Among them, R k (u) represents the set of neighboring sites of the kth hop of site u, R k (v) represents the set of neighboring sites of the kth hop of site v; s(R k (u)) indicates R k (u) is an ordered sequence of site degrees, s(R k (v)) indicates R k (v) is an ordered sequence of site degrees; g(s(R k (u)), s(R k (v))) indicates s(R k (u)) and s(R k (v)) is s(R k (u)) and s(R k (v)) is the set of distances between every pair of elements;

[0019] The specific method of constructing a hierarchical weighted graph of the power system according to the distance between any two sites in each hop and the number of hops of each site in the routing knowledge graph is:

[0020] Taking the number of hops of the power system site as the layer, the weights between the power system sites are obtained by the following formula:

[0021]

[0022] w(u k ,u k+1 ) = log(Γ k (u)+e), k=0, ..., k * -1

[0023] w(u k ,u k-1 )=1,k=1,...,k *

[0024]

[0025] Among them, w k (u, v) is the weight between the u site and the v site in the kth layer, w k (u k ,u k+1 ) is the weight between the u site in the kth layer and the u site in the k+1th layer, Γ k (u) is the number of sites whose weights between site u and other sites in the kth layer are greater than the average weight, is the average weight of the u site in the kth layer, w k (u k ,u k-1 ) is the weight between the u site at the kth layer and the u site at the k+1th layer;

[0026] According to the weights between the stations in the power system, a hierarchical weighted graph of the power system is constructed.

[0027] Optionally, the s(R k (u)) and s(R k The distance d(a,b) between each pair of elements in (v)) is calculated by the following formula:

[0028]

[0029] Where a and b are s(R k (u)) and s(R k (v)) is the value of the element at the corresponding position, max(a,b) is the maximum value of a and b, and min(a,b) is the minimum value of a and b;

[0030] Among them, when s(R k (u)) and s(R k (v)) are different in length, when calculating s(R k (u)) and s(R k (v)) before calculating the distance between each pair of elements in s(R k (u)) and s(R k (v)) Sequences were aligned.

[0031] Optionally, when performing vertex sequence sampling in a hierarchical weighted graph, a biased random walk method is used to perform vertex sequence sampling.

[0032] Optionally, it also includes: obtaining manual review results of similar sites, and updating the aggregation status of similar sites according to the manual review results of similar sites.

[0033] A second aspect of the present invention is a site clustering method system in power communication service data, comprising:

[0034] A data acquisition module, used to obtain the routing knowledge graph of the power system;

[0035] A high-dimensional embedding representation acquisition module, used to obtain a high-dimensional embedding representation of each site in the routing knowledge graph;

[0036] A traversal module is used to search for the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site, and obtain the site closest to the current site;

[0037] The clustering module aggregates the current site and the closest site to the current site into similar sites when the closest site to the closest site to the current site is the current site.

[0038] In a third aspect of the present invention, a computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned site clustering method in power communication service data when executing the computer program.

[0039] A fourth aspect of the present invention is a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the site clustering method in the power communication service data are implemented.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The site clustering method in the power communication business data of the present invention is based on the routing knowledge graph of the power system, and adopts the Struc2vec algorithm to obtain the high-dimensional embedding representation of each site in the routing knowledge graph, fully considers the topological structure information of each site, and uses this as the clustering basis to realize the similar clustering of each site in the power system, which is convenient for finding different text representations with large differences in the same site, and improves the accuracy of clustering between sites, thereby effectively eliminating site redundancy in the business routing information of the power system, standardizing the site information in the routing information, and standardizing the information deviation entered by different business personnel, and completing data cleaning to a certain extent. At the same time, the method does not require a priori site name benchmark data, which greatly reduces the difficulty of using the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 A flow chart of a method for clustering sites in power communication service data according to an embodiment of the present invention;

[0043] Figure 2 A detailed flow chart of a method for clustering sites in power communication service data according to an embodiment of the present invention;

[0044] Figure 3 It is a simplified schematic diagram of a routing knowledge graph of a power system according to an embodiment of the present invention;

[0045] Figure 4 The present invention is a block diagram of the structure of a site clustering system in power communication service data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0048] First, the relevant technical terms involved in the present invention are introduced:

[0049] Site clustering: refers to the process of grouping similar or duplicate-name sites into a group through algorithms in the knowledge graph.

[0050] Graph network: A general term for a class of algorithms proposed for graph structured data.

[0051] Knowledge graph: A structured semantic knowledge base that describes concepts in the physical world and their relationships in the form of triples (head entity, relationship, and tail entity).

[0052] Node degree: The number of edges associated with the node in the knowledge graph, also known as association degree.

[0053] Node hop: The number of nodes that a transmission from one node to another passes through is called the number of hops.

[0054] Dynamic Time Warping (DTW) is a method to measure the similarity between two time series of different lengths.

[0055] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0056] See also Figure 1 and 2In one embodiment of the present invention, a site clustering method in power communication business data is provided, which constructs a routing knowledge graph based on the routing information in the business data of each area of ​​the power grid, that is, the business routing data, and applies a graph-related algorithm to the constructed routing knowledge graph to cluster similar sites or devices in the routing knowledge graph, thereby reducing site redundancy in the routing information, standardizing information deviations entered by different business personnel, and completing data cleaning to a certain extent.

[0057] Specifically, the site clustering method in the power communication service data includes the following steps:

[0058] S1: Obtain the routing knowledge graph of the power system.

[0059] Specifically, the specific method for obtaining the routing knowledge graph of the power system is: obtaining the business routing data of the power system and performing semantic segmentation to obtain structured linked list data; and constructing the routing knowledge graph of the power system according to the structured linked list data.

[0060] Among them, when performing semantic segmentation of the business routing data of the power system, a method based on Jieba word segmentation is generally used. Then, the routing knowledge graph of the power system is constructed by using the structured linked list data obtained after semantic segmentation. Generally, the basic component of the knowledge graph, the triple, is constructed by manually writing a python script, and then the routing knowledge graph is constructed. In this embodiment, each site of the power system is used as each node in the routing knowledge graph during construction.

[0061] S2: Obtain a high-dimensional embedding representation of each site in the routing knowledge graph.

[0062] Among them, the Struc2vec algorithm uses the degree of the node to measure the node similarity between two nodes, and then hierarchizes the nodes according to the number of hops of the node. Then, a multi-layer structural similarity topology graph is constructed. For nodes with high structural similarity, the Struc2vec algorithm can cluster them together, even if the two nodes have no obvious connection relationship. Specifically, the specific method for obtaining the high-dimensional embedding representation of each site in the routing knowledge graph is:

[0063] S21: Obtain and obtain the distance between any two sites in the routing knowledge graph in each hop based on the degree and number of hops of each site in the routing knowledge graph.

[0064] Specifically, we first define the following distance calculation formula for a site pair, and use the distance calculation formula to obtain the distance f between any two sites: k (u, v):

[0065] f k (u, v) = f k-1(u,v)+g(s(R k (u)), s (Rk(v)))

[0066] k≥0 and|R k (u)|,|R k (v)|>0

[0067] Among them, R k (u) represents the set of neighboring sites of the kth hop of site u, R k (v) represents the set of neighboring sites of the kth hop of site v; s(R k (u)) indicates R k (u) is an ordered sequence of site degrees, s(R k (v)) indicates R k (v) is the ordered sequence of site degrees. For example, if the degree of each site in a site set is [2, 34, 5, 1, 2], then the ordered sequence of site degrees of the site set is [1, 2, 2, 5, 34]; g(s(R k (u)), s(R k (v))) indicates s(R k (u)) and s(R k (v)) is s(R k (u)) and s(R k (v) is the set of distances between every pair of elements in .

[0068] Wherein, the s(R k (u)) and s(R k The distance d(a, b) between each pair of elements in (v)) is calculated by the following formula:

[0069]

[0070] Where a and b are s(R k (u)) and s(R k (v)) is the value of the element at the corresponding position, max(a, b) is the largest value of a and b, and min(a, b) is the smallest value of a and b.

[0071] However, for any s(R k (u)) and s(R k (v)) k (u)) and s(R k (v)) may be of different lengths, so when calculating s(R k (u)) and s(R k (v)) before calculating the distance between each pair of elements in s(R k(u)) and s(R k (v)) Sequences were aligned.

[0072] S22: Construct a hierarchical weighted graph of the power system based on the distance between any two sites in each hop and the number of hops of each site in the routing knowledge graph.

[0073] Specifically, according to the distance between any two sites in each hop and the number of hops of each site in the routing knowledge graph, a hierarchical weighted graph of the power system is constructed. The number of hops of the power system site is used as the layer. First, the weights between the sites in the power system are obtained by the following formula:

[0074]

[0075] w(u k ,u k+1 ) = log(Γ k (u)+e), k=0, ..., k * -1

[0076] w(u k ,u k-1 )=1,k=1,...,k *

[0077]

[0078] Among them, w k (u, v) is the weight between the u site and the v site in the kth layer, w k (u k ,u k+1 ) is the weight between the u site in the kth layer and the u site in the k+1th layer, Γ k (u) is the number of sites whose weights between site u and other sites in the kth layer are greater than the average weight, is the average weight of the u site in the kth layer, w k (u k ,u k-1 ) is the weight between the u site at the kth layer and the u site at the k+1th layer.

[0079] Then, according to the weights between the sites in the power system, the sites are taken as nodes and the hop counts of the sites in the power system are taken as layers to construct a hierarchical weighted graph of the power system.

[0080] S23: Perform sequence sampling of each site in the hierarchical weighted graph to obtain the sequence sampling results of each site, and train the vertex sequence sampling results of each site through the word2vec algorithm to obtain a high-dimensional embedding representation of each site.

[0081] In this embodiment, when performing vertex sequence sampling in a hierarchical weighted graph, a biased random walk method is used to perform vertex sequence sampling.

[0082] Specifically, biased random walks are used to sample vertex sequences in the constructed graph. Each time a sample is taken, first, the comparison result between the constructed random number p and the fixed threshold determines whether to walk in the current layer or switch to the adjacent upper and lower layers. If p is greater than the fixed threshold, it is decided to walk in the current layer. Assuming that the current layer is in the kth layer, the probability of going from site u to site v is:

[0083]

[0084] Among them, Z k (u) is the regularization factor of site u at the kth layer, and its calculation formula is:

[0085]

[0086] The calculation formula for the transition probability of switching to different layers at the same site is:

[0087]

[0088] p k (u k ,u k-1 )=1-p k (u k ,u k+1 )

[0089] Among them, p k (u k ,u k+1 ) is the transition probability of the u site in the kth layer switching to the u site in the k+1th layer, p k (u k ,u k-1 ) is the transition probability of the u site in the kth layer switching to the u site in the k-1th layer.

[0090] After sampling the vertex sequence through the biased random walk method mentioned above, the sequence sampling results of each site are obtained, and then the vertex sequence sampling results of each site are trained through the word2vec algorithm to obtain the high-dimensional embedding representation of each site. Among them, the word2vec algorithm is a process of mapping the sparse word vector in the form of one-hot to an n-dimensional dense vector using a one-layer neural network (CBOW). It is an open source tool for word vector calculation from Google. First, the word2vec algorithm can be efficiently trained on millions of dictionaries and hundreds of millions of data sets; secondly, the training result obtained by the tool - the word vector, can well measure the similarity between words. Word2vec is an open source tool for calculating word vectors. The word2vec algorithm generally refers to the CBoW model and Skip-gram model used to calculate word vectors.

[0091] S3: traverse the high-dimensional embedding representations of each site: search for the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site, and obtain the site closest to the current site.

[0092] Specifically, the search is performed based on the high-dimensional embedding representations of all sites in the power system. A greedy search method is generally used to traverse the high-dimensional embedding representations of each site, and the high-dimensional embedding representation that is closest to the high-dimensional embedding representation of the current site is searched in the high-dimensional embedding representations of all sites in turn. The site corresponding to the closest high-dimensional embedding representation is taken as the closest site to the current site. After the traversal is completed, the closest site to all sites in the power system is obtained.

[0093] S4: traverse each site: when the closest site of the closest site to the current site is the current site, aggregate the current site and the closest site to the current site into the same type of sites.

[0094] Specifically, after obtaining the closest sites of all sites in the power system, the sites are clustered. By traversing the sites in the power system, when the closest site of the closest site of a site is the site, that is, when two sites are the closest sites to each other, the current site and the closest site of the current site are aggregated into the same type of sites.

[0095] In a possible implementation, the site clustering method in the power communication service data of the present invention is illustrated by taking a routing knowledge graph of a power system, see Figure 3, each node in the figure represents a site in the power grid routing, among which 12 sites are displayed, and most of the sites and connection relationships in the middle are implicitly represented as network. For the two sites with bold borders, site u and site v, the two sites are not directly connected, but from the visual intuition, it can be seen that the two sites have a high degree of topological structure similarity: their degrees are 5 and 4 respectively, connecting 3 and 2 triangular topological structures respectively, and both are connected to other sites in the network through 2 sites, so site u and site v are likely to be the same site. Assuming that site u and site v represent the "Simens Tower Ditch" site and the "Simen Tower Ditch" site respectively, it is reasonable that the two have similar topological connections, but in this case it is difficult to match the two sites by a simple string matching algorithm, and the topological structure information of the site must be used. At this time, the method described in the present invention can solve similar site matching problems, and does not require a priori site name as benchmark data.

[0096] In summary, the site clustering method in the power communication business data of the present invention is based on the routing knowledge graph of the power system, and adopts the Struc2vec algorithm to obtain the high-dimensional embedding representation of each site in the routing knowledge graph, fully considering the topological structure information of each site, and using this as the clustering basis to achieve similar clustering of each site in the power system, which is convenient for finding different text representations of the same site with large differences, and improving the accuracy of clustering between sites, thereby eliminating site redundancy in the business routing information of the power system, standardizing the site information in the routing information, and standardizing the information deviation entered by different business personnel, and completing data cleaning to a certain extent. At the same time, this method does not require a priori site name benchmark data, which greatly reduces the difficulty of using the method.

[0097] In a possible implementation, the method for clustering sites in power communication service data further includes: obtaining manual review results of sites of the same type, and updating the aggregation status of sites of the same type according to the manual review results of sites of the same type.

[0098] Specifically, when the manual review result of the same type of site is correct, the aggregation state of the same type of site is updated to the final aggregation state, indicating that the sites under this category are the same site, that is, the two sites are essentially different representations of the same site. When the manual review result of the same type of site is wrong, it indicates that the above clustering method is wrong, and the aggregation state of the same type of site is updated to split, that is, the two sites included in the aggregated same type of site are separated. By introducing the manual review result, the accuracy of clustering is ensured, and data confusion caused by incorrect clustering results is avoided.

[0099] The following are device embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For details not disclosed in the device embodiments, please refer to the method embodiments of the present invention.

[0100] See also Figure 4 In another embodiment of the present invention, a site clustering method system in electric power communication business data is provided, which can be used to implement the above-mentioned site clustering method in electric power communication business data. Specifically, the site clustering method system in electric power communication business data includes a data acquisition module, a high-dimensional embedding representation acquisition module, a traversal module and a clustering module.

[0101] Among them, the data acquisition module is used to obtain the routing knowledge graph of the power system; the high-dimensional embedding representation acquisition module is used to obtain the high-dimensional embedding representation of each site in the routing knowledge graph; the traversal module is used to traverse the high-dimensional embedding representation of each site: search for the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site, and obtain the closest site to the current site; the clustering module is used to traverse each site: when the closest site of the closest site to the current site is the current site, the current site and the closest site to the current site are aggregated into the same type of site.

[0102] All relevant contents of each step involved in the aforementioned embodiment of the method for clustering sites in power communication service data can be referred to the functional description of the functional modules corresponding to the system for clustering sites in power communication service data in the embodiment of the present invention, and will not be repeated here.

[0103] The division of modules in the embodiments of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present invention may be integrated into one processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.

[0104] In another embodiment of the present invention, a computer device is provided, the computer device comprising a processor and a memory, the memory being used to store a computer program, the computer program comprising program instructions, and the processor being used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions in a computer storage medium to implement a corresponding method flow or a corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the site clustering method in power communication service data.

[0105] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, an extended storage medium supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the site clustering method in the power communication service data in the above embodiment.

[0106] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0107] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0108] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0109] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A site clustering method in power communication service data, characterized in that: include: Obtain the routing knowledge graph of the power system; Obtaining a high-dimensional embedding representation of each site in the routing knowledge graph; Search the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site to obtain the site closest to the current site; When the closest site to the closest site of the current site is the current site, the current site and the closest site to the current site are aggregated into the same type of sites; When obtaining the high-dimensional embedding representation of each site in the routing knowledge graph, the Struc2vec algorithm is used to obtain the high-dimensional embedding representation of each site in the routing knowledge graph. The specific method is: Obtain and obtain the distance between any two sites in the routing knowledge graph at each hop based on the degree and number of hops of each site in the routing knowledge graph; According to the distance between any two stations in each hop and the number of hops of each station in the routing knowledge graph, a hierarchical weighted graph of the power system is constructed; The sequence sampling of each site is performed in the hierarchical weighted graph to obtain the sequence sampling results of each site, and the vertex sequence sampling results of each site are trained by the word2vec algorithm to obtain the high-dimensional embedding representation of each site.

2. The site clustering method in power communication service data according to claim 1, characterized in that: The specific method for obtaining the routing knowledge graph of the power system is: Obtain the business routing data of the power system and perform semantic segmentation to obtain structured linked list data; Construct the routing knowledge graph of the power system based on structured linked list data.

3. The site clustering method in power communication service data according to claim 1, characterized in that: The specific method for obtaining the distance between any two sites in the routing knowledge graph at each hop according to the degree and hop number of each site in the routing knowledge graph is: The distance f between any two stations can be obtained by the following formula k (u, v): f k (u,v)=f k-1 (u,v)+g(s(R k (u)),s(R k (v))) k≥0 and |R k (u)|,|R k (v)|>0 Among them, R k (u) represents the set of neighboring sites of the kth hop of site u, R k (v) represents the set of neighboring sites of the kth hop of site v; s(R k (u)) represents R k (u) is an ordered sequence of site degrees, s(R k (v)) indicates R k (v) is an ordered sequence of site degrees; g(s(R k (u)), s(R k (v))) indicates s(R k (u)) and s(R k (v)) is s(R k (u)) and s(R k (v)) is the set of distances between every pair of elements; The specific method of constructing a hierarchical weighted graph of the power system according to the distance between any two sites in each hop and the number of hops of each site in the routing knowledge graph is: Taking the number of hops of the power system site as the layer, the weights between the power system sites are obtained by the following formula: in(u k ,at k+1 )=log(Γ k (u)+e),k=0,...,k * -1 w(u k ,u k-1 )=1,k=1,…,k * Among them, w k (u, v) is the weight between the u site and the v site in the kth layer, w k (u k ,u k+1 ) is the weight between the u site in the kth layer and the u site in the k+1th layer, Γ k (u) is the number of sites whose weights between site u and other sites in the kth layer are greater than the average weight, is the average weight of the u site in the kth layer, w k (u k ,u k-1 ) is the weight between the u site at the kth layer and the u site at the k+1th layer; According to the weights between the stations in the power system, a hierarchical weighted graph of the power system is constructed.

4. The site clustering method in power communication service data according to claim 3, characterized in that: The s(R k (u)) and s(R k The distance d(a, b) between each pair of elements in (v)) is calculated by the following formula: Where a and b are s(R k (u)) and s(R k (v)) is the value of the element at the corresponding position, max(a, b) is the largest value between a and b, and min(a, b) is the smallest value between a and b; Among them, when s(R k (u)) and s(R k (v)) are different in length, when calculating s(R k (u)) and s(R k (v)) before calculating the distance between each pair of elements in s(R k (u)) and s(R k (v)) Sequences were aligned.

5. The site clustering method in power communication service data according to claim 1, characterized in that: When performing vertex sequence sampling in the hierarchical weighted graph, a biased random walk method is used to perform vertex sequence sampling.

6. The site clustering method in power communication service data according to claim 1, characterized in that: Also includes: Obtain the manual review results of similar sites, and update the aggregation status of similar sites based on the manual review results of similar sites.

7. A site clustering method system in power communication service data, characterized in that: include: A data acquisition module, used to obtain the routing knowledge graph of the power system; A high-dimensional embedding representation acquisition module, used to obtain a high-dimensional embedding representation of each site in the routing knowledge graph; A traversal module is used to search for the high-dimensional embedding representation of each site that is closest to the high-dimensional embedding representation of the current site, and obtain the site closest to the current site; A clustering module, when the closest site of the closest site to the current site is the current site, aggregates the current site and the closest site to the current site into the same type of sites; When obtaining the high-dimensional embedding representation of each site in the routing knowledge graph, the Struc2vec algorithm is used to obtain the high-dimensional embedding representation of each site in the routing knowledge graph. The specific method is: Obtain and obtain the distance between any two sites in the routing knowledge graph at each hop based on the degree and number of hops of each site in the routing knowledge graph; According to the distance between any two stations in each hop and the number of hops of each station in the routing knowledge graph, a hierarchical weighted graph of the power system is constructed; The sequence sampling of each site is performed in the hierarchical weighted graph to obtain the sequence sampling results of each site, and the vertex sequence sampling results of each site are trained by the word2vec algorithm to obtain the high-dimensional embedding representation of each site.

8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for clustering sites in power communication service data according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for clustering sites in power communication service data according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and system for automatically constructing knowledge maps for mass unstructured texts

    CN108875051A

  • Knowledge graph construction method and device for water conservancy informatization

    CN110543571A

  • Intelligent power grid station bandwidth estimation method based on multivariate nonlinear fitting

    CN110740070A

  • Service fault detection method and device based on knowledge graph

    CN112583640A

  • System for generating a site pathing report based on real-time analytics data

    US8782166B1