CN115829031A - A power outage fault research and judgment method based on knowledge graph and power outage big data analysis - Google Patents
A power outage fault research and judgment method based on knowledge graph and power outage big data analysis Download PDFInfo
- Publication number
- CN115829031A CN115829031A CN202211296410.6A CN202211296410A CN115829031A CN 115829031 A CN115829031 A CN 115829031A CN 202211296410 A CN202211296410 A CN 202211296410A CN 115829031 A CN115829031 A CN 115829031A
- Authority
- CN
- China
- Prior art keywords
- outage
- algorithm
- power outage
- power
- dev
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Supply And Distribution Of Alternating Current (AREA)
Abstract
本发明公开了一种基于知识图谱与停电大数据分析的停电故障研判方法通过neo4j知识图谱重构电网拓扑关系,形成实体、属性、关系的三元组,并将图谱以开关为节点分为不同区段;通过图谱搜索算法结合召测算法搜索确定停电设备和停电区域;通过回溯算法查询召测算法延迟信号修正停电设备和停电区域。在知识图谱的框架内,将电网拓扑的可追溯搜索性发挥出来,并结合召测算法回传的带电信号,对电网进行逐段排查,可在3分钟内排查一个区段内的数十台变压器的带电状态,大大提高了停电排查的效率,不但省去了大量人工,极大的缩短了停电响应时间,且准确度非常高。本发明具有思路清晰,通用性较好,经济价值高,适合推广使用的优点。
The invention discloses a power outage fault research and judgment method based on knowledge map and power outage big data analysis, reconstructs the topological relationship of the power grid through the neo4j knowledge map, forms a triplet of entities, attributes, and relationships, and divides the map into different nodes with switches as nodes. Section; search and determine the outage equipment and outage area through the map search algorithm combined with the recall algorithm; use the backtracking algorithm to query the delay signal of the recall algorithm to correct the outage equipment and outage area. Within the framework of the knowledge map, the traceability of the power grid topology is brought into play, combined with the live signal returned by the recall algorithm, the power grid is checked segment by segment, and dozens of units in a segment can be checked within 3 minutes The live state of the transformer greatly improves the efficiency of power outage investigation, not only saves a lot of labor, but also greatly shortens the power outage response time, and the accuracy is very high. The invention has the advantages of clear thinking, good versatility, high economic value and suitable for popularization and use.
Description
技术领域technical field
本发明涉及配电网停电区域感知技术领域,具体为一种基于知识图谱与停电大数据分析的停电故障研判方法。The invention relates to the technical field of power outage area perception in distribution networks, in particular to a method for researching and judging power outage faults based on knowledge graphs and power outage big data analysis.
背景技术Background technique
随着人民生活水平的不断提升,用户对供电质量和供电可靠性的要求越来越高,配电网直接服务于广大用户,关系到用户的用电体验。一旦发生配电网系统故障,快速精确地进行故障定位隔离,并对故障的影响程度进行及时的评估,对于最小化的供电中断、提高供电安全性和可靠性有极其重要的作用。With the continuous improvement of people's living standards, users have higher and higher requirements for power supply quality and reliability. The distribution network directly serves the majority of users and is related to the user's power consumption experience. Once a distribution network system fault occurs, fast and accurate fault location and isolation, and timely assessment of the impact of the fault are extremely important for minimizing power supply interruptions and improving power supply security and reliability.
配电系统作为电能生产、传输和使用的重要环节,是联系实际用户需求侧与发、输电系统的关键纽带。因此,在配电网发生故障后,进行快速、合理的定位从而有效指导检修工作是当前城市电网安全持续发展的关键部分。而配电网故障研判的过程中却存在导致研判困难的多种因素:①网络通信装置所处的恶劣环境影响信息的流畅性;②配电自动化发展程度不一致造成故障信息中存在大量不确定因素,影响信息的完整性;③发生多重复杂故障时,在失电区域中将会存在大量故障元件与非故障元件,且开关保护会发生拒动或误动,干扰故障研判。上述因素都会导致研判范围扩大和信息上传畸变,给配电系统的安全稳定运行带来影响。随着接线形式的日趋复杂,设备元件种类不断增多,研究停电故障研判大数据算法,提高故障研判精度,对于电力系统的综合发展具有十分重要的意义。As an important link in the production, transmission and use of electric energy, the power distribution system is the key link between the actual user demand side and the power generation and transmission system. Therefore, after the distribution network fails, fast and reasonable positioning to effectively guide the maintenance work is a key part of the safe and sustainable development of the current urban power grid. However, there are many factors that lead to difficulties in the research and judgment of distribution network faults: ①The harsh environment of network communication devices affects the fluency of information; ②Inconsistent development of distribution automation results in a large number of uncertain factors in fault information , affecting the integrity of information; ③When multiple complex faults occur, there will be a large number of faulty components and non-faulty components in the power-off area, and the switch protection will refuse to operate or malfunction, which will interfere with fault research and judgment. The above factors will lead to the expansion of the scope of research and judgment and the distortion of information uploading, which will affect the safe and stable operation of the power distribution system. With the increasingly complex wiring forms and the increasing types of equipment components, it is of great significance for the comprehensive development of the power system to study the big data algorithm for power outage fault judgment and improve the accuracy of fault judgment.
本方法提出了一种使用知识图谱重构可搜索电网拓扑并结合大数据分析算法的故障停电研判方法,不仅可以在短时间内通过停电信号自动研判,提高了停电排查的效率,让停电用户及时得到反馈,同时又可以解放大量排查人员的人力资源。、This method proposes a power outage research and judgment method that uses the knowledge graph to reconstruct the searchable power grid topology and combines the big data analysis algorithm. It can not only automatically judge the power outage signal in a short time, but also improves the efficiency of power outage investigation and allows power outage users to timely Feedback can be obtained, and at the same time, the human resources of a large number of investigators can be liberated. ,
发明内容Contents of the invention
为解决上述现有技术存在的不足,本发明提供了一种基于知识图谱与停电大数据分析的停电故障研判方法,可以快速对停电信号作出响应,不需人工介入,纯粹依靠电器信号对停电设备作出研判,提高故障停电的复电速度,稳定用电客户情绪,提高电网服务质量。具体的,本发明是这样实现的:In order to solve the above-mentioned deficiencies in the prior art, the present invention provides a power outage fault research and judgment method based on knowledge graph and power outage big data analysis, which can quickly respond to power outage signals without manual intervention, and relies solely on electrical signals to detect power outage equipment. Make research and judgments to increase the speed of power restoration in case of power outages, stabilize the emotions of electricity customers, and improve the quality of power grid services. Concretely, the present invention is realized like this:
一种基于知识图谱与停电大数据分析的停电故障研判方法,包括以下步骤,A power outage fault research and judgment method based on knowledge graph and power outage big data analysis, comprising the following steps,
步骤S1、将需要研判的输电线路中的电网设备的大数据信息嵌入neo4知识图谱,并对原始图谱进行抽稀处理,形成线路单线数据,得构建好的neo4知识图谱;Step S1, embedding the big data information of the power grid equipment in the transmission line that needs to be studied and judged into the neo4 knowledge map, and performing thinning processing on the original map to form single-line data of the line, and obtain the constructed neo4 knowledge map;
步骤S2、将构建的neo4j知识图谱中的电网设备进行编号标识,并以开关为节点分为不同的若干区段,并编号;Step S2, numbering and marking the power grid equipment in the constructed neo4j knowledge map, and dividing them into several different sections with switches as nodes, and numbering them;
步骤S3、获取每条线路中的电网设备的变压器停电信号数据并进行过滤;Step S3, obtaining and filtering the transformer outage signal data of the power grid equipment in each line;
步骤S4、使用cypher语言构建neo4j图谱搜索算法,结合变压器召测算法,通过停电信号在图谱中向上游变电站方向进行停电区域搜索,若召测信号带电,则停止搜索,合并相同的停电数据并返回停电区域设备;若召测信号不带电,则进入步骤S5;Step S4, use cypher language to construct neo4j map search algorithm, combined with the transformer call test algorithm, search for the power outage area in the direction of the upstream substation in the map through the power outage signal, if the call test signal is charged, stop the search, merge the same power outage data and return Power outage area equipment; if the calling test signal is not charged, then enter step S5;
步骤S5、完成一个区段的搜索后,对上一区段的召测延迟信号进行回溯查看,若无延迟信号返回则在图谱中向上游变电站方向进行下一区段停电区域搜索执行步骤S4,若有延迟信号返回则停止下一阶段搜索,并回到上一区段;Step S5. After completing the search of a section, retrospectively check the delay signal of the previous section. If there is no delay signal returned, search for the blackout area of the next section in the direction of the upstream substation in the map and execute step S4. If there is a delayed signal return, stop the next stage of search and return to the previous section;
步骤S6、当搜索到带电区域则停止搜索,通过neo4j图谱结构修正或合并停电区域,并返回停电区域设备。Step S6, stop searching when finding a powered area, modify or merge the blackout area through the neo4j map structure, and return to the blackout area device.
进一步的,所述步骤S3中的过滤步骤包括:将处理好的线路单线图以开关为节点,将线路离散化,对停电信号数据进行过滤,使用线路聚类算法,对同一条线路上短时间间隔的停电信号进行聚类分析,并对可靠性较低的停电信号删除不予处理。Further, the filtering step in the step S3 includes: taking the processed line single-line diagram as a node, discretizing the line, filtering the power failure signal data, and using the line clustering algorithm to analyze the short-term The power outage signals at intervals are clustered and analyzed, and the power outage signals with low reliability are not deleted.
进一步的,所述步骤S1中,在将需要研判的输电线路中的电网设备的大数据信息嵌入neo4知识图谱之前,使用百度paddle框架封装的transfomer模型lac进行实体以及关系识别,还包括:对电网设备的GIS数据进行抽取并处理,使之变为实体节点、实体属性、实体间关系的三元组数据,并嵌入neo4j图谱数据库。Further, in the step S1, before embedding the big data information of the power grid equipment in the transmission line that needs to be studied and judged into the neo4 knowledge map, use the transfomer model lac encapsulated by the Baidu paddle framework to identify entities and relationships, and also include: power grid The GIS data of the device is extracted and processed to make it into triplet data of entity nodes, entity attributes, and relationships between entities, and embedded in the neo4j graph database.
进一步的,所述步骤S6还包括:若是回溯的延迟信号有电,则根据回溯算法中标识的区段编号,从该区段开始往后的区段全部标识为有电,之前的区段则依然标识为停电,并返回这些区段的设备。Further, the step S6 also includes: if the backtracking delay signal has electricity, then according to the section number identified in the backtracking algorithm, all the sections after this section are marked as having electricity, and the previous sections are then Still flagged as outages, and return devices in those segments.
进一步的,所述步骤S4中,算法由Java语言编写,当该算法接收到变压器停电告警信号之后,首先以该告警变压器为起点,通过cypher neo4j图搜索语言寻找该线路的变电站所在方向,并将该变压器与变电站之间的线路以开关为节点分为一个个区段。Further, in the step S4, the algorithm is written in Java language. When the algorithm receives the transformer outage alarm signal, it first uses the alarm transformer as a starting point to search for the direction of the substation of the line through the cypher neo4j graph search language, and The line between the transformer and the substation is divided into sections with switches as nodes.
进一步的,所述步骤S4中,若区段内变压器数量超过10台,为了防止召测算法通道堵塞,随机抽取10台变压器召测。Further, in the step S4, if the number of transformers in the section exceeds 10, 10 transformers are randomly selected for testing in order to prevent channel blockage of the testing algorithm.
本发明的工作原理和有益效果介绍:本发明通过neo4j知识图谱重构电网拓扑关系,形成实体、属性、关系的三元组,并将图谱以开关为节点分为不同区段;通过图谱搜索算法结合召测算法搜索确定停电设备和停电区域;通过回溯算法查询召测算法延迟信号修正停电设备和停电区域。在知识图谱的框架内,将电网拓扑的可追溯搜索性发挥出来,并结合召测算法回传的带电信号,对电网进行逐段排查,可在3分钟内排查一个区段内的数十台变压器的带电状态,大大提高了停电排查的效率,不但省去了大量人工,极大的缩短了停电响应时间,且准确度非常高。本发明可以快速、准确、自动化的找到当前停电事件的所有相关停电设备,节约人力资源排查线路,加快故障修复,提高电网服务质量。本发明具有思路清晰,通用性较好,经济价值高,适合推广使用的优点。Introduction to the working principle and beneficial effects of the present invention: the present invention reconstructs the topological relationship of the power grid through the neo4j knowledge graph, forms a triplet of entities, attributes, and relationships, and divides the graph into different sections with switches as nodes; through the graph search algorithm Combined with the recall algorithm to search and determine the outage equipment and outage area; through the backtracking algorithm to query the delay signal of the recall algorithm to correct the outage equipment and outage area. Within the framework of the knowledge map, the traceability and searchability of the power grid topology is brought into play, and combined with the live signal returned by the recall algorithm, the power grid is checked section by section, and dozens of units in a section can be checked within 3 minutes. The live state of the transformer greatly improves the efficiency of power outage investigation, not only saves a lot of labor, but also greatly shortens the power outage response time, and the accuracy is very high. The present invention can quickly, accurately and automatically find all relevant power outage equipment in the current power outage event, save human resources to check lines, speed up fault repair, and improve service quality of the power grid. The invention has the advantages of clear thinking, good versatility, high economic value and suitable for popularization and use.
附图说明Description of drawings
图1为本发明的一种基于知识图谱与停电大数据分析的停电故障研判方法流程图;Fig. 1 is a flow chart of a power outage fault research and judgment method based on knowledge map and power outage big data analysis of the present invention;
图2为本发明回溯算法中的数据储存结构示意图;Fig. 2 is a schematic diagram of the data storage structure in the backtracking algorithm of the present invention;
图3为本发明在某电网实际应用中的一次研判结果,其中深色线条为带电线路,浅色线条为停电线路,带电线路与停电线路的交接点为故障点。Fig. 3 is a study and judgment result of the present invention in a practical application of a power grid, wherein the dark lines are live lines, the light lines are power outage lines, and the junction points of live lines and power outage lines are fault points.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明了,下面结合具体实施方式并参照附图,对本发明进一步详细说明。应该理解,这些描述只是示例性的,而并非要限制本发明的范围。此外,在以下说明中,省略了对公知结构和技术的描述,以避免不必要地混淆本发明的概念。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are exemplary only, and are not intended to limit the scope of the present invention. Also, in the following description, descriptions of well-known structures and techniques are omitted to avoid unnecessarily obscuring the concept of the present invention.
实施例1:一种基于知识图谱与停电大数据分析的停电故障研判方法Example 1: A power outage fault research and judgment method based on knowledge graph and power outage big data analysis
对电网设备的GIS数据进行抽取并处理,使之变为实体节点、实体属性、实体间关系的三元组数据,并通过neo4j自带的neo4j-admin import方法将三元组嵌入neo4j图谱数据库,形成知识图谱,再对知识图谱进行抽稀,去除一些无关紧要的实体节点和与之相关的实体间关系,简化知识图谱,形成一个个线路单线图,使之更便于操作;Extract and process the GIS data of power grid equipment to turn it into triplet data of entity nodes, entity attributes, and relationships between entities, and embed the triplets into the neo4j graph database through the neo4j-admin import method that comes with neo4j. Form a knowledge map, and then thin the knowledge map to remove some irrelevant entity nodes and the relationship between related entities, simplify the knowledge map, and form a single-line diagram of each line to make it easier to operate;
将处理好的线路neo4j图谱单线图以开关为节点,将线路离散化形成分段单线图;The single-line diagram of the neo4j map of the processed line uses the switch as a node, and discretizes the line to form a segmented single-line diagram;
对停电信号数据进行过滤,使用线路聚类法,对同一条线路上短时间间隔的停电信号进行聚类分析,并对可靠性较低的停电信号删除不予处理;Filter the power outage signal data, use the line clustering method to cluster and analyze the short time interval power outage signals on the same line, and delete the power outage signals with low reliability without processing;
通过neo4j自带的cypher语言编写的图搜索算法,结合变压器召测算法,经过对召测返回信息的分析,如果该区段变压器信号没有返回,则说明大概率无电,然后在图谱中向上游变电站方向进行下一区段停电区域搜索,如果返回信号有电,则停止下一阶段搜索。cypher搜索算法如下:Through the graph search algorithm written in the cypher language that comes with neo4j, combined with the transformer call test algorithm, after analyzing the return information of the call test, if the transformer signal in this section does not return, it means that there is a high probability of no electricity, and then go upstream in the map In the direction of the substation, search for the power outage area in the next section, and if the return signal has power, stop the search for the next stage. The cypher search algorithm is as follows:
搜索某区段内的所有设备1:Search for all devices in a section1:
MATCH p=(ns{dev_id:'%s'})-[*]-(dev)MATCH p=(ns{dev_id:'%s'})-[*]-(dev)
where apoc.coll.duplicates(nodes(p))=[]where apoc.coll.duplicates(nodes(p))=[]
and all(x in nodes(p)where x.feederId='%s')and all(x in nodes(p)where x.feederId='%s')
and all(x in nodes(p)where not x.dev_id='%s')and all(x in nodes(p)where not x.dev_id='%s')
and all(x in relationships(p)where x.feederid='%s')and all(x in relationships(p)where x.feederid='%s')
return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",
搜索某区段内的所有设备2:Search for all devices in a section2:
MATCH p=shortestpath((s{dev_id:'%s'})-[*]-(e{dev_id:'%s'}))MATCH p=shortestpath((s{dev_id:'%s'})-[*]-(e{dev_id:'%s'}))
where apoc.coll.duplicates(nodes(p))=[]where apoc.coll.duplicates(nodes(p))=[]
with[head(relationships(p))]as h_rwith[head(relationships(p))]as h_r
match pp=(ns{dev_id:'%s'})-[*]-(dev)match pp=(ns{dev_id:'%s'})-[*]-(dev)
where apoc.coll.duplicates(nodes(pp))=[]where apoc.coll.duplicates(nodes(pp))=[]
and all(x in nodes(pp)where x.feederId='%s')and all(x in nodes(pp)where x.feederId='%s')
and all(x in relationships(pp)where not x in h_r and x.feederid='%s')and all(x in relationships(pp)where not x in h_r and x.feederid='%s')
and all(x in nodes(pp)where not x.dev_id='%s')and all(x in nodes(pp) where not x.dev_id='%s')
return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID"return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID"
搜索最短路径:Search for the shortest path:
MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),
path=shortestpath((dev_start)-[*]-(dev_end))path=shortestpath((dev_start)-[*]-(dev_end))
WHERE apoc.coll.duplicates(nodes(path))=[]WHERE apoc.coll.duplicates(nodes(path))=[]
RETURN length(path)AS PathLengthRETURN length(path) AS PathLength
搜索路径上的最近上游开关:The closest upstream switch on the search path:
MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),
path=shortestpath((dev_start)-[*]-(dev_end))path=shortestpath((dev_start)-[*]-(dev_end))
WHERE apoc.coll.duplicates(nodes(path))=[]WHERE apoc.coll.duplicates(nodes(path))=[]
WITH pathWITH path
MATCH(dev)MATCH(dev)
WHERE dev IN nodes(path)WHERE dev IN nodes(path)
AND(dev:%s OR dev:%s OR dev:%s)AND(dev:%s OR dev:%s OR dev:%s)
AND NOT dev.dev_id='%s'AND NOT dev.dev_id='%s'
RETURN dev.dev_id AS DeviceID;RETURN dev.dev_id AS DeviceID;
在完成一个阶段的搜索后,进行回溯查看上一区段的召测延迟信号,如果上一区段变压器信号没有延迟信号返回,则说明大概率无电,然后在图谱中向上游变电站方向进行下一区段停电区域搜索,如果返回信号有电,则停止下一阶段搜索;After completing a stage of search, backtrack to check the delay signal of the previous section. If there is no delay signal return of the transformer signal in the previous section, it means that there is a high probability that there is no power, and then proceed to the upstream substation in the map. Search for a power outage area in one section, if the return signal has power, stop the next stage of search;
当搜索到带电区域则停止搜索,并返回停电区域设备,如果是回溯的延迟信号有电,则根据回溯算法中标识的区段编号,从该区段开始往后的区段全部标识为有电,之前的区段则依然标识为停电,结合neo4j图谱结构修正或合并停电区域,并返回这些区段的设备;When the live area is searched, the search is stopped and the equipment in the power-off area is returned. If the backtracking delay signal has power, all the sections from this section onwards will be marked as having electricity according to the section number identified in the backtracking algorithm. , the previous section is still marked as a power outage, combined with the neo4j map structure to correct or merge the outage area, and return the equipment in these sections;
本发明可以快速、准确、自动化的找到当前停电事件的所有相关停电设备,节约人力资源排查线路,加快故障修复,提高电网服务质量。本发明的主要特点是:The present invention can quickly, accurately and automatically find all relevant power outage equipment in the current power outage event, save human resources to check lines, speed up fault repair, and improve service quality of the power grid. Main features of the present invention are:
1.通过neo4j知识图谱重构电网拓扑关系,形成实体、属性、关系的三元组,并将图谱以开关为节点分为不同区段;1. Reconstruct the topological relationship of the power grid through the neo4j knowledge graph, form a triplet of entities, attributes, and relationships, and divide the graph into different sections with switches as nodes;
2.通过neo4j的cypher语言实现图谱搜索算法结合召测算法搜索确定停电设备和停电区域;2. Through neo4j's cypher language, the map search algorithm is combined with the call-to-test algorithm to search and determine the power-off equipment and power-off area;
3.通过构建好的neo4j知识图谱结构修正停电设备和合并停电区域。3. Correct the outage equipment and merge the outage area through the constructed neo4j knowledge map structure.
本发明的有益效果是,在neo4j知识图谱的框架内,将电网拓扑的可追溯搜索性发挥出来,通过cypher语言的便捷性编写更易于处理的图搜索算法,并结合召测算法回传的带电信号,对电网进行逐段排查,可在3分钟内排查一个区段内的数十台变压器的带电状态,大大提高了停电排查的效率,不但省去了大量人工,极大的缩短了停电响应时间,且准确度非常高。本发明具有思路清晰,通用性较好,经济价值高,适合推广使用的优点。The beneficial effect of the present invention is that within the framework of the neo4j knowledge map, the traceable searchability of the power grid topology is brought into play, and an easier-to-handle graph search algorithm is written through the convenience of the cypher language, and combined with the electrification returned by the recall algorithm Signal, check the power grid section by section, and check the live status of dozens of transformers in a section within 3 minutes, which greatly improves the efficiency of power outage investigation, not only saves a lot of labor, but also greatly shortens the response to power outages time, and the accuracy is very high. The invention has the advantages of clear thinking, good versatility, high economic value and suitable for popularization and use.
实施例二:实例Embodiment 2: Example
一种基于知识图谱与停电大数据分析的停电故障研判方法,基于某电网下某地区的运行研判过程和结果进行呈现,并对该电网进行从2021年1月开始直到2021年12月初近一年的停电设备研判,其中一次停电研判的具体步骤如下:A power outage fault research and judgment method based on knowledge graph and power outage big data analysis, based on the operation research and judgment process and results of a certain area under a certain power grid, and the power grid will be analyzed for nearly a year from January 2021 to early December 2021 The specific steps of a power outage research and judgment are as follows:
(1)将最新的该电网GIS数据转化为实体、属性、关系三元组,并通过neo4j自带的neo4j-admin import方法将三元组嵌入neo4j图谱数据库,具体语句为:neo4j-adminimport--database=neo4j--nodes“import/sto.csv”--nodes“import/con.csv”--relationships“import/rel.csv”--ignore-empty-strings--skip-bad-relationships--skip-duplicate-nodes=true,构建输电线路单线图知识图谱。(1) Convert the latest GIS data of the power grid into triplets of entity, attribute, and relationship, and embed the triplet into the neo4j map database through the neo4j-admin import method that comes with neo4j. The specific statement is: neo4j-adminimport-- database=neo4j --nodes "import/sto.csv" --nodes "import/con.csv" --relationships "import/rel.csv" --ignore-empty-strings --skip-bad-relationships --skip -duplicate-nodes=true, construct the single-line diagram knowledge graph of transmission lines.
(2)停电信号过滤算法使用Java语言编写,接收到变压器掉电的告警信号后,通过停电信号过滤算法判别,此掉电告警为真实,将信号传入停电设备搜索研判算法。(2) The power failure signal filtering algorithm is written in Java language. After receiving the transformer power failure alarm signal, it is judged by the power failure signal filtering algorithm that the power failure alarm is true, and the signal is sent to the power failure equipment search and judgment algorithm.
(3)停电设备搜索研判算法由Java语言编写,当该算法接收到变压器停电告警信号之后,首先以该告警变压器为起点,通过cypherneo4j图搜索语言寻找该线路的变电站所在方向,并将该变压器与变电站之间的线路以开关为节点分为一个个区段。(3) The search and judgment algorithm for outage equipment is written in Java language. When the algorithm receives the transformer outage alarm signal, it first takes the alarm transformer as a starting point, uses the cypherneo4j graph search language to find the direction of the substation of the line, and compares the transformer with the The lines between substations are divided into sections with switches as nodes.
(4)通过neo4j自带的cypher语言编写的图搜索算法,搜索线路中下一个区段的变压器,并对搜索结果进行召测,如果该区段变压器数量超过10台,为了防止召测算法通道堵塞,随机抽取10台变压器召测。cypher搜索算法如下:(4) Use the graph search algorithm written in the cypher language that comes with neo4j to search for the transformer in the next section of the line, and conduct a call test on the search results. If the number of transformers in this section exceeds 10, in order to prevent call test algorithm channel For blockage, 10 transformers were randomly selected for testing. The cypher search algorithm is as follows:
MATCH p=(ns{dev_id:'%s'})-[*]-(dev)MATCH p=(ns{dev_id:'%s'})-[*]-(dev)
where apoc.coll.duplicates(nodes(p))=[]where apoc.coll.duplicates(nodes(p))=[]
and all(x in nodes(p)where x.feederId='%s')and all(x in nodes(p)where x.feederId='%s')
and all(x in nodes(p)where not x.dev_id='%s')and all(x in nodes(p)where not x.dev_id='%s')
and all(x in relationships(p)where x.feederid='%s')and all(x in relationships(p)where x.feederid='%s')
return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",
MATCH p=shortestpath((s{dev_id:'%s'})-[*]-(e{dev_id:'%s'}))MATCH p=shortestpath((s{dev_id:'%s'})-[*]-(e{dev_id:'%s'}))
where apoc.coll.duplicates(nodes(p))=[]where apoc.coll.duplicates(nodes(p))=[]
with[head(relationships(p))]as h_rwith[head(relationships(p))]as h_r
match pp=(ns{dev_id:'%s'})-[*]-(dev)match pp=(ns{dev_id:'%s'})-[*]-(dev)
where apoc.coll.duplicates(nodes(pp))=[]where apoc.coll.duplicates(nodes(pp))=[]
and all(x in nodes(pp)where x.feederId='%s')and all(x in nodes(pp)where x.feederId='%s')
and all(x in relationships(pp)where not x in h_r and x.feederid='%s')and all(x in relationships(pp)where not x in h_r and x.feederid='%s')
and all(x in nodes(pp)where not x.dev_id='%s')and all(x in nodes(pp) where not x.dev_id='%s')
return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",return dev.dev_id AS DeviceID,labels(dev)AS DeviceLabel,dev.feederIdAS FeederID,dev.classId AS ClassID,dev.buro AS Buro,dev.subBuro AS SubBur,dev.trans_id AS TransformerID,dev.fromDev AS fromDevID",
MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),
path=shortestpath((dev_start)-[*]-(dev_end))path=shortestpath((dev_start)-[*]-(dev_end))
WHERE apoc.coll.duplicates(nodes(path))=[]WHERE apoc.coll.duplicates(nodes(path))=[]
RETURN length(path)AS PathLengthRETURN length(path) AS PathLength
MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),MATCH(dev_start{dev_id:'%s'}),(dev_end{dev_id:'%s'}),
path=shortestpath((dev_start)-[*]-(dev_end))path=shortestpath((dev_start)-[*]-(dev_end))
WHERE apoc.coll.duplicates(nodes(path))=[]WHERE apoc.coll.duplicates(nodes(path))=[]
WITH pathWITH path
MATCH(dev)MATCH(dev)
WHERE dev IN nodes(path)WHERE dev IN nodes(path)
AND(dev:%s OR dev:%s OR dev:%s)AND(dev:%s OR dev:%s OR dev:%s)
AND NOT dev.dev_id='%s'AND NOT dev.dev_id='%s'
RETURN dev.dev_id AS DeviceIDRETURN dev.dev_id AS DeviceID
(5)对变压器召测返回结果进行分析,剔除变压器白名单中的召测结果不予分析,剩下的变压器返回结果综合分析为无电后,进入召测回溯算法,召测回溯算法由Java语言编写,重新回看上一轮召测的延迟返回信号,如果分析结果依然为无电,则进入下一阶段搜索,寻找下一个线路区段的变压器并召测。(5) Analyze the return results of the transformer recall test, exclude the test recall results in the transformer white list and do not analyze them, and enter the recall test backtracking algorithm after the comprehensive analysis of the remaining transformer return results is no power, and the recall test backtracking algorithm is implemented by Java Write in language, look back at the delayed return signal of the last round of recall test, if the analysis result is still no power, then enter the next stage of search, find the transformer in the next line section and call for test.
(6)当召测返回信号分析结果或者召测回溯算法返回的延迟信号分析结果为有电时,则停止继续向上游变电站搜索,然后通过neo4j构建的图谱结构,修改或合并停电区域,最终返回目前搜索到的所有停电变压器和其他线路设备。最终结果参见图2。(6) When the signal analysis result returned by the recall test or the delayed signal analysis result returned by the recall test backtracking algorithm is that there is power, stop searching for the upstream substation, and then modify or merge the blackout area through the graph structure constructed by neo4j, and finally return All outage transformers and other line equipment currently searched. See Figure 2 for the final result.
从上述计算过程可知,一种基于知识图谱与停电大数据分析的停电故障研判方法,可以快速、准确、自动化的找到当前停电事件的所有相关停电设备,节约人力资源排查线路,加快故障修复,提高电网服务质量。From the above calculation process, it can be seen that a power outage fault research method based on knowledge graph and power outage big data analysis can quickly, accurately and automatically find all relevant power outage equipment in the current outage event, save human resources to check lines, speed up fault repair, and improve Grid service quality.
应当理解的是,本发明的上述具体实施方式仅仅用于示例性说明或解释本发明的原理,而不构成对本发明的限制。因此,在不偏离本发明的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。此外,本发明所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principle of the present invention, and not to limit the present invention. Therefore, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention shall fall within the protection scope of the present invention. Furthermore, it is intended that the appended claims of the present invention embrace all changes and modifications that come within the scope and metesques of the appended claims, or equivalents of such scope and metes and bounds.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211296410.6A CN115829031A (en) | 2022-10-21 | 2022-10-21 | A power outage fault research and judgment method based on knowledge graph and power outage big data analysis |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211296410.6A CN115829031A (en) | 2022-10-21 | 2022-10-21 | A power outage fault research and judgment method based on knowledge graph and power outage big data analysis |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115829031A true CN115829031A (en) | 2023-03-21 |
Family
ID=85525219
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211296410.6A Pending CN115829031A (en) | 2022-10-21 | 2022-10-21 | A power outage fault research and judgment method based on knowledge graph and power outage big data analysis |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115829031A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170075953A1 (en) * | 2015-09-11 | 2017-03-16 | Google Inc. | Handling failures in processing natural language queries |
| CN108594076A (en) * | 2018-04-28 | 2018-09-28 | 国网安徽省电力公司 | A kind of power distribution network power-off fault analysis method |
| WO2021056197A1 (en) * | 2019-09-24 | 2021-04-01 | 西门子(中国)有限公司 | Root cause analysis method and apparatus, electronic device, medium and program product |
| CN112612902A (en) * | 2020-12-23 | 2021-04-06 | 国网浙江省电力有限公司电力科学研究院 | Knowledge graph construction method and device for power grid main device |
| CN113189451A (en) * | 2021-05-28 | 2021-07-30 | 云南电网有限责任公司昆明供电局 | Power distribution network fault positioning studying and judging method, system, computer equipment and storage medium |
| CN113420162A (en) * | 2021-06-24 | 2021-09-21 | 国网天津市电力公司 | Equipment operation chain state monitoring method based on knowledge graph |
-
2022
- 2022-10-21 CN CN202211296410.6A patent/CN115829031A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170075953A1 (en) * | 2015-09-11 | 2017-03-16 | Google Inc. | Handling failures in processing natural language queries |
| CN108594076A (en) * | 2018-04-28 | 2018-09-28 | 国网安徽省电力公司 | A kind of power distribution network power-off fault analysis method |
| WO2021056197A1 (en) * | 2019-09-24 | 2021-04-01 | 西门子(中国)有限公司 | Root cause analysis method and apparatus, electronic device, medium and program product |
| CN112612902A (en) * | 2020-12-23 | 2021-04-06 | 国网浙江省电力有限公司电力科学研究院 | Knowledge graph construction method and device for power grid main device |
| CN113189451A (en) * | 2021-05-28 | 2021-07-30 | 云南电网有限责任公司昆明供电局 | Power distribution network fault positioning studying and judging method, system, computer equipment and storage medium |
| CN113420162A (en) * | 2021-06-24 | 2021-09-21 | 国网天津市电力公司 | Equipment operation chain state monitoring method based on knowledge graph |
Non-Patent Citations (1)
| Title |
|---|
| 乔骥;王新迎;闵睿;白淑华;姚冬;蒲天骄;: "面向电网调度故障处理的知识图谱框架与关键技术初探", 中国电机工程学报, no. 18, 18 April 2020 (2020-04-18), pages 135 - 147 * |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11740275B2 (en) | Method for intelligent fault detection and location of power distribution network | |
| CN108334691B (en) | Visual automatic drawing method for power distribution network | |
| CN111650921A (en) | A method and system for fault diagnosis of smart grid regulation and control system equipment | |
| CN106771883A (en) | A kind of multi-source information distribution fault localization method and system based on cloud | |
| CN103675600A (en) | A power distribution network fault diagnosis system based on topology knowledge and a method | |
| CN107657019B (en) | Network topology acquisition method and system for power grid system | |
| CN106908690A (en) | Distributed intelligence warning system and its method for diagnosing faults between boss station | |
| CN110556920A (en) | A distribution automation monitoring method, system, terminal and storage medium | |
| CN111931318A (en) | Power supply path analysis method and system based on graph calculation | |
| CN112162174B (en) | Station area fault positioning method and system based on marketing and distribution integration | |
| CN102497027B (en) | Automatic modeling method of digital fault recorder | |
| CN115912359B (en) | Digital potential safety hazard identification, investigation and treatment method based on big data | |
| CN116632826A (en) | Method, device, electronic equipment and storage medium for problem solving in distribution network | |
| CN108683187A (en) | A kind of EMS grid monitoring systems based on big data | |
| CN109449928A (en) | A kind of transforming plant primary equipment breakdown judge and processing decision system and its method | |
| CN111880046A (en) | Device and method for quickly identifying line fault reason | |
| CN106646110A (en) | Low-voltage distribution network fault positioning system based on GIS and Petri technologies | |
| CN115345466A (en) | Power distribution network online evaluation system based on network frame topology and multi-source data fusion | |
| CN112485593B (en) | An intelligent diagnosis method for distribution network problems based on big data | |
| CN106981876A (en) | Distribution network reliability evaluation method based on line segment model | |
| CN115829031A (en) | A power outage fault research and judgment method based on knowledge graph and power outage big data analysis | |
| CN110633268A (en) | Configuration system and configuration method of distribution line automatic switch relay protection level difference | |
| CN115549040A (en) | Automatic fault diagnosis method and system for flexible direct current converter station | |
| CN104749493B (en) | Grid fault equipment analyzing and reasoning method based on rule tree | |
| CN117131123A (en) | A panoramic situation awareness system for important power users and a method for displaying power supply paths |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |