An online inference engine for airborne multi-monitoring tasks

By combining the heterogeneous computing platform of ARM processor and FPGA on the drone, the monitoring model calculation unit and parameter cache block are dynamically configured to realize online reasoning of multiple monitoring tasks, solve the problem of limited computing resources of the drone, and improve Improved fault detection efficiency and autonomous status monitoring capabilities.

CN113268394BActive Publication Date: 2024-09-06HARBIN INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110360736.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-02
Publication Date
2024-09-06
Estimated Expiration
2041-04-02

AI Technical Summary

Technical Problem

Due to limited computing resources, UAVs are difficult to deploy complex multi-fault monitoring task models at the same time, which limits the development of airborne autonomous status monitoring capabilities.

Method used

An airborne multi-monitoring task online reasoning engine is designed, which combines the heterogeneous computing platform of ARM processor and FPGA to realize online reasoning and efficient calculation of different monitoring tasks by dynamically configuring the monitoring model calculation unit and parameter cache block. Parallel and pipelined computing optimize monitoring task operations.

Benefits of technology

It effectively alleviates computing resource constraints, realizes the online operation of multiple monitoring tasks, improves the computational efficiency of fault detection algorithms, meets the needs of multi-task online operation, and ensures energy-efficient inference calculations within a specified time period.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113268394B
    Figure CN113268394B
Patent Text Reader

Abstract

The invention discloses an airborne multi-monitoring task online inference engine, which relates to the field of airborne status monitoring and evaluation of unmanned aerial vehicles. It includes: a monitoring model calculation unit, each of which is pre-configured with at least one monitoring model; a task parameter storage unit, including multiple cache blocks, and each cache block stores model parameters of different monitoring tasks one-to-one; a task inference control unit, which is used to send the airborne monitoring data as the input parameter of the monitoring task to the corresponding cache block; the cache block is also used to receive the input parameter of the monitoring task and then merge and store it with the model parameter of the monitoring task; the task inference control unit is also used to select the corresponding multiple monitoring models, control the model parameters and input parameters in the corresponding multiple cache blocks, and load them into the monitoring model calculation units corresponding to the multiple monitoring models; the monitoring model calculation unit is used to receive the model parameters and input parameters, and obtain the output parameters as the result of the monitoring task according to the inference calculation of the monitoring model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of unmanned aerial vehicle (UAV) airborne status monitoring and evaluation. Background Art

[0002] Unmanned Aerial Vehicle (UAV) is widely used in civil and military fields due to its small size, light weight and low cost. However, UAV lacks real-time control by pilots in the loop and is limited by R&D costs. UAV accidents due to equipment failures occur frequently. Therefore, in order to improve the safety and autonomy of UAV operations and reduce the flight accident rate, fault detection technology has received more and more attention.

[0003] At present, there are two main ways to detect UAV faults: one is offline analysis after the flight; the other is on-board online analysis during the flight. Among them, the offline analysis method is not affected by factors such as time, power consumption, and volume. It can run complex fault detection methods and obtain better detection results. However, offline analysis will cause faults with high detection timeliness requirements to not be discovered in time, which will cause major flight safety hazards. The second method has become the focus of research on autonomous status monitoring of UAVs because it can realize on-board online analysis of UAV status data and is not affected by transmission delays and link interruptions.

[0004] However, the onboard computing resources of drones are limited, and complex fault detection models are difficult to implement online due to constraints such as time, power consumption, and volume. Therefore, the application of customized computing technology based on Field Programmable Gate Array (FPGA) at the airborne edge has gradually attracted attention. Based on this technology, online reasoning of computationally intensive fault detection models can be achieved.

[0005] Although FPGA can realize the online operation of complex models with high energy efficiency on board, in actual engineering applications, multiple key components of the UAV need to be detected within a specified control cycle, and the available computing resources inside the FPGA cannot realize the deployment of all monitoring models at the same time. The above problems have led to the realization of online operation of multiple fault monitoring tasks on UAVs with limited computing resources, which has become one of the main bottlenecks restricting the development of airborne autonomous state monitoring capabilities. Summary of the invention

[0006] The purpose of the present invention is to overcome the problem that in the existing FPGA-based UAV status data airborne online analysis, multiple supervisory task models are difficult to deploy simultaneously due to the limitation of computing resources of FPGA, and provide an airborne multi-monitoring task online inference engine.

[0007] An onboard multi-monitoring task online inference engine of the present invention comprises at least one monitoring model calculation unit, a task inference control unit and a task parameter storage unit;

[0008] Each monitoring model calculation unit is pre-configured with at least one monitoring model; and the total number of monitoring models in all monitoring model calculation units is greater than one;

[0009] A task parameter storage unit includes a plurality of cache blocks, and each cache block stores model parameters of different monitoring tasks one-to-one;

[0010] A task reasoning control unit is connected to the task parameter storage unit, and is used to obtain the airborne monitoring data measured by the airborne sensor of the UAV, and send the airborne monitoring data as the input parameter of the monitoring task to the cache block corresponding to the monitoring task;

[0011] The cache block is also used to receive the input parameters of the monitoring task and then merge and store them with the model parameters of the monitoring task;

[0012] The task reasoning control unit is further used to select corresponding multiple monitoring models according to multiple monitoring tasks, control the model parameters and input parameters in the corresponding multiple cache blocks, and load them into the monitoring model calculation units corresponding to the multiple monitoring models;

[0013] The monitoring model calculation unit is connected to the task parameter storage unit, and is used to receive the model parameters and the input parameters, and obtain the output parameters by reasoning and calculating according to the monitoring model;

[0014] Output parameters as a result of the monitoring task.

[0015] Furthermore, different monitoring model calculation units have different scales, and the monitoring model pre-configured in each monitoring model calculation unit (1) corresponds to its own scale;

[0016] Furthermore, the model reasoning structures of all monitoring models corresponding to the same monitoring model calculation unit are the same.

[0017] Furthermore, multiple monitoring models in the same monitoring model calculation unit perform reasoning calculations in a time-sharing multiplexing manner.

[0018] Further, the monitoring model calculation unit includes a parameter input cache module, an inference acceleration calculation module and a parameter output cache module;

[0019] A parameter input cache module, connected to the task parameter storage unit, for receiving and caching model parameters and input parameters;

[0020] The inference acceleration calculation module is connected to the parameter input cache module, and is used to read the model parameters and input parameters in the parameter input cache module, and use the model parameters and input parameters as the input of the corresponding monitoring model, and calculate the output parameters and send them to the parameter output cache module;

[0021] The parameter output cache module is connected to the inference acceleration computing module and is used to cache output parameters.

[0022] Further, the parameter input cache module includes a model parameter cache unit and an input parameter cache unit;

[0023] A model parameter cache unit, used for receiving and caching model parameters;

[0024] The input parameter cache unit is used to receive and cache input parameters.

[0025] Further, in the model parameter cache unit, the model parameters are cached in row order;

[0026] In the input parameter cache unit, the input parameters are cached in column order.

[0027] Furthermore, the task reasoning control unit is also connected to the monitoring model calculation unit to read the output parameters in the monitoring model calculation unit.

[0028] Further, it also includes a data transmission bus, a control bus and a direct memory access DMA transmission control unit;

[0029] The task reasoning control unit is also connected to the DMA transmission control unit through the control bus, and is used to generate a corresponding transmission control signal according to the monitoring task and send it to the DMA transmission control unit through the control bus, and to generate a corresponding parameter configuration control signal according to the monitoring task and send it to the task parameter storage unit;

[0030] The task parameter storage unit is also connected to the DMA transmission control unit through the data transmission bus, and is used to send the model parameters and input parameters in the corresponding cache block to the DMA transmission control unit through the data transmission bus after receiving the parameter configuration control signal;

[0031] The DMA transmission control unit is also connected to the monitoring model calculation unit, and is used to send the model parameters and the input parameters to the model parameter cache unit and the input parameter cache unit in the monitoring model calculation unit respectively after receiving the transmission control signal;

[0032] The monitoring model calculation unit is connected to the task reasoning control unit through a control bus, and is used to enable the task reasoning control unit to read output parameters through the control bus.

[0033] Further, it also includes a first processor and a second processor;

[0034] The task reasoning control unit is deployed on the first processor;

[0035] The monitoring model calculation unit is deployed on the second processor.

[0036] Furthermore, the first processor is an ARM processor; the second processor is an FPGA.

[0037] The beneficial effects of the present invention are:

[0038] The present invention designs a dynamically configurable airborne multi-monitoring task online reasoning engine based on a heterogeneous computing platform combining ARM and FPGA. While realizing the airborne deployment of complex fault detection models with different computing structures, the parameters of complex fault detection models with the same computing structure are dynamically configured to effectively alleviate the problem of difficulty in simultaneously deploying multiple monitoring task models caused by limited computing resources. At the same time, in response to the dynamic configuration requirements of each monitoring task, a configurable monitoring model calculation unit is invented, which uses a discrete method of model parameters, input parameters, reasoning acceleration calculation and output parameters to achieve the reuse of the same reasoning acceleration calculation structure under different monitoring tasks, and uses parallel and pipeline methods in customized calculations to optimize the calculation-intensive operations in the monitoring tasks, and realizes energy-efficient reasoning calculations for monitoring tasks. Combining the above contents, the online operation of airborne multi-monitoring tasks within a specified time period is finally realized.

[0039] In summary, the present invention requires that the same monitoring model in each monitoring task realizes the sharing of customized computing units, while monitoring models of different scales are designed as different customized computing units. On this basis, by dynamically updating the model parameters in each customized computing unit, the problem of online operation of multiple monitoring tasks is solved, and the urgent demand for online operation of multiple tasks is met while improving the computational efficiency of the onboard fault detection algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a principle block diagram of an airborne multi-monitoring task online inference engine of the present invention;

[0041] Figure 2 It is a structural block diagram of a monitoring model calculation unit in an airborne multi-monitoring task online reasoning engine of the present invention;

[0042] Figure 3 The present invention is a flowchart of performing online reasoning on multiple monitoring tasks using an onboard online reasoning engine for multiple monitoring tasks. DETAILED DESCRIPTION

[0043] Specific implementation method 1: This implementation method is an airborne multi-monitoring task online reasoning engine, which is an airborne multi-monitoring task reasoning acceleration computing engine with dynamically updated model parameters for online monitoring and evaluation of the operating status of key components of unmanned aerial vehicles.

[0044] In view of the problem that the limited onboard computing resources of existing drones cannot realize the online operation of multiple fault detection tasks, this embodiment designs and proposes an onboard multi-monitoring task online reasoning engine based on dynamic configuration of model parameters. The onboard multi-monitoring task online reasoning engine adopts a heterogeneous computing chip system based on the combination of ARM and FPGA as the main operating platform. On this basis, firstly, each fault detection model that needs to be run online is designed as a configurable customized computing unit structure separated by a model parameter cache module, an input parameter cache module, an inference acceleration computing module, and an output parameter cache module, and each customized computing unit is deployed inside the FPGA; then, multiple model parameter cache blocks are divided in the external large-capacity data cache DDR3 of the ARM part, and the parameters of each fault detection model are cached to the corresponding cache blocks; finally, under the control of the ARM processor, the model parameters of each cache block are cyclically configured to the corresponding customized computing unit inside the FPGA through a high-speed data transmission bus. After the customized computing unit completes the online reasoning of the corresponding model, the calculation results are returned to the ARM processor through the data bus, and subsequent processing operations are performed.

[0045] (1) Airborne multi-monitoring task online inference engine

[0046] like Figure 1As shown in the figure, the onboard multi-monitoring task online inference engine mainly includes three parts: ARM processor, model parameter cache and FPGA. Among them, the ARM processor is used to control the onboard multi-monitoring task online inference; the model parameter cache unit is used to realize the model parameter storage of different monitoring tasks through the DDR3 large-capacity cache, and the model parameters of each monitoring task are stored in the corresponding model parameter cache block; the FPGA is used to realize the parameter configurable customized computing unit of the monitoring model for different monitoring tasks, and the direct memory access (Direct Memory Access, DMA) transmission control unit, among which each monitoring task corresponds to a configurable customized computing unit, and the number of configurable customized computing units of different scales that can be deployed inside the FPGA is 1 to m. The value of m is determined according to the number of available computing resources inside the FPGA and the demand for computing resources of each configurable customized computing unit. At the same time, n model parameter cache blocks of different monitoring tasks are established in the model parameter cache, and each block corresponds to the model parameters of a monitoring task. Since multiple monitoring tasks can share the same configurable customized computing unit, n≥m. At this point, you only need to configure the parameters of the configurable customized computing unit that matches the model scale according to different task requirements and use the parameter cache data corresponding to the task to complete the online reasoning of the corresponding monitoring task.

[0047] In this architecture, the ARM processor is interconnected with the DMA transfer controller and the configurable custom computing unit through the control bus. The ARM processor controls the DMA transfer controller through the control bus to load the model parameters and receives the calculation results of the configurable custom computing unit through the control bus. The ARM controller can interact with the model parameter cache module through its internal cache unit and the DDR3 cache interface to realize the splicing and caching of the onboard monitoring data (fault diagnosis model input data) and model parameters. The model parameter cache is interconnected with the DMA transfer controller through a high-speed data transmission bus. Under the DMA transfer control of the ARM processor, high-speed data transmission is realized from the model parameters and input parameters of the monitoring model in the model parameter cache to the model parameter cache module and input parameter cache module in the configurable custom computing unit.

[0048] (2) Configurable custom computing units

[0049] like Figure 2As shown, the configurable custom computing unit mainly includes a model parameter cache module, an input parameter cache module, an inference acceleration computing module and an output parameter cache module. The model parameter cache module is mainly used to store the model parameters loaded by the DDR3 internal model parameter cache unit through DMA transmission. The input parameter cache module is mainly used to store the model input parameters loaded by the DDR3 internal model parameter cache unit through DMA transmission. The inference acceleration computing module is an acceleration computing module customized for a specific fault detection model. Since the inference calculation of complex airborne fault detection models is mostly matrix multiplication or matrix-vector multiplication, high-efficiency computing of intensive computing tasks can be achieved by utilizing the parallel computing and pipeline computing structure design of FPGA. The output parameter cache module is mainly used to store the results output by the inference acceleration computing module for ARM to read the result data through the control bus.

[0050] The configurable computing unit in the present invention can realize dynamic configuration of monitoring tasks by inputting different model parameters and input data, and meet the online operation requirements of multiple monitoring tasks by adopting a fault detection model with the same computing structure under limited computing resources. The configurable custom computing unit first receives the model parameters and input parameters corresponding to the current monitoring task respectively through a high-speed data transmission bus, and writes the input into the corresponding data cache under the data reception control in the model parameter cache module and the input parameter cache module. The data cache is composed of a block random access memory (BRAM) inside the FPGA. In order to break the storage bottleneck brought by BRAM during inference acceleration calculation, the model parameters are cached in row order and the input parameters are cached in column order under the data reception control; then, under the control of the model inference control module, the parallel and pipeline computing units in the inference acceleration computing module are executed according to the fault detection model inference process corresponding to the current monitoring task to realize the rapid inference of the fault detection model; finally, under the data output control, the output of the inference acceleration computing module is cached in the data cache in the output parameter cache module until the ARM processor reads the result data through the control bus.

[0051] Start to execute multi-task online reasoning, determine the current monitoring task or fault detection task to be completed, receive the onboard monitoring data through the ARM processor, and merge the fault detection model parameters corresponding to the current monitoring task with the onboard monitoring data, and transfer them to the configurable custom computing unit through DMA to realize the dynamic configuration of the online reasoning model so that it meets the fault detection model reasoning requirements corresponding to the current monitoring task. Complete the online reasoning of the monitoring model based on the currently configured custom computing unit and output the reasoning results. Determine whether all tasks in the multi-monitoring task have been completed. If not, obtain the next monitoring task and return to the time before the ARM receives the monitoring data. Execute different monitoring tasks in sequence until all tasks are completed and end the multi-task online reasoning.

[0052] (3) Verification of actual working conditions

[0053] 1. Airborne monitoring mission model

[0054] Taking the evaluation model based on the Long Short-Term Memory (LSTM) algorithm as an example, the LSTM algorithm model structure is used to evaluate the monitored flight parameters using the input 16-dimensional airborne monitoring data. The model mainly includes a four-layer network structure. The input layer dimension is 16, corresponding to the 16-dimensional airborne flight parameters; the hidden layer includes two LSTM layers, each containing 30 LSTM nodes, and the LSTM time step is set to 30; the output layer is a fully connected layer, which can obtain the final flight parameter evaluation results.

[0055] 3. Construction of airborne multi-monitoring tasks

[0056] 17 important airborne flight parameters are selected, as shown in Table 1. 16 of them are used as model inputs to complete the evaluation of the remaining parameter. Here, five parameters, namely aileron rudder, elevator, pitch rate, roll rate, and yaw rate, are selected for monitoring. The actual flight data of the UAV is used to complete the training of the algorithm model based on the above LSTM model structure, and five groups of corresponding different monitoring models are obtained for constructing airborne multi-monitoring tasks.

[0057] Table 1 Parameters used for LSTM model state evaluation

[0058]

[0059] 3. Construction of online inference engine for airborne multi-monitoring tasks

[0060] Using FPGA-based custom computing technology, the computing structure of the above five LSTM evaluation algorithm models is optimized, including parallel computing, pipeline, etc., and corresponding high-speed data transmission interfaces and control bus interfaces are added. Since the computing structure of the evaluation models of the above multiple monitoring tasks is the same, only one configurable custom computing unit needs to be deployed on the FPGA. At the same time, the model parameters of the five models are divided into five data cache blocks and stored in the DDR3 outside the ARM.

[0061] 4. Online reasoning of multiple airborne monitoring tasks

[0062] The airborne multi-monitoring task online inference engine is deployed to the Zynq7045 SoC platform, and the airborne multi-monitoring task online inference engine is run to realize the online operation of the above five airborne monitoring tasks in the 20ms control cycle of the drone. Through actual testing, it is found that the time consumption of running the five evaluation models online once is 3.25ms, and the result is consistent with the result of directly running the corresponding evaluation model on the computer. Based on this result, it can be calculated that when using the same configurable custom computing unit as this example, up to 30 airborne monitoring tasks can be realized online within 20ms.

Claims

1. An airborne multi-monitoring task online reasoning device, characterized in that: It comprises at least one monitoring model calculation unit (1), a task reasoning control unit (2) and a task parameter storage unit (3); Each of the monitoring model calculation units (1) is pre-configured with at least one monitoring model; and the total number of monitoring models in all monitoring model calculation units (1) is greater than one; The task parameter storage unit (3) includes a plurality of cache blocks (4), and each cache block (4) stores model parameters of different monitoring tasks one by one; The task reasoning control unit (2) is connected to the task parameter storage unit (3) and is used to obtain airborne monitoring data measured by the airborne sensor of the unmanned aerial vehicle, and send the airborne monitoring data as input parameters of the monitoring task to the cache block (4) corresponding to the monitoring task; The cache block (4) is also used to receive the input parameters of the monitoring task and merge and store them with the model parameters of the monitoring task; The task reasoning control unit (2) is further used to select corresponding multiple monitoring models according to multiple monitoring tasks, control model parameters and input parameters in corresponding multiple cache blocks (4), and load them into the monitoring model calculation units (1) corresponding to the multiple monitoring models; The monitoring model calculation unit (1) is connected to the task parameter storage unit (3) and is used to receive the model parameters and input parameters and obtain output parameters by reasoning and calculating according to the monitoring model; The output parameters are used as the results of the monitoring task; Different monitoring model calculation units (1) have different scales, and the monitoring model pre-configured in each monitoring model calculation unit (1) corresponds to its own scale; Furthermore, the model reasoning structures of all monitoring models corresponding to the same monitoring model calculation unit (1) are the same.

2. The onboard multi-monitoring task online reasoning device according to claim 1, characterized in that: Multiple monitoring models in the same monitoring model calculation unit (1) perform reasoning calculations in a time-sharing multiplexing manner.

3. The onboard multi-monitoring task online reasoning device according to claim 2, characterized in that: The monitoring model calculation unit (1) comprises a parameter input cache module (1-1), an inference acceleration calculation module (1-2) and a parameter output cache module (1-3); The parameter input cache module (1-1) is connected to the task parameter storage unit (3) and is used to receive and cache model parameters and input parameters; The inference acceleration calculation module (1-2) is connected to the parameter input cache module (1-1), and is used to read the model parameters and input parameters in the parameter input cache module (1-1), and use the model parameters and input parameters as inputs of the corresponding monitoring model, calculate the output parameters and send them to the parameter output cache module (1-3); The parameter output cache module (1-3) is connected to the inference acceleration calculation module (1-2) and is used to cache the output parameters.

4. The onboard multi-monitoring task online reasoning device according to claim 3, characterized in that: The parameter input cache module (1-1) comprises a model parameter cache unit (1-1-1) and an input parameter cache unit (1-1-2); The model parameter cache unit (1-1-1) is used to receive and cache model parameters; The input parameter cache unit (1-1-2) is used to receive and cache input parameters.

5. The onboard multi-monitoring task online reasoning device according to claim 4, characterized in that: In the model parameter cache unit (1-1-1), the model parameters are cached in row order; In the input parameter cache unit (1-1-2), the input parameters are cached in column order.

6. An onboard multi-monitoring task online reasoning device according to any one of claims 2, 3, 4 or 5, characterized in that: The task reasoning control unit (2) is also connected to the monitoring model calculation unit (1) and is used to read the output parameters in the monitoring model calculation unit (1).

7. The onboard multi-monitoring task online reasoning device according to claim 6, characterized in that: It also includes a data transmission bus (5), a control bus (6) and a direct memory access DMA transmission control unit (7); The task reasoning control unit (2) is also connected to the DMA transmission control unit (7) via a control bus (6), and is used to generate a corresponding transmission control signal according to the monitoring task and send it to the DMA transmission control unit (7) via the control bus (6), and to generate a corresponding parameter configuration control signal according to the monitoring task and send it to the task parameter storage unit (3); The task parameter storage unit (3) is also connected to the DMA transmission control unit (7) via a data transmission bus (5), and is used to send the model parameters and input parameters in the corresponding cache block (4) to the DMA transmission control unit (7) via the data transmission bus (5) after receiving the parameter configuration control signal; The DMA transmission control unit (7) is also connected to the monitoring model calculation unit (1) and is used to send the model parameters and input parameters to the model parameter cache unit (1-1-1) and the input parameter cache unit (1-1-2) in the monitoring model calculation unit (1) respectively after receiving the transmission control signal; The monitoring model calculation unit (1) is connected to the task reasoning control unit (2) via a control bus (6) and is used to enable the task reasoning control unit (2) to read output parameters via the control bus (6).

8. An onboard multi-monitoring task online reasoning device according to any one of claims 1, 2, 3, 4, 5 or 7, characterized in that: Also including a first processor and a second processor; The task reasoning control unit (2) is deployed on the first processor; The monitoring model calculation unit (1) is deployed on the second processor.

9. The onboard multi-monitoring task online reasoning device according to claim 8, characterized in that: The first processor is an ARM processor; the second processor is an FPGA.

Citation Information

Patent Citations

  • Embedded high-efficiency computation platform oriented to onboard fault prediction and health management, and method

    CN110544328A

  • Virtual processor enabling unobtrusive observation of legacy systems for analytics in soc

    US20190146821A1