[go: up one dir, main page]

CN113792538B - Method and device for rapidly generating operation ticket of power distribution network - Google Patents

Method and device for rapidly generating operation ticket of power distribution network Download PDF

Info

Publication number
CN113792538B
CN113792538B CN202110994717.2A CN202110994717A CN113792538B CN 113792538 B CN113792538 B CN 113792538B CN 202110994717 A CN202110994717 A CN 202110994717A CN 113792538 B CN113792538 B CN 113792538B
Authority
CN
China
Prior art keywords
model
environment
distribution network
state matrix
input
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
Application number
CN202110994717.2A
Other languages
Chinese (zh)
Other versions
CN113792538A (en
Inventor
张瑞雪
马志斌
侯哲帆
卢丽胜
李慧
熊鹰
冷磊磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kedong Electric Power Control System Co Ltd
Original Assignee
Beijing Kedong Electric Power Control System Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kedong Electric Power Control System Co Ltd filed Critical Beijing Kedong Electric Power Control System Co Ltd
Priority to CN202110994717.2A priority Critical patent/CN113792538B/en
Publication of CN113792538A publication Critical patent/CN113792538A/en
Application granted granted Critical
Publication of CN113792538B publication Critical patent/CN113792538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/211Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Business, Economics & Management (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Biomedical Technology (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Primary Health Care (AREA)
  • Marketing (AREA)
  • Water Supply & Treatment (AREA)
  • Public Health (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • General Business, Economics & Management (AREA)
  • Biophysics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for rapidly generating operation tickets of a power distribution network. The method comprises the following steps: sequentially inputting a maintenance application form sentence text into a word segmentation model, a part-of-speech labeling model, a dependency syntax analysis model, a distribution network scheduling semantic role recognition model and a maintenance application form semantic recognition model, and outputting key information of operation tasks in different types of maintenance application forms; and converting the initial state and the termination state of the equipment in the key information into an environment initial state matrix and an environment termination state matrix, and then inputting the environment initial state matrix and the environment termination state matrix into a deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task. The invention can intelligently generate the dispatching instruction ticket, converts the artificial writing into automatic ticket forming of the system, releases the labor capacity of distribution network regulation personnel, and greatly saves ticket forming time.

Description

一种配电网操作票快速生成方法及装置A method and device for quickly generating a distribution network operation ticket

技术领域Technical Field

本发明涉及一种配电网操作票快速生成方法及装置,属于为配网调控管理领域。The invention relates to a method and a device for quickly generating a distribution network operation ticket, and belongs to the field of distribution network regulation and management.

背景技术Background technique

操作票是针对特定设备和特定操作任务、根据电网安全操作规程、按照规范的操作术语描述顺序倒换有关设备运行状态的操作指令集。An operation ticket is a set of operation instructions for switching the operating status of relevant equipment in a sequence described in standardized operation terms, in accordance with specific equipment and specific operation tasks, based on power grid safety operation procedures.

调度员在开具调度操作票时,首先打开检修申请单,核对对应的设备名称和运行状态,对检修申请单内容进行校对审核;然后分析检修申请单内容,提取操作任务;根据操作任务在调度管理系统中查找历史典型操作票,打开相关的线路图分析查看线路运行状态,根据对应的设备名称、拓扑关系结合历史典型票经验规则进行人工推理操作项;最后将操作项逐项人工填写生成操作票。When issuing a dispatch operation ticket, the dispatcher first opens the maintenance application form, checks the corresponding equipment name and operating status, and proofreads the content of the maintenance application form; then analyzes the content of the maintenance application form and extracts the operation task; according to the operation task, searches for historical typical operation tickets in the dispatch management system, opens the relevant line map to analyze and check the line operation status, and manually infers the operation items based on the corresponding equipment name, topological relationship and historical typical ticket experience rules; finally, manually fills in the operation items one by one to generate an operation ticket.

随着配网规模日益扩大,调控管理难度也不断加大。配网直接连接广大电力客户,如何提高供电可靠性,让千家万户“不停电、少停电”成为配网调控管理人员考虑的头等大事。当前配电网的接线方式越来越复杂,调度操作票的制定越来越频繁,调度员越来越难于掌控这日益复杂的配电网系统,配电网的安全稳定运行问题显得日益严峻。目前,操作票规则定制复杂,现有操作票管理系统不能实现在线实时开票,且开票过程中缺乏严格的校验。开票工作占据了调控业务的大量时间,需要缩短检修操作票生成时间,减少调度工作人员的任务量,提出一种新的操作票生成方法。As the scale of distribution networks continues to expand, the difficulty of regulation and management is also increasing. The distribution network is directly connected to a large number of electricity customers. How to improve the reliability of power supply and ensure that thousands of households have "no power outages or less power outages" has become the top priority for distribution network regulation and management personnel. The current wiring method of the distribution network is becoming more and more complicated, and the formulation of dispatching operation tickets is becoming more and more frequent. It is becoming increasingly difficult for dispatchers to control this increasingly complex distribution network system, and the problem of safe and stable operation of the distribution network is becoming increasingly severe. At present, the customization of operation ticket rules is complex, and the existing operation ticket management system cannot realize online real-time invoicing, and there is a lack of strict verification during the invoicing process. The invoicing work occupies a lot of time in the regulation business. It is necessary to shorten the time for generating maintenance operation tickets and reduce the workload of dispatching staff. A new method for generating operation tickets is proposed.

发明内容Summary of the invention

本发明的目的在于提供一种配电网操作票快速生成方法,以解决现有技术人工成票时操作繁琐、成票时间长的问题。The purpose of the present invention is to provide a method for quickly generating a distribution network operation ticket, so as to solve the problems of cumbersome operation and long ticket generation time in the prior art manual ticket generation.

为解决上述技术问题,本发明采用的技术方案如下:In order to solve the above technical problems, the technical solution adopted by the present invention is as follows:

一方面,本发明提供一种配电网操作票快速生成方法,包括:In one aspect, the present invention provides a method for quickly generating a distribution network operation ticket, comprising:

将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;Input the sentence text in the work content, maintenance ticket type, and power outage or power supply range columns in the maintenance application form into the conditional random field word segmentation model, and output the word list after word segmentation;

将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;Input the segmented word list into a conditional random field part-of-speech tagging model, and output a word list with part-of-speech tags;

将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;Input the word list marked with parts of speech into the dependency syntactic analysis model, and output a word list containing dependency relationships of each word;

将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;Input the word list containing the dependency relationships of each word into the distribution network scheduling semantic role recognition model, and output a word list marked with the distribution network scheduling semantic role attributes;

将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;Input the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and output the key information of the operation tasks in different types of maintenance application forms;

将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵;Converting the device initial state and final state in the key information into an environment initial state matrix and an environment final state matrix;

将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项。The environment initial state matrix and the environment terminal state matrix are input into a deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task.

进一步地,所述条件随机场分词模型使用拟牛顿算法训练,训练使用的语料包括:北京大学分词语料、ICWB2会议分词语料、MSR05分词语料、电力系统配电网调度的相关语料。Furthermore, the conditional random field word segmentation model is trained using a quasi-Newton algorithm, and the corpus used for training includes: Peking University word segmentation data, ICWB2 conference word segmentation data, MSR05 word segmentation data, and relevant corpus of power system distribution network scheduling.

进一步地,所述条件随机场词性标注模型采用维特比算法训练,词性标注的标准采用北京大学的《现代汉语语料库加工规范——词语切分与词性标注的标准》,采用粗颗粒度的标准划分词性。Furthermore, the conditional random field part-of-speech tagging model is trained using the Viterbi algorithm, and the standard for part-of-speech tagging adopts Peking University's "Modern Chinese Corpus Processing Standards - Standards for Word Segmentation and Part-of-Speech Tagging", which uses a coarse-grained standard to divide parts of speech.

进一步地,所述依存句法分析模型采用神经网络算法训练,训练使用的语料包括清华大学语义依存网络语料树库和电力系统配电网调度的相关语料,每一条语句按照CONLL格式进行标注,标注内容包括序号、词语、原型、粗粒度词性、细粒度词性、句法特征、中心词和依存关系。Furthermore, the dependency syntax analysis model is trained using a neural network algorithm, and the corpus used for training includes the semantic dependency network corpus tree library of Tsinghua University and relevant corpus of power system distribution network dispatching. Each sentence is annotated according to the CONLL format, and the annotation content includes serial number, word, prototype, coarse-grained part of speech, fine-grained part of speech, syntactic features, central word and dependency relationship.

进一步地,所述配网调度语义角色识别模型包括双向长短时记忆网络和与双向长短时记忆网络连接的条件随机场层,所述语义角色属性的标注方法为:根据各词语在配网调度初始词典中的位置进行one-hot编码,将该编码作为配网调度语义角色的标注。Furthermore, the distribution network scheduling semantic role recognition model includes a bidirectional long short-term memory network and a conditional random field layer connected to the bidirectional long short-term memory network. The labeling method of the semantic role attributes is: one-hot encoding is performed according to the position of each word in the distribution network scheduling initial dictionary, and the code is used as the label of the distribution network scheduling semantic role.

进一步地,所述将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息,具体包括:Furthermore, the word list marked with the distribution network scheduling semantic role attribute is input into the maintenance application form semantic recognition model, and the key information of the operation tasks in different types of maintenance application forms is output, specifically including:

在标注有配网调度语义角色属性的词语列表中,对操作类型的内容进行近义词搜索,确定检修申请单的类型;In the word list marked with the distribution network dispatching semantic role attribute, a synonym search is performed on the content of the operation type to determine the type of the maintenance application form;

根据检修申请单的类型,在标注有配网调度语义角色属性的词语列表中,提取厂站名、馈线名、操作涉及到的设备名称、设备状态名称;搜索依存关系中的介宾关系,在操作涉及到的设备名称中搜索得到停送电区间或操作区间的起始位置和终止位置设备名称、新设备启动/退出的设备名称以及设备操作前后的状态名称;搜索依存关系中的并列关系,将包含并列关系的语句分成多个短句,得到检修申请单操作任务的关键信息。According to the type of maintenance application form, the plant name, feeder name, equipment name involved in the operation, and equipment status name are extracted from the word list marked with the distribution network scheduling semantic role attribute; the prepositional object relationship in the dependency relationship is searched, and the equipment names involved in the operation are searched to obtain the equipment names of the starting and ending positions of the power outage section or the operation section, the equipment names of the new equipment started/exited, and the status names before and after the equipment operation; the parallel relationship in the dependency relationship is searched, and the sentences containing the parallel relationship are divided into multiple short sentences to obtain the key information of the maintenance application form operation task.

进一步地,所述将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵,具体包括:Furthermore, the converting of the device initial state and the terminal state in the key information into an environment initial state matrix and an environment terminal state matrix specifically includes:

根据所述关键信息中的设备ID,调取环网拓扑结构,将所述关键信息中的设备起始状态和终止状态与所述环网拓扑结构相结合,得到环境初始状态矩阵和环境终止状态矩阵。According to the device ID in the key information, the ring network topology is retrieved, and the device initial state and terminal state in the key information are combined with the ring network topology to obtain an environment initial state matrix and an environment terminal state matrix.

进一步地,所述将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项,具体包括:Furthermore, the environment initial state matrix and the environment termination state matrix are input into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task, specifically including:

将所述环境初始状态矩阵输入深度学习推理网络模型,模型输出第一步操作项状态,对比输入的环境初始状态矩阵与输出的第一步操作项状态的变化,得到第一步操作项;将所述第一步操作项状态继续输入深度学习推理网络模型,输出得到第二步操作项状态,对比输入的第一步操作项状态与输出的第二步操作项状态的变化,得到第二步操作项;依次类推,直至模型输出的操作项状态与所述环境终止状态矩阵相同,得到所述操作任务对应的所有有序操作项。The initial state matrix of the environment is input into the deep learning reasoning network model, and the model outputs the state of the first step operation item. The changes of the input initial state matrix of the environment and the output state of the first step operation item are compared to obtain the first step operation item; the first step operation item state is continued to be input into the deep learning reasoning network model, and the second step operation item state is output. The changes of the input first step operation item state and the output second step operation item state are compared to obtain the second step operation item; and so on, until the operation item state output by the model is the same as the environment termination state matrix, and all ordered operation items corresponding to the operation task are obtained.

进一步地,前述的一种配电网操作票快速生成方法,在得到每一步操作项之后,还包括:对得到的操作项进行防误校验,若校验成功,则将模型输出的操作项终状态继续输入深度学习推理网络模型中以输出下一步的操作项终状态,若校验不成功,则恢复前一步的操作项终状态并将其重新输入深度学习推理网络模型进行推理。Furthermore, the aforementioned method for quickly generating distribution network operation tickets, after obtaining each operation item, also includes: performing anti-error verification on the obtained operation item; if the verification is successful, the final state of the operation item output by the model is continued to be input into the deep learning reasoning network model to output the final state of the operation item for the next step; if the verification is unsuccessful, the final state of the operation item for the previous step is restored and re-input into the deep learning reasoning network model for reasoning.

进一步地,所述深度学习推理网络模型采用深度确定性策略梯度算法训练,所述深度学习推理网络模型的训练方法包括:Furthermore, the deep learning reasoning network model is trained using a deep deterministic policy gradient algorithm, and the training method of the deep learning reasoning network model includes:

获取多张历史操作票;Get multiple historical operation tickets;

对每一张历史操作票,根据其包含的设备ID调取环网拓扑结构;For each historical operation ticket, retrieve the ring network topology structure according to the device ID contained in it;

基于环网拓扑结构,将每一张历史操作票对应的设备初始状态和终止状态转换为环境初始状态矩阵X0和环境终止状态矩阵XeBased on the ring network topology, the initial state and final state of the equipment corresponding to each historical operation ticket are converted into the environment initial state matrix X 0 and the environment final state matrix X e ;

将每一张历史操作票对应的环境初始状态矩阵X0、所有操作项的状态X1、X2、…、XT,其中T为操作项的个数,分别输入深度学习推理网络模型,模型依次输出变量1、变量2…变量T,以变量1与第一步操作项状态X1相同、变量2与第二步操作项状态X2相同、…、变量T与环境终止状态矩阵Xe相同为目标,训练所述深度学习推理网络模型。The initial state matrix X0 of the environment corresponding to each historical operation ticket, the states X1 , X2 , ..., XT of all operation items, where T is the number of operation items, are respectively input into the deep learning reasoning network model, and the model sequentially outputs variable 1, variable 2, ..., variable T. The deep learning reasoning network model is trained with the goal that variable 1 is the same as the state X1 of the first step operation item, variable 2 is the same as the state X2 of the second step operation item, ..., variable T is the same as the environment termination state matrix Xe.

进一步地,环境状态矩阵的转换方法包括:Furthermore, the conversion method of the environment state matrix includes:

对于单馈线树形网络,假设其包含n个单端设备和m个双端设备,将单端设备的状态用n×1的矩阵S表示:For a single feeder tree network, assuming it contains n single-ended devices and m double-ended devices, the state of the single-ended device is represented by an n×1 matrix S:

S=[x1 x2 x3…xn]T S=[x 1 x 2 x 3 …x n ] T

式中:x1表示第一个单端设备的状态,取值0、1、2或3,0代表“运行”,1代表“热备用”,2代表“冷备用”,3代表“检修”;Where: x 1 represents the status of the first single-ended device, and takes the value 0, 1, 2, or 3, where 0 represents "operation", 1 represents "hot standby", 2 represents "cold standby", and 3 represents "maintenance";

将双端设备的状态用1×m的矩阵D表示:The state of the two-terminal device is represented by a 1×m matrix D:

D=[e1 e2 e3…em]D=[e 1 e 2 e 3 …e m ]

式中,e1表示第一个双端设备的状态,取值0、1、2或3,0代表“运行”,1代表“热备用”,2代表“冷备用”,3代表“检修”;Where, e 1 represents the state of the first two-terminal device, and takes the value 0, 1, 2, or 3, where 0 represents "operation", 1 represents "hot standby", 2 represents "cold standby", and 3 represents "maintenance";

根据环网拓扑结构,将矩阵S和矩阵D进行关联,得到环境状态矩阵K:According to the ring network topology, the matrix S and the matrix D are associated to obtain the environmental state matrix K:

式中:行代表单端设备,列代表双端设备,k1,1代表第一个双端设备和第一个单端设备之间的关系,k1,1取值1、0、-1,其中1代表第一个单端设备是第一个双端设备的首端,-1代表第一个单端设备是第一个双端设备的末端,0代表没有关联。Where: the row represents a single-ended device, the column represents a two-ended device, k 1,1 represents the relationship between the first two-ended device and the first single-ended device, and k 1,1 takes the values of 1, 0, and -1, where 1 represents that the first single-ended device is the head end of the first two-ended device, -1 represents that the first single-ended device is the end end of the first two-ended device, and 0 represents no association.

另一方面,本发明提供一种配电网操作票快速生成装置,包括:In another aspect, the present invention provides a device for quickly generating a distribution network operation ticket, comprising:

分词模块,配置为将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;The word segmentation module is configured to input the sentence text in the work content, maintenance ticket type, and power outage or power supply range column in the maintenance application form into the conditional random field word segmentation model, and output a word list after word segmentation;

词性标注模块,配置为将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;A part-of-speech tagging module is configured to input the segmented word list into a conditional random field part-of-speech tagging model and output a word list tagged with part-of-speech;

依存句法分析模块,配置为将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;A dependency syntactic analysis module, configured to input the word list marked with parts of speech into a dependency syntactic analysis model, and output a word list containing dependency relationships of each word;

语义角色识别模块,配置为将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;A semantic role identification module, configured to input the word list containing the dependency relationship of each word into the distribution network scheduling semantic role identification model, and output a word list marked with the distribution network scheduling semantic role attribute;

语义识别模块,配置为将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;A semantic recognition module, configured to input the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and output key information of the operation tasks in different types of maintenance application forms;

预处理模块,配置为将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵;A preprocessing module, configured to convert the device initial state and the terminal state in the key information into an environment initial state matrix and an environment terminal state matrix;

推理模块,配置为将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项。The reasoning module is configured to input the environment initial state matrix and the environment terminal state matrix into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task.

本发明所达到的有益技术效果:(1)采用自然语言处理技术,对检修申请单和任务术语的文本进行语义解析,释放配网调控人员劳动能力,同时实现操作票和申请单的关联;(2)结合图模数据智能生成调度指令票,将人工拟写转化为系统自动成票,大幅节约了拟票工作时间。The beneficial technical effects achieved by the present invention are as follows: (1) Natural language processing technology is used to perform semantic analysis on the text of maintenance application forms and task terms, thereby releasing the labor capacity of distribution network control personnel and realizing the association between operation tickets and application forms; (2) Dispatch instruction tickets are intelligently generated in combination with graphic model data, and manual drafting is converted into system-automated tickets, which greatly saves the work time of drafting tickets.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明实施例中的一种配电网操作票快速生成方法流程示意图;FIG1 is a schematic flow chart of a method for quickly generating a distribution network operation ticket according to an embodiment of the present invention;

图2为检修申请单示例图;Figure 2 is a sample diagram of a maintenance application form;

图3为拓扑结构示例图。Figure 3 is a diagram showing an example of a topological structure.

具体实施方式Detailed ways

下面结合具体实施例对本发明作进一步描述。以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention will be further described below in conjunction with specific examples. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention.

如前所述,调度员在开具调度操作票时,需要人工操作生成操作票,但是人工成票操作繁琐、成票时间长。As mentioned above, when the dispatcher issues a dispatch operation ticket, it is necessary to manually generate the operation ticket, but the manual ticket generation operation is cumbersome and takes a long time.

为此,本发明实施例提供了一种配电网操作票快速生成方法,如图1所示,该方法包括以下步骤:To this end, an embodiment of the present invention provides a method for quickly generating a distribution network operation ticket. As shown in FIG1 , the method includes the following steps:

步骤11,将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;首先,采用拟牛顿算法训练条件随机场分词模型。Step 11, input the sentence text in the work content, maintenance ticket type, and power outage or power supply range columns in the maintenance application form into the conditional random field word segmentation model, and output the word list after word segmentation; first, use the quasi-Newton algorithm to train the conditional random field word segmentation model.

分词模型使用通用语料,包括:“北京大学分词语料”、“ICWB2会议分词语料”、“MSR05(微软研究院)分词语料”。The word segmentation model uses common corpora, including: "Peking University word segmentation data", "ICWB2 conference word segmentation data", and "MSR05 (Microsoft Research) word segmentation data".

此外,搜集电力系统配电网调度的相关语料,例如试点单位的历史检修申请单中的检修内容和当地电力公司的配电网调控运行手册和规程的内容,也将其作为训练分词模型使用的语料。In addition, relevant corpus of power system distribution network dispatching is collected, such as the maintenance content in the historical maintenance application form of the pilot unit and the distribution network control operation manual and regulations of the local power company, and it is also used as corpus for training the word segmentation model.

使用BMSE四结构词位标注法对所述通用语料和电力系统配电网调度的相关语料进行中文分词标注,即B代表词的开头,E代表词的结尾,M代表词的中间,S代表单独成词的字。The BMSE four-structure word position tagging method is used to perform Chinese word segmentation tagging on the general corpus and the relevant corpus of power system distribution network scheduling, that is, B represents the beginning of the word, E represents the end of the word, M represents the middle of the word, and S represents a separate word.

将标注好的通用语料和电力系统配电网调度的相关语料输入分词模型中进行训练,保存训练之后的模型文件。The annotated general corpus and the relevant corpus of power system distribution network dispatching are input into the word segmentation model for training, and the trained model file is saved.

然后,使用训练好的分词模型进行分词时,将检修申请单语句文本输入模型,输出分词后的词语列表。Then, when using the trained word segmentation model for word segmentation, the maintenance application sentence text is input into the model and a word list after word segmentation is output.

步骤12,将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;Step 12, inputting the segmented word list into a conditional random field part-of-speech tagging model, and outputting a word list with part-of-speech tags;

首先,采用维特比算法训练条件随机场词性标注模型。Firstly, the Viterbi algorithm is used to train the conditional random field part-of-speech tagging model.

词性标注的语料与分词部分的语料内容一致,包括通用语料和电力系统配电网调度相关语料,同时需在分词语料的基础上添加词性的标注。The content of the corpus for part-of-speech tagging is consistent with that of the corpus for word segmentation, including general corpus and corpus related to power system distribution network dispatching. At the same time, part-of-speech tagging needs to be added based on the word segmentation corpus.

词性标注的标准采用北京大学的《现代汉语语料库加工规范——词语切分与词性标注的标准》,采用粗颗粒度的标准划分词性。The standard for part-of-speech tagging adopts Peking University's "Modern Chinese Corpus Processing Standards - Standards for Word Segmentation and Part-of-Speech Tagging", which uses a coarse-grained standard to divide parts of speech.

将标注好的语料输入词性标注模型中进行训练,保存训练之后的模型文件。Input the annotated corpus into the part-of-speech tagging model for training and save the trained model file.

然后,使用训练好的词性标注模型进行词性标注时,将分词后的检修申请单的语句输入词性标注模型,输出带有词性的词语列表。Then, when using the trained part-of-speech tagging model for part-of-speech tagging, the sentence of the maintenance application form after word segmentation is input into the part-of-speech tagging model, and a list of words with parts of speech is output.

步骤13,将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;Step 13, inputting the word list marked with parts of speech into the dependency syntactic analysis model, and outputting a word list containing dependency relationships of each word;

首先,采用神经网络算法训练依存句法分析模型。Firstly, a neural network algorithm is used to train the dependency parsing model.

依存句法分析的通用语料为清华大学语义依存网络语料树库。同时收集试点单位的历史检修申请单和电力系统配电网调度相关材料中的语句内容。The common corpus for dependency syntactic analysis is the semantic dependency network corpus tree library of Tsinghua University. At the same time, the sentence contents in the historical maintenance application forms of the pilot units and the materials related to the power system distribution network dispatching are collected.

将语料中的每一条语句按照CONLL格式进行标注,标注内容包括序号、词语、原型(中文词语=原型)、粗粒度词性、细粒度词性、句法特征、中心词(中心词在句中的序号)和依存关系,由于词性标注的训练过程中已经对粗颗粒度的词性做了标注,CONLL格式中的粗粒度词性和细粒度词性都与词性标注训练过程中语料的词性保持一致。Each sentence in the corpus is annotated according to the CONLL format. The annotation content includes serial number, word, prototype (Chinese word = prototype), coarse-grained part of speech, fine-grained part of speech, syntactic features, central word (the serial number of the central word in the sentence) and dependency relationship. Since the coarse-grained part of speech has been annotated during the part-of-speech tagging training process, the coarse-grained part of speech and fine-grained part of speech in the CONLL format are consistent with the part of speech of the corpus during the part-of-speech tagging training process.

将标注好的通用依存句法语料和电力系统配电网调度相关的依存句法语料输入依存句法分析模型中进行训练,保存训练之后的模型文件。The annotated general dependency sentence data and the dependency sentence data related to the power system distribution network dispatching are input into the dependency syntax analysis model for training, and the trained model file is saved.

训练好后,可以使用依存句法分析模型进行依存句法分析,将语句中带有词性的词语列表输入依存句法分析模型,得到本语句中各词语的依存关系,输出格式为CONLL格式。After training, you can use the dependency syntactic analysis model to perform dependency syntactic analysis. Input the word list with parts of speech in the sentence into the dependency syntactic analysis model to obtain the dependency relationship of each word in the sentence. The output format is CONLL format.

步骤14,将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;Step 14, inputting the word list containing the dependency relationships of each word into a distribution network scheduling semantic role recognition model, and outputting a word list marked with distribution network scheduling semantic role attributes;

配网调度语义角色识别模型采用BiLSTM-CRF模型,包括双向长短时记忆网络(BiLSTM)层和与其连接的条件随机场(CRF)层。BiLSTM层预测每个词语单元语义角色的标签分数,CRF层对预测的标签添加序列约束,以提高模型识别的准确性。The distribution network scheduling semantic role recognition model adopts the BiLSTM-CRF model, which includes a bidirectional long short-term memory network (BiLSTM) layer and a conditional random field (CRF) layer connected to it. The BiLSTM layer predicts the label score of the semantic role of each word unit, and the CRF layer adds sequence constraints to the predicted labels to improve the accuracy of model recognition.

首先,对BiLSTM-CRF模型进行训练。First, the BiLSTM-CRF model is trained.

以步骤13的CONLL格式的依存句法分析的语料为基础,添加各词语的检修申请单语义角色的标注。其中,语义角色包括:厂站名、馈线名、操作涉及到的设备名称,设备状态名称,操作类型(例如停电、送电)等信息。Based on the corpus of the dependency syntax analysis in the CONLL format in step 13, add the annotation of the semantic role of the maintenance application form for each word. The semantic role includes: plant name, feeder name, equipment name involved in the operation, equipment status name, operation type (such as power outage, power supply) and other information.

在一具体实施例中,根据各词语在调度初始词典中的位置进行one-hot编码,此编码作为配网调度语义角色的标注。In a specific embodiment, one-hot encoding is performed on each word according to its position in the initial scheduling dictionary, and the encoding serves as a label for the semantic role of the distribution network scheduling.

将添加标注之后的语料输入BiLSTM-CRF模型进行训练,训练完成之后保存模型文件。Input the annotated corpus into the BiLSTM-CRF model for training, and save the model file after training is completed.

训练好后,可以使用BiLSTM-CRF模型进行配网调度语义角色识别,输入CONLL格式的语句,BiLSTM层预测每个词语语义角色的标签分数,BiLSTM层预测的所有分数输入CRF层,在CRF层中将每个词语单元所有语义角色中最高的标签分值作为这个词的语义角色。After training, the BiLSTM-CRF model can be used to identify semantic roles for distribution network scheduling. A sentence in CONLL format is input, and the BiLSTM layer predicts the label score of each word semantic role. All scores predicted by the BiLSTM layer are input into the CRF layer. In the CRF layer, the highest label score among all semantic roles of each word unit is used as the semantic role of the word.

步骤15,将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;Step 15, inputting the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and outputting the key information of the operation tasks in different types of maintenance application forms;

检修申请单语句经过分词、词性标注、依存句法分析和配网调度语义角色识别之后,以上述分析输出结果为基础,按照不同的检修申请单类别识别关键信息,最终完成检修申请单语义解析。After the maintenance application form sentences have been segmented, POS-tagged, parsed for dependency syntax, and identified for distribution network dispatching semantic roles, the key information is identified based on the output results of the above analysis according to different maintenance application form categories, and finally the semantic parsing of the maintenance application form is completed.

首先,对检修申请单中操作类型一栏中的内容进行近义词搜索,将检修申请单分成“停电类”、“送电类”、“方式调整类”、“新设备启动/退出类”四种类型,然后根据上述分析结果,从四种类型的检修申请单语句中提取关键信息:First, we searched for synonyms in the operation type column of the maintenance application form and divided the maintenance application forms into four types: "power outage", "power supply", "mode adjustment", and "new equipment startup/shutdown". Then, based on the above analysis results, we extracted key information from the four types of maintenance application statements:

a)停电类检修申请单需要提取的关键信息包括:厂站名、馈线名、操作类型、停电区间起始位置设备名、停电区间终止位置设备名、操作前起始状态、操作后终止状态。a) The key information that needs to be extracted from the power outage maintenance application form includes: plant name, feeder name, operation type, equipment name at the start position of the power outage section, equipment name at the end position of the power outage section, starting state before operation, and ending state after operation.

b)送电类检修申请单需要提取的关键信息包括:厂站名、馈线名、操作类型、送电区间起始位置设备名、送电区间终止位置设备名、操作前起始状态、操作后终止状态。b) The key information that needs to be extracted from the power transmission maintenance application form includes: plant name, feeder name, operation type, equipment name at the starting position of the power transmission section, equipment name at the ending position of the power transmission section, starting status before operation, and ending status after operation.

c)方式调整类检修申请单需要提取的关键信息包括:厂站名、馈线名、方式调整类型、操作区间起始位置设备名、操作区间终止位置设备名、操作前起始状态、操作后终止状态。c) The key information that needs to be extracted from the mode adjustment maintenance application form includes: plant name, feeder name, mode adjustment type, equipment name at the starting position of the operation interval, equipment name at the ending position of the operation interval, starting state before operation, and ending state after operation.

d)新设备启动/退出类检修申请单需要提取的关键信息包括:厂站名,馈线名,启动/退出设备名,操作类型。d) The key information that needs to be extracted from the new equipment startup/shutdown maintenance application form includes: plant name, feeder name, startup/shutdown equipment name, and operation type.

经过上述步骤11-14之后,每条检修申请单语句都完成了分词,并且每个词语都包含了词性标注、依存句法分析、检修申请单语义角色标注的结果,包含这些结果的语句作为检修申请单语义识别的输入。After the above steps 11-14, each maintenance application form sentence has completed word segmentation, and each word contains the results of part-of-speech tagging, dependency syntax analysis, and maintenance application form semantic role tagging. The sentence containing these results serves as the input for maintenance application form semantic recognition.

因此,该步骤具体可以包括:Therefore, this step may specifically include:

步骤151,对语义角色标注的结果中的操作类型进行近义词搜索,确定检修申请单的类型;Step 151, performing a synonym search on the operation type in the result of semantic role labeling to determine the type of the maintenance application form;

步骤152,根据检修申请单的类型提取检修申请单操作任务的关键信息。Step 152: extract key information of the maintenance application form operation task according to the type of the maintenance application form.

首先,在语义角色标注的结果中,提取厂站名、馈线名、操作涉及到的设备名称、设备状态名称等信息;First, from the results of semantic role labeling, extract information such as plant name, feeder name, device name involved in the operation, and device status name;

然后,搜索依存关系中的介宾关系,在操作涉及到的设备名称中搜索得到停送电区间或操作区间的起始位置和终止位置设备名称、新设备启动/退出的设备名称以及设备操作前后的状态名称;Then, search for the preposition-object relationship in the dependency relationship, and search the names of the equipment involved in the operation to obtain the names of the starting and ending equipment of the power outage interval or the operation interval, the names of the equipment started/exited by the new equipment, and the names of the status of the equipment before and after the operation;

最后,搜索依存关系中的并列关系,将包含并列关系的语句分成多个短句,完成检修申请单语句关键信息的提取。Finally, the parallel relationship in the dependency relationship is searched, and the sentences containing the parallel relationship are divided into multiple short sentences to complete the extraction of key information of the maintenance application sentence.

当试点单位的检修申请单规程发生变化时,可以根据实际情况修改关键信息提取规则。When the maintenance application form procedures of the pilot unit change, the key information extraction rules can be modified according to the actual situation.

检修申请单语义解析最后的输出为包含语句中的关键信息列表,如{“厂站名”:杜岗站,“馈线名”:壮岗线,“操作类型”:检修,“操作区间起始位置设备名”:#47杆跌落式熔断器,“操作区间终止位置设备名”:末端线路,“操作前起始状态”:运行,“操作后终止状态”:检修}。The final output of the semantic parsing of the maintenance application form is a list of key information in the sentence, such as {"plant station name": Dugang Station, "feeder line name": Zhuanggang Line, "operation type": maintenance, "operation interval starting position equipment name": #47 pole drop-out fuse, "operation interval ending position equipment name": terminal line, "starting state before operation": operation, "ending state after operation": maintenance}.

此外,检修申请单中除了“工作内容”之外的信息为结构化的表格形式,可根据试点单位的实际情况直接提取,如:调令类型、操作目的、开工时间、竣工时间、检修票申请单ID等信息。In addition, the information in the maintenance application form other than the "work content" is in a structured table format and can be directly extracted according to the actual situation of the pilot unit, such as: transfer order type, operation purpose, start time, completion time, maintenance ticket application form ID and other information.

步骤16,将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵。Step 16: Convert the device initial state and terminal state in the key information into an environment initial state matrix and an environment terminal state matrix.

在一个实施例中,根据所述关键信息中的设备ID,调取环网拓扑结构,将所述关键信息中的设备起始状态和终止状态与所述环网拓扑结构相结合,得到环境初始状态矩阵和环境终止状态矩阵。对于一个电力网络,由单端设备(开关)和双端设备(线路和变压器)这些电气设备连结成为一个连线图,各个设备拥有不同的状态。操作票中的每一个操作项都对应电气设备状态的变化。In one embodiment, according to the device ID in the key information, the ring network topology is retrieved, and the device initial state and terminal state in the key information are combined with the ring network topology to obtain the environment initial state matrix and the environment terminal state matrix. For an electric power network, the electrical devices such as single-end devices (switches) and double-end devices (lines and transformers) are connected into a connection diagram, and each device has a different state. Each operation item in the operation ticket corresponds to the change of the state of the electrical device.

电气操作规程规定了电气设备有四种基本工作状态;运行、热备用、冷备用以及检修状态:The electrical operating regulations stipulate that electrical equipment has four basic working states: operation, hot standby, cold standby and maintenance state:

(1)运行状态:设备对应的断路器及其两侧刀闸均应处于合闸状态,该状态下,设备带有一定的电压;(1) Operating status: The circuit breaker corresponding to the equipment and the switches on both sides should be in the closed state. In this state, the equipment has a certain voltage;

(2)热备用状态:设备的断路器会位于分闸位置,两侧刀闸则处于合闸状态,只要闭合断路器,设备立即变换为运行状态;(2) Hot standby state: The circuit breaker of the equipment will be in the open position, and the knife switches on both sides will be in the closed state. As long as the circuit breaker is closed, the equipment will immediately switch to the operating state;

(3)冷备用状态:其断路器、两侧刀闸均位于分闸位置;(3) Cold standby state: the circuit breaker and the switches on both sides are in the open position;

(4)检修状态:该设备的断路器、两侧刀闸需位于分闸位置,且需闭合接地刀闸。(4) Maintenance status: The circuit breaker and the switches on both sides of the equipment must be in the open position, and the grounding switch must be closed.

在该基础上,对数据进行预处理,将历史操作票和拓扑结构信息处理成为深度学习推理网络模型的环境状态矩阵。On this basis, the data is preprocessed to process the historical operation tickets and topological structure information into the environment state matrix of the deep learning inference network model.

具体的,在一个单馈线树形网络中,数据预处理包括以下几个流程:Specifically, in a single feeder tree network, data preprocessing includes the following processes:

(1)单端设备-开关(1) Single-ended device - switch

设拓扑中开关的总数为n,则开关状态用n×1的矩阵S表示:Assuming the total number of switches in the topology is n, the switch state is represented by an n×1 matrix S:

S=[x1 x2 x3…xn]T S=[x 1 x 2 x 3 …x n ] T

式中:x1表示第一个开关的状态,可以取值0、1、2或3,0代表“运行”,1代表“热备用”,2代表“冷备用”,3代表“检修”。Where: x1 represents the state of the first switch, which can take values 0, 1, 2 or 3, 0 represents "running", 1 represents "hot standby", 2 represents "cold standby" and 3 represents "maintenance".

(2)双端设备-线路和变压器(2) Two-terminal equipment - lines and transformers

设双端设备的总数为m,则双端设备状态用1×m的矩阵D表示:Assuming the total number of two-terminal devices is m, the two-terminal device state is represented by a 1×m matrix D:

D=[e1 e2 e3…em]D=[e 1 e 2 e 3 …e m ]

式中,e1表示第一个双端设备的状态,取值0、1、2或3,0代表“运行”,1代表“热备用”,2代表“冷备用”,3代表“检修”;当线路考虑FA是否投入时,0代表“运行+FA投入”,1代表“热备用”,2代表“冷备用”,3代表“检修”,4代表“运行+FA停用”;Where, e1 represents the state of the first two-terminal device, and takes values of 0, 1, 2, or 3, where 0 represents "operation", 1 represents "hot standby", 2 represents "cold standby", and 3 represents "maintenance". When the line considers whether FA is put into use, 0 represents "operation + FA is put into use", 1 represents "hot standby", 2 represents "cold standby", 3 represents "maintenance", and 4 represents "operation + FA is disabled".

(3)拓扑关系(3) Topological relationship

拓扑关系用n×m的有向关联矩阵K表示:The topological relationship is represented by an n×m directed incidence matrix K:

式中:行代表开关,列代表线路或变压器,k1,1代表第一个线路或变压器和第一个开关之间的关系,k1,1取值1、0、-1,其中1代表开关是这个线路或变压器的首端,-1代表开关是这个线路或变压器的末端,0代表没有关联。In the formula: rows represent switches, columns represent lines or transformers, k 1,1 represents the relationship between the first line or transformer and the first switch, and k 1,1 takes values of 1, 0, and -1, where 1 represents that the switch is the beginning of the line or transformer, -1 represents that the switch is the end of the line or transformer, and 0 represents no association.

例如,如图3所示中的拓扑结构,其拓扑矩阵可以表示为:For example, for the topological structure shown in Figure 3, its topological matrix can be expressed as:

(4)环境状态矩阵X(4) Environmental state matrix X

深度学习推理网络模型的环境状态矩阵X同时包含设备的状态和拓扑关系,表示为:The environment state matrix X of the deep learning inference network model contains both the state and topological relationship of the device, which can be expressed as:

步骤17,将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项。Step 17: Input the environment initial state matrix and the environment terminal state matrix into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task.

本步骤中,深度学习推理网络模型采用深度确定性策略梯度算法(DeepDeterministic Policy Gradient,DDPG),对操作项进行智能推理。In this step, the deep learning reasoning network model uses the Deep Deterministic Policy Gradient (DDPG) algorithm to perform intelligent reasoning on the operation items.

操作项智能推理就是以操作票拟票规则为依据,根据语义解析得到的操作任务关键信息和电网拓扑结构,推理得到本次操作任务对应的有序的操作项。Intelligent reasoning of operation items is based on the operation ticket drafting rules, and according to the key information of the operation task and the power grid topology obtained by semantic analysis, the orderly operation items corresponding to the current operation task are inferred.

在使用DDPG深度学习推理网络模型进行推理之前,需要先对该模型进行训练。Before using the DDPG deep learning inference network model for inference, the model needs to be trained first.

在模型训练之前,首先需要对历史操作票进行数据预处理,将历史操作票和拓扑结构信息处理成为DDPG深度学习推理网络模型的环境状态矩阵,作为模型训练的输入,具体处理过程如步骤16所述。Before model training, it is necessary to first preprocess the historical operation tickets and process the historical operation tickets and topological structure information into the environment state matrix of the DDPG deep learning inference network model as the input of the model training. The specific processing process is described in step 16.

DDPG深度学习推理网络模型的训练以每张操作票为一个训练轮次进行训练,过程如下:The training of the DDPG deep learning inference network model is carried out with each operation ticket as one training round. The process is as follows:

①输入一张历史操作票,根据设备ID调用“拓扑分析”服务,获取环网拓扑结构;① Enter a historical operation ticket, call the "Topology Analysis" service according to the device ID, and obtain the ring network topology structure;

②结合环网拓扑结构,将操作任务中电气设备的初始状态和终止状态进行转换,得到环境状态初始矩阵X0和终止状态矩阵Xe② Combined with the ring network topology, the initial state and final state of the electrical equipment in the operation task are converted to obtain the initial matrix X0 of the environmental state and the final state matrix Xe .

③设操作票中操作项共有T项,则第一步操作项的状态为X1,…,第T步操作项的状态为XT,分别依次将X0、X1、…、XT、Xe输入推理模型完成一个轮次的训练。③ Assume that there are T operation items in the operation ticket, then the state of the first operation item is X1 , ..., the state of the Tth operation item is XT , and X0 , X1 , ..., XT , Xe are input into the inference model in sequence to complete a round of training.

需要说明的是,操作项指的是由X0变为X1、由X1变为X2……,XT-1变为XT;操作项状态指的是操作项(即变化)的终状态,即X1、…、XTIt should be noted that the operation item refers to the change from X0 to X1 , from X1 to X2 , ..., XT-1 to XT ; the operation item state refers to the final state of the operation item (ie, change), ie, X1 , ..., XT .

利用大量的历史操作票进行训练之后,保存模型文件。After training with a large number of historical operation tickets, save the model file.

训练好后,使用DDPG深度学习推理网络模型对经过步骤15语义解析得到的操作任务中的关键信息进行推理,从而生成包含有序操作项的操作票。具体流程为:After training, the DDPG deep learning inference network model is used to infer the key information in the operation task obtained through semantic analysis in step 15, thereby generating an operation ticket containing ordered operation items. The specific process is as follows:

①检修申请单语义解析得到的操作任务中的关键信息包含设备ID、设备起始和终止状态等;根据设备ID调用“拓扑分析”服务,获取环网拓扑结构,将设备起始和终止状态进行处理,得到环境状态初始矩阵X0和终止状态矩阵Xe① The key information of the operation task obtained by semantic analysis of the maintenance application form includes the device ID, the device start and end status, etc.; call the "topology analysis" service according to the device ID to obtain the ring network topology structure, process the device start and end status, and obtain the environment state initial matrix X0 and the end state matrix Xe .

②将X0和Xe输入DDPG深度学习推理网络模型,模型推理分步进行。② Input X0 and Xe into the DDPG deep learning reasoning network model, and the model reasoning is performed step by step.

③推理进行一步,输出中间变量Xt,通过对比Xt-1和Xt的变化At则可以得到操作项内容,如某开关状态由0变为1,则对应操作项:“将某开关由运行转热备用。”;③ The reasoning is carried out one step, and the intermediate variable Xt is output. By comparing the changes in Xt -1 and Xt , the content of the operation item can be obtained. For example, if the state of a switch changes from 0 to 1, the corresponding operation item is: "Change a switch from operation to hot standby."

④将Xt与终止状态Xe作对比,如果Xt=Xe,则推理结束,若Xt和Xe不一致,则返回第③步。④ Compare Xt with the terminal state Xe . If Xt = Xe , the reasoning ends. If Xt and Xe are inconsistent, return to step ③.

在进一步实施方式中,可以调用“防误校验”服务,对推理得到的操作项At进行操作的“五防”校验,若校验成功,则继续下一步推理,若校验不成功,则恢复状态Xt-1,返回第③步重新推理。In a further implementation, the "anti-error verification" service can be called to perform the "five-prevention" verification of the inferred operation item At . If the verification succeeds, the next inference is continued. If the verification fails, the state Xt -1 is restored and the reasoning is repeated in step ③.

此外,在推理过程中,可以结合试用单位地市特殊化要求,添加指定操作项。In addition, during the reasoning process, specified operation items can be added in combination with the special requirements of the trial units and cities.

通过以上实施例,本发明的一种配电网操作票快速生成方法,通过语义识别技术解析检修申请单内容,提取检修停电范围、操作前后状态、操作类型等关键信息,基于专家知识库的智能推理生成操作项,梳理形成专家知识库规则通过训练生成推理模型,对检修申请单中提取的操作任务自动生成操作项,操作简单,节省了人工劳动力,缩短了成票时间。Through the above embodiments, a method for quickly generating distribution network operation tickets of the present invention parses the content of the maintenance application form through semantic recognition technology, extracts key information such as the maintenance power outage scope, the status before and after the operation, the operation type, etc., generates operation items based on intelligent reasoning of the expert knowledge base, and sorts out the expert knowledge base rules to generate a reasoning model through training, and automatically generates operation items for the operation tasks extracted from the maintenance application form. The operation is simple, saves manual labor, and shortens the ticketing time.

在上述方法的基础上,可以通过图形人机界面对操作过程进行模拟预演。Based on the above method, the operation process can be simulated and rehearsed through a graphical human-computer interface.

具体为:Specifically:

基于图形人机界面自动按照操作票的内容依次进行操作,并自动改变操作对象状态,通过模拟操作自动检查各操作项是否正确。Based on the graphical human-machine interface, the system automatically performs operations in sequence according to the contents of the operation ticket, automatically changes the state of the operation object, and automatically checks whether each operation item is correct through simulated operation.

根据操作票预演的初始状态,将预演线路状态进行初始化。Initialize the preview line status according to the initial status of the operation ticket preview.

系统自动加载操作票的操作指令,逐条进行模拟预演,通过改变操作对象的状态,可以真实的反应操作票执行的实际过程;并提供设置断点、单步预演、自动预演、恢复等如下功能:The system automatically loads the operation instructions of the operation ticket and performs simulation preview one by one. By changing the state of the operation object, it can truly reflect the actual process of the operation ticket execution; and provides the following functions such as setting breakpoints, single-step preview, automatic preview, and recovery:

自动预演:系统按操作顺序自动执行操作票中的全部操作票指令,在人机界面显示执行完毕之后各操作对象的状态。Automatic preview: The system automatically executes all the operation ticket instructions in the operation ticket according to the operation sequence, and displays the status of each operation object after execution on the human-machine interface.

设置断点:在操作票中的某一个操作指令中设置断电,在自动预演时,如果存在断点,则系统按操作顺序自动执行断点前的全部指令,并在人机界面显示目前各操作对象的状态。Set breakpoints: Set a power outage in a certain operation instruction in the operation ticket. During automatic preview, if there is a breakpoint, the system will automatically execute all instructions before the breakpoint in the operation sequence and display the current status of each operation object on the human-machine interface.

单步预演:在上一步操作指令的基础上,按顺序执行一步操作指令,并在人机界面显示执行之后各操作对象的状态。Single-step preview: Based on the previous step operation instruction, execute one step of operation instruction in sequence, and display the status of each operation object after execution on the human-machine interface.

恢复:恢复到操作票中操作指令执行之前各操作对象的状态。Restore: Restore to the state of each operation object before the operation instruction in the operation ticket is executed.

预演结束后,可以重复预演,请求恢复初始状态,将预演线路进行初始化,然后进行逐条模拟预演。After the preview is finished, you can repeat the preview, request to restore the initial state, initialize the preview line, and then perform simulation preview line by line.

基于图形的操作票模拟预演,可以将操作票中的内容按顺序在图形中模拟执行,直观展示操作后电网运行情况,减少调度员误判断和误执行的情况,有效提升调度安全运行水平。The graphic-based operation ticket simulation rehearsal can simulate the execution of the contents of the operation ticket in sequence in the graphic, intuitively display the operation status of the power grid after the operation, reduce the dispatcher's misjudgment and erroneous execution, and effectively improve the level of safe dispatching operation.

在另一实施例中,本发明提供一种配电网操作票快速生成装置,包括:In another embodiment, the present invention provides a device for quickly generating a distribution network operation ticket, comprising:

分词模块,配置为将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;The word segmentation module is configured to input the sentence text in the work content, maintenance ticket type, and power outage or power supply range column in the maintenance application form into the conditional random field word segmentation model, and output a word list after word segmentation;

词性标注模块,配置为将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;A part-of-speech tagging module is configured to input the segmented word list into a conditional random field part-of-speech tagging model and output a word list tagged with part-of-speech;

依存句法分析模块,配置为将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;A dependency syntactic analysis module, configured to input the word list marked with parts of speech into a dependency syntactic analysis model, and output a word list containing dependency relationships of each word;

语义角色识别模块,配置为将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;A semantic role identification module, configured to input the word list containing the dependency relationship of each word into the distribution network scheduling semantic role identification model, and output a word list marked with the distribution network scheduling semantic role attribute;

语义识别模块,配置为将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;A semantic recognition module, configured to input the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and output key information of the operation tasks in different types of maintenance application forms;

预处理模块,配置为将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵;A preprocessing module, configured to convert the device initial state and the terminal state in the key information into an environment initial state matrix and an environment terminal state matrix;

推理模块,配置为将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项。The reasoning module is configured to input the environment initial state matrix and the environment terminal state matrix into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明技术原理的前提下,还可以做出若干改进和变形,这些改进和变形也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims (7)

1.一种配电网操作票快速生成方法,其特征在于,包括:1. A method for quickly generating a distribution network operation ticket, characterized by comprising: 将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;Input the sentence text in the work content, maintenance ticket type, and power outage or power supply range columns in the maintenance application form into the conditional random field word segmentation model, and output the word list after word segmentation; 将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;Input the segmented word list into a conditional random field part-of-speech tagging model, and output a word list with part-of-speech tags; 将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;Input the word list marked with parts of speech into the dependency syntactic analysis model, and output a word list containing dependency relationships of each word; 将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;Input the word list containing the dependency relationships of each word into the distribution network scheduling semantic role recognition model, and output a word list marked with the distribution network scheduling semantic role attributes; 将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;Input the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and output the key information of the operation tasks in different types of maintenance application forms; 将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵;Converting the device initial state and final state in the key information into an environment initial state matrix and an environment final state matrix; 将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项;Inputting the environment initial state matrix and the environment terminal state matrix into a deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task; 所述将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息,具体包括:The word list marked with the distribution network scheduling semantic role attribute is input into the maintenance application form semantic recognition model, and the key information of the operation tasks in different types of maintenance application forms is output, specifically including: 在标注有配网调度语义角色属性的词语列表中,对操作类型的内容进行近义词搜索,确定检修申请单的类型;In the word list marked with the distribution network dispatching semantic role attribute, a synonym search is performed on the content of the operation type to determine the type of the maintenance application form; 根据检修申请单的类型,在标注有配网调度语义角色属性的词语列表中,提取厂站名、馈线名、操作涉及到的设备名称、设备状态名称;搜索依存关系中的介宾关系,在操作涉及到的设备名称中搜索得到停送电区间或操作区间的起始位置和终止位置设备名称、新设备启动/退出的设备名称以及设备操作前后的状态名称;搜索依存关系中的并列关系,将包含并列关系的语句分成多个短句,得到检修申请单操作任务的关键信息;According to the type of maintenance application form, extract the plant name, feeder name, equipment name involved in the operation, and equipment status name from the word list marked with the semantic role attribute of distribution network scheduling; search for the prepositional object relationship in the dependency relationship, and search for the equipment name involved in the operation to obtain the equipment name of the starting and ending position of the power outage section or operation section, the equipment name of the new equipment startup/exit, and the status name before and after the equipment operation; search for the parallel relationship in the dependency relationship, divide the sentence containing the parallel relationship into multiple short sentences, and obtain the key information of the maintenance application form operation task; 所述将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项,具体包括:The inputting the environment initial state matrix and the environment terminal state matrix into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task specifically includes: 将所述环境初始状态矩阵输入深度学习推理网络模型,模型输出第一步操作项状态,对比输入的环境初始状态矩阵与输出的第一步操作项状态的变化,得到第一步操作项;将所述第一步操作项状态继续输入深度学习推理网络模型,输出得到第二步操作项状态,对比输入的第一步操作项状态与输出的第二步操作项状态的变化,得到第二步操作项;依次类推,直至模型输出的操作项状态与所述环境终止状态矩阵相同,得到所述操作任务对应的所有有序操作项;The initial state matrix of the environment is input into the deep learning reasoning network model, and the model outputs the state of the first step operation item. The change of the input initial state matrix of the environment and the output state of the first step operation item is compared to obtain the first step operation item; the state of the first step operation item is continuously input into the deep learning reasoning network model, and the state of the second step operation item is output to obtain the second step operation item. The change of the input state of the first step operation item and the output state of the second step operation item is compared to obtain the second step operation item; and so on, until the state of the operation item output by the model is the same as the environment termination state matrix, and all ordered operation items corresponding to the operation task are obtained; 所述深度学习推理网络模型采用深度确定性策略梯度算法训练,所述深度学习推理网络模型的训练方法包括:The deep learning reasoning network model is trained using a deep deterministic policy gradient algorithm, and the training method of the deep learning reasoning network model includes: 获取多张历史操作票;Get multiple historical operation tickets; 对每一张历史操作票,根据其包含的设备ID调取环网拓扑结构;For each historical operation ticket, retrieve the ring network topology structure according to the device ID contained in it; 基于环网拓扑结构,将每一张历史操作票对应的设备初始状态和终止状态转换为环境初始状态矩阵X0和环境终止状态矩阵XeBased on the ring network topology, the initial state and final state of the equipment corresponding to each historical operation ticket are converted into the environment initial state matrix X 0 and the environment final state matrix X e ; 将每一张历史操作票对应的环境初始状态矩阵X0、所有操作项的状态X1、X2、…、XT,其中T为操作项的个数,分别输入深度学习推理网络模型,模型依次输出变量1、变量2…变量T,以变量1与第一步操作项状态X1相同、变量2与第二步操作项状态X2相同、…、变量T与环境终止状态矩阵Xe相同为目标,训练所述深度学习推理网络模型。The initial state matrix X0 of the environment corresponding to each historical operation ticket, the states X1 , X2 , ..., XT of all operation items, where T is the number of operation items, are respectively input into the deep learning reasoning network model, and the model sequentially outputs variable 1, variable 2, ..., variable T. The deep learning reasoning network model is trained with the goal that variable 1 is the same as the state X1 of the first step operation item, variable 2 is the same as the state X2 of the second step operation item, ..., variable T is the same as the environment termination state matrix Xe. 2.根据权利要求1所述的一种配电网操作票快速生成方法,其特征在于,所述条件随机场分词模型使用拟牛顿算法训练,训练使用的语料包括:北京大学分词语料、ICWB2会议分词语料、MSR05分词语料、电力系统配电网调度的相关语料。2. A method for quickly generating distribution network operation tickets according to claim 1, characterized in that the conditional random field word segmentation model is trained using a quasi-Newton algorithm, and the corpus used for training includes: Peking University word segmentation data, ICWB2 conference word segmentation data, MSR05 word segmentation data, and relevant corpus of power system distribution network scheduling. 3.根据权利要求1所述的一种配电网操作票快速生成方法,其特征在于,所述条件随机场词性标注模型采用维特比算法训练,词性标注的标准采用北京大学的《现代汉语语料库加工规范——词语切分与词性标注的标准》,采用粗颗粒度的标准划分词性。3. A method for quickly generating distribution network operation tickets according to claim 1, characterized in that the conditional random field part-of-speech tagging model is trained using the Viterbi algorithm, and the standard for part-of-speech tagging adopts Peking University's "Modern Chinese Corpus Processing Specifications - Standards for Word Segmentation and Part-of-Speech Tagging", and uses a coarse-grained standard to divide the parts of speech. 4.根据权利要求1所述的一种配电网操作票快速生成方法,其特征在于,所述依存句法分析模型采用神经网络算法训练,训练使用的语料包括清华大学语义依存网络语料树库和电力系统配电网调度的相关语料,每一条语句按照CONLL格式进行标注,标注内容包括序号、词语、原型、粗粒度词性、细粒度词性、句法特征、中心词和依存关系。4. According to claim 1, a method for quickly generating a distribution network operation ticket is characterized in that the dependency syntactic analysis model is trained using a neural network algorithm, and the corpus used for training includes the semantic dependency network corpus tree library of Tsinghua University and relevant corpus of power system distribution network scheduling. Each sentence is annotated according to the CONLL format, and the annotation content includes serial number, word, prototype, coarse-grained part of speech, fine-grained part of speech, syntactic features, central word and dependency relationship. 5.根据权利要求1所述的一种配电网操作票快速生成方法,其特征在于,所述配网调度语义角色识别模型包括双向长短时记忆网络和与双向长短时记忆网络连接的条件随机场层,所述语义角色属性的标注方法为:根据各词语在配网调度初始词典中的位置进行one-hot编码,将该编码作为配网调度语义角色的标注。5. According to a method for quickly generating distribution network operation tickets according to claim 1, it is characterized in that the distribution network scheduling semantic role recognition model includes a bidirectional long short-term memory network and a conditional random field layer connected to the bidirectional long short-term memory network, and the annotation method of the semantic role attributes is: one-hot encoding is performed according to the position of each word in the initial dictionary of distribution network scheduling, and the encoding is used as the annotation of the distribution network scheduling semantic role. 6.根据权利要求1所述的一种配电网操作票快速生成方法,其特征在于,所述将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵,具体包括:6. A method for quickly generating a distribution network operation ticket according to claim 1, characterized in that the step of converting the equipment initial state and terminal state in the key information into an environment initial state matrix and an environment terminal state matrix specifically comprises: 根据所述关键信息中的设备ID,调取环网拓扑结构,将所述关键信息中的设备起始状态和终止状态与所述环网拓扑结构相结合,得到环境初始状态矩阵和环境终止状态矩阵。According to the device ID in the key information, the ring network topology is retrieved, and the device initial state and terminal state in the key information are combined with the ring network topology to obtain an environment initial state matrix and an environment terminal state matrix. 7.一种配电网操作票快速生成装置,其特征在于,包括:7. A device for quickly generating a distribution network operation ticket, characterized by comprising: 分词模块,配置为将检修申请单中工作内容、检修票类型、停或送电范围栏中的语句文本输入条件随机场分词模型,输出分词后的词语列表;The word segmentation module is configured to input the sentence text in the work content, maintenance ticket type, and power outage or power supply range column in the maintenance application form into the conditional random field word segmentation model, and output a word list after word segmentation; 词性标注模块,配置为将所述分词后的词语列表输入条件随机场词性标注模型,输出标注有词性的词语列表;A part-of-speech tagging module is configured to input the segmented word list into a conditional random field part-of-speech tagging model and output a word list tagged with part-of-speech; 依存句法分析模块,配置为将所述标注有词性的词语列表输入依存句法分析模型,输出包含各词语依存关系的词语列表;A dependency syntactic analysis module, configured to input the word list marked with parts of speech into a dependency syntactic analysis model, and output a word list containing dependency relationships of each word; 语义角色识别模块,配置为将所述包含各词语依存关系的词语列表输入配网调度语义角色识别模型,输出标注有配网调度语义角色属性的词语列表;A semantic role identification module, configured to input the word list containing the dependency relationship of each word into the distribution network scheduling semantic role identification model, and output a word list marked with the distribution network scheduling semantic role attribute; 语义识别模块,配置为将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息;A semantic recognition module, configured to input the word list marked with the distribution network scheduling semantic role attribute into the maintenance application form semantic recognition model, and output key information of the operation tasks in different types of maintenance application forms; 预处理模块,配置为将所述关键信息中的设备起始状态和终止状态转换为环境初始状态矩阵和环境终止状态矩阵;A preprocessing module, configured to convert the device initial state and the terminal state in the key information into an environment initial state matrix and an environment terminal state matrix; 推理模块,配置为将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项;A reasoning module is configured to input the environment initial state matrix and the environment terminal state matrix into a deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task; 所述将所述标注有配网调度语义角色属性的词语列表输入检修申请单语义识别模型,输出不同类型检修申请单中操作任务的关键信息,具体包括:The word list marked with the distribution network scheduling semantic role attribute is input into the maintenance application form semantic recognition model, and the key information of the operation tasks in different types of maintenance application forms is output, specifically including: 在标注有配网调度语义角色属性的词语列表中,对操作类型的内容进行近义词搜索,确定检修申请单的类型;In the word list marked with the distribution network dispatching semantic role attribute, a synonym search is performed on the content of the operation type to determine the type of the maintenance application form; 根据检修申请单的类型,在标注有配网调度语义角色属性的词语列表中,提取厂站名、馈线名、操作涉及到的设备名称、设备状态名称;搜索依存关系中的介宾关系,在操作涉及到的设备名称中搜索得到停送电区间或操作区间的起始位置和终止位置设备名称、新设备启动/退出的设备名称以及设备操作前后的状态名称;搜索依存关系中的并列关系,将包含并列关系的语句分成多个短句,得到检修申请单操作任务的关键信息;According to the type of maintenance application form, extract the plant name, feeder name, equipment name involved in the operation, and equipment status name from the word list marked with the semantic role attribute of distribution network scheduling; search for the prepositional object relationship in the dependency relationship, and search for the equipment name involved in the operation to obtain the equipment name of the starting and ending position of the power outage section or operation section, the equipment name of the new equipment startup/exit, and the status name before and after the equipment operation; search for the parallel relationship in the dependency relationship, divide the sentence containing the parallel relationship into multiple short sentences, and obtain the key information of the maintenance application form operation task; 所述将所述环境初始状态矩阵和环境终止状态矩阵输入深度学习推理网络模型进行分步推理,得到所述操作任务对应的所有有序操作项,具体包括:The inputting the environment initial state matrix and the environment terminal state matrix into the deep learning reasoning network model for step-by-step reasoning to obtain all ordered operation items corresponding to the operation task specifically includes: 将所述环境初始状态矩阵输入深度学习推理网络模型,模型输出第一步操作项状态,对比输入的环境初始状态矩阵与输出的第一步操作项状态的变化,得到第一步操作项;将所述第一步操作项状态继续输入深度学习推理网络模型,输出得到第二步操作项状态,对比输入的第一步操作项状态与输出的第二步操作项状态的变化,得到第二步操作项;依次类推,直至模型输出的操作项状态与所述环境终止状态矩阵相同,得到所述操作任务对应的所有有序操作项;The initial state matrix of the environment is input into the deep learning reasoning network model, and the model outputs the state of the first step operation item. The change of the input initial state matrix of the environment and the output state of the first step operation item is compared to obtain the first step operation item; the state of the first step operation item is continuously input into the deep learning reasoning network model, and the state of the second step operation item is output to obtain the second step operation item. The change of the input state of the first step operation item and the output state of the second step operation item is compared to obtain the second step operation item; and so on, until the state of the operation item output by the model is the same as the environment termination state matrix, and all ordered operation items corresponding to the operation task are obtained; 所述深度学习推理网络模型采用深度确定性策略梯度算法训练,所述深度学习推理网络模型的训练方法包括:The deep learning reasoning network model is trained using a deep deterministic policy gradient algorithm, and the training method of the deep learning reasoning network model includes: 获取多张历史操作票;Get multiple historical operation tickets; 对每一张历史操作票,根据其包含的设备ID调取环网拓扑结构;For each historical operation ticket, retrieve the ring network topology structure according to the device ID contained in it; 基于环网拓扑结构,将每一张历史操作票对应的设备初始状态和终止状态转换为环境初始状态矩阵X0和环境终止状态矩阵XeBased on the ring network topology, the initial state and final state of the equipment corresponding to each historical operation ticket are converted into the environment initial state matrix X 0 and the environment final state matrix X e ; 将每一张历史操作票对应的环境初始状态矩阵X0、所有操作项的状态X1、X2、…、XT,其中T为操作项的个数,分别输入深度学习推理网络模型,模型依次输出变量1、变量2…变量T,以变量1与第一步操作项状态X1相同、变量2与第二步操作项状态X2相同、…、变量T与环境终止状态矩阵Xe相同为目标,训练所述深度学习推理网络模型。The initial state matrix X0 of the environment corresponding to each historical operation ticket, the states X1 , X2 , ..., XT of all operation items, where T is the number of operation items, are respectively input into the deep learning reasoning network model, and the model sequentially outputs variable 1, variable 2, ..., variable T. The deep learning reasoning network model is trained with the goal that variable 1 is the same as the state X1 of the first step operation item, variable 2 is the same as the state X2 of the second step operation item, ..., variable T is the same as the environment termination state matrix Xe.
CN202110994717.2A 2021-08-27 2021-08-27 Method and device for rapidly generating operation ticket of power distribution network Active CN113792538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110994717.2A CN113792538B (en) 2021-08-27 2021-08-27 Method and device for rapidly generating operation ticket of power distribution network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110994717.2A CN113792538B (en) 2021-08-27 2021-08-27 Method and device for rapidly generating operation ticket of power distribution network

Publications (2)

Publication Number Publication Date
CN113792538A CN113792538A (en) 2021-12-14
CN113792538B true CN113792538B (en) 2024-05-14

Family

ID=79182284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110994717.2A Active CN113792538B (en) 2021-08-27 2021-08-27 Method and device for rapidly generating operation ticket of power distribution network

Country Status (1)

Country Link
CN (1) CN113792538B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114742663A (en) * 2022-03-17 2022-07-12 广东电网有限责任公司 Method and related device for checking multiple objects of distribution network operation order
CN114969442A (en) * 2022-04-28 2022-08-30 国网上海市电力公司 Power dispatching task ticket generation method based on knowledge graph and deep reinforcement learning
CN115333242B (en) * 2022-08-27 2024-10-22 武汉大学 Main station and sub station cooperative remote sequential control operation method based on substation state matrix
CN115910066A (en) * 2022-09-15 2023-04-04 平湖市通用电气安装有限公司 Intelligent dispatching command and operation system for regional power distribution network
CN117093675A (en) * 2023-10-18 2023-11-21 江苏泰坦智慧科技有限公司 Operation ticket searching and matching method, device and storage medium
CN117875948B (en) * 2024-03-12 2024-05-14 江苏秉信科技有限公司 Equipment-based power grid overhaul event determination method, device, equipment and medium
CN118502339B (en) * 2024-07-22 2024-11-26 中国电建集团西北勘测设计研究院有限公司 Intelligent error prevention method and device for synthetic loop synchronous control mode
CN120430593A (en) * 2025-07-08 2025-08-05 国网浙江省电力有限公司杭州市临平区供电公司 Power grid operation ticket processing method and system based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487182A (en) * 2019-09-12 2021-03-12 华为技术有限公司 Training method of text processing model, and text processing method and device
KR20210058701A (en) * 2019-11-13 2021-05-24 서강대학교산학협력단 System and method for dependent parsing
CN112860872A (en) * 2021-03-17 2021-05-28 广东电网有限责任公司 Self-learning-based method and system for verifying semantic compliance of power distribution network operation tickets
CN113011771A (en) * 2021-03-31 2021-06-22 广东电网有限责任公司 Rapid ticketing method, device, equipment and storage medium
CN113159443A (en) * 2021-04-30 2021-07-23 贵州电网有限责任公司 Optimal path selection method and system suitable for operation order

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487182A (en) * 2019-09-12 2021-03-12 华为技术有限公司 Training method of text processing model, and text processing method and device
KR20210058701A (en) * 2019-11-13 2021-05-24 서강대학교산학협력단 System and method for dependent parsing
CN112860872A (en) * 2021-03-17 2021-05-28 广东电网有限责任公司 Self-learning-based method and system for verifying semantic compliance of power distribution network operation tickets
CN113011771A (en) * 2021-03-31 2021-06-22 广东电网有限责任公司 Rapid ticketing method, device, equipment and storage medium
CN113159443A (en) * 2021-04-30 2021-07-23 贵州电网有限责任公司 Optimal path selection method and system suitable for operation order

Also Published As

Publication number Publication date
CN113792538A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN113792538B (en) Method and device for rapidly generating operation ticket of power distribution network
CN109376353B (en) Natural language processing-based power grid starting operation ticket generation device and method
CN112527997B (en) An intelligent question and answer method and system based on the knowledge graph of dispatching scenarios in the power grid field
CN115357726A (en) Fault disposal plan digital model establishing method based on knowledge graph
CN111090730B (en) Intelligent voice scheduling system and method
CN110188345B (en) An intelligent identification method and device for an electric power operation ticket
CN110175324B (en) Power grid operation instruction verification method and system based on data mining
CN113095050A (en) An intelligent ticketing method, system, device and storage medium
CN112885352A (en) Corpus construction method and device, computer equipment and storage medium
CN106886950B (en) Method for automatically generating power grid dispatching instruction
CN120597890A (en) A method, system, medium and device for semantic parsing and generating operation tickets
CN120975587A (en) Distribution network dispatch advance order issuance method, device, storage medium and computer equipment
CN112215012A (en) Semantic analysis method of distribution network maintenance single safety measure based on conditional random field
Ming et al. Substation operation ticket system based on natural language analysis and intelligent reasoning
Gao et al. Research on power entity recognition technology base on BiLSTM-CRF
Haibo et al. Construction of knowledge graph of power communication planning based on deep learning
CN115760060A (en) Dispatch command ticket generation method, device, equipment and storage medium
Sun et al. Power fault preplan text information extraction based on NLP
CN113434667B (en) Text classification method based on distribution network automation terminal text classification model
CN115481964A (en) Intelligent ticketing method and device
Liu et al. Historical similar ticket matching and extraction used for power grid maintenance work ticket decision making
Li et al. Research on programmed operation of power grid equipment based on Natural Language Processing
Li et al. Knowledge Graph Construction in Power Distribution Networks
Wen et al. Preliminary exploration on the construction and application of knowledge graph for security control strategy
Qiu et al. Research on Intelligent Ticketing Method Based on Text Word Segmentation of Scheduling Operation

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