CN110262466A - A kind of winged control fault detection and diagnosis method based on random forest - Google Patents
A kind of winged control fault detection and diagnosis method based on random forest Download PDFInfo
- Publication number
- CN110262466A CN110262466A CN201910625105.9A CN201910625105A CN110262466A CN 110262466 A CN110262466 A CN 110262466A CN 201910625105 A CN201910625105 A CN 201910625105A CN 110262466 A CN110262466 A CN 110262466A
- Authority
- CN
- China
- Prior art keywords
- fault
- decision tree
- random forest
- training
- flight control
- 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
Classifications
-
- 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/0243—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 model based detection method, e.g. first-principles knowledge model
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
- G06F18/24323—Tree-organised classifiers
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明属于飞控故障诊断技术领域,涉及一种基于随机森林的飞控故障检测与诊断方法。The invention belongs to the technical field of flight control fault diagnosis, and relates to a random forest-based flight control fault detection and diagnosis method.
背景技术Background technique
飞控系统作为飞行器的核心系统,其系统部件的故障不仅影响着飞控系统的性能,还会为飞行器的飞行安全带来极大的威胁,将智能故障诊断技术应用于飞行器飞控系统的故障诊断中,辅助机务人员及时排除飞控系统故障,提高飞行器维护效率,保障飞行器的安全飞行,是当前有着迫切需要的研究内容。The flight control system is the core system of the aircraft. The failure of its system components not only affects the performance of the flight control system, but also poses a great threat to the flight safety of the aircraft. Intelligent fault diagnosis technology is applied to the failure of the aircraft flight control system In the diagnosis, assisting the maintenance personnel to eliminate the faults of the flight control system in time, improving the maintenance efficiency of the aircraft, and ensuring the safe flight of the aircraft are currently urgently needed research contents.
发明内容Contents of the invention
本发明要解决的内容是:提供一种基于随机森林的飞控故障检测与诊断方法。The content to be solved by the present invention is to provide a method for detecting and diagnosing flight control faults based on random forest.
本发明要解决的技术问题是:The technical problem to be solved in the present invention is:
基于随机森林的飞控故障检测与诊断方法,包括以下步骤:The flight control fault detection and diagnosis method based on random forest includes the following steps:
步骤1.分析飞控系统所包含的所有真实故障,每种故障类型所对应的故障码和故障码之间的联系,建立故障树;Step 1. Analyze all real faults contained in the flight control system, the fault codes corresponding to each fault type and the relationship between the fault codes, and establish a fault tree;
步骤2.以已知的故障类型作为数据样本,以故障类型所对应的故障码作为数据样本的特征变量,以每个故障类型所对应的真实故障作为期望输出,完成多个决策树的训练,由所述的多个决策树组成随机森林:Step 2. Take the known fault type as the data sample, use the fault code corresponding to the fault type as the characteristic variable of the data sample, and use the real fault corresponding to each fault type as the expected output to complete the training of multiple decision trees, A random forest is composed of multiple decision trees as described:
步骤3.获取当前飞控系统爆出的故障清单,将清单中的故障码输入到随机森林模型中,所述的每个决策树输出对应的预测结果,对所有的决策树输出的预测结果进行投票分析,随机森林模型最终输出为可能性最大那个真实故障。Step 3. Obtain the fault list that the current flight control system bursts out, and input the fault codes in the list into the random forest model, and each of the decision trees outputs the corresponding prediction results, and performs the prediction results of all the decision tree outputs Voting analysis, the random forest model finally outputs the real fault with the highest probability.
作为上述技术方案的进一步改进,所述步骤1中对飞控系统当前故障状态做出如下操作步骤:As a further improvement of the above technical solution, in the step 1, the following operation steps are made to the current fault state of the flight control system:
步骤101.获取所有的故障树;Step 101. Obtain all fault trees;
步骤102.将故障树所有的故障码进行提取,并按照故障之间的与或非逻辑进行排列组合,生成多个故障样本;Step 102. Extract all the fault codes in the fault tree, and arrange and combine them according to the AND or non-logic between the faults to generate multiple fault samples;
步骤103.将故障码进行规范化处理;Step 103. Standardize the fault code;
作为上述技术方案的进一步改进,所述步骤2中对飞控系统当前故障状态做出如下操作步骤:As a further improvement of the above technical solution, in the step 2, the following operation steps are made to the current fault state of the flight control system:
步骤201.从所有数据样本中以冲抽样的的方法有放回的抽取n个样本容量一致的数据样本,作为训练决策树的训练样本;Step 201. Extract n data samples with the same sample capacity from all the data samples by the method of flush sampling with replacement, as the training samples for training the decision tree;
步骤202.从一个训练样本中以随机的方式抽取m的特征变量;Step 202. Randomly extract feature variables of m from a training sample;
步骤203.在决策树的内部节点处,按照基尼不纯度最小原则从m个特征变量选取一个分类效果最好的特征Xi,将该节点分为两个分支,所述基尼不纯度原则为其中P(i)表示每一类占总类数的比例;Step 203. At the internal nodes of the decision tree, select a feature Xi with the best classification effect from the m feature variables according to the principle of the minimum Gini impurity, and divide the node into two branches. The Gini impurity principle is Where P(i) represents the proportion of each category to the total number of categories;
步骤204.对决策树的每个内部节点重复步骤203所述操作,直到决策树能够准确分类训练样本或者决策树的每个节点的基尼不纯度达到最小;Step 204. Repeat the operation described in step 203 for each internal node of the decision tree until the decision tree can accurately classify the training samples or the Gini impurity of each node of the decision tree reaches the minimum;
步骤205.选取下一个训练样本,重复步骤202至步骤204,直到所购抽取的训练样本对应的决策树构建完毕;Step 205. Select the next training sample, repeat step 202 to step 204, until the decision tree corresponding to the purchased training sample is constructed;
步骤206.所述n个训练样本所构建出来的决策树共同组成随机森领模型,所述随机森林模型训练完毕。Step 206. The decision trees constructed from the n training samples together form a random forest model, and the training of the random forest model is completed.
本声明的有益效果是:本发明首先分析所有的故障树的组成,每颗故障树所对应的故障码以及其逻辑关系,在利用上述数据形成训练样本,完成随机森林模型的训练,在日后的飞控系统故障诊断中,只需要将故障清单输入到系统中,就可以定位到真实故障,即便是地勤人员也能很快完成对飞控系统的诊断操作,最大时间内节约诊断时间,提高工作效率。本发明用于对飞控系统故障进行诊断。The beneficial effects of this statement are: the present invention first analyzes the composition of all fault trees, the fault codes corresponding to each fault tree and its logical relationship, and uses the above data to form training samples to complete the training of the random forest model. In the fault diagnosis of the flight control system, the real fault can be located only by inputting the fault list into the system. Even the ground crew can quickly complete the diagnosis operation of the flight control system, saving the diagnosis time in the maximum time and improving the work efficiency. efficiency. The invention is used for diagnosing the failure of the flight control system.
附图说明Description of drawings
图1是本发明的故障诊断方案流程图。Fig. 1 is a flow chart of the fault diagnosis scheme of the present invention.
图2是本发明步骤2的具体实施流程图。Fig. 2 is a specific implementation flow chart of step 2 of the present invention.
具体实施方式Detailed ways
下面结合附图对本发明方法作进一步的详细描述。The method of the present invention will be described in further detail below in conjunction with the accompanying drawings.
参照图1和图2,本发明公开了一种随机算法的飞控系统故障诊断方法,包括以下步骤:With reference to Fig. 1 and Fig. 2, the present invention discloses a kind of flight control system fault diagnosis method of random algorithm, comprises the following steps:
步骤1.分析飞控系统所包含的所有真实故障,每种故障类型所对应的故障码和故障码之间的联系;Step 1. Analyze all the real faults contained in the flight control system, the fault codes corresponding to each fault type and the relationship between the fault codes;
步骤2.以已知的故障类型作为数据样本,以故障类型所对应的故障码作为数据样本的特征变量,以每个故障类型所对应的真实故障作为期望输出,完成多个决策树的训练,由所述的多个决策树组成随机森林:Step 2. Take the known fault type as the data sample, use the fault code corresponding to the fault type as the characteristic variable of the data sample, and use the real fault corresponding to each fault type as the expected output to complete the training of multiple decision trees, A random forest is composed of multiple decision trees as described:
步骤3.获取当前飞控系统爆出的故障清单,将清单中的故障码输入到随机森林模型中,所述的每个决策树输出对应的预测结果,对所有的决策树输出的预测结果进行投票分析,随机森林模型最终输出为可能性最大那个真实故障。Step 3. Obtain the fault list that the current flight control system bursts out, and input the fault codes in the list into the random forest model, and each of the decision trees outputs the corresponding prediction results, and performs the prediction results of all the decision tree outputs Voting analysis, the random forest model finally outputs the real fault with the highest probability.
具体地,本发明首先分析所有的故障树的组成,每颗故障树所对应的故障码以及其逻辑关系,在利用上述数据形成训练样本,完成随机森林模型的训练,在日后的飞控系统故障诊断中,只需要将故障清单输入到系统中,就可以定位到真实故障,即便是地勤人员也能很快完成对飞控系统的诊断操作,最大时间内节约诊断时间,提高工作效率。Specifically, the present invention first analyzes the composition of all fault trees, the fault codes corresponding to each fault tree and its logical relationship, and uses the above data to form training samples to complete the training of the random forest model. In the diagnosis, only the fault list needs to be input into the system, and the real fault can be located. Even the ground crew can quickly complete the diagnosis operation of the flight control system, saving the diagnosis time in the maximum time and improving the work efficiency.
进一步作为优选的实施方式,本发明创造的具体实施中,所述步骤2对故障树的数据处理如下操作步骤:Further as a preferred embodiment, in the concrete implementation of the present invention, described step 2 is to the following operation steps to the data processing of fault tree:
步骤101.获取所有的故障树;Step 101. Obtain all fault trees;
步骤102.将故障树所有的故障码进行提取,并按照故障之间的与或非逻辑进行排列组合,生成多个故障样本;Step 102. Extract all the fault codes in the fault tree, and arrange and combine them according to the AND or non-logic between the faults to generate multiple fault samples;
步骤103.将故障码进行规范化处理;Step 103. Standardize the fault code;
具体地,当获取故障树的数据,故障树是由多个故障码以一定的逻辑关系组合而成,首先需要对其进行故障码的提取,然后按照其与或非的逻辑关系来生成多颗故障树,扩大样本的数量,使诊断结果更加准确。Specifically, when obtaining the data of the fault tree, the fault tree is composed of multiple fault codes with a certain logical relationship. First, it is necessary to extract the fault codes, and then generate multiple The fault tree expands the number of samples to make the diagnosis more accurate.
进一步作为优选的实施方式,本发明创造的具体实施中,所述步骤2对故障树的数据处理如下操作步骤:Further as a preferred embodiment, in the concrete implementation of the present invention, described step 2 is to the following operation steps to the data processing of fault tree:
步骤201.从所有数据样本中以冲抽样的的方法有放回的抽取n个样本容量一致的数据样本,作为训练决策树的训练样本;Step 201. Extract n data samples with the same sample capacity from all the data samples by the method of flush sampling with replacement, as the training samples for training the decision tree;
步骤202.从一个训练样本中以随机的方式抽取m的特征变量;Step 202. Randomly extract feature variables of m from a training sample;
步骤203.在决策树的内部节点处,按照基尼不纯度最小原则从m个特征变量选取一个分类效果最好的特征Xi,将该节点分为两个分支,所述基尼不纯度原则为其中P(i)表示每一类占总类数的比例;Step 203. At the internal nodes of the decision tree, select a feature Xi with the best classification effect from the m feature variables according to the principle of the minimum Gini impurity, and divide the node into two branches. The Gini impurity principle is Where P(i) represents the proportion of each category to the total number of categories;
步骤204.对决策树的每个内部节点重复步骤203所述操作,直到决策树能够准确分类训练样本或者决策树的每个节点的基尼不纯度达到最小;Step 204. Repeat the operation described in step 203 for each internal node of the decision tree until the decision tree can accurately classify the training samples or the Gini impurity of each node of the decision tree reaches the minimum;
步骤205.选取下一个训练样本,重复步骤202至步骤204,直到所购抽取的训练样本对应的决策树构建完毕;Step 205. Select the next training sample, repeat step 202 to step 204, until the decision tree corresponding to the purchased training sample is constructed;
步骤206.所述n个训练样本所构建出来的决策树共同组成随机森领模型,所述随机森林模型训练完毕。Step 206. The decision trees constructed from the n training samples together form a random forest model, and the training of the random forest model is completed.
具体地,本发明创造基于每个训练样本,使用完全分裂的方式为每个样本构建决策树,并且对所构建的决策树不进行剪枝操作,这样使决策树能够到达低偏差和高差异要求充分生长,以完善决策树功能,最终提高随机森林模型的判断准确度。Specifically, based on each training sample, the present invention constructs a decision tree for each sample in a completely split manner, and does not perform pruning operations on the constructed decision tree, so that the decision tree can reach the requirements of low deviation and high difference Fully grow to improve the decision tree function, and finally improve the judgment accuracy of the random forest model.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910625105.9A CN110262466A (en) | 2019-07-11 | 2019-07-11 | A kind of winged control fault detection and diagnosis method based on random forest |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910625105.9A CN110262466A (en) | 2019-07-11 | 2019-07-11 | A kind of winged control fault detection and diagnosis method based on random forest |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN110262466A true CN110262466A (en) | 2019-09-20 |
Family
ID=67925742
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910625105.9A Pending CN110262466A (en) | 2019-07-11 | 2019-07-11 | A kind of winged control fault detection and diagnosis method based on random forest |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110262466A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111504341A (en) * | 2020-04-30 | 2020-08-07 | 中国直升机设计研究所 | Helicopter flight state identification method |
| CN111596682A (en) * | 2020-06-16 | 2020-08-28 | 邳志刚 | A navigation mobile three-dimensional command link control system |
| CN114326661A (en) * | 2021-12-15 | 2022-04-12 | 中国航空工业集团公司成都飞机设计研究所 | A Fault Diagnosis Method of Flight Control System Based on PL Code List |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102221655A (en) * | 2011-06-16 | 2011-10-19 | 河南省电力公司济源供电公司 | Random-forest-model-based power transformer fault diagnosis method |
| CN102830691A (en) * | 2012-07-20 | 2012-12-19 | 南京航空航天大学 | Automatic detecting and fault diagnosing method of unmanned aerial vehicle based on cloud computing |
| CN104155596A (en) * | 2014-08-12 | 2014-11-19 | 北京航空航天大学 | Artificial circuit fault diagnosis system based on random forest |
| GB2546253A (en) * | 2016-01-06 | 2017-07-19 | Ge Aviat Systems Ltd | Fusion of aviation-related data for comprehensive aircraft system health monitoring |
| CN108303632A (en) * | 2017-12-14 | 2018-07-20 | 佛山科学技术学院 | Circuit failure diagnosis method based on random forests algorithm |
-
2019
- 2019-07-11 CN CN201910625105.9A patent/CN110262466A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102221655A (en) * | 2011-06-16 | 2011-10-19 | 河南省电力公司济源供电公司 | Random-forest-model-based power transformer fault diagnosis method |
| CN102830691A (en) * | 2012-07-20 | 2012-12-19 | 南京航空航天大学 | Automatic detecting and fault diagnosing method of unmanned aerial vehicle based on cloud computing |
| CN104155596A (en) * | 2014-08-12 | 2014-11-19 | 北京航空航天大学 | Artificial circuit fault diagnosis system based on random forest |
| GB2546253A (en) * | 2016-01-06 | 2017-07-19 | Ge Aviat Systems Ltd | Fusion of aviation-related data for comprehensive aircraft system health monitoring |
| CN108303632A (en) * | 2017-12-14 | 2018-07-20 | 佛山科学技术学院 | Circuit failure diagnosis method based on random forests algorithm |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111504341A (en) * | 2020-04-30 | 2020-08-07 | 中国直升机设计研究所 | Helicopter flight state identification method |
| CN111504341B (en) * | 2020-04-30 | 2023-09-19 | 中国直升机设计研究所 | Helicopter flight state identification method |
| CN111596682A (en) * | 2020-06-16 | 2020-08-28 | 邳志刚 | A navigation mobile three-dimensional command link control system |
| CN114326661A (en) * | 2021-12-15 | 2022-04-12 | 中国航空工业集团公司成都飞机设计研究所 | A Fault Diagnosis Method of Flight Control System Based on PL Code List |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111368885B (en) | A method for diagnosing aero-engine gas circuit faults | |
| CN106248801B (en) | A rail crack detection method based on the probability of multiple acoustic emission events | |
| CN110262466A (en) | A kind of winged control fault detection and diagnosis method based on random forest | |
| CN106529605B (en) | Image recognition method of convolutional neural network model based on immune theory | |
| CN112756759B (en) | Spot welding robot workstation fault judgment method | |
| CN110533095B (en) | A method for flight risk behavior identification based on improved random forest | |
| CN106203523A (en) | The classification hyperspectral imagery of the semi-supervised algorithm fusion of decision tree is promoted based on gradient | |
| CN108303632A (en) | Circuit failure diagnosis method based on random forests algorithm | |
| CN111782460A (en) | Anomaly detection method, device and storage medium for large-scale log data | |
| CN107830996B (en) | A method for fault diagnosis of aircraft rudder surface system | |
| CN105677791A (en) | Method and system used for analyzing operating data of wind generating set | |
| CN110458201A (en) | A remote sensing image object-oriented classification method and classification device | |
| CN104715342A (en) | Electrical equipment fault handling and aid decision making method based on case-based reasoning | |
| CN106446081B (en) | The method for excavating time series data incidence relation based on variation consistency | |
| CN108875819B (en) | Object and component joint detection method based on long-term and short-term memory network | |
| CN108052504A (en) | Mathematics subjective item answers the structure analysis method and system of result | |
| CN110942098A (en) | An analysis method of power supply service quality based on Bayesian pruning decision tree | |
| CN115602337A (en) | A machine learning-based early warning method and system for Cryptocaryonia stimuli disease | |
| CN117541095A (en) | A method for classifying agricultural land soil environmental quality categories | |
| CN110705693A (en) | Unmanned aerial vehicle abnormal behavior recognition module and recognition method thereof | |
| CN117892091B (en) | Data intelligent analysis method and system based on artificial intelligence | |
| Harika et al. | Image-based black gram crop disease detection | |
| CN116032790B (en) | Method, device and system for identifying, diagnosing and predicting massive data flow anomalies of dispatching automation system | |
| CN120047698B (en) | A substation fault identification method and system based on image detection | |
| CN112528774A (en) | Intelligent sorting system and method for unknown radar signals in complex electromagnetic environment |
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 | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190920 |