FPGA-based high-energy-efficiency embedded unmanned aerial vehicle intrusion detection system

By deploying the YOLOv7-Tiny network on the FPGA platform and combining quantitative sensing training and software and hardware co-design, the problems of UAV intrusion detection systems in harsh environments and high power consumption are solved, and UAVs with high energy efficiency and rapid detection are realized. Target tracking.

CN118762295AActive Publication Date: 2024-10-11FUZHOU UNIV

Patent Information

Application Number
CN202410795784.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-11
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Existing UAV intrusion detection systems are difficult to accurately track and identify UAV targets in low-altitude airspace under harsh environments and interference conditions, and most systems have high power consumption and low energy efficiency, which cannot meet the needs of airspace security.

Method used

An energy-efficient embedded UAV intrusion detection system based on FPGA is used to optimize the network through YOLOv7-Tiny target detection network and quantified perception training (QAT), combined with a reusable multi-node configurable architecture and software and hardware co-design, to achieve Forward inference and fine-grained optimization for hardware accelerators.

Benefits of technology

It is possible to reduce hardware resource consumption and improve the energy efficiency of the detection system while ensuring detection accuracy. The power consumption is only 6.5W and the energy efficiency reaches 27.38GOPS/W. It is suitable for rapid detection of drone applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762295A_ABST
    Figure CN118762295A_ABST
Patent Text Reader

Abstract

According to the FPGA-based high-energy-efficiency embedded unmanned aerial vehicle intrusion detection system provided by the invention, a network is retrained and quantized by adopting quantitative perception training QAT, weight parameters and feature map data are quantized into 8 bits on the premise of ensuring the detection precision, and a batch normalization layer is fused into a convolution layer, so that the consumption of hardware resources is reduced. The whole system is realized by adopting software and hardware collaborative design, and software and hardware tasks are reasonably divided, so that the high efficiency of the whole system is realized. The whole system is realized by adopting software and hardware collaborative design, and software and hardware tasks are reasonably divided, so that the high efficiency of the whole system is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned aerial vehicle intrusion technology, and in particular to a high-energy-efficiency embedded unmanned aerial vehicle intrusion detection system based on FPGA. Background Art

[0002] With the advancement of science and technology, the operability and flexibility of drones and other aircraft are increasing day by day. They have the ability to fly at low altitudes, move slowly and be difficult to detect. At the same time, they can carry loads and easily pass through ground defense systems, which may pose a threat to key ground facilities. Therefore, how to effectively prevent and respond to the interference and sabotage activities of drones has become a major global security challenge, which is mainly reflected in the difficulty of control, detection and effective disposal.

[0003] In the current field of low-altitude airspace monitoring, there are a variety of detection technologies to identify and track flying targets, including radar detection, radio detection, and photoelectric detection. Among them, photoelectric detection is favored for its excellent anti-interference ability, intuitive image quality, and flexible deployment methods. In complex urban environments, photoelectric detection technology can effectively assist in the search and identification of targets such as drones. However, photoelectric detection technology also faces a series of challenges. First, it is very sensitive to environmental conditions such as visibility and humidity. Severe weather conditions such as fog, rain, or smoke can seriously affect the performance of photoelectric detection. Secondly, in actual application scenarios, there are many unavoidable interference factors and uncertainties, such as buildings or natural obstructions that may block the line of sight, background noise that may mask the target signal, and sudden changes in light that may cause image quality to degrade. These factors all bring additional difficulties to the detection and tracking of moving targets. In view of these challenges, it is particularly important to study and develop efficient target tracking algorithms. These algorithms need to be able to accurately separate targets from complex backgrounds and maintain stable tracking performance even when the line of sight is blocked or environmental conditions are unfavorable. In addition, the algorithm should also have a certain degree of adaptive ability, and be able to adjust its own parameters according to real-time data to cope with environmental changes and interference factors. Through the application of these advanced algorithms, we can improve the detection accuracy and reliability of flying targets in low-altitude airspace, thereby effectively ensuring airspace safety.

[0004] At present, the research on drone tracking and detection based on machine vision can be divided into traditional image processing methods and methods based on deep learning. The drone detection methods based on traditional image processing are mainly divided into image preprocessing, image segmentation, feature extraction and recognition detection. Image preprocessing is to expand the effective information of the image through operations such as denoising and enhancement. Image segmentation mainly separates the target area of ​​interest from other background areas. Feature extraction is to extract the color, texture or shape features of the detection target in the area of ​​interest, and finally identify and detect through feature information. However, when using traditional image processing methods for drone detection, false detection and missed detection may occur when the lighting is affected and the defect contrast is not obvious. With the rise of Convolutional Neural Network (CNN) in industrial applications, drone detection methods based on deep learning have been widely used in various detection scenarios. This method adaptively learns parameters and extracts feature information for specific image data sets.

[0005] Automatic detection of drone intrusions for airspace safety has certain requirements on inference speed and power consumption. However, most of the current defect detection research does not use efficient hardware platforms to deploy defect detection algorithms, resulting in high power consumption and low energy efficiency, which does not meet the requirements of airspace safety scenarios. Summary of the invention

[0006] In view of this, the purpose of the present invention is to provide a high-energy-efficiency embedded UAV intrusion detection system based on FPGA, deploying the YOLOv7-Tiny target detection network on FPGA for hardware implementation, which is used for the detection of UAV target tracking targets.

[0007] To achieve the above objectives, the present invention adopts the following technical solutions: a high-efficiency embedded UAV intrusion detection system based on FPGA, which uses YOLOv7-Tiny to train the UAV target tracking data set, and optimizes the network at the algorithm level through QAT and layer fusion technology; designs a hardware accelerator with a multiplexed multi-node configurable architecture, and realizes different accelerator functions by configuring multiple different nodes; the hardware accelerator with a multiplexed multi-node configurable architecture realizes the forward reasoning of the network, optimizes each hardware module in a fine-grained manner, and designs a dual-pipelined structure within and between layers; finally, the entire detection system is finally realized through hardware and software collaborative design.

[0008] The YOLOv7-Tiny specifically includes:

[0009] 1) Layer fusion: The BN layer is fused into the convolutional layer. The convolutional layer calculation formula is shown in formula (1), where Y conv and X conv Represent the calculation results and input data of the convolutional layer respectively, W and b are weights and biases respectively;

[0010]

[0011] The calculation formula of the BN layer is shown in formula (2), where Y bn and X bn Represent the calculation results and input data of the BN layer respectively, γ and β represent the scaling factor and bias of the BN layer respectively, ε is the sliding coefficient which is a small positive number, μ and δ are the mean and variance of the input data;

[0012]

[0013] Formula (1) converts the calculation result Y of the convolution layer into conv Substitute the input X of the BN layer in formula (2) bn And rearrange them to achieve the fusion of normalization layer and convolution layer. Finally, the new convolution layer formula is shown as follows:

[0014]

[0015] Where X' and Y' are the input data and calculation results of the new convolutional layer, respectively, and W' and b' are the weight and bias of the new convolutional layer;

[0016] 2) QAT model: By adding pseudo-quantization nodes to the network training to mark the numerical range of the parameters, quantization is simulated during training to adjust the zero point and scaling factor to reduce the error caused by quantization. After training, the network model is quantized into 8-bit fixed-point numbers by obtaining the optimal zero point and scaling factor.

[0017] During the network forward reasoning process, the feature map and weight data are quantized to 8 bits. The feature map data is quantized to the value range of (0, 256), and the weight data is quantized to the value range of (-128, 127). The formula for mapping the floating point number X to the fixed point number q using the scaling factor S and zero point Z obtained by QAT is shown in formula (4);

[0018] X=S(qZ) (4)

[0019] Substituting equation (4) into (3), we can get the following equation:

[0020]

[0021] Among them, since the weights are symmetrically quantized, the zero point Z of the weights can be obtained W =0; take S b =S W S X , the bias is symmetrically quantized and Z is taken Y =0, we can get the following formula;

[0022]

[0023] Among them only is a floating point number; S W and S X The scaling factor is 8 bits, so S W S X The scaling ratio is 16 bits. In the QAT model, the bias is calculated with a 32-bit data width, and the scaling is done with S W S X To replace S b Using a bias number will lose half of the information.

[0024] In a preferred embodiment, the weight, bias and quantization factor parameter data of the network model after training with the drone intrusion data set are rearranged and saved in advance in the SD card in the format of a binary file. Before the drone target tracking detection is performed, the SD card controller reads the weight, bias, scaling factor and zero point parameter data from the SD card to the preset DDR memory offset address through the hardware interface of the SD card slot. After a single sector is read, the SD card sends an SD_Done interrupt signal to the CPU and starts the next sector reading; the software-side CPU first configures each module through the advanced extensible interface AXI bus, and presets the configuration parameters of the accelerator on the software side. The CPU configures the hardware accelerator through the AXI interface based on these parameters, thereby realizing forward reasoning of different network layers in the drone intrusion detection network; the accelerator reads and writes data through the AXIStream interface, and data interaction between the accelerator and the DDR memory is realized by passing the address instruction information and data transmission length of the DDR memory to the AXIDMA; after the hardware accelerator is executed once, it will send a Task_Done interrupt signal to the CPU, and the CPU will reconfigure the parameters of the hardware accelerator, and repeat this process until the reasoning of the entire network is finally completed; based on the results of network reasoning, the CPU uses the non-maximum suppression NMS algorithm to obtain the coordinate position of the drone target tracking.

[0025] In a preferred embodiment, the CPU calculates the data transmission parameters according to the parallelism of the accelerator. In the next cycle, the CPU configures the hardware accelerator to the receiving mode through the AXI interface, calculates the transmission parameters of the next cycle, and transmits the feature map data, weight data and bias data from the DDR memory to the on-chip cache of the accelerator through AXIDMA. After the hardware accelerator receives the data, it sends an interrupt to the CPU to inform the CPU that the reception is complete. After the CPU receives the interrupt signal, it starts the next cycle. The CPU configures the hardware accelerator to the receiving and reasoning mode. The hardware accelerator adopts a double buffer structure. One input feature map data cache is used for the forward reasoning operation of the current cycle, and the other input feature map data cache is used to prepare the input feature map data of the next cycle. When the hardware accelerator completes data reception and data forward reasoning, it also sends an interrupt signal to the CPU to indicate that the execution is completed; after the input channel is cycled through, the calculation of the first batch of output data is completed, and the CPU configures the hardware accelerator to the sending mode, sends the output feature map cache data to the DDR memory, and then starts the next cycle until the feature map data of all output channels are calculated, that is, the reasoning of the network layer is completed.

[0026] In a preferred embodiment, the accelerator first configures a control module, which can analyze the network layer type based on the information, thereby generating enable control signals for other submodules; a dual-input cache mechanism is adopted, and two blocks of input feature map cache space are alternately used for data writing and calculation through a cache selector; the filling module is controlled by a filling enable signal, and the filling signal is generated by the control module according to the configured filling value. When the signal is pulled high, the zero point value of the quantized feature map data is output, and when the signal is pulled low, the data output of the input feature map cache space is read; the feature map data needs to be deducted from the quantized zero point value and then the data path is selected according to the configuration information of the convolution type. If it is a 1×1 convolution, the data is directly input into the convolution module for convolution operation, and if it is a 3×3 convolution, the data needs to be formed into a 3×3 sliding window data through a row buffer and then sent to the convolution module for convolution operation, and the row buffer pre-caches the data to be used; the data stream output by the selector is input into the convolution processing unit and the LeakyReLU PE for calculation.

[0027] In a preferred embodiment, the convolution module reads the weights and feature map data of different arrangements according to the convolution type selector value to perform convolution operation. After the calculation, two results will be output. One is the value after the convolution calculation without activation by the activation function, which is suitable for the convolution layer type of the detection layer in the drone intrusion detection network. The other is the value after the convolution calculation after activation by the activation function, which is suitable for other convolution layer types in the model.

[0028] It also includes inter-layer pipeline structures of convolution modules and upsampling modules, convolution modules and downsampling modules, realizing inter-layer and intra-layer dual pipeline structures, and selecting the output data stream through the acceleration type selector; the drone intrusion detection network splices the feature maps of different channels together through the splicing layer; in hardware implementation, after quantization calculation, the data is transferred to the DDR memory with a preset offset address to realize data splicing, and finally the result is written into the output feature map cache space.

[0029] In a preferred embodiment, the input feature map data of the convolution module first needs to determine the convolution kernel size. The 3×3 convolution data needs to generate 3×3 sliding window data through the line buffer first, and the 1×1 convolution is directly input into the multiplication array for calculation; in the convolution calculation, two convolution multiplication operations are integrated into one DSP, and the DSP is optimized; for the weight data of different output channels, the feature map data of the same input channel can be shared to calculate the convolution multiplication results of two different output channels; the high 9 bits of the A port of the DSP are filled with the sign bit extension of the weight of the output channel X, and the low 18 bits are filled with the sign bit extension of the weight of the output channel Y, and the B port is filled with the input feature map data. Fig. 9 The 8-bit data is sign-extended and filled; the final result of 8-bit wide data multiplied by 9-bit wide data is saved with 17-bit wide data, so the C output port takes the lower 17 bits to output the convolution multiplication result of channel Y, and then takes the next 17 bits of data as the convolution multiplication result of output channel X.

[0030] In a preferred embodiment, the data stream calculated by the convolution module is first written into the data cache space in the upsampling module, and image upsampling is achieved by controlling the read address of the data cache space; after the upsampling module starts working, it will count the rows and columns, and the read address will be increased by 1 when two data are output from the same read address. After a row of valid data is output, the read address will be subtracted from the row valid data length, and then another row of data identical to the previous row will be output in the same way. Repeating this operation can complete the upsampling operation of the complete feature map data.

[0031] Compared with the prior art, the present invention has the following beneficial effects: The present invention proposes a high-energy-efficiency embedded UAV intrusion detection system based on field programmable gate array FPGA, and adopts quantization perception training QAT to retrain and quantize the network. Under the premise of ensuring detection accuracy, the weight parameters and feature map data are quantized to 8 bits, and the batch normalization layer is integrated into the convolution layer, which reduces the consumption of hardware resources. The overall system is implemented by software and hardware collaborative design, and the software and hardware tasks are reasonably divided, thereby achieving the high efficiency of the entire system. The overall system is implemented by software and hardware collaborative design, and the software and hardware tasks are reasonably divided, thereby achieving the high efficiency of the entire system. A hardware accelerator with a multiplexed multi-node configurable architecture is designed, which realizes the acceleration of different network layers through multiple configuration nodes, and performs fine-grained optimization design. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a structural diagram of an ELAN-T module in a preferred embodiment of the present invention;

[0033] Figure 2 A system framework diagram of a preferred embodiment of the present invention;

[0034] Figure 3 A schematic diagram of the software and hardware coordinated operation mode of a preferred embodiment of the present invention;

[0035] Figure 4 A diagram of a multi-layer dynamically configurable accelerator architecture according to a preferred embodiment of the present invention;

[0036] Figure 5 This is a convolution module architecture diagram of a preferred embodiment of the present invention;

[0037] Figure 6 A configurable row buffer diagram of a preferred embodiment of the present invention;

[0038] Figure 7 DSP optimization design diagram for a preferred embodiment of the present invention;

[0039] Figure 8 A schematic diagram of the SPP module architecture of a preferred embodiment of the present invention;

[0040] Fig. 9 It is a detection effect diagram of the network model after QAT quantization in a preferred embodiment of the present invention;

[0041] Fig.10 This is an overall power consumption diagram of the hardware acceleration system according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0042] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0043] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0044] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application; as used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or their combinations.

[0045] The present invention proposes a high-energy-efficiency embedded UAV intrusion detection system based on Xilinx VC707FPGA, adopts YOLOv7-Tiny to train the UAV target tracking data set, optimizes the network at the algorithm level through QAT and layer fusion technology, designs a hardware accelerator with a multiplexed multi-node configurable architecture, realizes different accelerator functions by configuring multiple different nodes, reuses the hardware accelerator to realize the forward reasoning of the network, optimizes each hardware module in a fine-grained manner, and designs a dual-pipelined structure within and between layers. Finally, the entire detection system is finally realized through software and hardware collaborative design, achieving an average detection accuracy of 88.8% and a throughput of 177.96GOPS, with a power consumption of only 6.5W and an energy efficiency of 27.38GOPS / W. Compared with GPU and CPU, it has very high energy efficiency, achieves a balance between detection speed, accuracy and power consumption, and is suitable for the application field of rapid detection of UAVs.

[0046] The present invention uses the YOLOv7-Tiny network to accurately and automatically detect drone target tracking, and optimizes the algorithm level to save hardware resource consumption. QAT is used to retrain and quantize the network model. When the network model detection accuracy is only reduced by 2.8%, the network weight bit width and feature map data bit width are compressed from 32 bits to 8 bits. At the same time, the layer fusion technology is used to fuse the normalization layer into the convolution layer, which reduces the propagation of quantization errors in QAT and reduces the amount of calculation.

[0047] The present invention proposes a hardware accelerator with a multiplexed multi-node configurable architecture, which implements reasoning at different network layers through multiple configurable nodes. The YOLOv7-Tiny network is implemented in the form of this multiplexed shared hardware accelerator, which saves the consumption of hardware resources and the complexity of the system. At the same time, the hardware implementation of the YOLOv7-Tiny network on FPGA is also proposed for the first time in the present invention.

[0048] The present invention implements each module in the accelerator, designs a configurable row buffer for the convolution module, the downsampling module, and the spatial pyramid pooling (SPP) module, and optimizes the design of the digital signal processor (DSP) and the design of the multiplexed multiplication array for the convolution module, thereby improving the utilization rate of hardware resources. The fully pipelined design within each module layer and the partially pipelined design between layers, and the dual pipelined hardware structure design between layers and within layers improve the throughput of the accelerator.

[0049] The entire embedded UAV intrusion detection system is built using a software-hardware collaborative design. A soft-core CPU is installed on the chip, and computationally intensive tasks are assigned to the hardware accelerator, while data control tasks are handled by the CPU. The CPU and hardware accelerator can execute independent computing tasks in parallel, taking into account both the flexibility of software design and the efficiency of hardware design.

[0050] 1. Object tracking and detection based on machine vision

[0051] The present invention adopts a target detection algorithm based on deep learning to detect and locate intruding drones.

[0052] (II) Target Detection Algorithm

[0053] At present, the target detection algorithm based on deep learning can be classified into two types according to the algorithm execution stage: one is the two-stage detection algorithm based on candidate regions, and the other is the one-stage detection algorithm based on regression. The two-stage detection algorithm based on candidate regions generates candidate bounding boxes containing the detection object in the first stage, and the two-stage classifier classifies and corrects the position of the detection object in each candidate bounding box.

[0054] The present invention will realize drone intrusion target detection based on the YOLOv7-Tiny target detection network.

[0055] (III) FPGA-based CNN accelerator

[0056] The present invention chooses to deploy the drone intrusion detection algorithm on FPGA, and realizes a high-efficiency embedded drone intrusion detection system based on FPGA through algorithm optimization and hardware structure optimization, which meets the requirements of efficient and accurate drone detection environment.

[0057] Design of UAV Intrusion Detection System

[0058] 1. Network Optimization Strategy for Drone Intrusion Detection

[0059] Table 1 YOLOv7-Tiny network architecture

[0060]

[0061] Table 1 shows the network structure of YOLOv7-Tiny, which lists the network layer number, network layer type, input feature map size, number of input channels, number of output channels, convolution kernel size, step size, and input data source. Layers 37, 38, and 39 are the detection layers of the network, n represents the number of categories predefined by the network model, and the number of output channels of the detection layer depends on the size of n. The ELAN-T module structure is shown in Figure 1 As shown, it is composed of four groups of feature calculation blocks and splicing layers. Compared with YOLOv7, two groups of feature calculation blocks are reduced. Each group of feature calculation blocks is composed of a convolution layer, a batch normalization layer, and an activation function layer. With a smaller amount of parameters and calculations, the network model can learn more feature information. Layers 11-13 are SPP layers that increase the receptive field of the image through three maximum pooling layers of different scales. The present invention uses YOLOv7-Tiny to detect drone intrusion images. The input image size of the drone is 416×416. The output layer can be predicted at three scales, and three different sizes of defect targets of large, medium and small are detected respectively. In order to enable the drone intrusion detection network to be better deployed on hardware, the present invention optimizes the network model and reduces the consumption of hardware multipliers and on-chip storage resources, including integrating the normalization layer (BatchNormalization, BN) into the convolution layer and QAT model.

[0062] 1) Layer fusion: BN layers have been proven to accelerate network convergence in CNN training and effectively prevent gradient explosion and gradient vanishing. Although BN layers perform well in network training, they take up a lot of computation in network forward reasoning. Fusion of BN layers into convolutional layers can not only reduce the amount of computation, but also reduce the number of quantization and dequantization for QAT, thereby reducing the error accumulation caused by the quantization process.

[0063] The function of the convolutional layer in CNN is to extract the feature information of the input feature map. The calculation formula of the convolutional layer is shown in formula (1), where Y conv and X conv They represent the calculation results and input data of the convolutional layer respectively, W and b are the weight and bias respectively.

[0064]

[0065] The calculation formula of the BN layer is shown in formula (2), where Y bn and X bn They represent the calculation results and input data of the BN layer respectively, γ and β represent the scaling factor and bias of the BN layer respectively, ε is the sliding coefficient, which is a very small positive number. In order to prevent the denominator from being 0, μ and δ are the mean and variance of the input data.

[0066]

[0067] Formula (1) converts the calculation result Y of the convolution layer into conv Substitute the input X of the BN layer in formula (2) bn And rearrange them to achieve the fusion of normalization layer and convolution layer. Finally, the new convolution layer formula is shown as follows:

[0068]

[0069] Where X' and Y' are the input data and calculation results of the new convolutional layer, respectively, and W' and b' are the weights and biases of the new convolutional layer.

[0070] 2) QAT model: Usually, the network model trained in the deep learning framework is mainly based on 32-bit precision floating point numbers. However, deploying the 32-bit precision network model directly on the FPGA will bring great computing and storage pressure, hindering the application of drone intrusion detection networks. In addition, the data streams in the FPGA are all binary fixed-point numbers, which makes fixed-point operations in the FPGA more efficient than floating-point operations, so the network model needs to be fixed-point quantized.

[0071] The present invention adopts the QAT algorithm to quantize the YOLOv7-tiny network model for drone intrusion detection, adds pseudo-quantization nodes to the network training to mark the numerical range of the parameters, simulates quantization in the training to adjust the zero point and scaling factor to reduce the error caused by quantization, and obtains the best zero point and scaling factor after training to quantize the network model into 8-bit fixed-point numbers. Compared with post-training quantization, the quantization-aware algorithm can compress the network model parameters while ensuring a small loss of accuracy.

[0072] During the network forward reasoning process, the feature map and weight data are quantized to 8 bits. The feature map data is quantized to the numerical range of (0, 256), and the weight data is quantized to the numerical range of (-128, 127). The formula for mapping the floating point number X to the fixed point number q using the scaling factor S and zero point Z obtained by QAT is shown in formula (4).

[0073] X=S(qZ) (4)

[0074] Substituting equation (4) into equation (3) yields the following equation.

[0075]

[0076] Among them, since the weights are symmetrically quantized, the zero point Z of the weights can be obtained W = 0. In order to make the algorithm more efficient in FPGA, take S b =SW S X , the bias is symmetrically quantized and Z is taken Y =0, we can get the following formula.

[0077]

[0078] Among them only For floating point numbers, we only need to find a suitable n by shift quantization. If it becomes a fixed-point number, the entire formula can be converted into a fixed-point number calculation, and then the result can be obtained by truncation. W and S X The scaling ratio is 8 bits, and S W S X The scaling ratio is 16 bits. In QAT, the offset is calculated with a 32-bit data width, and the scaling is done with S W S X To replace S b The bias number will lose half of the information. Since the parameters of deep CNN are redundant, this loss does not affect the final result in most cases, but it can lead to efficient hardware design.

[0079] 2. UAV Intrusion Detection System Framework

[0080] like Figure 2The structure of the high-efficiency embedded drone target detection system based on FPGA designed by the present invention is shown. It adopts a soft-hard collaborative design, with a MicroBlaze soft-core processor on the chip as the CPU. The hardware accelerator is designed as a multiplexed multi-node configurable architecture. The CPU is used to schedule the system as a whole and execute control tasks. The hardware accelerator is used to execute the computing tasks of network forward reasoning. After training with the drone intrusion data set, the parameter data such as weights, biases, and quantization factors of the network model are rearranged and saved in the SD card in the format of a binary file in advance. Before performing drone target tracking detection, the SD card controller will read the parameter data such as weights, biases, scaling factors, and zero points from the SD card to the preset DDR memory offset address through the hardware interface of the SD card slot. After a single sector is read, the SD card will send an SD_Done interrupt signal to the CPU and start reading the next sector. The software-side CPU will first configure each module through the Advanced Extensible Interface (AXI) bus and preset the configuration parameters of the accelerator on the software side. The CPU will configure the hardware accelerator through the AXI interface based on these parameters, thereby realizing forward reasoning of different network layers in the drone intrusion detection network. The accelerator reads and writes data through the AXI Stream interface. As long as the address instruction information and data transmission length of the DDR memory are passed to the AXIDMA, the data interaction between the accelerator and the DDR memory can be realized. After the hardware accelerator is executed once, it will send a Task_Done interrupt signal to the CPU, and the CPU will reconfigure the parameters of the hardware accelerator, and repeat this process until the reasoning of the entire network is finally completed. Based on the results of network reasoning, the CPU uses the Non-Maximum Suppression (NMS) algorithm to obtain the coordinate position of the drone target tracking.

[0081] like Figure 3As shown in the figure, the system performs the reasoning process of a certain network layer as follows. The CPU calculates the data transmission parameters according to the parallelism of the accelerator. In the next cycle, the CPU configures the hardware accelerator to receive mode through the AXI interface, calculates the transmission parameters of the next cycle, and transmits the feature map data, weight data and bias data from the DDR memory to the on-chip cache of the accelerator through AXIDMA. After the hardware accelerator receives the data, it sends an interrupt to the CPU to inform the CPU that the reception is complete. After the CPU receives the interrupt signal, it starts the next cycle. The CPU configures the hardware accelerator to receive and reasoning mode. The hardware accelerator adopts a double buffer structure. One input feature map data cache is used for the forward reasoning operation of the current cycle, and the other input feature map data cache is used to prepare the input feature map data of the next cycle. When the hardware accelerator completes data reception and data forward reasoning, it will also send an interrupt signal to the CPU to indicate that the execution is completed. After the input channel is cycled through, the calculation of the first batch of output data is completed. The CPU configures the hardware accelerator to send mode, sends the output feature map cache data to the DDR memory, and then starts the next cycle until the feature map data of all output channels are calculated, that is, the reasoning of the network layer is completed. The design of CPU and accelerator working in parallel can fully reduce system latency and make the system throughput as close to the accelerator's throughput as possible, giving full play to the advantages of CPU scheduling control and accelerator accelerated reasoning, thereby improving the real-time performance of the entire system and improving the speed and accuracy of defective drone detection.

[0082] Drone Intrusion Detection Hardware Accelerator

[0083] (1) Multi-layer dynamically configurable hardware architecture

[0084] like Figure 4As shown, it is a multi-layer dynamically configurable architecture. The hardware accelerator configures the hardware accelerator through the received register information. Different configuration parameters and reasonable timing control can be used to realize different network layers in the drone intrusion detection network. A variety of hardware optimization designs are performed based on FPGA to realize a high-energy-efficiency drone intrusion detection system. The accelerator will first configure the control module. The control module can analyze the network layer type according to the information, thereby generating enable control signals for other submodules. Due to the limited on-chip cache resources of FPGA, the amount of feature map data and parameter data in the drone intrusion detection network is not enough to store all data at the same time, and there is a memory access delay when reading the data of the DDR memory into the on-chip cache. The present invention adopts a dual-input cache mechanism, and the two input feature map cache spaces are alternately written and calculated through the cache selector, which reduces the data transmission delay and reduces the impact of the memory access delay on the accelerator. The filling module is controlled by a filling enable signal, and the filling signal is generated by the control module according to the configured filling value. When the signal is pulled high, the zero point value of the quantized feature map data is output, and when the signal is pulled low, the data output of the input feature map cache space is read. The feature map data needs to be deducted from the quantized zero value and the data path is selected according to the configuration information of the convolution type. If it is a 1×1 convolution, the data is directly input into the convolution module for convolution operation, while if it is a 3×3 convolution, the data needs to be formed into a 3×3 sliding window through the row buffer and then sent to the convolution module for convolution operation. The row buffer can pre-cache the data to be used, thereby avoiding the delay caused by data movement and copying. The data stream output by the selector is input into the convolution processing unit (Processing Engine, PE) and LeakyReLU PE for calculation.

[0085] The convolution module will read the weights and feature map data of different arrangements according to the convolution type selector value to perform convolution operations. After the calculation, two results will be output. One is the value after the convolution calculation without activation function activation, which is suitable for the convolution layer type of the detection layer in the drone intrusion detection network. The other is the value after the convolution calculation after activation function activation, which is suitable for other convolution layer types in the model. The maximum pooling layer used for image downsampling in the backbone network of the drone intrusion detection network model uses a 2×2 sliding kernel, so it is necessary to design a row buffer for generating a 2×2 sliding window accordingly. At the same time, in order to reduce the delay caused by off-chip data transmission, the present invention designs the inter-layer pipeline structure of the convolution module and the upsampling module, the convolution module and the downsampling module, realizes the inter-layer and intra-layer dual pipeline structure, selects the output data stream through the acceleration type selector, and at the same time, in order to be able to save the output data of the convolution layer in the inter-layer pipeline structure, a mid-segment output feature map cache space is added. The SPP module is designed specifically to match the maximum pooling of sliding kernels of different sizes. The drone intrusion detection network stitches together the feature maps of different channels through the stitching layer, so that the network can learn more feature information and improve network performance. In hardware implementation, it only needs to perform quantization calculations on the changed data and transfer the data to the DDR memory with a preset offset address to realize data stitching, and finally write the results into the output feature map cache space.

[0086] (2) Overview of the Convolutional Module Architecture

[0087] like Figure 5 The figure shows a detailed overview of the convolution module architecture. To input feature map data, the convolution kernel size must be determined first. The 3×3 convolution data must first be generated into a 3×3 sliding window data through a row buffer, and the 1×1 convolution is directly input into the multiplication array for calculation.

[0088] like Figure 6 As shown, the present invention designs a length-configurable line buffer, and the output node of the line buffer data stream is jointly determined by the image padding value and the line buffer configuration value. The configuration value of the line buffer sets the output nodes of lengths of 13, 26, 52, 104, 208, and 416 respectively according to the feature map size of each level of the network model, and the length of the reconfigured line buffer can be extended by 0 or 2 according to the padding value of the convolutional layer in the network model. Through different configurations, line buffering can be performed on feature map data of different scales, avoiding the need to design a separate line buffer for each feature map data of different scales, thereby saving hardware resources.

[0089] The largest convolution kernel size in the drone intrusion detection network model is 3×3, so the multiplication calculation array is designed to be 3×3 in size. 3×3 convolution and 1×1 convolution can share the 3×3 multiplication array. The weight data and feature map data of different arrangements can be sent into the convolution multiplication array to complete the corresponding calculation. For convolution operations with different step lengths, it is necessary to control the high-level cycle of the output data enable signal to selectively output data. Then, the cumulative sum of the input channel multiplication array is calculated in multiple cycles through the addition tree and saved to the accumulation buffer. In the next iteration, the result of the accumulation buffer is read and added to the cumulative sum result of the next iteration and then written into the accumulation buffer. The loop iteration is repeated until all input channels are calculated. Then, the quantization calculation is performed to obtain the quantized convolution layer calculation result. Finally, the LeakyReLU activation function is used to activate the data output by the convolution layer and then output it.

[0090] In the convolution calculation, the weight is an 8-bit wide signed number, and the feature map data minus the zero value is a 9-bit wide signed number. The hardware multiplier DSP48E in the FPGA can perform 18-bit multiplication by 27-bit multiplication. In order to give full play to the performance of the hardware multiplier, we integrate two convolution multiplication operations into one DSP and optimize the design of the DSP. Figure 7 As shown in the figure, the weight data of different output channels can share the feature map data of the same input channel to calculate the convolution multiplication results of two different output channels, which provides a prerequisite for the optimization design of DSP. The high 9 bits of the A port of DSP are filled with the weight of output channel X after the sign bit is extended, and the low 18 bits are filled with the weight of output channel Y after the sign bit is extended. The B port is filled with the input feature map data. Fig. 9 The 8-bit data is sign-extended and filled. The final result of 8-bit wide data multiplied by 9-bit wide data can be saved with 17-bit wide data, so the C output port takes the lower 17 bits to output the convolution multiplication result of channel Y, and then takes the next 17 bits of data as the convolution multiplication result of output channel X. In actual calculations, when the convolution multiplication result of output channel Y is negative, it will affect the convolution multiplication result of output channel X. This is because the convolution result of the signed number of output channel Y is regarded as an unsigned number. At this time, the convolution multiplication result of output channel X needs to be added by 1 to restore the true result.

[0091] (3) Overview of downsampling module architecture

[0092] The backbone network of the drone intrusion detection network uses a maximum pooling layer with a step size of 2 and a sliding kernel size of 2×2 to downsample the image and reduce the size of the feature map by 1 / 4. The activation value calculated by the convolution module is sent to the configurable row buffer to generate a 2×2 sliding window and then sent to the pooling module to filter the maximum value. The pooling module will perform a two-cycle comparison tree to find the maximum value by comparing two by two. Since the step size is 2, it is necessary to count row by row and column by column when starting the pooling operation. When the count values ​​of the row and column are both even numbers, the output data valid enable signal is pulled high to write the data into the output feature map cache space.

[0093] (4) Overview of SPP module architecture

[0094] The SPP module enhances the receptive field of the network by using maximum pooling of sliding kernels of different sizes. Figure 8 As shown in the hardware architecture diagram in , in order to save the consumption of hardware resources, the three scales of sliding cores used in the present invention are 3×3, 5×5, and 7×7 respectively. The row buffer is designed to be 6 according to the largest sliding core, and can output a maximum of 7 rows of data at the same time. Since the image filling values ​​of sliding cores of different sizes are different, the row buffer is configured to have different lengths according to the filling value of the image. The row buffer can be backward compatible. As long as different numbers of rows of output data are selected, sliding window data of different sizes can be obtained, and then the output sliding window data is selected by the selector. The output sliding window data is filtered out by the comparator in multiple cycles to obtain the maximum value.

[0095] (5) Overview of upsampling module architecture

[0096] Two upsampling layers are used in the drone intrusion detection network, which expand the 13×13 feature map to 26×26 and the 26×26 feature map to 52×52 respectively, and then splice and fuse with the feature map in the backbone network, effectively reducing the information loss of the network. The data stream calculated by the convolution module is first written into the data cache space in the upsampling module, and the image upsampling is achieved by controlling the read address of the data cache space. After the upsampling module starts working, it will count the rows and columns. When the same read address outputs two data, the read address will increase by 1. After the valid data of a row is output, the read address will subtract the row valid data length, and then output another row of data that is the same as the previous row in the same way. At this point, the upsampling operation of a row of feature map data is realized. Repeating this operation can complete the upsampling operation of the complete feature map data.

[0097] Experimental Results

[0098] 1) Network Quantization

[0099] The open source drone intrusion dataset used in this invention has a total of 1057 images of real defective drones from drone manufacturers. YOLOv7-Tiny network training is implemented in the Pytorch deep learning framework, using the binary cross entropy loss function to calculate the classification loss and positioning loss, the intersection-over-union function to calculate the confidence loss, and the stochastic gradient descent optimizer to iterate the parameters. The network is initially trained and QAT is performed separately. Table 2 lists the meanAverage Precision (mAP) of the network obtained by full-precision network training, QAT, and post-training quantization (PTQ).

[0100] Table 2 Accuracy of different types of quantitative networks

[0101]

[0102] The present invention uses QAT to quantize the UAV intrusion detection network. The quantized network feature graph data and weight data are 8 bits, and the bias is 32 bits. Compared with the full-scale network, the mAP value only drops by 2.8%, while ensuring accuracy and maximizing the compression of the network size. At the same time, compared with PTQ, QAT can improve the model's adaptability to quantization effects during training, thereby greatly optimizing the accuracy loss problem after network quantization. Fig. 9 As shown in Figure 2, (a)-(b) list the detection effect of the network model quantized by QAT on drone intrusion targets.

[0103] 2) Achieve results

[0104] Table 3 Detailed resource usage

[0105]

[0106] The present invention uses Xilinx Virtex-7Vc707 as the deployment platform of the UAV intrusion detection system, and analyzes the usage of the core resources of the hardware accelerator in Table 3. DSP is the main hardware multiplier resource. The present invention designs 256 3×3 multiplication arrays to realize the parallel convolution multiplication operation of 16 input channels and 16 output channels. At the same time, the present invention optimizes the design for DSP and merges two convolution multiplication operations into one DSP for calculation. Finally, it is concluded that the DSP consumed by all multiplication arrays is 1152, and a small part of the DSP resources are used for the multiplication calculation of the quantization factor. Block Random Access Memory (BRAM) is the main on-chip memory resource, which is mainly used for the implementation of each part of the cache space module. For the data that needs to be reused, the on-chip storage resources are used for caching, which can reduce the delay caused by data transmission. Since the architecture designed by the present invention is a multiplexed multi-node configurable shared architecture, only partial caching is performed for the input and output data. Therefore, compared with the design of the full pipeline structure, the BRAM resources used by the present invention will be relatively less. Look up table resources (LUT) are mainly used to implement the combinational logic of various parts in hardware design. Flip Flop resources (FF) are mainly used to implement the sequential logic of various parts in hardware, and the register latch function can be used to achieve the effect of temporarily storing information.

[0107] In order to evaluate the performance of the system designed by the present invention, the present invention tests the drone intrusion detection algorithm on three platforms: FPGA, CPU and GPU, and compares various aspects of performance.

[0108] The power consumption of the hardware acceleration system is analyzed by Vivado. The operating frequency of the hardware accelerator is 200MHz. The power consumption diagram is as follows: Fig.10 As shown in the figure, the dynamic power consumption is 6.177W, which is mainly caused by the power consumption of chip internal resources such as BRAM, DSP and clock. The static power consumption is 0.326W, which refers to the power consumption of the chip in standby state, mainly caused by the leakage current of the transistor inside the chip. The overall system power consumption is 6.5W, achieving the goal of low power design.

[0109] Table 4 lists the performance comparison between this system and the CPU and GPU platforms. The CPU test platform is I5-10400F and the GPU is GTX 2070S. The CPU and GPU are tested on the drone intrusion dataset under the Pytorch framework, and the running time and real-time power consumption are recorded. The CPU takes 81.8ms to infer one image, and the real-time monitored running power consumption is 48.58W. The GPU takes 24ms to infer one image, and the real-time monitored running power consumption is 72.18W. Although the total throughput of FPGA is lower than that of GPU, its power consumption is lower, with an energy efficiency of 27.38GOPS / W, which is better than CPU and GPU, and meets the efficient and accurate detection environment of drone production.

[0110] Table 4 Performance comparison of different platforms

[0111]

[0112] Table 5 lists the performance comparison between the present invention and the network hardware accelerators in the prior art in recent years. The TincyYOLO network accelerator is implemented on the XCZU3EG platform, and optimization operations such as network quantization, algorithm simplification, and multi-threaded overall acceleration are performed. The YOLOv3-Tiny network accelerator is implemented on Ultra96V2, the network is quantized, and the convolution accelerator is constructed using general matrix multiplication. The YOLOv2-Tiny network accelerator is implemented on ZC706, and a data block transmission strategy is proposed. The designed accelerator can reuse output data, and two 14×14 PE matrices are designed for convolution calculations. The YOLOv7-Tiny network accelerator designed by the present invention has better energy efficiency than the accelerators in the prior art, achieving a balance between computing performance and power consumption.

[0113] Table 5 Performance comparison with other accelerators

[0114]

Claims

1. A high-energy-efficiency embedded drone intrusion detection system based on FPGA, characterized in that: YOLOv7-Tiny is used to train the drone target tracking dataset, and the network is optimized at the algorithm level through QAT and layer fusion technology. A hardware accelerator with a multiplexed multi-node configurable architecture is designed, and different accelerator functions are realized by configuring multiple different nodes. The hardware accelerator with a multiplexed multi-node configurable architecture realizes the forward reasoning of the network, performs fine-grained optimization on each hardware module, and designs a dual-pipelined structure within and between layers. Finally, the entire detection system is realized through hardware and software collaborative design.

2. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 1 is characterized in that: The YOLOv7-Tiny specifically includes: 1) Layer fusion: The BN layer is fused into the convolutional layer. The convolutional layer calculation formula is shown in formula (1), where Y conv and X conv Represent the calculation results and input data of the convolutional layer respectively, W and b are weights and biases respectively; The calculation formula of the BN layer is shown in formula (2), where Y bn and X bn Represent the calculation results and input data of the BN layer respectively, γ and β represent the scaling factor and bias of the BN layer respectively, ε is the sliding coefficient which is a small positive number, μ and δ are the mean and variance of the input data; Formula (1) converts the calculation result Y of the convolution layer into conv Substitute the input X of the BN layer in formula (2) bn And rearrange them to achieve the fusion of normalization layer and convolution layer. Finally, the new convolution layer formula is shown as follows: Where X' and Y' are the input data and calculation results of the new convolutional layer, respectively, and W' and b' are the weight and bias of the new convolutional layer; 2) QAT model: By adding pseudo-quantization nodes to the network training to mark the numerical range of the parameters, quantization is simulated during training to adjust the zero point and scaling factor to reduce the error caused by quantization. After training, the network model is quantized into 8-bit fixed-point numbers by obtaining the optimal zero point and scaling factor. During the network forward reasoning process, the feature map and weight data are quantized to 8 bits. The feature map data is quantized to the value range of (0, 256), and the weight data is quantized to the value range of (-128, 127). The formula for mapping the floating point number X to the fixed point number q using the scaling factor S and zero point Z obtained by QAT is shown in formula (4); X=S(qZ)(4) Substituting equation (4) into (3), we can get the following equation: Among them, since the weights are symmetrically quantized, the zero point Z of the weights can be obtained W =0; take S b =S W S X , the bias is symmetrically quantized and Z is taken Y =0, we can get the following formula; Among them only is a floating point number; S W and S X The scaling factor is 8 bits, so S W S X The scaling ratio is 16 bits. In the QAT model, the bias is calculated with a 32-bit data width, and the scaling is done with S W S X To replace S b Using a bias number will lose half of the information.

3. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 1 is characterized in that: After training with the drone intrusion dataset, the weight, bias and quantization factor parameter data of the network model are rearranged and saved in the SD card in binary file format. Before the drone target tracking detection, the SD card controller reads the weight, bias, scaling factor and zero point parameter data from the SD card to the preset DDR memory offset address through the hardware interface of the SD card slot. After a single sector is read, the SD card will send an SD_Done interrupt signal to the CPU and start the next sector reading; the software-side CPU will first configure each module through the advanced extensible interface AXI bus, and preset the configuration parameters of the accelerator on the software side. The CPU will then These parameters are used to configure the hardware accelerator through the AXI interface to realize forward reasoning of different network layers in the drone intrusion detection network; the accelerator reads and writes data through the AXIStream interface, and data interaction between the accelerator and the DDR memory is realized by passing the address instruction information and data transmission length of the DDR memory to the AXIDMA; after the hardware accelerator is executed once, it will send a Task_Done interrupt signal to the CPU, and the CPU will reconfigure the parameters of the hardware accelerator, and repeat this process until the reasoning of the entire network is finally completed; based on the results of network reasoning, the CPU uses the non-maximum suppression NMS algorithm to obtain the coordinate position of the drone target tracking.

4. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 3 is characterized in that: The CPU calculates the data transmission parameters according to the parallelism of the accelerator. In the next cycle, the CPU configures the hardware accelerator to receive mode through the AXI interface, calculates the transmission parameters for the next cycle, and transfers the feature map data, weight data, and bias data from the DDR memory to the on-chip cache of the accelerator through AXIDMA. After the hardware accelerator receives the data, it sends an interrupt to the CPU to inform the CPU that the reception is complete. After the CPU receives the interrupt signal, it starts the next cycle. The CPU configures the hardware accelerator to receive and reasoning mode. The hardware accelerator adopts a double-buffer structure. One input feature map data cache is used for the forward reasoning operation of the current cycle, and the other input feature map data cache is used to prepare the input feature map data of the next cycle. When the hardware accelerator completes data reception and data forward reasoning, it also sends an interrupt signal to the CPU to indicate that the execution is completed; after the input channel is cycled through, the calculation of the first batch of output data is completed. The CPU configures the hardware accelerator to send mode, sends the output feature map cache data to the DDR memory, and then starts the next cycle until the feature map data of all output channels are calculated, that is, the reasoning of the network layer is completed.

5. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 4 is characterized in that: The accelerator first configures the control module, which can analyze the network layer type based on the information, thereby generating enable control signals for other submodules; a dual-input cache mechanism is adopted, and the cache selector is used to enable the two input feature map cache spaces to alternately write and calculate data; the filling module is controlled by the filling enable signal, and the filling signal is generated by the control module according to the configured filling value. When the signal is pulled high, the zero point value of the quantized feature map data is output, and when the signal is pulled low, the data output of the input feature map cache space is read; the feature map data needs to subtract the quantized zero point value and then select the data path according to the configuration information of the convolution type. If it is a 1×1 convolution, the data is directly input into the convolution module for convolution operation, and if it is a 3×3 convolution, the data needs to pass through the row buffer to form a 3×3 sliding window data and then be sent to the convolution module for convolution operation. The row buffer pre-caches the data to be used; the data stream output by the selector is input into the convolution processing unit and the LeakyReLU PE for calculation.

6. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 5 is characterized in that: The convolution module reads the weights and feature map data of different arrangements according to the convolution type selector value to perform convolution operations. After the calculation, two results will be output. One is the value after the convolution calculation without activation function, which is suitable for the convolution layer type of the detection layer in the drone intrusion detection network. The other is the value after the convolution calculation after activation function, which is suitable for other convolution layer types in the model. It also includes inter-layer pipeline structures of convolution modules and upsampling modules, convolution modules and downsampling modules, realizing inter-layer and intra-layer dual pipeline structures, and selecting the output data stream through the acceleration type selector; the drone intrusion detection network splices the feature maps of different channels together through the splicing layer; in hardware implementation, after quantization calculation, the data is transferred to the DDR memory with a preset offset address to realize data splicing, and finally the result is written into the output feature map cache space.

7. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 6 is characterized in that: The input feature map data of the convolution module first needs to determine the convolution kernel size. The 3×3 convolution data needs to generate 3×3 sliding window data through the row buffer first, and the 1×1 convolution is directly input into the multiplication array for calculation; in the convolution calculation, two convolution multiplication operations are integrated into one DSP, and the DSP is optimized; for the weight data of different output channels, the feature map data of the same input channel can be shared to calculate the convolution multiplication results of two different output channels; the upper 9 bits of the A port of the DSP are filled with the sign bit extension of the weight of the output channel X, and the lower 18 bits are filled with the sign bit extension of the weight of the output channel Y, and the B port is filled with the sign bit extension of the 9-bit data of the input feature map; the final result of 8-bit wide data multiplied by 9-bit wide data is saved with 17-bit wide data, so the C output port takes the lower 17 bits to output the convolution multiplication result of channel Y, and then takes the next 17 bits of data as the convolution multiplication result of the output channel X.

8. The high-energy-efficiency embedded UAV intrusion detection system based on FPGA according to claim 7 is characterized in that: The data stream calculated by the convolution module is first written into the data cache space in the upsampling module, and image upsampling is achieved by controlling the read address of the data cache space. After the upsampling module starts working, it counts the rows and columns. When the same read address outputs two data, the read address will be increased by 1. After a row of valid data is output, the read address will be reduced by the row valid data length, and then another row of data identical to the previous row will be output in the same way. Repeating this operation can complete the upsampling operation of the complete feature map data.

Citation Information

Patent Citations

  • Identification method and device, equipment and computer readable storage medium

    CN114926766A

  • Real-time illegal flag detection method based on YOLOV7 target detection algorithm

    CN117392501A

  • Low-power-consumption edge smart chip kernel design method based on heterogeneous parallelism

    CN117973302A

  • Deep learning-oriented FPGA universal heterogeneous acceleration method and equipment

    CN118014022A

  • KR20230089927A

Cited By

  • Precision calibration method and device between heterogeneous chips, electronic equipment and medium

    CN119739581A

  • Unmanned aerial vehicle network intrusion detection method based on reinforcement learning

    CN120640294A

  • A method for detecting intrusion of a UAV network based on reinforcement learning

    CN120640294B

  • Sensing focal plane image recognition system based on FPGA acceleration

    CN120852724A

  • Power consumption control method and device for coarse and fine mixed granularity reconfigurable computing architecture

    CN121209681A