Neuromorphic visual target tracking method based on lightweight Transform

Through entropy-guided and content-guided coding block elimination methods, the problem of large computational complexity in neuromorphic visual target tracking is solved, real-time tracking in complex scenes is achieved, and the robustness and efficiency of the model are improved.

CN118628530APending Publication Date: 2024-09-10DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410770686.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing neuromorphic visual target tracking methods perform poorly in fast motion and low-light scenes, and existing lightweight Transformer methods cannot be directly adapted to neuromorphic visual data, resulting in large amounts of calculation and poor real-time performance.

Method used

The entropy-guided coding block elimination method and the content-guided coding block elimination method are used to adaptively reduce irrelevant and redundant coding blocks by calculating entropy and importance evaluation, and realize neuromorphic visual target tracking of lightweight Transformer.

Benefits of technology

While ensuring tracking performance, it significantly reduces the amount of calculation, achieves real-time target tracking in fast-moving and low-light scenes, effectively removes background noise, and improves the robustness and efficiency of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628530A
    Figure CN118628530A
Patent Text Reader

Abstract

The invention provides a neuromorphic visual target tracking method based on a lightweight Transform. The method specifically comprises the following steps: converting neuromorphic visual data into a frame image; segmenting the converted frame image into a plurality of sub-image blocks; eliminating coding blocks irrelevant to a tracking target through an entropy-guided coding block elimination method; redundant coding blocks are eliminated from the remaining coding blocks through a content-guided coding block elimination method; and inputting the residual coding blocks into the prediction head to realize the positioning of the target. According to the invention, the target in complex scenes such as fast motion and low illumination can be tracked in real time. According to the entropy-guided coding block elimination technology, the elimination rate of the coding block can be evaluated according to the information amount of the scene, so that more useless information can be filtered out. According to the content-guided coding block elimination technology, coding blocks more related to a tracking target are reserved, information irrelevant to target tracking is effectively removed, the model is lightened, and meanwhile interference of background noise is removed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of visual target tracking, and in particular, to a neuromorphic visual target tracking method based on a lightweight Transformer. Background Art

[0002] Neuromorphic vision cameras are bio-inspired sensors that detect intensity changes at each pixel in a sensor array. Compared to traditional RGB-based cameras, neuromorphic vision cameras have advantages such as high temporal resolution, high dynamic range, and low power consumption. These unique advantages enable neuromorphic vision cameras to overcome the challenges of complex environments and remain robust in scenes such as fast motion and poor lighting. Therefore, neuromorphic vision cameras have been widely used in a range of applications, such as image reconstruction and enhancement, optical flow estimation, and relocalization. Among them, the rich spatial and temporal information provided by neuromorphic vision cameras opens up new possibilities for further development of visual target tracking.

[0003] In order to effectively extract and utilize the spatiotemporal information of neuromorphic visual data, a typical approach is to first convert the neuromorphic data into a frame format and then use Convolutional Neural Networks (CNNs) to capture features. However, CNNs lack the ability to extract temporal cues, which limits the performance of the tracker. Therefore, some research works have attempted to introduce Recurrent Neural Networks (RNNs) and Long Short-Term Memory Networks (LSTMs) to enhance the tracker's ability to model temporal information. However, LSTMs usually require a large amount of memory to retain historical information in the tracking sequence, resulting in poor real-time performance. In contrast, Spiking Neural Networks (SNNs) can directly process asynchronous and irregular neuromorphic visual data without preprocessing and with extremely low power consumption. However, due to challenges in back-propagation training, the performance of SNNs is usually difficult to match that of CNNs.

[0004] Given its strong global spatiotemporal modeling capabilities, Transformer has been used in a range of visual tasks based on neuromorphic sensors. However, the computational and temporal complexity of the self-attention mechanism at the core of Transformer is proportional to the square of the number of input encoding blocks, which greatly limits its potential for deployment on resource-constrained hardware devices. In addition, existing lightweight Transformer methods are usually designed based on RGB images and therefore cannot be directly adapted to tasks based on neuromorphic visual data.

[0005] In summary, based on the characteristics of neuromorphic data and target tracking tasks, it is very important to discard the uninformative coding blocks to achieve a lightweight Transformer, which is very important for studying target tracking methods for neuromorphic vision. Summary of the invention

[0006] According to the technical problems raised above, a neuromorphic visual target tracking method based on lightweight Transformer is provided. The present invention mainly utilizes two adaptive coding block sparsification strategies, namely entropy-guided coding block elimination method and content-guided coding block elimination method, so as to reduce the amount of calculation while ensuring tracking performance.

[0007] The technical means adopted by the present invention are as follows:

[0008] A neuromorphic visual target tracking method based on lightweight Transformer, the specific steps include:

[0009] S1, converting neuromorphic visual data into frame images;

[0010] S2, dividing the converted frame image into a plurality of sub-image blocks;

[0011] S3, eliminating coding blocks irrelevant to the tracking target through an entropy-guided coding block elimination method;

[0012] S4, eliminating redundant coding blocks by using a content-guided coding block elimination method for the remaining coding blocks in S3;

[0013] S5. Input the remaining coding blocks into the prediction head to locate the target.

[0014] Furthermore, the step S1 specifically includes:

[0015] Given neuromorphic data containing N events, Where (x k ,y k ) represents the kth event e k The pixel position, t k Indicates the timestamp, pk Indicates polarity, the present invention converts neuromorphic visual data into frame images in the following way:

[0016] E c (x,y,t)=δ(x k ,yy k )δ(tt k )

[0017] Where δ represents the Dirac function, E c Represents a frame image.

[0018] Furthermore, the step S2 specifically includes:

[0019] Using the template frame and search frame sharing strategy, the frame image is divided into multiple sub-image blocks. The template frame and the search frame will be divided into multiple sub-image blocks and sent to the Transformer network for feature extraction to achieve the interaction of different time series data;

[0020] The encoding block generated by the Transformer's multi-head attention mechanism is Where N x and N z are the number of coding blocks corresponding to the template frame and the search frame respectively, and C represents the channel dimension size.

[0021] Furthermore, the step S3 specifically includes:

[0022] The entropy-guided coded block elimination method measures the amount of information in the search token by calculating the entropy and adaptively predicts the sparsity rate γ based on the calculated entropy. 1 , eliminate the coding blocks that are not related to the tracking target:

[0023] γ 1 =α+(1-α)σ(κ′)

[0024]

[0025] Among them, σ represents the Sigmoid function; ε represents the entropy operation on the channel dimension; represents a three-layer multilayer perceptron; α is a hyperparameter used to prevent the sparsity rate from being too small; the sparsity rate γ 1 Selecting the search encoding block containing the target based on the similarity between the template and the search feature;

[0026] When obtaining a template encoding block, the information interaction can be defined as:

[0027]

[0028] in, Represents the similarity between the input template encoding block and all search encoding blocks; represents the Softmax function; Q z The query vector representing the template features; K x The key vector representing the search feature; d k Represents a scaling factor, which is used to prevent the input of the Softmax function from being too large.

[0029] Generate a mask to remove the interference caused by the background area in the template frame and extract the coding block in the center of the template frame:

[0030]

[0031] in, represents the similarity between the central part of the template frame and the search coding block; W z Indicates the width of the extracted features; H z Indicates the height of the extracted features.

[0032] Keep the highest score (1-γ 1 )N x Search code blocks, the output search code block is composed of express.

[0033] Furthermore, the step S4 specifically includes:

[0034] The entropy-guided coding block elimination method adaptively eliminates redundant coding blocks by evaluating the importance of the content contained in the search coding block;

[0035] Evaluate the search encoding chunks output in S3 Importance score

[0036]

[0037] Predict the sparsity rate γ in an adaptive manner based on the content of the search coding block 2 :

[0038]

[0039] Among them, β is used to control γ 2 The size parameter; Φ represents the averaging operation;

[0040] Sort the searched coding blocks in descending order according to their importance scores, retaining (1-γ 2 )(1-γ 1 )N x Search code blocks.

[0041] Furthermore, the step S5 specifically includes:

[0042] After the coding blocks in S5 are eliminated by the entropy-guided coding block elimination method, the remaining coding blocks are input into the prediction head for target positioning.

[0043] Furthermore, a storage medium is provided, the storage medium comprising a stored program, wherein when the program is run, the neuromorphic visual target tracking method based on lightweight Transformer is executed.

[0044] Furthermore, an electronic device includes a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, wherein the processor executes the neuromorphic visual target tracking method based on the lightweight Transformer through the computer program.

[0045] Compared with the prior art, the present invention has the following advantages:

[0046] The neuromorphic visual target tracking method based on lightweight Transformer provided by the present invention can track targets in complex scenes such as fast motion and low light in real time. The entropy-guided coding block elimination technology designed by the present invention can evaluate the elimination rate of coding blocks according to the amount of information in the scene, so that when the scene information is less, a larger elimination rate is given, thereby filtering out more useless information. The content-guided coding block elimination technology further optimizes the elimination process and retains the coding blocks that are more relevant to the tracking target. Through the above two technologies, information irrelevant to target tracking can be effectively removed, and the interference of background noise can be removed while the model is lightweight.

[0047] Based on the above reasons, the present invention can be widely promoted in the technical field of visual target tracking. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0049] Figure 1 This is a framework diagram of the neuromorphic visual target tracking method based on lightweight Transformer in the present invention.

[0050] Figure 2 A diagram of the coding block elimination operation network structure designed for the present invention.

[0051] Figure 3 This is a visualization diagram of the target tracking result of the present invention.

[0052] Figure 4 Visualization of the coding blocks eliminated by the present invention. DETAILED DESCRIPTION

[0053] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0054] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0055] like Figure 1 As shown, the present invention provides a neuromorphic visual target tracking method based on a lightweight Transformer, and the specific steps include:

[0056] S1, converting neuromorphic visual data into frame images;

[0057] In specific implementation, as a preferred embodiment of the present invention, the step S1 specifically includes:

[0058] Given neuromorphic data containing N events, Where (x k ,y k ) represents the kth event e k The pixel position, t k Indicates the timestamp, p k Indicates polarity, the present invention converts neuromorphic visual data into frame images in the following way:

[0059] E c (x, y, t) = δ(x k ,yy k )δ(tt k )

[0060] Where δ represents the Dirac function, E c Represents a frame image.

[0061] S2, dividing the converted frame image into a plurality of sub-image blocks;

[0062] In specific implementation, as a preferred embodiment of the present invention, step S2 specifically includes:

[0063] Using the template frame and search frame sharing strategy, the frame image is divided into multiple sub-image blocks. The template frame and the search frame will be divided into multiple sub-image blocks and sent to the Transformer network for feature extraction to achieve the interaction of different time series data;

[0064] The encoding block generated by the Transformer's multi-head attention mechanism is Where N x and N z are the number of coding blocks corresponding to the template frame and the search frame respectively, and C represents the channel dimension size.

[0065] S3, eliminating coding blocks irrelevant to the tracking target through an entropy-guided coding block elimination method;

[0066] In specific implementation, as a preferred embodiment of the present invention, step S3 specifically includes:

[0067] The entropy-guided coded block elimination method measures the amount of information in the search token by calculating the entropy and adaptively predicts the sparsity rate γ based on the calculated entropy. 1 , eliminate the coding blocks that are not related to the tracking target:

[0068] γ 1 =α+(1-α)σ(κ′)

[0069]

[0070] Among them, σ represents the Sigmoid function; ε represents the entropy operation on the channel dimension; represents a three-layer multilayer perceptron; α is a hyperparameter used to prevent the sparsity rate from being too small; the sparsity rate γ 1 Selecting the search encoding block containing the target based on the similarity between the template and the search feature;

[0071] The information interaction between the template and the search feature can make the present invention gradually focus on the target. When obtaining the template coding block, the information interaction can be defined as:

[0072]

[0073] in, Represents the similarity between the input template encoding block and all search encoding blocks; represents the Softmax function; Q z The query vector representing the template features; K x The key vector representing the search feature; d k Represents the scaling factor, which is used to prevent the input of the Softmax function from being too large;

[0074] Generate a mask to remove the interference caused by the background area in the template frame and extract the coding block in the center of the template frame:

[0075]

[0076] in, represents the similarity between the central part of the template frame and the search coding block; W z Indicates the width of the extracted features; H z Indicates the height of the extracted features;

[0077] Keep the highest score (1-γ 1 )N x Search code blocks, the output search code block is composed of express.

[0078] S4, eliminating redundant coding blocks by using a content-guided coding block elimination method for the remaining coding blocks in S3;

[0079] In specific implementation, as a preferred embodiment of the present invention, step S4 specifically includes:

[0080] Considering that the difficulty of the target tracking task varies with the complexity of the input sequence, the entropy-guided coding block elimination method adaptively eliminates redundant coding blocks by evaluating the importance of the content contained in the search coding block;

[0081] Evaluate the search encoding chunks output in S3 Importance score

[0082]

[0083] Predict the sparsity rate γ in an adaptive manner based on the content of the search coding block 2 :

[0084]

[0085] Among them, β is used to control γ 2 The size parameter; Φ represents the averaging operation;

[0086] Sort the searched coding blocks in descending order according to their importance scores, retaining (1-γ2 )(1-γ 1 )N x Search code blocks.

[0087] S5. Input the remaining coding blocks into the prediction head to locate the target.

[0088] In specific implementation, as a preferred embodiment of the present invention, step S5 specifically includes:

[0089] After the coding blocks in S5 are eliminated by the entropy-guided coding block elimination method, the remaining coding blocks are input into the prediction head for target positioning.

[0090] In implementation, the proposed sparse coding block model is integrated into multiple encoder layers of the Transformer, thereby achieving sparsification in a hierarchical manner. Once a coding block is deleted at a specific layer, it will never be used in the subsequent feedforward process. Through the above technology, the present invention can realize robust and real-time neuromorphic visual object tracking technology.

[0091] In a specific implementation, as a preferred embodiment of the present invention, a storage medium includes a stored program, wherein when the program is run, the neuromorphic visual target tracking method based on lightweight Transformer is executed.

[0092] In a specific implementation, as a preferred embodiment of the present invention, an electronic device includes a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, and the processor executes the neuromorphic visual target tracking method based on the lightweight Transformer through the computer program.

[0093] Example

[0094] The present invention uses the PyTorch deep learning framework for network construction, training and testing. During training, the input template and search frame are cropped and resized to 128×128 and 256×256, respectively. The input is enhanced by horizontal random flipping and brightness jittering. A weight decay of 10 is used. -4 The network was optimized using the AdamW algorithm. The training batch size and total number of rounds were set to 48 and 300, respectively. The initial learning rates of the Transformer backbone network and other partial networks were set to 4×10 -5 and 4×10 -4After 240 rounds, the learning rate is reduced by a factor of 10. The balancing parameters α and β are set to 0.5 and 0.95, respectively. The proposed encoding sparsity operation is inserted into the 3rd, 6th, and 9th encoder layers of the Transformer. The entire network is trained and tested on an NVIDIA RTX4090 GPU.

[0095] The data sets used in the embodiments of the present invention include three: (1) The VisEvent data set is acquired using the DAVIS-Color neuromorphic camera, providing synchronized neuromorphic visual data and corresponding RGB images for indoor and outdoor scenes. The FE240hz data set is collected and annotated using the DAVIS346 neuromorphic camera and the VICON motion capture system, and contains more than 140,000 images and corresponding neuromorphic data. The annotation frequency of this data set is as high as 240Hz. In addition, the FE240hz data set contains a variety of degraded scene data, such as motion blur, etc. The COESOT data set contains 1,354 video sequences, 478,721 RGB images and corresponding neuromorphic data. This data set consists of 827 training sets and 527 test sets.

[0096] An example of a visualization of the tracking results is shown below: Figure 3 shown.

[0097] The effectiveness of coding block elimination is as follows Figure 4 shown.

[0098] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0099] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0102] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A neuromorphic visual target tracking method based on lightweight Transformer, characterized in that: The specific steps include: S1, converting neuromorphic visual data into frame images; S2, dividing the converted frame image into a plurality of sub-image blocks; S3, eliminating coding blocks irrelevant to the tracking target through an entropy-guided coding block elimination method; S4, eliminating redundant coding blocks by using a content-guided coding block elimination method for the remaining coding blocks in S3; S5. Input the remaining coding blocks into the prediction head to locate the target.

2. The method for tracking a target using a neuromorphic visual system based on a lightweight Transformer according to claim 1, wherein: The step S1 specifically includes: Given neuromorphic data containing N events, Where (x k ,y k ) represents the kth event e k The pixel position, t k Indicates the timestamp, p k Indicates polarity, the present invention converts neuromorphic visual data into frame images in the following way: E c (x,y,t)=δ(x-x k ,y-y k )δ(t-t k ) Where δ represents the Dirac function, E c Represents a frame image.

3. The neuromorphic visual target tracking method based on lightweight Transformer according to claim 1 is characterized in that: The step S2 specifically includes: Using the template frame and search frame sharing strategy, the frame image is divided into multiple sub-image blocks. The template frame and the search frame will be divided into multiple sub-image blocks and sent to the Transformer network for feature extraction to achieve the interaction of different time series data; The encoding block generated by the Transformer's multi-head attention mechanism is Where N x and N z are the number of coding blocks corresponding to the template frame and the search frame respectively, and C represents the channel dimension size.

4. The method for tracking a target using a neuromorphic visual system based on a lightweight Transformer according to claim 1, wherein: The step S3 specifically includes: The entropy-guided coding block elimination method measures the amount of information in the search mark by calculating the entropy, and adaptively predicts the sparsity rate γ1 based on the calculated entropy to eliminate coding blocks that are not related to the tracking target: γ1=α+(1-α)σ(κ′) Among them, σ represents the Sigmoid function; ε represents the entropy operation on the channel dimension; represents a three-layer multilayer perceptron; α is a hyperparameter used to prevent the sparsity rate from being too small; the sparsity rate γ1 selects the search encoding block containing the target based on the similarity between the template and the search feature; When obtaining a template encoding block, the information interaction can be defined as: in, Represents the similarity between the input template encoding block and all search encoding blocks; represents the Softmax function; Q z The query vector representing the template features; K x The key vector representing the search feature; d k Represents the scaling factor, which is used to prevent the input of the Softmax function from being too large; Generate a mask to remove the interference caused by the background area in the template frame and extract the coding block in the center of the template frame: in, represents the similarity between the central part of the template frame and the search coding block; W z Indicates the width of the extracted features; H z Indicates the height of the extracted features; Keep the (1-γ1)N with the highest scores x Search code blocks, the output search code block is composed of express.

5. The neuromorphic visual target tracking method based on lightweight Transformer according to claim 1 is characterized in that: The step S4 specifically includes: The entropy-guided coding block elimination method adaptively eliminates redundant coding blocks by evaluating the importance of the content contained in the search coding block; Evaluate the search encoding chunks output in S3 Importance score The sparsity rate γ2 is predicted in an adaptive manner based on the content of the search coding block: Among them, β is a parameter used to control the size of γ2; Φ represents the averaging operation; Sort the searched coding blocks in descending order according to their importance scores, retaining (1-γ2)(1-γ1)N x Search code blocks.

6. The neuromorphic visual target tracking method based on lightweight Transformer according to claim 1 is characterized in that: The step S5 specifically includes: After the coding blocks in S5 are eliminated by the entropy-guided coding block elimination method, the remaining coding blocks are input into the prediction head for target positioning.

7. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is run, the method according to any one of claims 1 to 6 is executed.

8. An electronic device comprising a memory, a processor, and an extreme machine program stored in the memory and executable on the processor, characterized in that: The processor executes the method according to any one of claims 1 to 6 by running the computer program.

Citation Information

Cited By

  • Neuromorphic visual object tracking method and system based on image processing

    CN120411188B