CN112085202A - Automobile fault diagnosis method based on hybrid Bayesian network - Google Patents
Automobile fault diagnosis method based on hybrid Bayesian network Download PDFInfo
- Publication number
- CN112085202A CN112085202A CN202010941854.5A CN202010941854A CN112085202A CN 112085202 A CN112085202 A CN 112085202A CN 202010941854 A CN202010941854 A CN 202010941854A CN 112085202 A CN112085202 A CN 112085202A
- Authority
- CN
- China
- Prior art keywords
- node
- nodes
- bayesian network
- fault diagnosis
- algorithm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N7/00—Computing arrangements based on specific mathematical models
- G06N7/01—Probabilistic graphical models, e.g. probabilistic networks
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0218—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
- G05B23/0224—Process history based detection method, e.g. whereby history implies the availability of large amounts of data
- G05B23/0227—Qualitative history assessment, whereby the type of data acted upon, e.g. waveforms, images or patterns, is not relevant, e.g. rule based assessment; if-then decisions
- G05B23/0229—Qualitative history assessment, whereby the type of data acted upon, e.g. waveforms, images or patterns, is not relevant, e.g. rule based assessment; if-then decisions knowledge based, e.g. expert systems; genetic algorithms
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Optimization (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Mathematical Analysis (AREA)
- Algebra (AREA)
- Pure & Applied Mathematics (AREA)
- Computing Systems (AREA)
- Computational Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Probability & Statistics with Applications (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息技术与机器学习领域,更具体地,涉及一种基于混合贝叶斯网络的汽车故障诊断方法。The invention relates to the fields of information technology and machine learning, and more particularly, to a vehicle fault diagnosis method based on a hybrid Bayesian network.
背景技术Background technique
随着汽车技术的发展,汽车结构及电控部分复杂,其故障现象多样化,故障成因复杂化、随机性和模糊性,致使故障具有一定的不确定性。With the development of automobile technology, the structure and electronic control part of the automobile are complex, the failure phenomenon is diversified, and the cause of the failure is complicated, random and fuzzy, resulting in a certain uncertainty of the failure.
贝叶斯网络是以概率论和图论为基础的一种能够表达随机变量间相互关系的因果图模型。贝叶斯网络有着坚实的理论基础,是处理不确定知识表达和推理的有效方法,能够应对汽车故障诊断中的不确定性问题的表示和推理,有效地融合领域先验知识和实时传感数据的分布特征,实现汽车故障诊断系统的自适应。Bayesian network is a causal graph model that can express the relationship between random variables based on probability theory and graph theory. Bayesian network has a solid theoretical foundation and is an effective method for dealing with uncertain knowledge expression and reasoning. It can deal with the expression and reasoning of uncertain problems in automobile fault diagnosis, and effectively integrate domain prior knowledge and real-time sensor data. The distribution characteristics of the auto fault diagnosis system can be realized.
在基于贝叶斯网络实现汽车故障诊断时,首先需要建立贝叶斯网络的结构,建立贝叶斯网络的结构的方法主要分为:基于评分搜索的方法以及基于依赖分析的方法。基于评分搜索方法主要包括两部分,即评分函数和搜索算法,采用搜索算法对网络结构不断地进行搜索并通过评分函数对每一个结构进行评分,算法结束后输出评分最高的网络结构,其中最为经典的就是K2算法。K2算法以样本数据及人为给定的顺序作为输入,以空节点集开始逐次增加与父节点的连接边并计算评分,算法结束后输出网络结构。基于依赖分析的方法主要通过独立性检测判断节点间的相互关系并确定其方向。该方法随着节点数量的增加,算法的独立性检测次数会呈指数增长导致结构差异较大。When realizing automobile fault diagnosis based on Bayesian network, it is necessary to establish the structure of Bayesian network first. The scoring-based search method mainly includes two parts, namely the scoring function and the search algorithm. The search algorithm is used to continuously search the network structure, and each structure is scored through the scoring function. After the algorithm is completed, the network structure with the highest score is output, among which the most classic It is the K2 algorithm. The K2 algorithm takes the sample data and the artificially given order as input, starts with an empty node set and gradually increases the connection edges with the parent node and calculates the score, and outputs the network structure after the algorithm ends. The method based on dependency analysis mainly judges the mutual relationship between nodes and determines its direction through independence detection. With the increase of the number of nodes in this method, the number of independent detections of the algorithm will increase exponentially, resulting in large structural differences.
经典的K2算法存在需要人为输入确定节点顺序的限制,目前多采用基于互信息的方法生成初始网络图并搜索图形得到对应的节点序列作为K2算法的输入,然而基于互信息的方法需要生成初始结构图及判断边的方向,具有较高的算法复杂度。The classic K2 algorithm has the limitation of requiring human input to determine the order of nodes. At present, the method based on mutual information is used to generate the initial network graph and search the graph to obtain the corresponding node sequence as the input of the K2 algorithm. However, the method based on mutual information needs to generate an initial structure. The graph and the direction of judging the edge have high algorithm complexity.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提出一种基于混合贝叶斯网络的汽车故障诊断方法,以克服现有汽车故障诊断方法中存在的计算复杂度高的问题,使汽车故障诊断更快速,诊断结果更准确。The purpose of the present invention is to propose a vehicle fault diagnosis method based on a hybrid Bayesian network, so as to overcome the problem of high computational complexity in the existing vehicle fault diagnosis methods, and to make the vehicle fault diagnosis faster and the diagnosis result more accurate.
为了实现上述目的,现提出的方案如下:In order to achieve the above purpose, the proposed scheme is as follows:
1、一种基于混合贝叶斯网络的汽车故障诊断方法,其特征在于,包括以下步骤:1. A vehicle fault diagnosis method based on a hybrid Bayesian network, characterized in that it comprises the following steps:
收集群专家提供的汽车故障诊断问题中所有节点间关系的信息,采用D-S证据理论对获取的节点关系进行融合,对融合结果进行决策并将决策后的有效信息转化为邻接矩阵;Collect the information on the relationship between all nodes in the vehicle fault diagnosis problem provided by the group experts, use the D-S evidence theory to fuse the obtained node relationship, make decisions on the fusion results and convert the effective information after the decision into an adjacency matrix;
依据得到的邻接矩阵作为先验结构,将先验结构与K2算法相结合,通过先验结构限定K2算法的搜索空间;According to the obtained adjacency matrix as the prior structure, the prior structure is combined with the K2 algorithm, and the search space of the K2 algorithm is limited by the prior structure;
在汽车故障数据中计算各个节点的熵函数并排序得到节点序列;Calculate the entropy function of each node in the car fault data and sort to get the node sequence;
将所述节点序列输入到融合先验结构的K2算法中进行贝叶斯网络结构学习,得到混合贝叶斯网络结构;Inputting the node sequence into the K2 algorithm fused with the prior structure to learn the Bayesian network structure to obtain a hybrid Bayesian network structure;
基于所述混合贝叶斯网络结构进行汽车故障诊断,得到汽车故障诊断结果。Car fault diagnosis is performed based on the hybrid Bayesian network structure, and a car fault diagnosis result is obtained.
优选地,所述收集群专家提供的汽车故障诊断问题中所有节点间关系的信息,采用D-S证据理论对获取的节点关系进行融合,包括:Preferably, the information on the relationship between all nodes in the vehicle fault diagnosis problem provided by the group experts is collected, and the obtained node relationship is fused using the D-S evidence theory, including:
在收集专家知识的过程中,对于任意两个节点(i,j)间存在三种因果关系,包括:i→j表示由专家确定存在i指向j的有向边,j→i表示由专家确定存在j指向i的有向边,i≠j说明节点间不存在指向关系;In the process of collecting expert knowledge, there are three causal relationships between any two nodes (i, j), including: i→j means that the expert determines that there is a directed edge from i to j, and j→i means that the expert determines There is a directed edge that j points to i, and i≠j means that there is no pointing relationship between nodes;
收集完全部专家知识,得到所有专家的信度分配表;Collect all expert knowledge and get the reliability distribution table of all experts;
应用D-S融合规则进行对所述信度分配表进行融合,得到最终的融合结果;Applying the D-S fusion rule to fuse the reliability allocation table to obtain a final fusion result;
其中,若已知m1和m2的两个基本概率分配,D-S融合规则如下:Among them, if the two basic probability assignments of m 1 and m 2 are known, the DS fusion rules are as follows:
其中,m(A)为融合结果,A,B,C表示汽车故障诊断问题中的命题或假设;φ表示空集,K代表冲突系数,当K=0时,说明m1和m2之间没有冲突。Among them, m(A) is the fusion result, A, B, C represent the propositions or assumptions in automobile fault diagnosis; φ represents the empty set, K represents the conflict coefficient, when K=0, it indicates the difference between m 1 and m 2 No conflict.
优选地,所述对融合结果进行决策,包括:Preferably, the decision on the fusion result includes:
在得到最终的融合结果m(Ah),1≤h≤4后,根据预先设置的阈值θ,决策是否存在对应的有向边,决策方式如下:After obtaining the final fusion result m(A h ), 1≤h≤4, according to the preset threshold θ, decide whether there is a corresponding directed edge. The decision-making method is as follows:
若m(A1)>θ,则确定i→j;If m(A 1 )>θ, then determine i→j;
若m(A2)>θ,则确定j→i;If m(A 2 )>θ, then determine j→i;
若m(A3)>θ,则确定i≠j;If m(A 3 )>θ, then determine i≠j;
若m(A4)>θ或m(Ah)均小于θ,则认为对该两节点间关系无法确定,后续则按无专家信息处理。If m(A 4 )>θ or m(A h ) are both less than θ, it is considered that the relationship between the two nodes cannot be determined, and subsequent processing is treated as no expert information.
优选地,所述在汽车故障数据中计算各个节点的熵函数并排序得到节点序列,包括:Preferably, calculating the entropy function of each node in the vehicle fault data and sorting to obtain a node sequence, including:
分别计算所述汽车故障数据中各个节点的信息熵并排序,选择第一节点为起始节点;Calculate and sort the information entropy of each node in the vehicle fault data respectively, and select the first node as the starting node;
计算在已选择的节点已知的条件下其余节点的条件熵并排序,选择一个节点作为第N顺序节点;Calculate and sort the conditional entropy of the remaining nodes under the condition that the selected node is known, and select a node as the Nth order node;
重复执行上述条件熵的计算,直至得到最后顺序点,每次条件熵的计算中所述已选择的节点包括本次计算之前选择的节点,其中N为大于1小于节点总数的正整数;Repeat the calculation of the above conditional entropy until the final sequence point is obtained. The selected nodes in each calculation of the conditional entropy include the nodes selected before this calculation, wherein N is a positive integer greater than 1 and less than the total number of nodes;
根据所述起始节点和各个顺序节点,得到节点序列。According to the starting node and each sequence node, a node sequence is obtained.
优选地,在进行贝叶斯网络结构学习时,以贝叶斯信息度量BIC评分作为评分函数。Preferably, when learning the Bayesian network structure, the Bayesian information metric BIC score is used as the scoring function.
优选地,所述将所述节点序列输入到融合先验结构的K2算法中进行贝叶斯网络结构学习,包括:Preferably, inputting the node sequence into the K2 algorithm fused with prior structure for Bayesian network structure learning includes:
对搜索过程中得到的非法结构进行修正处理,所述非法结构为不符合无环图的属性的结构。Correction processing is performed on illegal structures obtained in the search process, where the illegal structures are structures that do not conform to the properties of the acyclic graph.
优选地,所述修正包括:Preferably, the correction includes:
若矩阵中两个节点之间存在双向弧,则随机选择两者之一置0;If there is a bidirectional arc between two nodes in the matrix, select one of the two at random and set it to 0;
若矩阵中存在封闭环路结构,在环路中随机选择删除边或反转边,以满足贝叶斯网络为有向无环图的要求。If there is a closed loop structure in the matrix, delete edges or reverse edges randomly in the loop to meet the requirement that the Bayesian network is a directed acyclic graph.
与现有技术相比,本发明技术方案的有益效果是:Compared with the prior art, the beneficial effects of the technical solution of the present invention are:
1)本发明采用熵函数原理从数据中获取节点序列顺序,避免了人为输入顺序的不确定性以及现有技术中采用有向生成树算法获取节点序列顺序的复杂性。1) The present invention adopts the principle of entropy function to obtain the node sequence order from the data, which avoids the uncertainty of the artificial input sequence and the complexity of obtaining the node sequence order by using the directed spanning tree algorithm in the prior art.
2)本发明采用在经典k2算法中融入初始结构的思想,极大降低了网络搜索及算法运行时间。2) The present invention adopts the idea of integrating the initial structure into the classical k2 algorithm, which greatly reduces the network search and algorithm running time.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本发明实施例的基于知识与数据混合的贝叶斯网络结构学习方法流程图;1 is a flowchart of a Bayesian network structure learning method based on knowledge and data mixing according to an embodiment of the present invention;
图2为本发明实施例中网络结构与邻接矩阵的对应关系图;Fig. 2 is the corresponding relation diagram of the network structure and the adjacency matrix in the embodiment of the present invention;
图3为本发明实施例中的贝叶斯网络结构示意图;3 is a schematic structural diagram of a Bayesian network in an embodiment of the present invention;
图4为本发明实施例中非法结构的示例图。FIG. 4 is an example diagram of an illegal structure in an embodiment of the present invention.
具体实施方式Detailed ways
本发明以K2算法为基础,通过整合专家知识以及节点预排序的方法,提出一种新的基于知识与数据相融合的混合贝叶斯网络结构学习方法,得到的混合贝叶斯网络可以用于汽车故障诊断。Based on the K2 algorithm, the invention proposes a new hybrid Bayesian network structure learning method based on the fusion of knowledge and data by integrating expert knowledge and node pre-sorting methods, and the obtained hybrid Bayesian network can be used for Car fault diagnosis.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
信息熵(熵函数)是处理不确定信息的有效方法,当不确定信息用概率表达时,信息熵可以转化为香浓熵。香浓熵于目前被广泛应用于信息处理领域中。Information entropy (entropy function) is an effective method to deal with uncertain information. When uncertain information is expressed by probability, information entropy can be converted into Shannon entropy. Shannon entropy is widely used in the field of information processing.
D-S证据理论(Dempster-Shafer)又被称为信念函数理论,该理论自提出以来在理论与应用中得到了很大的发展,是目前处理不确定信息的有效工具。D-S evidence theory (Dempster-Shafer), also known as belief function theory, has been greatly developed in theory and application since it was put forward, and it is an effective tool for dealing with uncertain information at present.
参照图1,其示出了本发明实施例的一种基于混合贝叶斯网络的汽车故障诊断方法的流程图。假设发动机在20~25摄氏度温度下冷车启动困难为父节点,其关联子节点分别为燃油质量、火花塞、水温传感器、燃油压力调节器、燃油泵电路、油管、气缸压缩压力,将以上部件构成贝叶斯网络图。Referring to FIG. 1 , it shows a flowchart of an automobile fault diagnosis method based on a hybrid Bayesian network according to an embodiment of the present invention. Assuming that the engine is difficult to start cold at a temperature of 20 to 25 degrees Celsius is the parent node, and its associated child nodes are fuel quality, spark plug, water temperature sensor, fuel pressure regulator, fuel pump circuit, fuel pipe, and cylinder compression pressure. The above components are composed of Bayesian network diagram.
包括以下步骤:Include the following steps:
S1、收集群专家提供的汽车故障诊断中所有节点间关系的信息,采用D-S证据理论对获取的节点关系进行融合,对融合结果进行决策并将决策后的有效信息转化为邻接矩阵。S1. Collect the information on the relationship between all nodes in the vehicle fault diagnosis provided by the group experts, use the D-S evidence theory to fuse the obtained node relationship, make a decision on the fusion result and convert the effective information after the decision into an adjacency matrix.
通过对汽车故障诊断问题进行所有节点间关系的群专家知识收集,由D-S证据理论进行融合,获取准确的先验信息作为已知因果关系。Through the collection of group expert knowledge on the relationship between all nodes in the problem of automobile fault diagnosis, the D-S evidence theory is used for fusion, and accurate prior information is obtained as the known causal relationship.
在收集专家知识的过程中,对于任意两个节点(i,j)间存在三种因果关系,即i→j表示由专家确定存在i指向j的有向边,j→i表示由专家确定存在j指向i的有向边,i≠j说明节点间不存在指向关系。待全部知识收集完成后,可得所有专家的信度分配如表1所示。In the process of collecting expert knowledge, there are three causal relationships between any two nodes (i, j), that is, i→j means that the expert determines that there is a directed edge from i to j, and j→i means that the expert determines that there is a directed edge. j points to the directed edge of i, i≠j indicates that there is no pointing relationship between nodes. After all the knowledge collection is completed, the reliability distribution of all experts can be obtained as shown in Table 1.
表1Table 1
其中Ek(1≤k≤n)代表第k个专家,A1,A2......Ah表示汽车故障诊断问题中的任一假设或命题,m1,m2......mn表示假设或命题的概率分配,在得到全部n位专家的意见分配后,应用D-S规则进行融合,在对n位专家意见应用D-S规则融合后,得到最终的融合结果,D-S融合规则如下:where E k (1≤k≤n) represents the kth expert, A 1 , A 2 ......A h represents any hypothesis or proposition in the automobile fault diagnosis problem, m 1 , m 2 ...... ... m n represents the probability distribution of the hypothesis or proposition. After obtaining the opinion distribution of all n experts, apply the DS rule for fusion, and after applying the DS rule fusion to the n expert opinions, the final fusion result is obtained, DS fusion The rules are as follows:
设识别框架(样本空间)Ω是一组相互独立但总体详尽事件的集合,如下所示:Let the recognition frame (sample space) Ω be a set of mutually independent but overall exhaustive events as follows:
Ω={θ1,θ2,…,θi,…,θn};Ω={θ 1 , θ 2 , ..., θ i , ..., θ n };
Ω的幂集2Ω代表所有假设或命题,表示为:The power set of Ω 2 Ω represents all hypotheses or propositions, expressed as:
对于一个具体的识别框架Ω,它的基本信息分配函数为2θ在[0,1]上的映射;For a specific recognition framework Ω, its basic information distribution function is the mapping of 2θ on [ 0 , 1];
m:2θ→[0,1];满足:其中φ表示空集。m: 2 θ → [0, 1]; satisfy: where φ represents the empty set.
已知m1和m2的两个基本概率分配,D-S证据理论的组合规则如下所示。Given the two basic probability assignments of m1 and m2, the combination rules of DS evidence theory are as follows.
其中,m(A)为融合结果,A,B,C分别表示汽车故障诊断问题中的命题或假设;φ表示空集,K代表冲突系数,当K=0时,说明m1和m2之间没有冲突。Among them, m(A) is the fusion result, A, B, C respectively represent propositions or assumptions in automobile fault diagnosis; φ represents the empty set, K represents the conflict coefficient, when K=0, it means that the difference between m 1 and m 2 There is no conflict between.
在得到最终的融合结果m(Ah),1≤h≤4后,根据预先设置的阈值θ,决策是否存在对应的有向边,决策方式如下:After obtaining the final fusion result m(A h ), 1≤h≤4, according to the preset threshold θ, decide whether there is a corresponding directed edge. The decision-making method is as follows:
若m(A1)>θ,则确定i→j;If m(A 1 )>θ, then determine i→j;
若m(A2)>θ,则确定j→i;If m(A 2 )>θ, then determine j→i;
若m(A3)>θ,则确定i≠j;If m(A 3 )>θ, then determine i≠j;
若m(A4)>θ或m(Ah)均小于θ,则认为对该两节点间关系无法确定,后续则按无专家信息处理。If m(A 4 )>θ or m(A h ) are both less than θ, it is considered that the relationship between the two nodes cannot be determined, and subsequent processing is treated as no expert information.
对经融合后明确的节点间关系以邻接矩阵的形式给出,网络结构与邻接矩阵的对应关系如图2所示。The clear inter-node relationship after fusion is given in the form of an adjacency matrix, and the corresponding relationship between the network structure and the adjacency matrix is shown in Figure 2.
若经多专家信息融合后,准确得到存在节点1指向节点2的有向边,节点3与节点5,节点4与节点8间没有连接边,即1→2,节点3≠5,节点4≠8。将多专家知识融合结果转化为邻接矩阵A的形式:If the multi-expert information is fused, it can be accurately obtained that there is a directed edge from
S2、依据得到的邻接矩阵作为先验结构,将先验结构与K2算法相结合,通过先验结构限定K2算法的搜索空间。S2. According to the obtained adjacency matrix as a priori structure, the priori structure is combined with the K2 algorithm, and the search space of the K2 algorithm is limited by the priori structure.
原始的K2算法实现过程中,对每一个节点,从一个空节点集开始,根据预先输入的节点顺序关系不断增加与父节点的连接边并判断网络分数变化,若分数增加,则将该节点输入为空的父节点集。本发明实施例中,经融合后邻接矩阵中1→2,则说明节点2的父节点集中必然包含节点1。因此,改进过程中对于部分节点搜索父节点的过程中,将不再是从空节点集开始。而对于节点3与节点5,节点4与节点8之间,明确不存在有向边,若在后续搜索过程中,即使添加该有向边能够使得整个网络整体评分更高,也根据先验网络的预先设置,强制取消该有向边。In the implementation process of the original K2 algorithm, for each node, starting from an empty node set, according to the pre-input node sequence relationship, the connection edge with the parent node is continuously increased, and the network score changes are judged. If the score increases, the node is input. An empty set of parent nodes. In the embodiment of the present invention, 1→2 in the adjacency matrix after fusion means that
S3、在汽车故障数据中计算各个节点的熵函数并排序得到节点序列。S3. Calculate the entropy function of each node in the vehicle fault data and sort to obtain a node sequence.
具体实现可以是:The specific implementation can be:
分别计算所述汽车故障数据中各个节点的信息熵并排序,选择第一节点为起始节点;Calculate and sort the information entropy of each node in the vehicle fault data respectively, and select the first node as the starting node;
计算在已选择的节点已知的条件下其余节点的条件熵并排序,选择一个节点作为第N顺序节点;Calculate and sort the conditional entropy of the remaining nodes under the condition that the selected node is known, and select a node as the Nth order node;
重复执行上述条件熵的计算,直至得到最后顺序点,每次条件熵的计算中所述已选择的节点包括本次计算之前选择的节点,其中N为大于1小于节点总数的正整数;Repeat the calculation of the above conditional entropy until the final sequence point is obtained, the selected nodes in each calculation of the conditional entropy include the nodes selected before this calculation, wherein N is a positive integer greater than 1 and less than the total number of nodes;
根据所述起始节点和各个顺序节点,得到节点序列。According to the starting node and each sequence node, a node sequence is obtained.
其中,信息熵可以按照如下方式计算:Among them, the information entropy can be calculated as follows:
设X是一个离散随机变量,X的可能取值为{x1,x2...xn},则香浓熵表达为:Suppose X is a discrete random variable, and the possible values of X are {x 1 , x 2 ... x n }, then the Shannon entropy is expressed as:
其中p(x)是X的边缘概率分布函数。where p(x) is the marginal probability distribution function of X.
条件熵可以按照如下方式计算:Conditional entropy can be calculated as follows:
设p(x,y)为离散变量X和Y的联合分布函数,其可能取值为{(x1,y1),(x2,y2),...(xn,yn)},则联合分布函数表示为:Let p(x, y) be the joint distribution function of discrete variables X and Y, and its possible values are {(x 1 , y 1 ), (x 2 , y 2 ),...(x n , y n ) }, then the joint distribution function is expressed as:
在给定X的条件下,Y的信息熵称为条件熵,则条件熵可以表示为:Under the condition of given X, the information entropy of Y is called the conditional entropy, then the conditional entropy can be expressed as:
其中p(x,y)是X和Y的联合概率分布函数,p(x)是X的边缘概率分布函数。where p(x, y) is the joint probability distribution function of X and Y, and p(x) is the marginal probability distribution function of X.
条件熵还可以表达为:Conditional entropy can also be expressed as:
H(Y|X)=H(X,Y)-H(X);H(Y|X)=H(X,Y)-H(X);
参见图3,其示出了本发明实施例中的一种用于汽车故障诊断的贝叶斯网络结构,该贝叶斯网络结构包括8个节点。以该贝叶斯网络结构为例说明得到节点序列的具体过程,如下所示:Referring to FIG. 3 , it shows a Bayesian network structure for automobile fault diagnosis in an embodiment of the present invention, where the Bayesian network structure includes 8 nodes. Taking the Bayesian network structure as an example to illustrate the specific process of obtaining the node sequence, as shown below:
(1)分别计算8个节点的信息熵并排序,所得结果为:H(1)<H(3)<H(5)<H(4)<H(7)<H(6)<H(8)<H(2),若经计算H(1)最小,则选中节点1为起始节点。(1) Calculate and sort the information entropy of 8 nodes respectively, the result is: H(1)<H(3)<H(5)<H(4)<H(7)<H(6)<H( 8)<H(2), if H(1) is the smallest after calculation,
(2)计算在节点1已知条件下其余节点的条件熵并排序。所得结果为:H(2|1)<H(4|1)<H(3|1)<H(5|1)<H(6|1)<H(7|1)<H(8|1),选择节点2作为第二个顺序节点。(2) Calculate the conditional entropy of the remaining nodes under the known conditions of
(3)计算在节点1、2已知条件下的条件熵并排序,所得结果为:H(4|1,2)<H(3|1,2)<H(5|1,2)<H(6|1,2)<H(7|1,2)<H(8|1,2),选择节点4作为第三顺序点。(3) Calculate and sort the conditional entropy under the known conditions of
(4)计算在节点1、2、4已知下的条件熵并排序,所得结果为:H(3|1,2,4)<H(5|1,2,4)<H(6|1,2,4)<H(7|1,2,4)<H(8|1,2,4),则节点3为第四顺序点。(4) Calculate and sort the conditional entropy when
(5)计算在节点1、2、4、3已知下的条件熵并排序,所得结果为:H(6|1,2,4,3)<H(5|1,2,4,3)<H(7|1,2,4,3)<H(8|1,2,4,3),则节点6为第五顺序点。(5) Calculate and sort the conditional entropy when
(6)计算在节点1、2、4、3、6已知下的条件熵并排序,所得结果为:H(5|1,2,4,3,6)<H(8|1,2,4,3,6)<H(7|1,2,4,3,6),则节点5为第六顺序点。(6) Calculate and sort the conditional entropy under known
(7)计算在节点1、2、4、3、6、5已知下的条件熵并排序,所得结果为:H(7|1,2,4,3,6,5)<H(8|1,2,4,3,6,5),则节点7为第七顺序点,节点8为最后顺序点。(7) Calculate and sort the conditional entropy when
得到的节点序列为:节点1-节点2-节点4-节点3-节点6-节点5-节点7-节点8。The obtained node sequence is: node 1 - node 2 - node 4 - node 3 - node 6 - node 5 - node 7 - node 8.
S4、将所述节点序列输入到融合先验结构的K2算法中进行贝叶斯网络结构学习,得到混合贝叶斯网络结构;S4, inputting the node sequence into the K2 algorithm fused with the prior structure to learn the Bayesian network structure to obtain a hybrid Bayesian network structure;
将所得节点序列输入到融合专家知识的K2算法中。(改变同层次的节点顺序不影响K2算法的学习结果),本发明实施例中以贝叶斯信息度量BIC评分作为评分函数:The resulting node sequence is input into the K2 algorithm fused with expert knowledge. (changing the node order of the same level does not affect the learning result of the K2 algorithm), in the embodiment of the present invention, the Bayesian information metric BIC score is used as the scoring function:
scoreBIC(G:D)=scoreMLE(G:D)-0.5logM*DIM[G];score BIC (G:D)=score MLE (G:D)-0.5logM*DIM[G];
其中scoreMLE(G:D)为最大似然计分函数,代表网络结构的维度。where score MLE (G:D) is the maximum likelihood scoring function, Represents the dimension of the network structure.
在利用改进后的K2算法进行结构学习,搜索过程中得到的结构状态可能由于不再符合无环图的属性而变得不可行,这时需要对非法结构(如图4)进行修正处理,步骤如下:When using the improved K2 algorithm for structure learning, the structure state obtained in the search process may become infeasible because it no longer conforms to the properties of the acyclic graph. At this time, the illegal structure (as shown in Figure 4) needs to be corrected. Steps as follows:
若矩阵中两个节点之间互相依赖,存在双向弧是不合理的,可以随机选择两者之一置0;If two nodes in the matrix are mutually dependent, it is unreasonable to have a bidirectional arc, and one of the two can be randomly selected and set to 0;
若矩阵中存在封闭环路结构,应该在环路中随机选择删除边或反转边,以满足贝叶斯网络为有向无环图的要求。If there is a closed loop structure in the matrix, the deletion edge or the reverse edge should be randomly selected in the loop to meet the requirement that the Bayesian network is a directed acyclic graph.
S5、基于所述混合贝叶斯网络结构进行汽车故障诊断,得到汽车故障诊断结果。S5. Perform automobile fault diagnosis based on the hybrid Bayesian network structure to obtain an automobile fault diagnosis result.
本发明实施例采用的基于条件熵的序列生成法与融合专家信息的K2算法相结合的混合贝叶斯网络结构学习方法。在无专家知识的情况下也可以得到与利用互信息排序相同的性能效果但计算量却更加简便。在此之上,增加矩阵A内的专家知识得到本发明所提方法,与仅利用数据进行排序搜索的MWST和MMHC算法相比,在K2算法内部融入少量专家知识便可得到更好的性能效果,并能够修正可能由于样本数据缺失或输入顺序差异较大造成的偏差以学习到更好的网络结构。The embodiment of the present invention adopts a hybrid Bayesian network structure learning method combining the conditional entropy-based sequence generation method and the K2 algorithm fused with expert information. In the case of no expert knowledge, the same performance effect as using mutual information sorting can be obtained, but the amount of calculation is simpler. On top of this, the method proposed in the present invention is obtained by adding the expert knowledge in the matrix A. Compared with the MWST and MMHC algorithms that only use data for sorting and searching, a small amount of expert knowledge can be integrated into the K2 algorithm to obtain better performance. , and can correct the deviations that may be caused by missing sample data or large differences in input order to learn a better network structure.
下面是对本发明实施中改进后的K2算法进行验证:The following is to verify the improved K2 algorithm in the implementation of the present invention:
为避免过程随机性,将算法运行十次并选择加边(IE)、减边(ME)、反转边数目(RE)及汉明距离(SHD)等作为衡量评价指标,通过与目前较为流行的最大最小爬山法(MMHC)、最大生成树算法(MWST)以及互信息排序(MI)和条件熵排序(Con-En)进行比较,验证本发明提供的融合知识与数据的混合贝叶斯网络结构学习方法的优势,如表2所示。In order to avoid the randomness of the process, the algorithm is run ten times and the edge addition (IE), the edge subtraction (ME), the number of reverse edges (RE) and the Hamming distance (SHD) are selected as the evaluation indicators. The maximum and minimum hill climbing method (MMHC), maximum spanning tree algorithm (MWST), mutual information sorting (MI) and conditional entropy sorting (Con-En) are compared to verify the hybrid Bayesian network of fusion knowledge and data provided by the present invention. The advantages of structure learning methods are shown in Table 2.
表2Table 2
在此基础上,通过不断增加专家知识数量,使得经融合后能够确定更多的节点间关系,记录相应结果,对发明原理进行进一步地验证,具体如表3所示。On this basis, by continuously increasing the amount of expert knowledge, more inter-node relationships can be determined after fusion, the corresponding results can be recorded, and the principle of the invention can be further verified, as shown in Table 3.
表3table 3
由表3的学习结果可知,随着专家数量的增加,能够确定的节点间关系也更多,贝叶斯网络结构学习的性能不断改善,学习得到的网络结构更加的接近了原始结构即增加专家知识的数量可以提高学习结果的准确性。因此,从以上分析可以看出,专家知识在贝叶斯网络结构学习方面发挥着重要作用。It can be seen from the learning results in Table 3 that as the number of experts increases, more relationships between nodes can be determined, the performance of Bayesian network structure learning continues to improve, and the learned network structure is closer to the original structure, that is, increasing the number of experts. The amount of knowledge can improve the accuracy of learning results. Therefore, it can be seen from the above analysis that expert knowledge plays an important role in Bayesian network structure learning.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply these entities or that there is any such actual relationship or sequence between operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments can be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments enables any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, this application is not intended to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010941854.5A CN112085202A (en) | 2020-09-09 | 2020-09-09 | Automobile fault diagnosis method based on hybrid Bayesian network |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010941854.5A CN112085202A (en) | 2020-09-09 | 2020-09-09 | Automobile fault diagnosis method based on hybrid Bayesian network |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN112085202A true CN112085202A (en) | 2020-12-15 |
Family
ID=73732197
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010941854.5A Pending CN112085202A (en) | 2020-09-09 | 2020-09-09 | Automobile fault diagnosis method based on hybrid Bayesian network |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112085202A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113128076A (en) * | 2021-05-18 | 2021-07-16 | 北京邮电大学 | Power dispatching automation system fault tracing method based on bidirectional weighted graph model |
| CN117151465A (en) * | 2023-08-29 | 2023-12-01 | 重庆大学 | Intelligent network-connected automobile motor system fault mode influence analysis method and system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AU2011265563A1 (en) * | 2010-12-24 | 2012-07-12 | Commonwealth Scientific And Industrial Research Organisation | System and method for detecting and/or diagnosing faults in multi-variable systems |
| CN103577707A (en) * | 2013-11-15 | 2014-02-12 | 上海交通大学 | Robot failure diagnosis method achieved by multi-mode fusion inference |
| CN104217251A (en) * | 2014-08-12 | 2014-12-17 | 西北工业大学 | Equipment failure Bayesian network prediction method based on K2 algorithm |
| CN105956290A (en) * | 2016-05-06 | 2016-09-21 | 国网江苏省电力公司检修分公司 | High-voltage circuit breaker mechanical fault diagnosis method based on multi-data fusion technology |
| CN108345723A (en) * | 2018-01-24 | 2018-07-31 | 江苏新中天塑业有限公司 | A kind of Diagnostic system of motor fault and method based on decision tree and Bayesian network |
| CN110208643A (en) * | 2019-04-28 | 2019-09-06 | 国网辽宁省电力有限公司电力科学研究院 | A kind of electric network failure diagnosis method based on PMU data and fault recorder data |
| CN111488946A (en) * | 2020-04-28 | 2020-08-04 | 东南大学 | Fault Diagnosis Method of Radar Servo System Based on Information Fusion |
-
2020
- 2020-09-09 CN CN202010941854.5A patent/CN112085202A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| AU2011265563A1 (en) * | 2010-12-24 | 2012-07-12 | Commonwealth Scientific And Industrial Research Organisation | System and method for detecting and/or diagnosing faults in multi-variable systems |
| CN103577707A (en) * | 2013-11-15 | 2014-02-12 | 上海交通大学 | Robot failure diagnosis method achieved by multi-mode fusion inference |
| CN104217251A (en) * | 2014-08-12 | 2014-12-17 | 西北工业大学 | Equipment failure Bayesian network prediction method based on K2 algorithm |
| CN105956290A (en) * | 2016-05-06 | 2016-09-21 | 国网江苏省电力公司检修分公司 | High-voltage circuit breaker mechanical fault diagnosis method based on multi-data fusion technology |
| CN108345723A (en) * | 2018-01-24 | 2018-07-31 | 江苏新中天塑业有限公司 | A kind of Diagnostic system of motor fault and method based on decision tree and Bayesian network |
| CN110208643A (en) * | 2019-04-28 | 2019-09-06 | 国网辽宁省电力有限公司电力科学研究院 | A kind of electric network failure diagnosis method based on PMU data and fault recorder data |
| CN111488946A (en) * | 2020-04-28 | 2020-08-04 | 东南大学 | Fault Diagnosis Method of Radar Servo System Based on Information Fusion |
Non-Patent Citations (5)
| Title |
|---|
| ROSA AGHDAM等: "Some node ordering methods for the K2 algorithm", 《COMPUTATIONAL INTELLIGENCE》 * |
| YISHAN GONG等: "Application Research on Bayesian Network and D-S Evidence Theory in Motor Fault Diagnosis", 《2013 6TH INTERNATIONAL CONFERENCE ON INTELLIGENT NETWORKS AND INTELLIGENT SYSTEMS (ICINIS)》 * |
| YUE PAN等: "Improved Fuzzy Bayesian Network-Based Risk Analysis With Interval-Valued Fuzzy Sets and D–S Evidence Theory", 《IEEE TRANSACTIONS ON FUZZY SYSTEMS》 * |
| 张振海等: "基于专家知识融合的贝叶斯网络结构学习方法", 《计算机工程与应用》 * |
| 王海羽等: "基于节点块序列约束的局部贝叶斯网络结构搜索算法", 《自动化学报》 * |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113128076A (en) * | 2021-05-18 | 2021-07-16 | 北京邮电大学 | Power dispatching automation system fault tracing method based on bidirectional weighted graph model |
| CN117151465A (en) * | 2023-08-29 | 2023-12-01 | 重庆大学 | Intelligent network-connected automobile motor system fault mode influence analysis method and system |
| CN117151465B (en) * | 2023-08-29 | 2024-08-20 | 重庆大学 | Intelligent connected vehicle motor system failure mode impact analysis method and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109447261B (en) | A Method for Network Representation Learning Based on Multi-Order Neighborhood Similarity | |
| Yuan et al. | Removing data heterogeneity influence enhances network topology dependence of decentralized sgd | |
| CN113434756A (en) | Personalized comment recommendation method based on graph bidirectional aggregation network link prediction model | |
| CN110851491A (en) | Network link prediction method based on multiple semantic influences of multiple neighbor nodes | |
| CN112085202A (en) | Automobile fault diagnosis method based on hybrid Bayesian network | |
| CN111860790B (en) | A method and system for improving the accuracy of deep residual spiking neural network to optimize image classification | |
| CN111144570A (en) | Knowledge representation method combining logic rules and confidence degrees | |
| CN105306296A (en) | Data filter processing method based on LTE (Long Term Evolution) signaling | |
| CN114625883B (en) | A representation method of time series data and knowledge fusion for abnormal monitoring of industrial equipment | |
| CN114254738B (en) | Construction method and application of two-layer evolving dynamic graph convolutional neural network model | |
| CN116633758B (en) | Network fault prediction method and system based on fully heterogeneous meta-contrastive learning model | |
| CN115391553A (en) | A Method for Automatically Searching Time-series Knowledge Graph Completion Model | |
| CN107402859A (en) | Software function verification system and verification method thereof | |
| CN117709449A (en) | Knowledge graph correction method based on data correlation and causal mode | |
| Tang et al. | Universal triple I method for fuzzy reasoning and fuzzy controller | |
| CN114154022B (en) | A case source clue classification processing method based on hierarchical graph convolutional neural network model | |
| CN111460275A (en) | A social network-oriented dynamic network representation learning method and system | |
| CN106127595A (en) | A kind of community structure detection method based on positive and negative side information | |
| CN114462607A (en) | A causal reasoning method and system based on hyperbolic space-enhanced event graph | |
| CN114692495A (en) | An Efficient Reliability Evaluation Method for Complex Systems Based on Reliability Block Diagram | |
| CN117633635B (en) | Dynamic rumor detection method based on space-time propagation diagram | |
| CN111047041B (en) | Criminal reconstruction method and device based on Bayesian network inference model | |
| Conitzer et al. | Rules for choosing societal tradeoffs | |
| CN118210922A (en) | False news detection method based on graph roll-up network and attention mechanism | |
| CN115982556A (en) | Heterogeneous graph embedding learning method based on attribute completion |
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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201215 |
|
| RJ01 | Rejection of invention patent application after publication |