CN113220903B - Power accident visual analysis system and method based on knowledge graph - Google Patents
Power accident visual analysis system and method based on knowledge graph Download PDFInfo
- Publication number
- CN113220903B CN113220903B CN202110546698.7A CN202110546698A CN113220903B CN 113220903 B CN113220903 B CN 113220903B CN 202110546698 A CN202110546698 A CN 202110546698A CN 113220903 B CN113220903 B CN 113220903B
- Authority
- CN
- China
- Prior art keywords
- node
- result
- preprocessing
- layer
- power
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/36—Creation of semantic tools, e.g. ontology or thesauri
- G06F16/367—Ontology
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/20—Administration of product repair or maintenance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Tourism & Hospitality (AREA)
- Databases & Information Systems (AREA)
- Marketing (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Entrepreneurship & Innovation (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Public Health (AREA)
- Animal Behavior & Ethology (AREA)
- Computational Linguistics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Water Supply & Treatment (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
Description
技术领域technical field
本申请涉及电力技术领域,尤其涉及一种基于知识图谱的电力事故可视化分析系统及方法。The present application relates to the field of electric power technology, in particular to a system and method for visual analysis of power accidents based on knowledge graphs.
背景技术Background technique
每年我国都会发生多起电力事故案件,给电网公司和国家都会带来许多人力和经济上的损失,为了减少这些损失,减少电力事故案件的发生,需要对每一次的电力事故案件进行详细的分析和溯源,找出事故产生的源头以及事故的主要责任人,从而为以后的电力安全生产提供经验教训,促进电力生产安全发展,同时能够警醒电力工人谨慎作业。Every year, there are many power accident cases in our country, which will bring a lot of human and economic losses to the power grid company and the country. In order to reduce these losses and reduce the occurrence of power accident cases, it is necessary to conduct a detailed analysis of each power accident case And trace the source, find out the source of the accident and the main person responsible for the accident, so as to provide experience and lessons for future electric power safety production, promote the safe development of electric power production, and at the same time be able to alert electric workers to work carefully.
目前,在电力技术领域,仍然以传统文字的方式记录电力事故案件情况,形成文本数据并进行分析,由于这种方式不利于对电力事故案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备。At present, in the field of electric power technology, the situation of electric accident cases is still recorded in traditional text, and text data is formed and analyzed. Since this method is not conducive to the correlation analysis and causal relationship mining of electric accident cases, it is difficult to Help people to accurately find out the main responsible person or the main responsible power equipment for the occurrence of electric accidents.
因此,本文提出了一种基于知识图谱的电力事故可视化分析系统及方法,用于解决由于以传统文字的方式记录电力事故案件情况不利于对电力事故案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备。Therefore, this paper proposes a visual analysis system and method for electric accidents based on knowledge graphs, which is used to solve the problem that the traditional text recording of electric accident cases is not conducive to the analysis of the relevance of electric accident cases and the mining of causality. Therefore, it is difficult to help people accurately find out the main responsible person or the main responsible power equipment for the occurrence of electric accident cases.
发明内容Contents of the invention
为了解决由于以传统文字的方式记录电力事故案件情况不利于对案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,本申请通过以下各个实施例公开了一种基于知识图谱的电力事故可视化分析系统及方法。In order to solve the problem of recording power accident cases in traditional text, it is not conducive to the correlation analysis and causal relationship mining of the cases, so it is difficult to help people accurately find out the main responsible person or the main responsible power equipment for the electric accident case. Problem, this application discloses a system and method for visual analysis of power accidents based on knowledge graphs through the following embodiments.
本申请第一方面公开了一种基于知识图谱的电力事故可视化分析系统,包括:依次相互连接的知识图谱层、数据访问层、业务逻辑层及界面交互层;The first aspect of the present application discloses a visual analysis system for power accidents based on a knowledge map, including: a knowledge map layer, a data access layer, a business logic layer, and an interface interaction layer that are sequentially connected to each other;
所述知识图谱层,用于获取电力事故事件的文本数据,对所述文本数据进行第一预处理,并根据所述第一预处理的结果,构建图数据库,所述第一预处理包括数据采集、知识抽取及知识更新,所述图数据库包括知识图谱,所述知识图谱包括节点及关系,所述节点包括与所述电力事故事件相关的作业人员、与所述电力事故事件相关的事件及与所述电力事故事件相关的电力设备,所述关系为任一所述节点与其他所述节点之间的关系;The knowledge map layer is used to obtain text data of electric accident events, perform first preprocessing on the text data, and construct a graph database according to the result of the first preprocessing, and the first preprocessing includes data Acquisition, knowledge extraction, and knowledge update, the graph database includes a knowledge map, and the knowledge map includes nodes and relationships, and the nodes include operators related to the power accident event, events related to the power accident event, and For electrical equipment related to the electrical accident event, the relationship is the relationship between any of the nodes and other nodes;
所述界面交互层,用于获取用户的数据请求,并将所述数据请求通过所述业务逻辑层发送至所述数据访问层;The interface interaction layer is used to obtain a user's data request, and send the data request to the data access layer through the business logic layer;
所述数据访问层,用于根据所述数据请求,对所述图数据库中的所述节点及所述关系进行第二预处理,并将所述第二预处理的结果向所述业务逻辑层反馈,所述第二预处理包括增加、删除、修改、查询;The data access layer is configured to perform a second preprocessing on the nodes and the relationships in the graph database according to the data request, and send the result of the second preprocessing to the business logic layer Feedback, the second preprocessing includes adding, deleting, modifying, querying;
所述业务逻辑层包括:The business logic layer includes:
模式切换模块,用于根据所述数据请求及所述第二预处理的结果,进行责任人视图模式及电力设备视图模式之间的切换,所述责任人视图模式用于展现每个所述作业人员在所述电力事故事件中的操作及所述各操作之间的联系,所述电力设备视图模式用于展现每个所述电力设备在所述电力事故事件中产生的问题及所述问题与所述电力事故事件之间的联系;A mode switching module, configured to switch between the view mode of the person in charge and the view mode of electric equipment according to the data request and the result of the second preprocessing, and the view mode of the person in charge is used to display each of the tasks The operations of personnel in the power accident event and the links between the operations, the power equipment view mode is used to display the problems generated by each of the power equipment in the power accident event and the problems and the connection between the electrical accident events;
节点编辑模块,用于根据所述数据请求,对所述第二预处理的结果进行节点编辑,并将节点编辑结果通过所述数据访问层发送至所述图数据库中进行存储,所述节点编辑包括增加节点、删除节点及更新节点属性;A node editing module, configured to perform node editing on the result of the second preprocessing according to the data request, and send the node editing result to the graph database through the data access layer for storage, and the node editing Including adding nodes, deleting nodes and updating node attributes;
关系编辑模块,用于根据所述数据请求,对所述第二预处理的结果进行关系编辑,并将关系编辑结果通过所述数据访问层发送至所述图数据库中进行存储,所述关系编辑包括增加关系、删除关系及更新关系属性;A relationship editing module, configured to perform relationship editing on the result of the second preprocessing according to the data request, and send the relationship editing result to the graph database through the data access layer for storage, and the relationship editing Including adding relationship, deleting relationship and updating relationship attributes;
辅助分析模块,用于根据所述数据请求及所述第二预处理的结果,对所述电力事故事件的过程进行分析,并获取所述每个节点对所述电力事故事件的影响力,其中,影响力最大的节点即为所述电力事故事件的主要责任人或主要责任电力设备;An auxiliary analysis module, configured to analyze the process of the power accident event according to the data request and the second preprocessing result, and obtain the influence of each node on the power accident event, wherein , the node with the greatest influence is the main responsible person or the main responsible power equipment for the power accident event;
所述界面交互层,还用于获取所述业务逻辑层的处理结果,并根据所述数据请求,将所述处理结果进行可视化展示,所述处理结果包括所述模式切换模块的切换结果、所述节点编辑模块的所述节点编辑的结果、所述关系编辑模块的所述关系编辑的结果或所述辅助分析模块的分析结果。The interface interaction layer is also used to obtain the processing result of the business logic layer, and to visually display the processing result according to the data request, the processing result includes the switching result of the mode switching module, the The node editing result of the node editing module, the relationship editing result of the relationship editing module, or the analysis result of the auxiliary analysis module.
可选的,还包括服务器;Optionally, a server is also included;
所述服务器与所述数据访问层连接,用于对所述第二预处理的结果进行备份,实现数据共享。The server is connected to the data access layer, and is used for backing up the result of the second preprocessing to realize data sharing.
可选的,所述界面交互层,根据所述数据请求,将所述辅助分析模块的分析结果进行可视化展示时,影响力越大的节点的可视化半径越大。Optionally, when the interface interaction layer visually displays the analysis results of the auxiliary analysis module according to the data request, the nodes with greater influence have a larger visualization radius.
本申请第二方面公开了一种基于知识图谱的电力事故可视化分析方法,所述一种基于知识图谱的电力事故可视化分析方法应用于本申请第一方面所述的一种基于知识图谱的电力事故可视化分析系统中,包括:The second aspect of the present application discloses a knowledge map-based power accident visualization analysis method, which is applied to the knowledge map-based power accident analysis method described in the first aspect of the present application In the visual analysis system, including:
获取电力事故事件的文本数据,对所述文本数据进行第一预处理,并根据所述第一预处理的结果,构建图数据库,所述第一预处理包括数据采集、知识抽取及知识更新,所述图数据库包括知识图谱,所述知识图谱包括节点及关系,所述节点包括与所述电力事故事件相关的作业人员、与所述电力事故事件相关的事件及与所述电力事故事件相关的电力设备,所述关系为任一所述节点与其他所述节点之间的关系;Acquiring the text data of the power accident event, performing a first preprocessing on the text data, and constructing a graph database according to the result of the first preprocessing, the first preprocessing includes data collection, knowledge extraction and knowledge updating, The graph database includes a knowledge graph, the knowledge graph includes nodes and relationships, and the nodes include operators related to the power accident event, events related to the power accident event, and For electric equipment, the relationship is the relationship between any of the nodes and other nodes;
获取用户的数据请求,并将所述数据请求通过业务逻辑层发送至数据访问层;Obtain the user's data request, and send the data request to the data access layer through the business logic layer;
根据所述数据请求,对所述图数据库中的所述节点及所述关系进行第二预处理,并将所述第二预处理的结果向所述业务逻辑层反馈,所述第二预处理包括增加、删除、修改、查询;According to the data request, perform a second preprocessing on the nodes and the relationships in the graph database, and feed back the result of the second preprocessing to the business logic layer, the second preprocessing Including adding, deleting, modifying, querying;
根据所述数据请求及所述第二预处理的结果,进行责任人视图模式及电力设备视图模式之间的切换,并获取切换结果,所述责任人视图模式用于展现每个所述作业人员在所述电力事故事件中的操作及所述各操作之间的联系,所述电力设备视图模式用于展现每个所述电力设备在所述电力事故事件中产生的问题及所述问题与所述电力事故事件之间的联系;According to the data request and the result of the second preprocessing, switch between the person in charge view mode and the electric equipment view mode, and obtain the switching result, and the person in charge view mode is used to display each of the operators The operation in the electric accident event and the connection between the operations, the electric equipment view mode is used to display the problems of each electric equipment in the electric accident event and the relationship between the problems and the The connection between the above-mentioned electrical accident events;
根据所述数据请求,对所述第二预处理的结果进行节点编辑,并将节点编辑结果通过所述数据访问层发送至知识图谱层的所述图数据库中进行存储,所述节点编辑包括增加节点、删除节点及更新节点属性;According to the data request, node editing is performed on the result of the second preprocessing, and the node editing result is sent to the graph database of the knowledge map layer through the data access layer for storage, and the node editing includes adding Node, delete node and update node attributes;
根据所述数据请求,对所述第二预处理的结果进行关系编辑,并将关系编辑结果通过所述数据访问层发送至所述知识图谱层的所述图数据库中进行存储,所述关系编辑包括增加关系、删除关系及更新关系属性;According to the data request, perform relation editing on the result of the second preprocessing, and send the relation editing result to the graph database of the knowledge map layer through the data access layer for storage, the relation editing Including adding relationship, deleting relationship and updating relationship attributes;
根据所述数据请求及所述第二预处理的结果,对所述电力事故事件的过程进行分析,并获取所述每个节点对所述电力事故事件的影响力,所述影响力最大的节点即为所述电力事故事件的主要责任人或主要责任电力设备;According to the data request and the result of the second preprocessing, analyze the process of the power accident event, and obtain the influence of each node on the power accident event, the node with the greatest influence That is, the main responsible person or the main responsible electrical equipment for the said electrical accident;
根据所述数据请求,将所述切换结果、所述节点编辑的结果、所述关系编辑的结果或对所述电力事故事件的过程的分析结果通过界面交互层进行可视化展示。According to the data request, the switching result, the node editing result, the relationship editing result or the analysis result of the electric accident event process are visually displayed through the interface interaction layer.
可选的,所述知识图谱层采用知识平台的众包构建的方式进行构建。Optionally, the knowledge graph layer is constructed by means of crowdsourcing construction of the knowledge platform.
可选的,在所述根据所述数据请求,对所述图数据库中的所述节点及所述关系进行第二预处理,并将所述第二预处理的结果向所述业务逻辑层反馈之后,还包括:Optionally, performing a second preprocessing on the nodes and the relationships in the graph database according to the data request, and feeding back the result of the second preprocessing to the business logic layer After that, also include:
对所述第二预处理的结果进行备份,实现数据共享。The result of the second preprocessing is backed up to realize data sharing.
可选的,所述界面交互层的界面开发通过JavaScript编程语言实现。Optionally, the interface development of the interface interaction layer is realized by JavaScript programming language.
可选的,根据所述数据请求,将所述电力事故事件的过程的分析结果进行可视化展示时,影响力越大的节点的可视化半径越大。Optionally, according to the data request, when visually displaying the analysis results of the process of the electric accident event, nodes with greater influence have a larger visualization radius.
可选的,通过如下公式获取任一所述节点对所述电力事故事件的影响力:Optionally, the influence of any node on the power accident event is obtained by the following formula:
其中,x表示任一节点,PR(x)表示任一节点x的网页排名值,PR(x)越大,所述任一节点x的影响力越大,β为介于0到1之间的阻尼系数,表示从任一节点x到下一个节点的随机概率,Ai(i=1,2,3,...,n)表示指向任一节点x的第i个节点,C(Ai)为节点Ai向外指向节点的数目,E(x)为衰退因子,表示对应节点集合的某一向量。Among them, x represents any node, PR(x) represents the page ranking value of any node x, the larger the PR(x), the greater the influence of any node x, and β is between 0 and 1 The damping coefficient of , represents the random probability from any node x to the next node, Ai(i=1, 2, 3,...,n) represents the i-th node pointing to any node x, C(Ai) is the number of nodes pointing outward from node Ai, and E(x) is the decay factor, representing a certain vector corresponding to the set of nodes.
本申请公开了一种基于知识图谱的电力事故可视化分析系统及方法,包括:依次相互连接的知识图谱层、数据访问层、业务逻辑层及界面交互层;首先,知识图谱层对电力事故事件的文本数据进行第一预处理,并根据处理结果构建图数据库;界面交互层获取用户的数据请求,并发送至数据访问层;接着,数据访问层根据数据请求,对图数据库进行第二预处理,并将处理结果向业务逻辑层反馈,所述业务逻辑层包括:模式切换模块,节点编辑模块,关系编辑模块及辅助分析模块,分别用于根据用户请求及第二预处理的结果,进行模式切换,节点和关系的编辑,以及对事件过程进行分析,确定所述电力事故事件的主要责任人或主要责任电力设备;最后,界面交互层根据用户请求将所述业务逻辑层的处理结果进行可视化展示。This application discloses a system and method for visual analysis of power accidents based on knowledge graphs, including: a knowledge graph layer, a data access layer, a business logic layer, and an interface interaction layer that are sequentially connected to each other; The text data is first preprocessed, and a graph database is built according to the processing results; the interface interaction layer obtains the user's data request and sends it to the data access layer; then, the data access layer performs the second preprocessing on the graph database according to the data request, And the processing result is fed back to the business logic layer, and the business logic layer includes: a mode switching module, a node editing module, a relationship editing module and an auxiliary analysis module, which are respectively used to switch modes according to user requests and the results of the second preprocessing , edit nodes and relationships, and analyze the event process to determine the main responsible person or the main responsible power equipment for the power accident event; finally, the interface interaction layer visually displays the processing results of the business logic layer according to user requests .
利用上述一种用于试验光伏电站中压块承载力的装置解决了由于以传统文字的方式记录电力事故案件情况不利于对案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,通过帮助电网公司分析以往的电力事故案件发生原因及事件中各实体之间的关联关系及影响因子有助于帮助电网公司进行事件责任认定,同时警醒业务人员,减少电力生产事故的发生,并且通过引入知识图谱技术优化了传统的可视化技术,使可视化的内容更易于人们理解。Using the above-mentioned device for testing the bearing capacity of briquetting blocks in photovoltaic power plants solves the problem that it is difficult to help people accurately because it is not conducive to the analysis of the relevance of the cases and the excavation of the causal relationship to record the power accident cases in the traditional text way. Find out the main responsible person or the main responsible power equipment problem in the occurrence of electric accident cases, and help the power grid company to analyze the causes of power accident cases in the past and the relationship and influencing factors among the entities in the event. Responsibility for the event is identified, while alerting business personnel, reducing the occurrence of power production accidents, and optimizing the traditional visualization technology by introducing knowledge graph technology, making the visualized content easier for people to understand.
附图说明Description of drawings
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solution of the present application more clearly, the accompanying drawings that need to be used in the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, on the premise of not paying creative work, there are also Additional figures can be derived from these figures.
图1为本申请实施例提供的一种基于知识图谱的电力事故可视化分析系统的结构示意图;FIG. 1 is a schematic structural diagram of a knowledge map-based power accident visualization analysis system provided by an embodiment of the present application;
图2为本申请实施例提供的一种基于知识图谱的电力事故可视化分析方法的工作流程示意图;FIG. 2 is a schematic workflow diagram of a knowledge map-based power accident visualization analysis method provided by an embodiment of the present application;
图3为本申请实施例提供的一种基于知识图谱的电力事故可视化分析方法的模式切换流程示意图;FIG. 3 is a schematic diagram of a mode switching process of a knowledge graph-based power accident visualization analysis method provided by an embodiment of the present application;
图4为本申请实施例提供的一种基于知识图谱的电力事故可视化分析方法的节点编辑流程示意图;FIG. 4 is a schematic diagram of the node editing process of a knowledge map-based power accident visualization analysis method provided by the embodiment of the present application;
图5为本申请实施例提供的一种基于知识图谱的电力事故可视化分析方法的关系编辑流程示意图。FIG. 5 is a schematic diagram of a relationship editing process of a knowledge graph-based power accident visualization analysis method provided by an embodiment of the present application.
具体实施方式Detailed ways
为了解决由于以传统文字的方式记录电力事故案件情况不利于对案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,本申请通过以下各个实施例公开了一种基于知识图谱的电力事故可视化分析系统及方法。In order to solve the problem of recording power accident cases in traditional text, it is not conducive to the correlation analysis and causal relationship mining of the cases, so it is difficult to help people accurately find out the main responsible person or the main responsible power equipment for the electric accident case. Problem, this application discloses a system and method for visual analysis of power accidents based on knowledge graphs through the following embodiments.
本申请第一实施例公开了一种基于知识图谱的电力事故可视化分析系统,参见图1所示的结构示意图,包括:依次相互连接的知识图谱层、数据访问层、业务逻辑层及界面交互层。The first embodiment of the present application discloses a visual analysis system for power accidents based on knowledge graphs, referring to the structural diagram shown in Figure 1, which includes: a knowledge graph layer, a data access layer, a business logic layer, and an interface interaction layer that are sequentially connected to each other .
具体的,本申请的系统采用四层架构,每层的功能采用模块式交互,减少了层与层之间的依赖,这使得系统结构明确,系统扩展性、独立性更强,便于开发人员进行开发与维护。四层架构从上往下依次是界面交互层,业务逻辑层,数据访问层,知识图谱层。Specifically, the system of this application adopts a four-layer architecture, and the functions of each layer adopt modular interaction, which reduces the dependence between layers, which makes the system structure clear, the system scalability and independence are stronger, and it is convenient for developers to carry out Development and maintenance. The four-layer architecture is the interface interaction layer, business logic layer, data access layer, and knowledge graph layer from top to bottom.
所述知识图谱层,用于获取电力事故事件的文本数据,对所述文本数据进行第一预处理,并根据所述第一预处理的结果,构建图数据库,所述第一预处理包括数据采集、知识抽取及知识更新,所述图数据库包括知识图谱,所述知识图谱包括节点及关系,所述节点包括与所述电力事故事件相关的作业人员、与所述电力事故事件相关的事件及与所述电力事故事件相关的电力设备,所述关系为任一所述节点与其他所述节点之间的关系。The knowledge map layer is used to obtain text data of electric accident events, perform first preprocessing on the text data, and construct a graph database according to the result of the first preprocessing, and the first preprocessing includes data Acquisition, knowledge extraction, and knowledge update, the graph database includes a knowledge map, and the knowledge map includes nodes and relationships, and the nodes include operators related to the power accident event, events related to the power accident event, and For the electrical equipment related to the electrical accident event, the relationship is the relationship between any of the nodes and other nodes.
具体的,所示知识图谱层为所示数据访问层提供数据存储与语义查询匹配,同时提供基于知识图谱的推理,帮助理清事件脉络。所述知识图谱的构建采用知识平台众包构建的方式进行构建,众包是一种新型的外包模型,它将一群松散的任务发包方和任务完成者联系起来,实现任务发包,匹配,完成和付款等一系列操作,相对于传统外包,众包在经费开销,时间与灵活性等方面表现更佳。知识图谱由节点(实体)和边(关系)组成,最终将构建好的知识图谱存入到图数据库中,所述图数据库采用一种高性能的Neo4j图形数据库,基于知识图谱的推理,帮助理清事件脉络,更能帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,进行责任追究。Specifically, the knowledge graph layer shown provides data storage and semantic query matching for the data access layer shown, and at the same time provides reasoning based on knowledge graphs to help clarify the context of events. The construction of the knowledge graph is carried out by means of knowledge platform crowdsourcing. Crowdsourcing is a new type of outsourcing model, which connects a group of loose task senders and task finishers to realize task contracting, matching, completion and Compared with traditional outsourcing, crowdsourcing performs better in terms of expenses, time and flexibility. The knowledge graph is composed of nodes (entities) and edges (relationships). Finally, the constructed knowledge graph is stored in the graph database. The graph database uses a high-performance Neo4j graph database, based on the reasoning of the knowledge graph, to help the Clearing the context of the incident can help people accurately find out the main responsible person or the main responsible power equipment problem in the electric accident case, and carry out accountability.
所述界面交互层,用于获取用户的数据请求,并将所述数据请求通过所述业务逻辑层发送至所述数据访问层。The interface interaction layer is used to obtain the user's data request, and send the data request to the data access layer through the business logic layer.
具体的,所述界面交互层直接与用户进行交互,主要功能为理解用户的操作,将接收的数据请求发给所述业务逻辑层,同时将处理结果反馈到所述界面交互层,所述界面交互层不涉及逻辑判断等操作,通过浏览器访问网站得以实现主要功能。界面开发主要使用当前最流行的JavaScript编程语言,运用JavaScript编程语言操作文档对象模型(DOM)向超文本标记(HTML)网页增加交互功能。JavaScript编程语言作为轻量级即时编译型编程语言,具有可移植跨平台等特点,在大多数浏览器下都可以运行。使用极快瑞(JQuery)优化超文本标记(HTML)文档操作,事件处理与动画设计,极快瑞(JQuery)允许异步JavaScript和XML(AJAX)在后台加载数据并将其显示在全球广域网或万维网(web)页面上,无需重新加载整个页面,使用极快瑞(JQuery)有利于减少代码量进行敏捷开发。Specifically, the interface interaction layer directly interacts with the user, and its main function is to understand the user's operation, send the received data request to the business logic layer, and feed back the processing result to the interface interaction layer. The interaction layer does not involve logical judgment and other operations, and the main functions can be realized by visiting the website through a browser. Interface development mainly uses the most popular JavaScript programming language at present, and uses JavaScript programming language to manipulate the Document Object Model (DOM) to add interactive functions to hypertext markup (HTML) web pages. As a lightweight just-in-time compiled programming language, the JavaScript programming language has the characteristics of portability and cross-platform, and can run under most browsers. Use JQuery to optimize hypertext markup (HTML) document operations, event handling and animation design, JQuery allows asynchronous JavaScript and XML (AJAX) to load data in the background and display it on the global wide area network or World Wide Web On the (web) page, there is no need to reload the entire page, and using JQuery helps reduce the amount of code for agile development.
所述界面交互层使用前端渲染方式进行渲染,采用选择交互、过滤交互等技术并同时使用双层画布优化用户体验。使用的视觉通道主要有形状、颜色、方向、大小。颜色有多种,在可视化编辑页面中,作为示例,红色表示未选中的节点,绿色表示未选中的关系,亮蓝色表示节点或关系被选中,形状共3种,分别是直线、带箭头的直线、圆形。其中圆形表示节点,无向直线表示普通关系,有向直线表示因果关系。在节点影响力分析界面中,节点的半径从20px到60px不等。所述界面交互层的设计使得本申请在解决技术问题时,还兼顾着用户的使用体验,更进一步极高解决技术问题的效率。The interface interaction layer uses a front-end rendering method for rendering, adopts technologies such as selection interaction and filtering interaction, and simultaneously uses a double-layer canvas to optimize user experience. The visual channels used mainly include shape, color, direction, and size. There are many colors. In the visual editing page, as an example, red indicates unselected nodes, green indicates unselected relationships, and bright blue indicates nodes or relationships are selected. There are three types of shapes, namely straight lines and arrows Straight, circular. Among them, circles represent nodes, undirected straight lines represent general relations, and directed straight lines represent causal relations. In the node influence analysis interface, the radius of the node varies from 20px to 60px. The design of the interface interaction layer enables the present application to take into account the user experience when solving technical problems, further increasing the efficiency of solving technical problems.
所述数据访问层,用于根据所述数据请求,对所述图数据库中的所述节点及所述关系进行第二预处理,并将所述第二预处理的结果向所述业务逻辑层反馈,所述第二预处理包括增加、删除、修改、查询。The data access layer is configured to perform a second preprocessing on the nodes and the relationships in the graph database according to the data request, and send the result of the second preprocessing to the business logic layer Feedback, the second preprocessing includes adding, deleting, modifying, and querying.
进一步的,还包括服务器。Further, the server is also included.
所述服务器与所述数据访问层连接,用于对所述第二预处理的结果进行备份,实现数据共享。The server is connected to the data access layer, and is used for backing up the result of the second preprocessing to realize data sharing.
具体的,所述数据访问层主要用于连接服务器和图数据库,并直接对图数据库进行增加、删除、修改、查询等操作。数据访问层将处理结果直接向业务逻辑层反馈,同时也将业务逻辑层的计算结果存入图数据库。Specifically, the data access layer is mainly used to connect the server and the graph database, and directly perform operations such as adding, deleting, modifying, and querying the graph database. The data access layer directly feeds back the processing results to the business logic layer, and also stores the calculation results of the business logic layer into the graph database.
所述业务逻辑层包括:The business logic layer includes:
模式切换模块,用于根据所述数据请求及所述第二预处理的结果,进行责任人视图模式及电力设备视图模式之间的切换,所述责任人视图模式用于展现每个所述作业人员在所述电力事故事件中的操作及所述各操作之间的联系,所述电力设备视图模式用于展现每个所述电力设备在所述电力事故事件中产生的问题及所述问题与所述电力事故事件之间的联系。A mode switching module, configured to switch between the view mode of the person in charge and the view mode of electric equipment according to the data request and the result of the second preprocessing, and the view mode of the person in charge is used to display each of the tasks The operations of personnel in the power accident event and the links between the operations, the power equipment view mode is used to display the problems generated by each of the power equipment in the power accident event and the problems and The link between the electrical accident events.
具体的,所述业务逻辑层的四个模块之间相互独立,所述责任人视图模式,主要展现各作业人员在事件中的操作及其之间的联系,便于帮助电网公司进行事件责任人认定,所述所述电力设备视图模式,主要展现各电力设备在事件中产生的问题以及对事件因果关系的影响,该模式有助于电网公司业务人员后续对电力设备进行质量评测。这种模式切换的设计使得视图更清晰,可视化展现更易于工作人员理解,如果各种关系杂糅在同一视图中,则不具有良好的可视化效果。参见图3所示的模式切换流程示意图,点击开始按钮,系统开始加载知识图谱层的图数据库中的节点及边,并判断当前类型是否为电力设备视图模式,如果是电力设备视图模式,则显示单向边,如果不是电力设备视图模式,则判断是否想要切换,如果不想要切换,则直接跨越到选择是否在前端显示,如果想要切换,则点击切换,遍历所有边,并选择是否在前端显示,如果选择在前端显示,则进行前端显示,并结束,如果不选择在前端显示,则进行前端隐藏,并结束。Specifically, the four modules of the business logic layer are independent of each other, and the person-in-charge view mode mainly shows the operation of each operator in the event and the relationship between them, so as to help the power grid company identify the person responsible for the event , the power equipment view mode mainly displays the problems of each power equipment in the event and the impact on the causality of the event, and this mode helps the business personnel of the power grid company to subsequently evaluate the quality of the power equipment. The design of this mode switching makes the view clearer, and the visual display is easier for the staff to understand. If various relationships are mixed in the same view, it will not have a good visual effect. Referring to the schematic diagram of the mode switching process shown in Figure 3, click the start button, the system starts to load the nodes and edges in the graph database of the knowledge map layer, and judges whether the current type is the power equipment view mode, and if it is the power equipment view mode, it will display One-way edge, if it is not in the power equipment view mode, judge whether you want to switch, if you don’t want to switch, directly jump to whether to display on the front end, if you want to switch, click switch, traverse all edges, and choose whether to Front-end display, if you choose to display at the front, then display at the front and end, if you do not choose to display at the front, hide at the front and end.
节点编辑模块,用于根据所述数据请求,对所述第二预处理的结果进行节点编辑,并将节点编辑结果通过所述数据访问层发送至所述图数据库中进行存储,所述节点编辑包括增加节点、删除节点及更新节点属性。A node editing module, configured to perform node editing on the result of the second preprocessing according to the data request, and send the node editing result to the graph database through the data access layer for storage, and the node editing Including adding nodes, deleting nodes and updating node attributes.
具体的,节点编辑模块主要有三个功能,即增加节点,删除节点,更新节点属性,一个节点表示事件中的一个实体(包括人,事件和设备等),由于事件的追溯分析过程是一个不断更新的过程,也许开始的情报带来的信息不是十分准确,所以需要修改节点和属性,通过添加节点,删除节点,节点更新等功能可以保持知识图谱的正确性,对数据进行不断的修改和更新,保持知识图谱的正确性与即时性,也保证了人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题。Specifically, the node editing module mainly has three functions, that is, adding nodes, deleting nodes, and updating node attributes. A node represents an entity in an event (including people, events, and equipment, etc.). Since the retrospective analysis process of an event is a continuous update In the process, the information brought by the initial intelligence may not be very accurate, so it is necessary to modify the nodes and attributes. By adding nodes, deleting nodes, and updating nodes, the correctness of the knowledge map can be maintained, and the data can be continuously modified and updated. Maintaining the correctness and immediacy of the knowledge map also ensures that people can accurately find out the main responsible person or the main responsible power equipment problem for the electric accident case.
节点的增加,删除与更新功能可以通过Neo4j图形数据库操作来实现,参见图4所示的节点编辑模块流程示意图,点击开始按钮,输入节点名称,判断该节点是否存在,如果该节点存在,则更新节点或者删除节点,生成删除更新操作Cypher语句,再在Neo4j图形数据库中进行相应操作,如果该节点不存在,则增加节点并生成创建操作Cypher语句,再在Neo4j图形数据库中进行相应操作,所述相应操作包括增加节点,删除节点,更新节点,最后,前端返回操作结果并结束。The functions of adding, deleting and updating nodes can be realized through the operation of Neo4j graph database. Refer to the flowchart of the node editing module shown in Figure 4, click the start button, enter the node name, and judge whether the node exists. If the node exists, update it. Node or delete a node, generate a delete update operation Cypher statement, and then perform corresponding operations in the Neo4j graph database, if the node does not exist, then add a node and generate a creation operation Cypher statement, and then perform corresponding operations in the Neo4j graph database, as described The corresponding operations include adding nodes, deleting nodes, and updating nodes. Finally, the front end returns the operation result and ends.
关系编辑模块,用于根据所述数据请求,对所述第二预处理的结果进行关系编辑,并将关系编辑结果通过所述数据访问层发送至所述图数据库中进行存储,所述关系编辑包括增加关系、删除关系及更新关系属性。A relationship editing module, configured to perform relationship editing on the result of the second preprocessing according to the data request, and send the relationship editing result to the graph database through the data access layer for storage, and the relationship editing Including adding relationship, deleting relationship and updating relationship attributes.
具体的,关系编辑模块主要有增加关系,删除关系,更新关系属性三个功能,主要用来编辑节点与节点之间的关系,通过使用neo4j图形数据库可以直接对知识图谱层的图数据库中的节点关系进行增加,删除,或更新关系属性,保持知识图谱的正确性与即时性。参见图5所示的关系编辑模块流程示意图,点击开始按钮,选中节点,获取节点及其关系信息,并进行创建关系、删除关系及更新关系,其中,对创建的关系进行判断,如果创建的关系为双边向,则为选中的节点在neo4j图形数据库中创建两条边,生成相应操作的Cypher语句操作neo4j图形数据库,如果创建的关系不为双边向,则为选中的节点在neo4j图形数据库中创建一条边,生成相应操作的Cypher语句操作neo4j图形数据库;接着,如果一条边则前端显示有向边并结束,如果量条边则前端显示无向边并结束,对删除的关系及更新的关系进行成删除或更新操作的Cypher语句操作neo4j图形数据库,前端显示操作结果并结束。Specifically, the relationship editing module mainly has three functions: adding relationships, deleting relationships, and updating relationship attributes. It is mainly used to edit the relationship between nodes. By using the neo4j graph database, you can directly edit the nodes in the graph database of the knowledge graph layer. The relationship is added, deleted, or the relationship attribute is updated to maintain the correctness and immediacy of the knowledge map. Referring to the flow diagram of the relationship editing module shown in Figure 5, click the start button, select the node, obtain the node and its relationship information, and create, delete, and update the relationship, wherein the created relationship is judged, if the created relationship If it is bidirectional, two edges will be created in the neo4j graph database for the selected node, and a Cypher statement for the corresponding operation will be generated to operate the neo4j graph database. If the created relationship is not bidirectional, it will be created in the neo4j graph database for the selected node One edge, generate the Cypher statement of the corresponding operation to operate the neo4j graph database; then, if there is an edge, the front end will display the directed edge and end, if the edge is measured, the front end will display the undirected edge and end, and the deleted relationship and the updated relationship will be checked The Cypher statement that completes the delete or update operation operates the neo4j graph database, and the front end displays the operation result and ends.
辅助分析模块,用于根据所述数据请求及所述第二预处理的结果,对所述电力事故事件的过程进行分析,并获取所述每个节点对所述电力事故事件的影响力,其中,影响力最大的节点即为所述电力事故事件的主要责任人或主要责任电力设备。An auxiliary analysis module, configured to analyze the process of the power accident event according to the data request and the second preprocessing result, and obtain the influence of each node on the power accident event, wherein , the node with the greatest influence is the main responsible person or the main responsible power equipment of the power accident event.
具体的,辅助分析模块主要是帮助人们进行电力事故整个事件过程进行分析,帮助人们发现影响力较大的环节(节点),从而进行责任人或设备厂商的主要责任认定。业务人员通过选择输入开始节点和终止节点,并以相邻节点的因果关系为权重,进行最短路径快速搜索。同时业务人员还能点击相应按钮对节点的影响力进行分析,按照影响力大小进行可视化展示,影响力大的节点其可视化半径越大。模块使用改进后的PageRank算法计算影响力大小,但如果某个节点只有指向它的关系,而没有从它指出的关系,使用PageRank算法容易出现沉淀现象,为了避免PageRank值出现沉淀现象,在原有公式加入了衰退因子进行改进,得到如下公式,并通过如下公式获取任一所述节点对所述电力事故事件的影响力:Specifically, the auxiliary analysis module is mainly to help people analyze the entire event process of power accidents, and help people find links (nodes) with greater influence, so as to determine the main responsibility of the responsible person or equipment manufacturer. Business personnel can quickly search for the shortest path by selecting the input start node and end node, and taking the causality of adjacent nodes as the weight. At the same time, business personnel can also click the corresponding button to analyze the influence of the node, and visualize it according to the degree of influence. The node with greater influence has a larger visualization radius. The module uses the improved PageRank algorithm to calculate the size of influence, but if a node only has a relationship pointing to it, but no relationship pointed out from it, the PageRank algorithm is prone to precipitation. In order to avoid the precipitation of the PageRank value, in the original formula The decay factor is added for improvement, and the following formula is obtained, and the influence of any node on the power accident event is obtained by the following formula:
其中,x表示任一节点,PR(x)表示任一节点x的网页排名值,PR(x)越大,所述任一节点x的影响力越大,β为介于0到1之间的阻尼系数,表示从任一节点x到下一个节点的随机概率,Ai(i=1,2,3,...,n)表示指向任一节点x的第i个节点,C(Ai)为节点Ai向外指向节点的数目,E(x)为衰退因子,表示对应节点集合的某一向量。Among them, x represents any node, PR(x) represents the page ranking value of any node x, the larger the PR(x), the greater the influence of any node x, and β is between 0 and 1 The damping coefficient of , represents the random probability from any node x to the next node, Ai(i=1, 2, 3,...,n) represents the i-th node pointing to any node x, C(Ai) is the number of nodes pointing outward from node Ai, and E(x) is the decay factor, representing a certain vector corresponding to the set of nodes.
为了使得上述算法得到可视化应用,本申请的系统会调用Neo4j图形数据库PageRank算法,返回不同节点的PR值,根据PR值的大小,在前端进行差异化呈现。当用户点击影响力分析按钮时,触发onPageRankClick事件,弹出单独的窗体同时调用showPageRank函数,将Cypher语句在neo4j图形数据库中运行,然后使用PageRank算法进行计算,返回所有节点的影响力分值,数值越大表明节点的影响力越大,然后选取节点的PR值最小值和最大值,如果两值相等则所有节点大小相等,表明所有节点影响力一样;两值不等,则将PR值差值映射到半径为20px到60px的区间,根据比例给每个节点设置半径大小,影响力越大节点越大。In order to enable the above algorithm to be applied visually, the system of this application will call the PageRank algorithm of the Neo4j graph database to return the PR values of different nodes, and perform differentiated presentations on the front end according to the PR values. When the user clicks the influence analysis button, the onPageRankClick event is triggered, a separate window pops up and the showPageRank function is called at the same time, the Cypher statement is run in the neo4j graph database, and then the PageRank algorithm is used for calculation, and the influence scores and values of all nodes are returned The larger the value, the greater the influence of the node, and then select the minimum and maximum values of the PR value of the node. If the two values are equal, all nodes are equal in size, indicating that the influence of all nodes is the same; if the two values are not equal, the difference between the PR values will be It is mapped to the interval with a radius of 20px to 60px, and the radius is set for each node according to the ratio. The greater the influence, the greater the node.
其中,调用PageRank算法关键代码如下:Among them, the key code for calling the PageRank algorithm is as follows:
String query="CALL algo.PageRank.stream(\n"+"\"MATCH(p)RETURN id(p)AS id\",\n"+"\"MATCH(p1)-[r]->(p2)RETURN id(p1)AS source,id(p2)AS target,r.weight as weight\",\n"+"{graph:\"Cypher\",weightProperty:\"weight\"})\n"+"YIELD node id,score\n"+String query="CALL algo.PageRank.stream(\n"+"\"MATCH(p)RETURN id(p)AS id\",\n"+"\"MATCH(p1)-[r]->( p2)RETURN id(p1)AS source,id(p2)AS target,r.weight as weight\",\n"+"{graph:\"Cypher\",weightProperty:\"weight\"})\n "+"YIELD node id,score\n"+
"RETURN algo.get Node By id(node id)AS node,score\n"+"ORDER BY scoreDESC\n"+"LIMIT10";"RETURN algo.get Node By id(node id)AS node,score\n"+"ORDER BY scoreDESC\n"+"LIMIT10";
所述界面交互层,还用于获取所述业务逻辑层的处理结果,并根据所述数据请求,将所述处理结果进行可视化展示,所述处理结果包括所述模式切换模块的切换结果、所述节点编辑模块的所述节点编辑的结果、所述关系编辑模块的所述关系编辑的结果或所述辅助分析模块的分析结果。The interface interaction layer is also used to obtain the processing result of the business logic layer, and to visually display the processing result according to the data request, the processing result includes the switching result of the mode switching module, the The node editing result of the node editing module, the relationship editing result of the relationship editing module, or the analysis result of the auxiliary analysis module.
本申请公开了一种基于知识图谱的电力事故可视化分析系统及方法,包括:依次相互连接的知识图谱层、数据访问层、业务逻辑层及界面交互层。首先,知识图谱层对电力事故事件的文本数据进行第一预处理,并根据处理结果构建图数据库。界面交互层获取用户的数据请求,并发送至数据访问层。接着,数据访问层根据数据请求,对图数据库进行第二预处理,并将处理结果向业务逻辑层反馈,所述业务逻辑层包括:模式切换模块,节点编辑模块,关系编辑模块及辅助分析模块,分别用于根据用户请求及第二预处理的结果,进行模式切换,节点和关系的编辑,以及对事件过程进行分析,确定所述电力事故事件的主要责任人或主要责任电力设备。最后,界面交互层根据用户请求将所述业务逻辑层的处理结果进行可视化展示。The present application discloses a system and method for visual analysis of power accidents based on knowledge graphs, including: a knowledge graph layer, a data access layer, a business logic layer, and an interface interaction layer that are sequentially connected to each other. First, the knowledge graph layer performs the first preprocessing on the text data of electric accident events, and builds a graph database according to the processing results. The interface interaction layer obtains the user's data request and sends it to the data access layer. Next, the data access layer performs second preprocessing on the graph database according to the data request, and feeds back the processing results to the business logic layer, which includes: a mode switching module, a node editing module, a relationship editing module and an auxiliary analysis module , which are respectively used for switching modes, editing nodes and relationships, and analyzing event processes according to user requests and the results of the second preprocessing, and determining the main responsible person or the main responsible electric equipment for the power accident event. Finally, the interface interaction layer visually displays the processing results of the business logic layer according to user requests.
利用上述一种用于试验光伏电站中压块承载力的装置解决了由于以传统文字的方式记录电力事故案件情况不利于对案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,通过帮助电网公司分析以往的电力事故案件发生原因及事件中各实体之间的关联关系及影响因子有助于帮助电网公司进行事件责任认定,同时警醒业务人员,减少电力生产事故的发生,并且通过引入知识图谱技术优化了传统的可视化技术,使可视化的内容更易于人们理解。Using the above-mentioned device for testing the bearing capacity of briquetting blocks in photovoltaic power plants solves the problem that it is difficult to help people accurately because it is not conducive to the analysis of the relevance of the cases and the excavation of the causal relationship to record the power accident cases in the traditional text way. Find out the main responsible person or the main responsible power equipment problem in the occurrence of electric accident cases, and help the power grid company to analyze the causes of power accident cases in the past and the relationship and influencing factors among the entities in the event. Responsibility for the event is identified, while alerting business personnel, reducing the occurrence of power production accidents, and optimizing the traditional visualization technology by introducing knowledge graph technology, making the visualized content easier for people to understand.
进一步的,所述界面交互层,根据所述数据请求,将所述辅助分析模块的分析结果进行可视化展示时,影响力越大的节点的可视化半径越大。Further, when the interface interaction layer visually displays the analysis result of the auxiliary analysis module according to the data request, the node with greater influence has a larger visualization radius.
下述为本申请公开的方法实施例,用于执行上述系统实施例,针对方法实施例中未披露的细节,请参照系统实施例。The following are method embodiments disclosed in this application, which are used to implement the above system embodiments. For details not disclosed in the method embodiments, please refer to the system embodiments.
本申请第二实施例公开了一种基于知识图谱的电力事故可视化分析方法,所述一种基于知识图谱的电力事故可视化分析方法应用于所述第一实施例公开的一种基于知识图谱的电力事故可视化分析系统中,参见图2所示的工作流程图,包括:The second embodiment of the present application discloses a knowledge graph-based power accident visualization analysis method, which is applied to the knowledge graph-based power accident analysis method disclosed in the first embodiment. In the accident visualization analysis system, see the work flow chart shown in Figure 2, including:
步骤S1、获取电力事故事件的文本数据,对所述文本数据进行第一预处理,并根据所述第一预处理的结果,构建图数据库,所述第一预处理包括数据采集、知识抽取及知识更新,所述图数据库包括知识图谱,所述知识图谱包括节点及关系,所述节点包括与所述电力事故事件相关的作业人员、与所述电力事故事件相关的事件及与所述电力事故事件相关的电力设备,所述关系为任一所述节点与其他所述节点之间的关系。Step S1. Obtain the text data of the power accident event, perform first preprocessing on the text data, and construct a graph database according to the result of the first preprocessing, the first preprocessing includes data collection, knowledge extraction and Knowledge update, the graph database includes a knowledge graph, the knowledge graph includes nodes and relationships, the nodes include operators related to the power accident event, events related to the power accident event, and For event-related electrical equipment, the relationship is the relationship between any of the nodes and other nodes.
进一步的,所述知识图谱层采用知识平台的众包构建的方式进行构建。Further, the knowledge graph layer is constructed by means of crowdsourcing construction of the knowledge platform.
具体的,步骤S1在知识图谱层中实现。Specifically, step S1 is implemented in the knowledge graph layer.
步骤S2、获取用户的数据请求,并将所述数据请求通过业务逻辑层发送至数据访问层。Step S2, obtaining the user's data request, and sending the data request to the data access layer through the business logic layer.
步骤S3、根据所述数据请求,对所述图数据库中的所述节点及所述关系进行第二预处理,并将所述第二预处理的结果向所述业务逻辑层反馈,所述第二预处理包括增加、删除、修改、查询。Step S3. According to the data request, perform a second preprocessing on the nodes and the relationships in the graph database, and feed back the result of the second preprocessing to the business logic layer. The first The second preprocessing includes adding, deleting, modifying and querying.
进一步的,在步骤S3之后,还包括:Further, after step S3, it also includes:
对所述第二预处理的结果进行备份,实现数据共享。The result of the second preprocessing is backed up to realize data sharing.
具体的,通过服务器对所述第二预处理的结果进行备份,实现数据共享。Specifically, the server backs up the result of the second preprocessing to realize data sharing.
步骤S4、根据所述数据请求及所述第二预处理的结果,进行责任人视图模式及电力设备视图模式之间的切换,并获取切换结果,所述责任人视图模式用于展现每个所述作业人员在所述电力事故事件中的操作及所述各操作之间的联系,所述电力设备视图模式用于展现每个所述电力设备在所述电力事故事件中产生的问题及所述问题与所述电力事故事件之间的联系。Step S4. According to the data request and the result of the second preprocessing, switch between the view mode of the person in charge and the view mode of the electric equipment, and obtain the switching result. The view mode of the person in charge is used to display the The operations of the workers in the power accident event and the links between the operations, the power equipment view mode is used to display the problems of each of the power equipment in the power accident event and the The link between the problem and the electrical accident event in question.
步骤S5、根据所述数据请求,对所述第二预处理的结果进行节点编辑,并将节点编辑结果通过所述数据访问层发送至知识图谱层的所述图数据库中进行存储,所述节点编辑包括增加节点、删除节点及更新节点属性。Step S5, according to the data request, perform node editing on the result of the second preprocessing, and send the node editing result to the graph database of the knowledge map layer through the data access layer for storage, and the node Editing includes adding nodes, deleting nodes and updating node attributes.
步骤S6、根据所述数据请求,对所述第二预处理的结果进行关系编辑,并将关系编辑结果通过所述数据访问层发送至所述知识图谱层的所述图数据库中进行存储,所述关系编辑包括增加关系、删除关系及更新关系属性。Step S6. According to the data request, perform relational editing on the result of the second preprocessing, and send the relational editing result to the graph database of the knowledge map layer through the data access layer for storage. The above relation editing includes adding relation, deleting relation and updating relation property.
步骤S7、根据所述数据请求及所述第二预处理的结果,对所述电力事故事件的过程进行分析,并获取所述每个节点对所述电力事故事件的影响力,所述影响力最大的节点即为所述电力事故事件的主要责任人或主要责任电力设备。Step S7, according to the data request and the result of the second preprocessing, analyze the process of the electric accident event, and obtain the influence of each node on the electric accident event, the influence The largest node is the main responsible person or the main responsible power equipment of the power accident event.
进一步的,根据所述数据请求,将所述电力事故事件的过程的分析结果进行可视化展示时,影响力越大的节点的可视化半径越大。Further, according to the data request, when the analysis result of the process of the electric accident event is visualized, the node with greater influence has a larger visualization radius.
进一步的,通过如下公式获取任一所述节点对所述电力事故事件的影响力:Further, the influence of any node on the power accident event is obtained by the following formula:
其中,x表示任一节点,PR(x)表示任一节点x的网页排名值,PR(x)越大,所述任一节点x的影响力越大,β为介于0到1之间的阻尼系数,表示从任一节点x到下一个节点的随机概率,Ai(i=1,2,3,...,n)表示指向任一节点x的第i个节点,C(Ai)为节点Ai向外指向节点的数目,E(x)为衰退因子,表示对应节点集合的某一向量。Among them, x represents any node, PR(x) represents the page ranking value of any node x, the larger the PR(x), the greater the influence of any node x, and β is between 0 and 1 The damping coefficient of , represents the random probability from any node x to the next node, Ai(i=1, 2, 3,...,n) represents the i-th node pointing to any node x, C(Ai) is the number of nodes pointing outward from node Ai, and E(x) is the decay factor, representing a certain vector corresponding to the set of nodes.
步骤S8、根据所述数据请求,将所述切换结果、所述节点编辑的结果、所述关系编辑的结果或对所述电力事故事件的过程的分析结果通过界面交互层进行可视化展示。Step S8, according to the data request, visually display the switching result, the node editing result, the relationship editing result or the analysis result of the electric accident event process through the interface interaction layer.
进一步的,所述界面交互层的界面开发通过JavaScript编程语言实现。Further, the interface development of the interface interaction layer is realized by JavaScript programming language.
本申请公开了一种基于知识图谱的电力事故可视化分析系统及方法,包括:依次相互连接的知识图谱层、数据访问层、业务逻辑层及界面交互层。首先,知识图谱层对电力事故事件的文本数据进行第一预处理,并根据处理结果构建图数据库。界面交互层获取用户的数据请求,并发送至数据访问层。接着,数据访问层根据数据请求,对图数据库进行第二预处理,并将处理结果向业务逻辑层反馈,所述业务逻辑层包括:模式切换模块,节点编辑模块,关系编辑模块及辅助分析模块,分别用于根据用户请求及第二预处理的结果,进行模式切换,节点和关系的编辑,以及对事件过程进行分析,确定所述电力事故事件的主要责任人或主要责任电力设备。最后,界面交互层根据用户请求将所述业务逻辑层的处理结果进行可视化展示。The present application discloses a system and method for visual analysis of power accidents based on knowledge graphs, including: a knowledge graph layer, a data access layer, a business logic layer, and an interface interaction layer that are sequentially connected to each other. First, the knowledge graph layer performs the first preprocessing on the text data of electric accident events, and builds a graph database according to the processing results. The interface interaction layer obtains the user's data request and sends it to the data access layer. Next, the data access layer performs second preprocessing on the graph database according to the data request, and feeds back the processing results to the business logic layer, which includes: a mode switching module, a node editing module, a relationship editing module and an auxiliary analysis module , which are respectively used for switching modes, editing nodes and relationships, and analyzing event processes according to user requests and the results of the second preprocessing, and determining the main responsible person or the main responsible electric equipment for the power accident event. Finally, the interface interaction layer visually displays the processing results of the business logic layer according to user requests.
利用上述一种用于试验光伏电站中压块承载力的装置解决了由于以传统文字的方式记录电力事故案件情况不利于对案件进行关联性的分析以及因果关系的挖掘,所以很难帮助人们准确的找出电力事故案件发生的主要责任人或主要责任电力设备问题,通过帮助电网公司分析以往的电力事故案件发生原因及事件中各实体之间的关联关系及影响因子有助于帮助电网公司进行事件责任认定,同时警醒业务人员,减少电力生产事故的发生,并且通过引入知识图谱技术优化了传统的可视化技术,使可视化的内容更易于人们理解。Using the above-mentioned device for testing the bearing capacity of briquetting blocks in photovoltaic power plants solves the problem that it is difficult to help people accurately because it is not conducive to the analysis of the relevance of the cases and the excavation of the causal relationship to record the power accident cases in the traditional text way. Find out the main responsible person or the main responsible power equipment problem in the occurrence of electric accident cases, and help the power grid company to analyze the causes of power accident cases in the past and the relationship and influencing factors among the entities in the event. Responsibility for the event is identified, while alerting business personnel, reducing the occurrence of power production accidents, and optimizing the traditional visualization technology by introducing knowledge graph technology, making the visualized content easier for people to understand.
以上结合具体实施方式和范例性实例对本申请进行了详细说明,不过这些说明并不能理解为对本申请的限制。本领域技术人员理解,在不偏离本申请精神和范围的情况下,可以对本申请技术方案及其实施方式进行多种等价替换、修饰或改进,这些均落入本申请的范围内。本申请的保护范围以所附权利要求为准。The present application has been described in detail above in conjunction with specific implementations and illustrative examples, but these descriptions should not be construed as limiting the present application. Those skilled in the art understand that without departing from the spirit and scope of the present application, various equivalent replacements, modifications or improvements can be made to the technical solutions and implementations of the present application, all of which fall within the scope of the present application. The scope of protection of the present application is subject to the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546698.7A CN113220903B (en) | 2021-05-19 | 2021-05-19 | Power accident visual analysis system and method based on knowledge graph |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110546698.7A CN113220903B (en) | 2021-05-19 | 2021-05-19 | Power accident visual analysis system and method based on knowledge graph |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113220903A CN113220903A (en) | 2021-08-06 |
CN113220903B true CN113220903B (en) | 2023-01-20 |
Family
ID=77093131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110546698.7A Active CN113220903B (en) | 2021-05-19 | 2021-05-19 | Power accident visual analysis system and method based on knowledge graph |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113220903B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114020927B (en) * | 2021-10-29 | 2025-09-09 | 深圳航天智慧城市系统技术研究院有限公司 | Application system and method for event tracing based on map data analysis |
CN114328977B (en) * | 2022-03-09 | 2022-07-01 | 北京有生博大软件股份有限公司 | Personnel migration map spectrum construction method based on map database |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955782A (en) * | 2019-11-15 | 2020-04-03 | 国网甘肃省电力公司 | Scheduling control knowledge representation method based on knowledge graph |
CN111339316A (en) * | 2020-02-27 | 2020-06-26 | 河海大学 | A method and system architecture for realizing visual editing and persistence of knowledge graph |
CN111898040A (en) * | 2020-07-20 | 2020-11-06 | 电子科技大学 | A method for evaluating the influence of users in circles combined with social networks |
CN111930784A (en) * | 2020-07-23 | 2020-11-13 | 南京南瑞信息通信科技有限公司 | Power grid knowledge graph construction method and system |
CN112182242A (en) * | 2020-09-27 | 2021-01-05 | 武汉大学 | Safety control knowledge graph construction method for whole process of electric power operation |
CN112597105A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | Processing method of file associated object, server side equipment and storage medium |
CN112632288A (en) * | 2020-12-15 | 2021-04-09 | 深圳供电局有限公司 | Power dispatching system and method based on knowledge graph |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10681061B2 (en) * | 2017-06-14 | 2020-06-09 | International Business Machines Corporation | Feedback-based prioritized cognitive analysis |
-
2021
- 2021-05-19 CN CN202110546698.7A patent/CN113220903B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110955782A (en) * | 2019-11-15 | 2020-04-03 | 国网甘肃省电力公司 | Scheduling control knowledge representation method based on knowledge graph |
CN111339316A (en) * | 2020-02-27 | 2020-06-26 | 河海大学 | A method and system architecture for realizing visual editing and persistence of knowledge graph |
CN111898040A (en) * | 2020-07-20 | 2020-11-06 | 电子科技大学 | A method for evaluating the influence of users in circles combined with social networks |
CN111930784A (en) * | 2020-07-23 | 2020-11-13 | 南京南瑞信息通信科技有限公司 | Power grid knowledge graph construction method and system |
CN112182242A (en) * | 2020-09-27 | 2021-01-05 | 武汉大学 | Safety control knowledge graph construction method for whole process of electric power operation |
CN112632288A (en) * | 2020-12-15 | 2021-04-09 | 深圳供电局有限公司 | Power dispatching system and method based on knowledge graph |
CN112597105A (en) * | 2020-12-26 | 2021-04-02 | 中国农业银行股份有限公司 | Processing method of file associated object, server side equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
航空安全事件知识图谱构建;王杰 等;《中国科技信息》;20200415(第08期);20200415 * |
面向故障分析的知识图谱构建技术研究;刘鑫;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20190815(第08期);20190815 * |
Also Published As
Publication number | Publication date |
---|---|
CN113220903A (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12050598B2 (en) | Dynamic dashboard with guided discovery | |
US8060391B2 (en) | Analogy based workflow identification | |
US9535893B2 (en) | System and method for computer visualization of project timelines | |
CN103714450A (en) | Natural language metric condition alerts generation | |
US20050203860A1 (en) | Product selection expert system | |
CN106294822A (en) | A kind of electric power data visualization system | |
CN113220903B (en) | Power accident visual analysis system and method based on knowledge graph | |
CN115271369A (en) | A method, system and storage medium for equipment information management based on knowledge graph | |
US12242537B2 (en) | Ontology-based time series visualization and analysis | |
CN110442620A (en) | A kind of big data is explored and cognitive approach, device, equipment and computer storage medium | |
CN118014072B (en) | Construction method and system of knowledge graph for hydraulic and hydroelectric engineering | |
CN116881476A (en) | Knowledge graph construction method, platform and computer storage medium | |
Sharbaf et al. | Conflict management techniques for model merging: a systematic mapping review | |
Barrenechea et al. | Getting the query right: User interface design of analysis platforms for crisis research | |
CN116303336A (en) | Data management method based on data braiding architecture | |
Risi et al. | CoDe modeling of graph composition for data warehouse report visualization | |
CN117610532A (en) | Report generation method and system, electronic equipment and storage medium | |
US20060224974A1 (en) | Method of creating graphical application interface with a browser | |
US20060224972A1 (en) | Graphical application interface with a browser | |
CN115269862A (en) | A power question answering and visualization system based on knowledge graph | |
US20060020608A1 (en) | Cube update tool | |
Dudycz | Visualization Methods in Business Intelligence Systems: an Overview | |
CN118586489A (en) | A knowledge graph construction method for production safety emergency management | |
US20150066985A1 (en) | Retrieving information from social media sites based upon events in an enterprise | |
Menin et al. | From linked data querying to visual search: towards a visualization pipeline for LOD exploration |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |