[go: up one dir, main page]

CN108134680B - A kind of systematic survey node optimization configuration method based on Bayesian network - Google Patents

A kind of systematic survey node optimization configuration method based on Bayesian network Download PDF

Info

Publication number
CN108134680B
CN108134680B CN201611078752.5A CN201611078752A CN108134680B CN 108134680 B CN108134680 B CN 108134680B CN 201611078752 A CN201611078752 A CN 201611078752A CN 108134680 B CN108134680 B CN 108134680B
Authority
CN
China
Prior art keywords
node
bayesian network
fault
particle
measuring point
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
CN201611078752.5A
Other languages
Chinese (zh)
Other versions
CN108134680A (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.)
Shenyang Institute of Automation of CAS
Original Assignee
Shenyang Institute of Automation of CAS
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 Shenyang Institute of Automation of CAS filed Critical Shenyang Institute of Automation of CAS
Priority to CN201611078752.5A priority Critical patent/CN108134680B/en
Publication of CN108134680A publication Critical patent/CN108134680A/en
Application granted granted Critical
Publication of CN108134680B publication Critical patent/CN108134680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The systematic survey node optimization configuration method based on Bayesian network that the present invention relates to a kind of, establishes the Bayesian network model of system;The mutual information matrix between malfunctioning node and measuring node is calculated according to Bayesian network model;Measuring point is calculated to the contribution degree of Fault Node Diagnosis according to the mutual information matrix between malfunctioning node and measuring node, determines integral diagnostic capability index;According to measuring point to contribution degree and measuring point cost and measuring point quantity the limitation description optimization problem of Fault Node Diagnosis;The discrete binary particle swarm algorithm of application enhancements optimizes processing, and obtain measuring point distributes result rationally.The present invention considers Optimum sensor placement problem under that condition that the constraint conditions are met, more meet practical engineering application, the trouble diagnosibility and measurement cost problem of measuring point are considered simultaneously, then processing is optimized by improved optimization algorithm, to find the optimal measuring node allocation plan of system.

Description

一种基于贝叶斯网络的系统测量节点优化配置方法A Method for Optimal Configuration of System Measurement Nodes Based on Bayesian Network

技术领域technical field

本发明涉及复杂系统控制及故障诊断领域,具体地说是一种基于贝叶斯网络的系统测量节点优化配置方法。The invention relates to the field of complex system control and fault diagnosis, in particular to a Bayesian network-based system measurement node optimization configuration method.

背景技术Background technique

故障诊断是保证系统可靠运行的关键,故障诊断是通过测点对系统的关键变量进行检测获得变量的故障信息,根据故障信息确定系统的故障征兆。而系统在进行故障诊断时,往往要求使用尽可能少的测点获得尽可能多的故障信息,满足对故障的最大的诊断能力,即测点的优化配置是关键。对于航天器姿态控制系统这样的大型复杂系统来说,为保证其长期可靠运行,需要为其配置测点获取故障信息,最大化测点的故障诊断能力。在实际工程中为了得到尽可能多的信息,往往需要配置很多传感器,但这样的配置存在一定的盲目性且还会造成资源的浪费,在资源成本限制下,测点的优化配置就显得尤为重要。Fault diagnosis is the key to ensure the reliable operation of the system. Fault diagnosis is to detect the key variables of the system through the measurement points to obtain the fault information of the variables, and determine the fault symptoms of the system according to the fault information. When the system performs fault diagnosis, it is often required to use as few measuring points as possible to obtain as much fault information as possible to meet the maximum fault diagnosis capability, that is, the optimal configuration of measuring points is the key. For a large and complex system such as the spacecraft attitude control system, in order to ensure its long-term reliable operation, it is necessary to configure measuring points to obtain fault information and maximize the fault diagnosis capabilities of the measuring points. In actual engineering, in order to obtain as much information as possible, it is often necessary to configure a lot of sensors, but such a configuration has a certain degree of blindness and will also cause a waste of resources. Under the limitation of resource costs, the optimal configuration of measuring points is particularly important. .

发明内容Contents of the invention

针对现有技术的不足,本发明提供一种基于贝叶斯网络的系统测量节点优化配置方法,解决了航天器等复杂系统在进行故障诊断时测点配置方案的诊断能力及成本问题。Aiming at the deficiencies of the prior art, the present invention provides a Bayesian network-based system measurement node optimization configuration method, which solves the problem of diagnostic capability and cost of measurement point configuration schemes during fault diagnosis of spacecraft and other complex systems.

本发明为实现上述目的所采用的技术方案是:The technical scheme that the present invention adopts for realizing the above object is:

一种基于贝叶斯网络的系统测量节点优化配置方法,包括以下步骤:A method for optimal configuration of system measurement nodes based on Bayesian network, comprising the following steps:

步骤1:建立系统的贝叶斯网络模型;Step 1: Establish a Bayesian network model of the system;

步骤2:根据贝叶斯网络模型计算故障节点和测量节点间的互信息矩阵;Step 2: Calculate the mutual information matrix between the fault node and the measurement node according to the Bayesian network model;

步骤3:根据故障节点和测量节点间的互信息矩阵计算测点对故障节点诊断的贡献度,确定综合诊断能力指标;Step 3: According to the mutual information matrix between the fault node and the measurement node, calculate the contribution of the measurement point to the diagnosis of the fault node, and determine the comprehensive diagnosis ability index;

步骤4:根据测点对故障节点诊断的贡献度及测点成本和测点数量限制描述优化问题;Step 4: Describe the optimization problem according to the contribution of the measuring point to the diagnosis of the faulty node, the cost of the measuring point and the limit of the number of measuring points;

步骤5:应用改进的离散二进制粒子群算法进行优化处理,得出测点的优化配置结果。Step 5: Apply the improved discrete binary particle swarm optimization algorithm to obtain the optimal configuration results of the measuring points.

所述建立系统的贝叶斯网络模型包括以下过程:The Bayesian network model of the described establishment system comprises the following processes:

步骤1:根据系统的结构及故障模式对系统进行故障模式与理象分析,确定贝叶斯网络的节点及贝叶斯网络的拓扑结构;Step 1: Analyze the failure mode and rationale of the system according to the system structure and failure mode, and determine the nodes of the Bayesian network and the topology of the Bayesian network;

步骤2:在贝叶斯网络的拓扑结构基础上,根据极大熵方法确定节点的验前分布;Step 2: On the basis of the topology of the Bayesian network, determine the prior distribution of the nodes according to the maximum entropy method;

步骤3:根据历史故障数据及专家经验确定节点参数值,即节点的条件概率分布,完成贝叶斯网络模型建立。Step 3: Determine the node parameter value, that is, the conditional probability distribution of the node according to the historical fault data and expert experience, and complete the establishment of the Bayesian network model.

所述根据极大熵方法确定节点的验前分布过程为:The process of determining the prior distribution of nodes according to the maximum entropy method is:

HB(a*,b*)=max(HB(a,b))H B (a * ,b * )=max(H B (a,b))

a≥0,b≥0a≥0,b≥0

a/(a+b)=p0 a/(a+b)=p 0

其中,a为极大熵的验前分布参数;b为极大熵的验前分步参数;p为概率参数;a*和b*分别为参数a和b的最优值;Beta()为贝塔分布;dp为对概率参数p进行求导;HB为极大熵符号;p0为概率参数p的均值。Among them, a is the prior distribution parameter of the maximum entropy; b is the prior step-by-step parameter of the maximum entropy; p is the probability parameter; a * and b * are the optimal values of the parameters a and b respectively; Beta() is Beta distribution; dp is the derivative of the probability parameter p; H B is the maximum entropy symbol; p 0 is the mean value of the probability parameter p.

所述节点的条件概率分布为:The conditional probability distribution of the nodes is:

其中,π(p)为验前分布;p(D|p)为样本数据;π(p|D)为节点的条件概率分布;D为样本数据;dp为对参数p进行求导;p为概率参数。Among them, π(p) is the prior distribution; p(D|p) is the sample data; π(p|D) is the conditional probability distribution of the node; D is the sample data; dp is the derivative of the parameter p; p is probability parameter.

所述故障节点和测量节点间的互信息矩阵为:The mutual information matrix between the fault node and the measurement node is:

其中,I为故障节点和测量节点间的互信息矩阵;Iij为故障节点i和测量节点j之间的互信息;m为故障节点的数量;n为测量节点的数量;P为故障节点的概率值;fi=1表示为故障节点i处于故障状态,fi=0表示为故障节点i处于正常状态;sj=1表示为配置测量节点j,sj=0表示为不配置测量节点j。Among them, I is the mutual information matrix between the faulty node and the measuring node; I ij is the mutual information between the faulty node i and the measuring node j; m is the number of faulty nodes; n is the number of measuring nodes; Probability value; f i = 1 means that the faulty node i is in the fault state, f i = 0 means that the faulty node i is in the normal state; s j = 1 means that the measurement node j is configured, and s j = 0 means that the measurement node is not configured j.

所述故障节点诊断的贡献度为:The contribution degree of the faulty node diagnosis is:

Esj=(G-Gsj)/GE sj =(GG sj )/G

G=trace(T)G=trace(T)

T=(ITI)T T = (I T I) T

其中,Esj为故障节点诊断的贡献度;Gsj是根据测点组中去掉第j个测点后的互信息矩阵的特征值的和;G为矩阵所有特征值的和;T为诊断信息矩阵;ITI记为矩阵TT,TT为m×m的满秩矩阵。Among them, E sj is the contribution degree of faulty node diagnosis; G sj is the sum of the eigenvalues of the mutual information matrix after removing the jth measuring point in the measuring point group; G is the sum of all the eigenvalues of the matrix; T is the diagnosis information Matrix; I T I is recorded as matrix T T , and T T is a full-rank matrix of m×m.

所述根据贡献度及测点成本和数量描述优化问题过程为:The process of describing the optimization problem according to the degree of contribution and the cost and quantity of measuring points is:

将故障节点诊断的贡献度、测点成本和测点数量限制转化为一个目标函数:Transform the contribution of faulty node diagnosis, the cost of measuring points and the limit of the number of measuring points into an objective function:

其中,为故障节点诊断的贡献度;为测点成本;为测点数量限制;Q是一个惩罚因子,其取值为一个充分大的正数;N为限制的测点数量;D为行向量,其元素都为1;xi为优化问题的解,即测点配置情况;minf(xi)为优化问题。in, Contribution to faulty node diagnosis; is the measuring point cost; Q is a penalty factor, its value is a sufficiently large positive number; N is the limited number of measurement points; D is a row vector, and its elements are all 1; x i is the solution of the optimization problem, That is, the configuration of measuring points; minf( xi ) is an optimization problem.

所述改进的离散二进制粒子群算法为:The improved discrete binary particle swarm optimization algorithm is:

步骤1:初始化粒子群,计算粒子的初始位置和初始速度;Step 1: Initialize the particle swarm, calculate the initial position and initial velocity of the particles;

步骤2:计算目标函数值,确定个体最优值和全体最优值,并根据粒子群算法的速度更新算法更新粒子速度值;Step 2: Calculate the objective function value, determine the individual optimal value and the overall optimal value, and update the particle velocity value according to the velocity update algorithm of the particle swarm optimization algorithm;

步骤3:根据迭代次数更新粒子的位置值,如果当前迭代次数小于预设参数,则采用具有全局搜索能力的粒子位置更新算法,否则采用具有局部搜索能力的粒子位置更新算法。Step 3: Update the position value of the particle according to the number of iterations. If the current number of iterations is less than the preset parameter, use the particle position update algorithm with global search capability, otherwise use the particle position update algorithm with local search capability.

所述粒子的初始位置为:The initial position of the particle is:

所述粒子的初始速度为:The initial velocity of the particle is:

vid=vmin+rand()(vmax-vmin)v id =v min +rand()(v max -v min )

粒子群算法的速度更新算法为:The speed update algorithm of the particle swarm algorithm is:

vid=ω·vid+c1·rand()·(pid-xid)+c2·rand()·(pgd-xid)v id =ω·v id +c 1 ·rand()·(p id -x id )+c 2 ·rand()·(p gd -x id )

具有全局搜索能力的粒子位置更新算法为:The particle position update algorithm with global search capability is:

具有局部搜索能力的粒子位置更新算法为:The particle position update algorithm with local search capability is:

当vid≤0时, When v id ≤ 0,

当vid>0时, When v id >0,

其中,vmax为速度的最大限制值;vmin为速度的最小限制值;rand()是一个随机数,从区间[0,1]的统一分布中随机产生;i为粒子群的粒子数;d为粒子群的维数,表示系统的可配置测点总数;w为惯性权重,用于平衡算法全局搜索和局部搜索能力;c1和c2表示加速常数,也能起到平衡算法全局搜索与局部搜索能力的作用;s(vid)表示位置xid取1的概率;xid为粒子当前位置;vid为粒子当前速度;pid为粒子当前个体最优值;pgd为粒子当前全体最优值;exp()为指数函数。Among them, v max is the maximum limit value of speed; v min is the minimum limit value of speed; rand() is a random number, randomly generated from the uniform distribution in the interval [0,1]; i is the number of particles in the particle swarm; d is the dimension of the particle swarm, indicating the total number of configurable measuring points in the system; w is the inertia weight, which is used to balance the global search and local search capabilities of the algorithm; c 1 and c 2 represent acceleration constants, which can also balance the global search of the algorithm The effect of local search ability; s(v id ) represents the probability that the position x id is 1; x id is the current position of the particle; v id is the current velocity of the particle; p id is the current individual optimal value of the particle; Overall optimal value; exp() is an exponential function.

所述预设参数为:The preset parameters are:

cys=r*Mc ys =r*M

其中,cys为预设参数;r为比例参数;M为最大迭代次数。Among them, c ys is a preset parameter; r is a proportional parameter; M is the maximum number of iterations.

本发明具有以下有益效果及优点:The present invention has the following beneficial effects and advantages:

1.本发明考虑了在满足约束条件下的传感器优化配置问题,更符合实际工程应用。1. The present invention considers the problem of optimal configuration of sensors under constraint conditions, which is more in line with practical engineering applications.

2.本发明同时考虑了测点的故障诊断能力和测量成本问题,然后通过改进的优化算法进行优化处理,从而找到系统最佳的测量节点配置方案。2. The present invention simultaneously considers the problem of fault diagnosis ability and measurement cost of the measurement point, and then performs optimization processing through an improved optimization algorithm, so as to find the best measurement node configuration scheme of the system.

附图说明Description of drawings

图1为本发明的方法流程图;Fig. 1 is method flowchart of the present invention;

图2为本发明的建立系统贝叶斯网络模型的流程图;Fig. 2 is the flowchart of setting up system Bayesian network model of the present invention;

图3为本发明的优化问题描述的流程图;Fig. 3 is the flowchart of optimization problem description of the present invention;

图4为本发明的改进的离散二进制粒子群优化算法流程图。Fig. 4 is a flowchart of the improved discrete binary particle swarm optimization algorithm of the present invention.

具体实施方式Detailed ways

下面结合附图及实施例对本发明做进一步的详细说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

如图1所示为本发明的方法流程图。As shown in Figure 1, it is a flow chart of the method of the present invention.

步骤1:建立系统的贝叶斯网络模型,包括确定贝叶斯网络的拓扑结构及确定贝叶斯网络的条件概率分布:Step 1: Establish a systematic Bayesian network model, including determining the topology of the Bayesian network and determining the conditional probability distribution of the Bayesian network:

首先,根据系统的结构及故障模式对系统进行故障模式与理象分析(FMEA),以此确定贝叶斯网络的节点及贝叶斯网络的拓扑结构,即表示节点间连接关系的有向无环图。First, according to the structure and failure mode of the system, the failure mode and image analysis (FMEA) of the system is carried out to determine the nodes of the Bayesian network and the topology of the Bayesian network, that is, the directed-unconnected network that represents the connection relationship between nodes. Ring diagram.

然后,在建立好的贝叶斯网络拓扑结构的基础上,首先根据极大熵方法确定节点的验前分布,然后再根据历史故障数据及专家经验确定节点参数值即节点的条件概率分布。Then, on the basis of the established Bayesian network topology, first determine the prior distribution of nodes according to the maximum entropy method, and then determine the node parameter values, that is, the conditional probability distribution of nodes, according to historical fault data and expert experience.

步骤2:根据贝叶斯网络计算故障节点和测量节点间的互信息矩阵:Step 2: Calculate the mutual information matrix between the fault node and the measurement node according to the Bayesian network:

在系统配置测量节点时,为了提高对故障的有效诊断能力,需要考虑测点对故障的诊断能力。在贝叶斯网络中测量节点提供的关于故障节点的信息量越大,故障节点变量自身的不确定性改变程度越大。互信息越大,测点能够提供的故障节点的信息量也越大,对故障的诊断能力也越大,这时能更有效地实现系统的故障诊断。When the system configures the measurement nodes, in order to improve the effective diagnosis ability of the fault, it is necessary to consider the fault diagnosis ability of the measurement point. In the Bayesian network, the greater the amount of information about the faulty node provided by the measuring node, the greater the degree of uncertainty of the variable of the faulty node itself will change. The greater the mutual information, the greater the amount of information that the measuring point can provide on the fault node, and the greater the ability to diagnose faults. At this time, the fault diagnosis of the system can be realized more effectively.

用Iij表示第j个测量节点Sj对第i个故障节点Fi的诊断能力,可以用矩阵I来描述贝叶斯网络中所有测量节点对所有故障节点一一对应的诊断能力,将I称为故障节点和测量节点间的互信息矩阵,表示如下:Iij is used to represent the diagnostic ability of the jth measurement node S j to the ith faulty node F i , and the matrix I can be used to describe the one-to-one diagnostic capability of all measurement nodes in the Bayesian network to all faulty nodes. It is called the mutual information matrix between the fault node and the measurement node, expressed as follows:

其中in

式中P表示为概率,fi、sj分别为故障节点和测量节点的具体状态。In the formula, P is expressed as a probability, and f i and s j are the specific states of the fault node and the measurement node respectively.

步骤3:计算测点对故障诊断的贡献度:Step 3: Calculate the contribution of the measuring point to the fault diagnosis:

根据故障节点和测量节点间的互信息矩阵确定综合诊断能力指标,即计算测点对故障节点诊断的贡献度。According to the mutual information matrix between the fault node and the measurement node, the comprehensive diagnosis ability index is determined, that is, the contribution degree of the measurement point to the diagnosis of the fault node is calculated.

要保证故障的可识别性就是要求各故障节点对测点的概率影响是互不相同的,即要求故障-测点的互信息矩阵的行向量相互独立。将ITI记为矩阵TT,该矩阵为一m×m的满秩矩阵,并称矩阵T为诊断信息矩阵。此时故障节点信息与测点信息完全包含在诊断信息矩阵T中,因此可以通过提取矩阵T的特征值来达到测点优化的目的。诊断信息矩阵的迹trace(T)代表了矩阵所有特征值的和,也即测点组对所有偏差源的诊断能力总和。因此在测量节点的优化中将诊断信息矩阵的迹作为待选测点的评价指标,也称为综合诊断能力指标,所以以G=trace(T)为目标函数,定义第j个测点对故障节点综合诊断能力的贡献度为综合诊断能力指标:To ensure the identifiability of faults is to require that the probabilistic influence of each fault node on the measuring point is different from each other, that is, the row vectors of the fault-measuring point mutual information matrix are required to be independent of each other. I T I is recorded as matrix T T , which is a m×m full-rank matrix, and matrix T is called a diagnostic information matrix. At this time, the fault node information and measuring point information are completely contained in the diagnostic information matrix T, so the purpose of measuring point optimization can be achieved by extracting the eigenvalues of the matrix T. The trace (T) of the diagnostic information matrix represents the sum of all eigenvalues of the matrix, that is, the sum of the diagnostic capabilities of the measuring point group for all deviation sources. Therefore, in the optimization of measurement nodes, the trace of the diagnostic information matrix is used as the evaluation index of the measurement points to be selected, which is also called the comprehensive diagnosis ability index. The contribution degree of the comprehensive diagnosis ability of the node is the comprehensive diagnosis ability index:

Esj=(G-Gsj)/G (3)E sj =(GG sj )/G (3)

G=trace(T)G=trace(T)

T=(ITI)T (4)T = (I T I) T (4)

其中Gsj是根据测点组中去掉第j个测点后的互信息矩阵的特征值的和。Among them, G sj is the sum of the eigenvalues of the mutual information matrix after removing the jth measuring point in the measuring point group.

步骤4:根据测点贡献度及测点成本和数量描述优化问题:Step 4: Describe the optimization problem according to the contribution of measuring points and the cost and quantity of measuring points:

同时考虑测点的贡献度及成本,将其转化为优化算法待求的目标函数,通过选择最佳的测点配置方案,使得测点对故障的诊断能力最大,同时所需的测点配置成本最小。At the same time, the contribution and cost of the measuring points are considered, and it is transformed into the objective function to be obtained by the optimization algorithm. By selecting the best measuring point configuration scheme, the fault diagnosis ability of the measuring points is maximized, and the required measuring point configuration cost minimum.

步骤5,应用改进的离散二进制粒子群算法进行优化处理,得出测点的优化配置结果:Step 5, apply the improved discrete binary particle swarm optimization algorithm to optimize the configuration results of the measuring points:

标准粒子群算法适用在连续搜索空间进行计算,而对于离散的搜索空间,其不能直接加以应用,必须对标准粒子群算法改进。即采用离散二进制粒子群算法来优化离散二进制空间的问题。The standard particle swarm optimization algorithm is suitable for calculation in the continuous search space, but it cannot be directly applied to the discrete search space, and the standard particle swarm optimization algorithm must be improved. That is, the discrete binary particle swarm optimization algorithm is used to optimize the discrete binary space.

如图2所示为本发明的建立系统贝叶斯网络模型的流程图。As shown in FIG. 2, it is a flow chart of establishing a system Bayesian network model in the present invention.

首先,根据系统的结构及故障模式对系统进行故障模式与理象分析(FMEA),以此确定贝叶斯网络的节点及贝叶斯网络的拓扑结构,即表示节点间连接关系的有向无环图。First, according to the structure and failure mode of the system, the failure mode and image analysis (FMEA) of the system is carried out to determine the nodes of the Bayesian network and the topology of the Bayesian network, that is, the directed-unconnected network that represents the connection relationship between nodes. Ring diagram.

然后,在建立好的贝叶斯网络拓扑结构的基础上,首先根据极大熵方法确定节点的验前分布,然后再根据历史故障数据及专家经验确定节点参数值即节点的条件概率分布。Then, on the basis of the established Bayesian network topology, first determine the prior distribution of nodes according to the maximum entropy method, and then determine the node parameter values, that is, the conditional probability distribution of nodes, according to historical fault data and expert experience.

在确定条件概率分布前需要确定节点的验前分布,本发明采用极大熵的方法确定验前分布。在实际工程应用中,由于网络中的节点都是两态的,所以通常取取Beta(p;a,b)分布作为网络中节点的验前分布。根据专家经验确定参数p的均值p0,然后根据极大熵算法确定参数a和b的最优值a*和b*,从而确定节点的验前分布。Before determining the conditional probability distribution, it is necessary to determine the prior distribution of nodes, and the present invention adopts the method of maximum entropy to determine the prior distribution. In practical engineering applications, since the nodes in the network are two-state, the Beta (p; a, b) distribution is usually taken as the prior distribution of the nodes in the network. Determine the mean value p 0 of parameter p according to expert experience, and then determine the optimal values a * and b * of parameters a and b according to the maximum entropy algorithm, so as to determine the prior distribution of nodes.

HB(a*,b*)=max(HB(a,b))H B (a * ,b * )=max(H B (a,b))

a≥0,b≥0a≥0,b≥0

a/(a+b)=p0 (5)a/(a+b)=p 0 (5)

其中in

在确定了节点的验前分布后,本发明应用贝叶斯方法,将已经计算获得的验前分布与历史故障样本信息相结合,以此得到节点的验后分布,具体操作如下所示:After determining the pre-test distribution of nodes, the present invention applies the Bayesian method to combine the calculated pre-test distribution with historical fault sample information to obtain the post-test distribution of nodes. The specific operations are as follows:

其中,π(p)表示验前分布,p(D|p)表示样本数据,π(p|D)而表示验后分布。Among them, π(p) represents the pre-test distribution, p(D|p) represents the sample data, and π(p|D) represents the posterior distribution.

如图3所示为本发明的优化问题描述的流程图。As shown in FIG. 3, it is a flow chart of the description of the optimization problem of the present invention.

同时考虑测点的贡献度及成本,将其转化为优化算法待求的目标函数,考虑d个测点的配置成本及贡献度分别为csj(j=1,2,...,d),Esj(j=1,2,...,d),通过选择最佳的测点配置方案,使得测点对故障的诊断能力最大,同时所需的测点配置成本最小。设变量At the same time, consider the contribution and cost of the measuring points, and convert it into the objective function to be obtained by the optimization algorithm. Considering the configuration cost and contribution of d measuring points are c sj (j=1,2,...,d) ,E sj (j=1,2,...,d), by selecting the best measuring point configuration scheme, the fault diagnosis capability of the measuring point is maximized, and the required measuring point configuration cost is minimized. set variable

则考虑测点贡献度、测点成本及实际中所需测点数量限制条件的测点优化配置问题可表示为:Then, considering the contribution of measuring points, the cost of measuring points and the limitation of the number of measuring points in practice, the problem of optimal allocation of measuring points can be expressed as:

应用离散二进制粒子群算法解决测点优化配置问题的关键是如何编码。这里用xi表示第i个粒子的取值,每一个粒子取值xi表示成优化问题的一个解。xi=[xi1,xi2,...,xid],d表示粒子的维数,在这里代表可配置测点总数。xij的值表示第i个粒子的测点j的配置情况,其值取值为0或1。如果xij=1表示第i个粒子的j点将配置测点,否则j点不配置测点。The key to solving the problem of optimal allocation of measuring points by applying discrete binary particle swarm optimization algorithm is how to code. Here x i is used to represent the value of the i-th particle, and the value x i of each particle is represented as a solution to the optimization problem. x i =[x i1 , x i2 ,..., x id ], d represents the dimension of the particle, and here represents the total number of configurable measuring points. The value of x ij represents the configuration of measuring point j of the i-th particle, and its value is 0 or 1. If x ij =1, it means that point j of the i-th particle will be configured with a measuring point, otherwise, point j will not be configured with a measuring point.

本发明将上述优化模型进行转化,得到如下优化问题的目标函数,即粒子更新的适应度函数:The present invention transforms the above optimization model to obtain the following objective function of the optimization problem, namely the fitness function of particle update:

其中,Q是一个惩罚因子,其取值为一个充分大的正数。D为d维的行向量,其元素都为1。N为实际中限制配置的测点的数量。这里求目标函数的最小值即可。Among them, Q is a penalty factor whose value is a sufficiently large positive number. D is a d-dimensional row vector whose elements are all 1. N is the number of measurement points that limit the configuration in practice. Here we can find the minimum value of the objective function.

粒子的位置由下式初始化:The position of the particle is initialized by:

粒子的初始速度vij按下式随机初始化:The initial velocity v ij of the particle is randomly initialized according to the following formula:

vid=vmin+rand()(vmax-vmin) (15)v id =v min +rand()(v max -v min ) (15)

其中vmax和vmin表示速度的最大最小限制值。其值决定粒子在一次迭代中最大的移动距离。若较大,搜索能力增强,但是粒子容易飞过最优解。较小时,开发能力增强,但是容易陷入局部最优,应根据实际情况适当取值。Among them, v max and v min represent the maximum and minimum limit values of the speed. Its value determines the maximum distance particles can move in one iteration. If it is larger, the search ability is enhanced, but the particles are easy to fly over the optimal solution. When it is small, the development ability is enhanced, but it is easy to fall into local optimum, so the value should be selected according to the actual situation.

如图4所示为本发明的改进的离散二进制粒子群优化算法流程图。Figure 4 is a flow chart of the improved discrete binary particle swarm optimization algorithm of the present invention.

标准粒子群算法适用在连续搜索空间进行计算,而对于离散的搜索空间,其不能直接加以应用,必须对标准粒子群算法改进。即采用离散二进制粒子群算法来优化离散二进制空间的问题。粒子群算法的速度更新公式为:The standard particle swarm optimization algorithm is suitable for calculation in the continuous search space, but it cannot be directly applied to the discrete search space, and the standard particle swarm optimization algorithm must be improved. That is, the discrete binary particle swarm optimization algorithm is used to optimize the discrete binary space. The speed update formula of particle swarm optimization algorithm is:

vid=ω·vid+c1·rand()·(pid-xid)+c2·rand()·(pgd-xid) (16)v id =ω·v id +c 1 ·rand()·(p id -x id )+c 2 ·rand()·(p gd -x id ) (16)

其中,i为粒子群的粒子数;d为粒子群的维数,在本发明中表示系统的可配置测点总数。其值取得太小容易导致求出的解是局部最优,取得太大会增加搜索时间,导致收敛速度变慢,一般取为20比较合适;w为惯性权重,它起到平衡算法全局搜索和局部搜索能力的作用。一个大的惯性权重有利于全局搜索,而一个小的惯性权重则有利于局部搜索。为获得较好的优化效果,要求其值从1.4到0.4线性递减;c1和c2表示加速常数,也能起到平衡算法全局搜索与局部搜索能力的作用。一般要求c1=c2并且范围在0和4之间,实际应用时通常都取为2;rand()是一个随机数,从区间[0,1]的统一分布中随机产生。Wherein, i is the number of particles of the particle swarm; d is the dimension of the particle swarm, which in the present invention represents the total number of configurable measuring points of the system. If its value is too small, it will easily lead to the local optimal solution. If it is too large, it will increase the search time and slow down the convergence speed. Generally, it is more appropriate to take 20; w is the inertia weight, which plays a role in balancing the global search and local optimization of the algorithm. The role of search capabilities. A large inertia weight favors global search, while a small inertia weight favors local search. In order to obtain a better optimization effect, its value is required to decrease linearly from 1.4 to 0.4; c 1 and c 2 represent acceleration constants, which can also play a role in balancing the global search and local search capabilities of the algorithm. It is generally required that c 1 =c 2 and the range is between 0 and 4, and it is usually taken as 2 in practical applications; rand() is a random number randomly generated from a uniform distribution in the interval [0,1].

离散二进制粒子群算法的速度更新公式与原始的粒子群算法相同。而粒子位置更新公式不同。为了表示速度的值是二进制位取1的概率,速度的值被映射到区间[0,1],表示为:The velocity update formula of the discrete binary PSO algorithm is the same as that of the original PSO algorithm. The particle position update formula is different. In order to indicate that the value of the speed is the probability that the binary bit takes 1, the value of the speed is mapped to the interval [0,1], expressed as:

这里s(vid)表示位置xid取1的概率,粒子通过式(12)更新它的位值:Here s(v id ) represents the probability that the position x id takes 1, and the particle updates its bit value through formula (12):

而改进后的粒子群位置更新公式。速度的映射公式更改为:And the improved particle swarm position update formula. The mapping formula for velocity is changed to:

而粒子的位值更新公式更改为:And the bit value update formula of the particle is changed to:

当vid≤0时,When v id ≤ 0,

当vid>0时,When v id >0,

本发明在迭代搜索前期使用式(17)和式(18)所示的粒子位置更新公式,保证算法的全局搜索能力。而在迭代搜索后期使用式(19)、式(20)及式(21)所示的粒子位置更新公式,保证算法的局部搜索能力。这样做可以保证解得全局性及算法的快速收敛性。本发明采用此改进的离散二进制粒子群算法解决测点的优化配置问题。The present invention uses the particle position update formulas shown in formula (17) and formula (18) in the early stage of iterative search to ensure the global search capability of the algorithm. In the later stage of iterative search, the particle position update formulas shown in formula (19), formula (20) and formula (21) are used to ensure the local search ability of the algorithm. Doing so can ensure the globality of the solution and the fast convergence of the algorithm. The invention adopts the improved discrete binary particle swarm algorithm to solve the problem of optimal configuration of measuring points.

Claims (9)

1. A system measurement node optimal configuration method based on a Bayesian network is characterized by comprising the following steps:
step 1: establishing a Bayesian network model of the system;
step 2: calculating a mutual information matrix between the fault node and the measurement node according to the Bayesian network model;
and step 3: calculating the contribution degree of the measuring points to fault node diagnosis according to a mutual information matrix between the fault nodes and the measuring nodes, and determining a comprehensive diagnosis capability index;
and 4, step 4: describing an optimization problem according to the contribution degree of the measuring points to fault node diagnosis, measuring point cost and measuring point quantity limit;
and 5: performing optimization processing by using an improved discrete binary particle swarm algorithm to obtain an optimized configuration result of a measuring point;
the mutual information matrix between the fault node and the measurement node is as follows:
wherein, I is a mutual information matrix between the fault node and the measurement node; i isijThe mutual information between the fault node i and the measurement node j is obtained; m is the number of fault nodes; n is the number of measurement nodes; p is the probability value of the fault node; f. ofi1 indicates that the failed node i is in a failed state, fiWhen the failure node i is in a normal state, 0 is represented; sjExpressed as configuration measurement node j, s ═ 1j0 denotes that no measurement node j is configured.
2. The bayesian network based system measurement node optimal configuration method according to claim 1, wherein: the establishing of the Bayesian network model of the system comprises the following processes:
step 1: carrying out fault mode and image analysis on the system according to the structure and the fault mode of the system, and determining nodes of the Bayesian network and a topological structure of the Bayesian network;
step 2: determining the pre-test distribution of the nodes according to a maximum entropy method on the basis of the topological structure of the Bayesian network;
and step 3: and determining node parameter values, namely conditional probability distribution of the nodes according to historical fault data and expert experience, and completing the establishment of the Bayesian network model.
3. The bayesian network based system measurement node optimal configuration method according to claim 2, wherein: the process of determining the pre-test distribution of the nodes according to the maximum entropy method comprises the following steps:
HB(a*,b*)=max(HB(a,b))
a≥0,b≥0
a/(a+b)=p0
wherein a is a distribution parameter before test of the maximum entropy; b is a pre-test step parameter of the maximum entropy; p is a probability parameter; a is*And b*Optimal values for parameters a and b, respectively; beta () is Beta distribution; dp is to make a derivation on the probability parameter p; hBIs the maximum entropy sign; p is a radical of0Is the mean value of the probability parameter p.
4. The Bayesian network-based system measurement node optimal configuration method according to claim 2, wherein the conditional probability distribution of the nodes is as follows:
wherein pi (p) is the pre-test distribution; p (Dp) is sample data; pi (p | D) is the conditional probability distribution of the node; d is sample data; dp is the derivation of the parameter p; p is a probability parameter.
5. The Bayesian network-based system measurement node optimal configuration method according to claim 1, wherein the contribution degree of fault node diagnosis is as follows:
Esj=(G-Gsj)/G
G=trace(T)
T=(ITI)T
wherein E issjThe contribution degree for fault node diagnosis; gsjThe sum of the characteristic values of the mutual information matrix after the jth measuring point is removed from the measuring point group is obtained; g is the sum of all characteristic values of the matrix; t is a diagnosis information matrix; i isTI is denoted as matrix TT,TTIs a full rank matrix of m x m.
6. The Bayesian network-based system measurement node optimal configuration method according to claim 1, wherein the description of the optimization problem process according to contribution degree, measurement point cost and quantity comprises:
converting the contribution degree of fault node diagnosis, the measuring point cost and the measuring point number limit into an objective function:
wherein,the contribution degree for fault node diagnosis;measuring point cost;limiting the number of the measuring points; q is a penalty factor, which takes the value of a sufficiently large positive number; n is the limited number of measuring points; d is a row vector, and the elements of the row vector are all 1; x is the number ofiThe solution of the optimization problem, namely the measurement point configuration condition is solved; min f (x)i) To optimize the problem.
7. The Bayesian network-based system measurement node optimal configuration method according to claim 1, wherein the improved discrete binary particle swarm algorithm is:
step 1: initializing a particle swarm and calculating the initial position and the initial speed of the particle;
step 2: calculating an objective function value, determining an individual optimal value and an overall optimal value, and updating a particle speed value according to a speed updating algorithm of the particle swarm algorithm;
and step 3: and updating the position value of the particle according to the iteration times, if the current iteration times are less than a preset parameter, adopting a particle position updating algorithm with global searching capability, and otherwise, adopting a particle position updating algorithm with local searching capability.
8. The bayesian network based system measurement node optimal configuration method according to claim 7, wherein: the initial positions of the particles are:
the initial velocity of the particles is:
vid=vmin+rand()(vmax-vmin)
the speed updating algorithm of the particle swarm algorithm is as follows:
vid=ω·vid+c1·rand()·(pid-xid)+c2·rand()·(pgd-xid)
the particle location updating algorithm with global search capability is as follows:
the particle location update algorithm with local search capability is:
when v isidWhen the content is less than or equal to 0,
when v isid>At the time of 0, the number of the first,
wherein v ismaxIs the maximum limit value of the speed; v. ofminIs the minimum limit value of the speed; rand () is a random number, from the interval [0,1]]Randomly in the uniform distribution; i is the particle number of the particle swarm; d is the dimension of the particle swarm and represents the total number of the configurable measuring points of the system; w is an inertia weight used for balancing the global search capability and the local search capability of the algorithm; c. C1And c2The acceleration constant is expressed, and the function of balancing the global search and local search capability of the algorithm can be achieved; s (v)id) Represents the position xidTaking the probability of 1; x is the number ofidIs the current position of the particle; v. ofidIs the current velocity of the particle; p is a radical ofidThe current individual optimal value of the particle is obtained; p is a radical ofgdThe current overall optimal value of the particles is obtained; exp () is an exponential function.
9. The Bayesian network-based system measurement node optimal configuration method according to claim 7, wherein the preset parameters are:
cys=r*M
wherein, cysIs a preset parameter; r is a proportional parameter; m is the maximum number of iterations.
CN201611078752.5A 2016-11-30 2016-11-30 A kind of systematic survey node optimization configuration method based on Bayesian network Active CN108134680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611078752.5A CN108134680B (en) 2016-11-30 2016-11-30 A kind of systematic survey node optimization configuration method based on Bayesian network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611078752.5A CN108134680B (en) 2016-11-30 2016-11-30 A kind of systematic survey node optimization configuration method based on Bayesian network

Publications (2)

Publication Number Publication Date
CN108134680A CN108134680A (en) 2018-06-08
CN108134680B true CN108134680B (en) 2019-11-29

Family

ID=62388055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611078752.5A Active CN108134680B (en) 2016-11-30 2016-11-30 A kind of systematic survey node optimization configuration method based on Bayesian network

Country Status (1)

Country Link
CN (1) CN108134680B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112000001B (en) * 2020-06-12 2024-04-23 中铁科工集团装备工程有限公司 PID parameter setting optimization method based on improved Bayesian model
CN112884348B (en) * 2021-03-12 2023-09-15 重庆大学 Method for diagnosing production deviation source of space detonator based on dynamic Bayesian network
CN119475604B (en) * 2025-01-14 2025-04-25 中国航空工业集团公司金城南京机电液压工程研究中心 Aircraft power system selection method, device and equipment based on multi-objective optimization
CN119918419A (en) * 2025-03-31 2025-05-02 中国兵器装备集团兵器装备研究所 A method for constructing fault criterion of automatic weapon automaton based on design parameter association

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577663B2 (en) * 2011-05-23 2013-11-05 GM Global Technology Operations LLC System and methods for fault-isolation and fault-mitigation based on network modeling
CN103744878B (en) * 2013-12-21 2017-02-01 云南大学 Large-scale Bayesian network parallel inference method based on MapReduce

Also Published As

Publication number Publication date
CN108134680A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN106229964A (en) A kind of based on the electrical power distribution network fault location method improving binary particle swarm algorithm
JP6902645B2 (en) How to manage a system that contains multiple devices that provide sensor data
CN108134680B (en) A kind of systematic survey node optimization configuration method based on Bayesian network
CN106503368B (en) One kind being based on the relevant multi-state System Reliability modeling method of failure mechanism
CN108896047B (en) Distributed sensor network collaborative fusion and sensor location correction method
CN109214599B (en) Method for predicting link of complex network
CN110427654B (en) Landslide prediction model construction method and system based on sensitive state
CN104865956B (en) Sensor fault diagnosis method in a kind of complication system based on Bayesian network
CN105978725A (en) Non-fragile distributed fault estimation method based on sensor network
CN109767006A (en) A fault prediction system and method based on Bayesian belief network
CN107591001B (en) Expressway traffic flow data filling method and system based on online calibration
Zhang et al. Adaptive fault diagnosis and fault-tolerant control of MIMO nonlinear uncertain systems
Lutska et al. Forecasting the efficiency of the control system of the technological object on the basis of neural networks
Chen et al. Physics-guided residual learning for probabilistic power flow analysis
Colby et al. Counterfactual Exploration for Improving Multiagent Learning.
CN113825165A (en) 5G slice network congestion early warning method and device based on time chart network
CN108334427A (en) Method for diagnosing faults in storage system and device
CN110929835A (en) A new fault diagnosis method and system for silicon carbide-based aviation power converter
CN116894180B (en) Product manufacturing quality prediction method based on different composition attention network
CN118779737A (en) A method and system for fault control of electric energy metering multi-calibration pipeline
Krivulya et al. An intelligent functional diagnostics of wireless sensor network
D'Aronco et al. Online resource inference in network utility maximization problems
CN117633677A (en) Power distribution network measurement data anomaly detection method based on stream DBSCAN clustering algorithm
CN113822441B (en) Decision model training method, device, terminal equipment and storage medium
CN110034559B (en) Fusion state estimation method of power system based on switching system model

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