A hierarchical SDG modeling method for flight control system based on topological sorting algorithm
By applying the topological sorting algorithm in the flight control system, the closed loop is disconnected and the node in-degree is calculated, which solves the problem of high layering complexity of the SDG model in the existing technology and achieves effective layering and efficiency improvement of the model.
Patent Information
- Application Number
- CN202111502199.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In the flight control system, the existing reachability-based layering strategy has high computational complexity and is difficult to understand, resulting in the SDG model being unable to effectively layer and improve diagnosis efficiency and resolution.
The topological sorting algorithm is used to disconnect the closed loop, perform hierarchical operations by calculating the in-degree of nodes, and establish an open-loop SDG model, thereby reducing the complexity of hierarchical operations and improving the understandability of the model.
It effectively transforms the original closed-loop model into a hierarchical model, improves the hierarchical efficiency and model understandability, and simplifies the hierarchical operation process.
Smart Images

Figure CN114239138B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of fault diagnosis modeling, and in particular to a hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm. Background Art
[0002] The SDG (Signed Directed Graph) model was defined by Iri M in the article "An algorithm for diagnosis of system failures in the chemical process" and published in the journal "Computers & Chemical Engineering" in 1979. It is used to solve the fault diagnosis problem of chemical processes. The SDG model is a typical qualitative graph theory model. The model consists of three parts, namely nodes, branches, and influence relationships. The model contains a large amount of potential causal relationships and location information of the system. Later, Wei Lei published "Application of HSDG Fault Diagnosis Method in Automated Verification System" in the journal "Computer Systems Applications" in 2020, introducing an online fault diagnosis method based on hierarchical symbolic directed graphs.
[0003] Scholars have proposed a layering strategy based on reachability, which layers the SDG model and improves the resolution and efficiency of fault diagnosis. However, in a flight control system with a closed loop, the existence of the closed loop makes it impossible to layer the system's SDG model, and thus it is impossible to improve the model's diagnostic efficiency and resolution. Therefore, it is necessary to improve the flight control system's SDG model to achieve the purpose of layering and thus improve efficiency.
[0004] As for the layering strategy, the one widely used at present is the layering strategy based on reachability. This method uses the Warshall algorithm to calculate the reachability matrix of the system through the adjacency matrix of the system. It has problems such as high computational complexity and difficulty in understanding. Therefore, a simpler and easier-to-understand layering strategy is needed to perform layered operations on the SDG model. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm, which can improve the hierarchical efficiency and the comprehensibility of the model and reduce the complexity of the hierarchical operation.
[0006] In order to solve the above technical problems, the present invention provides a hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm, comprising the following steps:
[0007] S1. Preliminary SDG modeling; according to the components of the flight control system and the influence relationship between the components and the direction of electrical signal propagation, the number, name and function of the components are clarified, and the influence relationship between the components is determined based on the sensitivity analysis method combined with empirical knowledge. Based on the positive and negative relationships between the components, the specific components are used as nodes and the positive and negative relationships are used as directed edges to establish a symbolic directed graph model of the flight control system;
[0008] S2. Model layering; based on the established symbolic directed graph and combined with the characteristics of the flight control system, the closed loop is disconnected, and based on the topological sorting algorithm, all nodes are traversed, the in-degree of all nodes is calculated, and the nodes with in-degree 0 are removed from the original symbolic directed graph, and the cycle is continued until the nodes of the original symbolic directed graph are empty.
[0009] Preferably, in step S1, the preliminary SDG modeling specifically includes the following steps:
[0010] S101. List all components and their functions according to the components of the flight control system;
[0011] S102, analyzing the positive and negative impact of each device on other devices by using a sensitivity analysis method;
[0012] S103. Combine empirical knowledge methods to establish a preliminary SDG model with a closed loop.
[0013] Preferably, in step S2, the model stratification specifically includes the following steps:
[0014] S201. According to the characteristics of the flight control system, the closed loop is disconnected, and the preliminary SDG model with a closed loop in S101 is converted into an open-loop SDG model;
[0015] Among them, the flight control system has an attitude feedback loop. In the control, the difference between the expected state value and its current state value is often used as the deviation for control. The deviation is defined by the following formula (1):
[0016] e=rx,(1)
[0017] In formula (1), r represents the expected state value, x represents the current state value, and e represents the deviation;
[0018] Among them, the characteristic of the flight control system is that in steady state, its deviation is 0, that is, e = 0, so in steady state, its feedback loop can be ignored, thus, the closed-loop SDG model can be transformed into an open-loop SDG model;
[0019] S202, traverse all nodes and calculate the in-degree of each node; wherein the in-degree of the node is the number of directed edges pointing to the node;
[0020] S203, delete all nodes with in-degree 0 from the original SDG model, and put these nodes into the i-th layer, where i represents the number of cycles;
[0021] S204, determine whether the remaining nodes are zero. If the determination result is no, return to sub-step S102. If the determination result is yes, connect the layered nodes according to the original directed edges and output the hierarchical SDG model of the flight control system.
[0022] The beneficial effects of the present invention are as follows: the present invention can transform the original closed-loop circuit into an open-loop circuit according to the feedback characteristics of the flight control system, and perform layered operations through a topological sorting algorithm. While transforming the original non-layered model into a layered model, the layered efficiency and the comprehensibility of the model can be improved, and the complexity of the layered operation can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a schematic diagram of the SDG model modeled by the present invention using the MiniFly quadrotor aircraft as the object.
[0024] Figure 2 This is a schematic diagram of the open-loop SDG model modeled by the present invention with the MiniFly quadrotor as the object.
[0025] Figure 3 It is a flowchart of the topological sorting algorithm part of the hierarchical SDG modeling method of the flight control system based on the topological sorting algorithm of the present invention.
[0026] Figure 4 This is a schematic diagram of the final hierarchical SDG model obtained by the topological sorting algorithm with the MiniFly quadrotor as the object of the present invention.
[0027] Figure 5 It is a simple control block diagram of the closed-loop flight control system of the present invention.
[0028] Figure 6 The figure is a simplified control block diagram of the flight control system of the present invention which is converted from a closed loop to an open loop. DETAILED DESCRIPTION
[0029] A hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm includes the following steps:
[0030] S1. Preliminary SDG modeling steps, including clarifying the number, name and function of components according to the components of the flight control system and the influence relationship between components and the direction of electrical signal propagation. According to the sensitivity analysis method combined with empirical knowledge, the influence relationship between components is determined. Based on the positive and negative relationships between components, the symbolic directed graph model of the flight control system is established with specific components as nodes and positive and negative relationships as directed edges. Among them, the flight control system analysis is the basis for establishing the symbolic directed graph (SDG) model.
[0031] The flight control system generally includes receivers, power amplifiers, wireless communication chips, flight control chips, ESCs, power systems, motors, rotors, sensors, etc. The names and functions of these components are shown in Table 1.
[0032] Table 1: Names and functions of components included in the flight control system
[0033] Devices Function Receiver Receive remote control signal Power Amplifier Amplifies the received remote control signal Wireless communication chip Process the amplified remote control signal and output it to the flight control chip Flight control chip Control the drone according to remote control signals and sensor signals ESC Receive control signals from the flight controller and drive the motor Power System Provide power support for each device Motor Rotate according to the electric control signal to drive the rotor Rotor Relying on rotation to provide lift and enable flight sensor Detect aircraft attitude, speed and other information, and feed it back to the flight control board
[0034] The present invention establishes an SDG model based on specific components, functions and signal transmission directions of the flight control system.
[0035] The SDG model γ is a directed graph G and a function The combination of Among them: (i) The directed graph G consists of four parts
[0036] (a) Node set V = {v i};
[0037] (b) Branch set E = {e k};
[0038] (c) Adjacency symbol (the starting node of the branch) and (the end node of the branch), the "adjacency relationship" represents the starting node of each branch and the terminal node
[0039] (ii) Function (e k =(v i ,v j )∈E) is called branch e k The symbol indicates the positive and negative influence relationship between nodes.
[0040] The present invention improves the traditional SDG modeling method and adopts a method combining empirical knowledge with sensitivity analysis to perform SDG modeling. The modeling steps are as follows:
[0041] (1) For each device, determine its input signal and output signal.
[0042] (2) Determine the input signal source and output signal destination of each device and establish connections between the devices.
[0043] (3) Use sensitivity analysis to obtain the positive and negative impact relationships between components.
[0044] (4) Taking devices as SDG nodes, the directions and signs of directed edges between devices are determined according to the positive and negative influence relationships between them, and they are connected to form the entire SDG model.
[0045] Using the above-mentioned method, the SDG model is constructed according to the system components, and certain expert verification and optimization of the model are carried out.
[0046] The above modeling method only establishes the most basic SDG model of the flight control system, and model layering operations will be performed later.
[0047] The model stratification step includes the following sub-steps:
[0048] S201. According to the characteristics of the flight control system, the closed loop is disconnected to form an open-loop SDG model;
[0049] Among them, the flight control system has an attitude feedback loop, such as Figure 5 The figure shows a simple control block diagram of a flight control system. The gyroscope, accelerometer and other sensors are used to transmit the attitude of the drone to the flight control board. This is the current state value of the drone. The flight control board compares it with the expected state value and uses the difference between the expected state value and its current state value as the deviation for control. The deviation is defined by the following formula (1):
[0050] e=rx, (1)
[0051] In formula (1), r represents the expected state value, x represents the current state value, and e represents the deviation.
[0052] Among them, the characteristic of the flight control system is that in steady state, its deviation is 0, that is, e = 0, so in steady state, its feedback loop can be ignored, such as Figure 6 The figure shows the structural block diagram after the closed loop is opened. At this time, the attitude of the quadrotor object can be understood as being completely controlled by the input signal. Therefore, the closed-loop SDG model can be converted into an open-loop SDG model.
[0053] S202, traverse all nodes and calculate the in-degree of each node;
[0054] The in-degree of the node is the number of directed edges pointing to the node;
[0055] S203, delete all nodes with in-degree 0 from the original SDG model, and put these nodes into the i-th layer, where i represents the number of cycles;
[0056] S204, determine whether the remaining nodes are zero, if the determination result is no, return to sub-step S102, if the determination result is yes, connect the layered nodes according to the original directed edges, and output the hierarchical SDG model of the flight control system. The following describes an application example of the flight control system hierarchical SDG modeling method based on the topological sorting algorithm of the present invention on a quadrotor aircraft.
[0057] The MiniFly quadcopter is used as the object for hierarchical SDG modeling. The flight control system of the aircraft mainly includes power supply, receiver, flight control chip, motor, rotor, etc. The flight control chip processes the remote control signal from the receiver, combines the attitude and other information fed back by the sensor, and then controls the waveform signal of the electric regulator to control the speed of the motor and rotor, thereby obtaining the desired attitude and forming a closed-loop control. Based on the proposed SDG modeling method, an SDG model is established for the MiniFly quadcopter, and its network topology is shown in the figure. Figure 1 The direction of the arrows in the established SDG model is mainly determined by the direction of the control signal and data flow, and the positive and negative signs are mainly determined by the influence relationship of each device. The device names corresponding to each node in the figure are shown in Table 2.
[0058] Table 2 Device names corresponding to each node
[0059] node Device Name node Device Name 1 Receiver 10 No. 4 speed regulating MOS 2 Power Amplifier 11 Motor No. 1 3 Battery System 12 Motor No. 2 4 Wireless communication chip 13 Motor No. 3 5 Flight control chip 14 Motor No. 4 6 sensor 15 Rotor No. 1 7 No. 1 speed regulating MOS 16 Rotor 2 8 No. 2 speed regulating MOS 17 Rotor 3 9 No. 3 speed regulating MOS 18 Rotor 4
[0060] Due to the existence of the sensor feedback loop, the SDG model cannot be layered. Therefore, combined with the characteristics of the drone in steady state, the feedback loop is disconnected to form a layered SDG model. Its network topology is as follows: Figure 2 shown.
[0061] This application example takes the hierarchical SDG model as an example to illustrate the hierarchical operation based on the topological sorting algorithm. Figure 3 It is a hierarchical flowchart based on the topological sorting algorithm.
[0062] Traversing the entire SDG model, calculating the in-degree of each node, that is, the number of directed edges pointing to the node, the in-degree of all nodes can be obtained as shown in Table 3:
[0063] Table 3. In-degree of all nodes in the original SDG model
[0064] node degree node degree 1 0 10 1 2 2 11 1 3 0 12 1 4 2 13 1 5 2 14 1 6 5 15 1 7 1 16 1 8 1 17 1 9 1 18 1
[0065] As shown in Table 3, the set of nodes with in-degree 0 is {1, 3}, so nodes 1 and 3 in the hierarchical SDG model are the first-layer nodes. Nodes 1 and 3 are deleted from the original SDG model to obtain a new SDG model, calculate the in-degree of the remaining nodes, and repeat the above operation until the nodes in the original SDG model are empty.
[0066] Figure 4 The hierarchical SDG model constructed by the present invention is adopted for the MiniFly quadrotor aircraft. Compared with the original SDG model, the hierarchical SDG model is clear and has obvious structural levels, which is more conducive to subsequent fault propagation path analysis or health assessment analysis.
Claims
1. A hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm, characterized in that: The steps include: S1. Preliminary SDG modeling; according to the components of the flight control system and the influence relationship between the components and the direction of electrical signal propagation, the number, name and function of the components are clarified, and the influence relationship between the components is determined according to the sensitivity analysis method. Based on the positive and negative relationships between the components, the specific components are used as nodes and the positive and negative relationships are used as directed edges to establish a symbolic directed graph model of the flight control system; S2, model stratification; wherein, based on the established symbolic directed graph, combined with the characteristics of the flight control system, the closed loop is disconnected, and based on the topological sorting algorithm, all nodes are traversed, the in-degree of all nodes is calculated, and the nodes with in-degree 0 are taken out from the original symbolic directed graph, and the original symbolic directed graph nodes are circulated until they are empty; specifically, the following steps are included: S201. According to the characteristics of the flight control system, the closed loop is disconnected, and the preliminary SDG model with a closed loop in S101 is converted into an open-loop SDG model; Among them, the flight control system has an attitude feedback loop. In the control, the difference between the expected state value and its current state value is often used as the deviation for control. The deviation is defined by the following formula (1): e=rx, (1) In formula (1), r represents the expected state value, x represents the current state value, and e represents the deviation; Among them, the characteristic of the flight control system is that in steady state, its deviation is 0, that is, e = 0, so in steady state, its feedback loop can be ignored, thus, the closed-loop SDG model can be transformed into an open-loop SDG model; S202, traverse all nodes and calculate the in-degree of each node; wherein the in-degree of the node is the number of directed edges pointing to the node; S203, delete all nodes with in-degree 0 from the original SDG model, and put these nodes into the i-th layer, where i represents the number of cycles; S204, determine whether the remaining nodes are zero. If the determination result is no, return to sub-step S102. If the determination result is yes, connect the layered nodes according to the original directed edges and output the hierarchical SDG model of the flight control system.
2. The hierarchical SDG modeling method for a flight control system based on a topological sorting algorithm as claimed in claim 1, characterized in that: In step S1, the preliminary SDG modeling specifically includes the following steps: S101. List all components and their functions according to the components of the flight control system; S102, analyzing the positive and negative impact of each device on other devices by using a sensitivity analysis method; S103. Combine empirical knowledge methods to establish a preliminary SDG model with a closed loop.
