A scale-adaptive active vision tracking method

By constructing a scale-adaptive active visual tracking system, the challenges posed by target scale changes and interference were addressed, resulting in more efficient target tracking performance and improved cumulative rewards, screen length, and success rate.

CN119151994BActive Publication Date: 2026-11-27NAT UNIV OF DEFENSE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411301989.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2026-11-27
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

Existing active visual tracking methods are inadequate in handling target scale changes, especially in the presence of interference, and fail to effectively address the challenges posed by target scale variations.

Method used

A scale-adaptive active visual tracking system is constructed. Through a data acquisition module, a data preprocessing module, an active visual tracking teacher module, and an active visual tracking student module, combined with a multi-scale convolutional network and a scale attention module, adaptive feature extraction and tracking of target scale changes are achieved.

Benefits of technology

It improves the tracking performance of the active tracker under target scale changes, and enhances cumulative reward, screen length and tracking success rate, especially the tracking effect when there are interference objects in the environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119151994B_ABST
    Figure CN119151994B_ABST
Patent Text Reader

Abstract

The application discloses a scale self-adaptive active visual tracking method, aiming at enhancing the tracking ability of an active tracker in the case of target scale change and improving tracking performance. The technical scheme is to construct a scale self-adaptive active visual tracking system composed of a data acquisition module, a data preprocessing module, an active visual tracking teacher module and an active visual tracking student module; the active visual tracking teacher module is trained by using a reinforcement learning mode, the active visual tracking student module is trained by using a supervised learning mode, and the trained scale self-adaptive active visual tracking system is obtained. The trained scale self-adaptive active visual tracking system tracks a target. By respectively performing normal scale, small scale and large scale training in the training, the application can extract multi-scale features of a visual observation image, adaptively fuse the multi-scale features, and enhance the tracking performance of the tracker in the case of target scale change and in the presence of interference in the environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of active visual tracking technology, and more specifically to a scale-adaptive active visual tracking method. Background Technology

[0002] Visual object tracking is a key technology in computer vision, referring to the process of tracking one or more targets in a continuous sequence of images. This process involves detecting targets of interest in video frames and continuously locating the target's position in subsequent frames. This is crucial for understanding video content, intelligent surveillance, augmented reality, and other fields. Visual object tracking can be divided into two categories based on whether camera motion control is required: passive visual tracking and active visual tracking. Passive visual tracking aims to predict the bounding boxes of targets in subsequent frames given the target bounding boxes in an initial frame, without considering camera motion control. In contrast, active visual tracking not only considers locating targets in a video sequence but also involves controlling camera motion to actively follow the target, ensuring that the target is always centered in the camera's field of view at an appropriate size, i.e., in an ideal position. Active visual tracking includes two sub-tasks: visual perception and motion control. The visual perception task is responsible for extracting features from the input visually observed images and detecting and recognizing targets, while the motion control task outputs camera actions based on the perception results.

[0003] Active visual tracking methods can be divided into two categories: traditional two-stage methods and end-to-end methods based on deep reinforcement learning. Traditional two-stage methods divide active visual tracking into two modules: passive visual tracking and a controller. The passive visual tracking module obtains the target's bounding box from the input visual image, while the controller module outputs motion signals from the camera based on the difference between the bounding box's position and the ideal position. Two-stage methods have the following limitations: the passive visual tracking module typically uses existing passive visual tracking algorithms, and training these algorithms requires a large amount of manually labeled datasets, which is time-consuming and labor-intensive; the intermediate results output by the passive visual tracking module may not be suitable for action decision-making; and the coordination between the passive visual tracking and controller modules is difficult. With the continuous development of deep reinforcement learning technology in recent years and its success in many control decision-making fields such as robot motion control, end-to-end methods based on deep reinforcement learning have made great progress and have become a research hotspot.

[0004] Reinforcement learning possesses powerful decision-making capabilities. Through continuous interaction and trial and error between an agent (including trackers, targets, and interfering objects) and the environment, it optimizes the agent's action policy based on rewards received from environmental feedback, aiming to maximize the cumulative reward. End-to-end methods based on deep reinforcement learning combine the decision-making capabilities of reinforcement learning with the perceptual capabilities of deep learning. They use an end-to-end neural network to directly map visually observed images into camera action signals—the tracker's policy network—and continuously optimize this policy network during the tracker's interaction with the environment. End-to-end methods based on deep reinforcement learning offer advantages such as high computational efficiency and good generalization performance, achieving results surpassing two-stage methods, thus becoming an important research direction in the field of active visual tracking.

[0005] In their paper "End-to-end Active Object Tracking via Reinforcement Learning" (see Luo W, Sun P, Zhong F, et al. End-to-end active object tracking via reinforcement learning[C]. International conference on machine learning. 2018:3286–3295.), Luo et al. first proposed an active visual tracking method based on deep reinforcement learning. This method uses a Convolutional Long Short Term Memory (Conv-LSTM) network, taking video image frames as input and outputting camera motion. The entire network is trained using the Asynchronous Advantage Actor-Critic (A3C) algorithm during the interaction between the tracker and the environment, with the target moving along a pre-defined route. However, the target moving along a fixed route makes its trajectory too monotonous, leading to overfitting of the tracker to specific target trajectories and causing tracking failure when encountering targets with different trajectories. To address this, the paper "AD-VAT: An asymmetric dueling mechanism for learning visual active tracking" (see Zhong F, Sun P, Luo W, et al. AD-VAT: An asymmetric dueling mechanism for learning visual active tracking [C]. International Conference on Learning Representations. 2018.) proposes an asymmetric adversarial mechanism based on adversarial reinforcement learning. This mechanism models both the tracker and the target as learnable agents, creating a competitive relationship: the tracker learns to track the target, while the target attempts to escape the tracker. This adversarial mechanism is achieved by defining opposite reward functions for the tracker and the target. To enable the target to learn the optimal strategy to move away from the tracker, the target is defined as being able to perceive the tracker's observations and actions. Its network receives not only its own visual observations but also the tracker's visual observations and action signals. During training, the tracker and the target mutually optimize their strategies, ensuring the tracker consistently competes with a target of appropriate difficulty.To address the visual confusion and target occlusion issues caused by distractions, the paper "Towards distraction-robust active visual tracking" (Zhong F, Sun P, Luo W, et al. Towards distraction-robust active visual tracking[C]. International Conference on Machine Learning. 2021:12782-12792.) proposes a hybrid cooperative competitive multi-agent game framework, modeling the tracker, target, and distractions as learnable agents. This multi-agent game framework is implemented by defining reward functions for the tracker, target, and distractions respectively. Let the subscripts i∈{1,2,3} represent the tracker, target, and distraction, respectively. The ideal position of the target is a distance D directly in front of the tracker. The geometric relationship between the tracker and other agents (i.e., the target and distractions) is defined as the positional difference d(i) between the other agents and the target's ideal position, where d(i) represents the positional difference between the i-th agent and the target's ideal position. The tracker's reward function is defined as r. 1 =1-d(2), where d(2) represents the positional difference between the actual and ideal positions of the target. The reward function for the target is defined as r 2 =-r 1 The reward function for the interfering element is defined as r. 3 =r 2 -d(3), where d(3) represents the positional difference between the interfering object and the ideal position of the target. In the game, the target and the interfering object cooperate to form a team (called the opponent) to fight against the tracker. Specifically, the tracker follows the target and maintains a specific relative pose with it to minimize the difference between the target and the ideal position; the target gets rid of the tracker and moves as far away from the ideal position as possible; the interfering object cooperates with the target to help the target get rid of the tracker by causing visual interference to the tracker or occluding the target. Since directly using reinforcement learning to train multiple agents with visual input is inefficient, this paper proposes a cross-modal teacher-student learning method, which divides the training process into a teacher training phase and a student training phase. In the teacher training phase, the relative poses of the agents are used to train the meta-policy to obtain the meta-tracker (teacher tracker), meta-target, and meta-interfering object. Since the relative pose is low-dimensional real state information, it is easy to train a near-optimal policy. In the student training phase, the policies of the meta-target and meta-interfering object are sampled, and the action labels provided by the teacher tracker are used to supervise the training of the visual tracker, thereby optimizing its policy network and obtaining the student tracker.

[0006] While existing deep reinforcement learning-based end-to-end methods have made significant progress in active visual tracking, they still face the challenge of target scale variations during tracking. In active visual tracking, because both the tracker and the target are constantly moving, the target's scale in the tracker's visual observation can change significantly. For example, when the target suddenly moves backward, its scale in the tracker's camera's field of view increases significantly; conversely, when the target accelerates forward, its scale decreases. This scale variation is particularly pronounced when there are interfering objects in the environment (such as other people or vehicles in the tracking scene), because multiple objects of different scales may appear simultaneously in the tracker's field of view, resulting in scale interference. Currently, existing active visual tracking methods are mostly focused on handling target tracking at normal scales, without considering the scale variation problem and its impact, and therefore have not proposed effective solutions.

[0007] Therefore, how to solve the problem of scale variation, especially when there are interfering objects in the environment, is a difficult problem that urgently needs to be solved in the field of active visual tracking. Summary of the Invention

[0008] The technical problem to be solved by this invention is the problem of target scale variation in active visual tracking. It provides a scale-adaptive active visual tracking method that can enhance the tracking ability of the active tracker when the target scale changes, and improve the tracking performance of the active tracker (including three indicators: Accumulated Reward (AR), Episode Length (EL), and Success Rate (SR)). In particular, it can improve the tracking performance when there are interference objects in the environment.

[0009] This invention includes the following steps:

[0010] The first step is to construct a scale-adaptive active visual tracking system. This system consists of a data acquisition module, a data preprocessing module, an active visual tracking module for teachers, and an active visual tracking module for students.

[0011] The data acquisition module is connected to the tracker's camera, the pose sensors of all agents (tracker, target, and interfering objects), and the data preprocessing module. It acquires two-dimensional visual images from the tracker's camera and pose data from the pose sensors of the tracker, target, and interfering objects. During training, the data acquisition module sends the visual images acquired from the tracker's camera and the pose data from the pose sensors of the tracker, target, and interfering objects to the data preprocessing module. However, when actually tracking the target, the data acquisition module only sends the visual images acquired from the tracker's camera to the data preprocessing module.

[0012] The data preprocessing module is connected to the data acquisition module, the active visual tracking teacher module, and the active visual tracking student module. It receives visual observation images and pose data from the data acquisition module, preprocesses them to obtain preprocessed visual observation images and preprocessed pose data. During training, the data preprocessing module sends the preprocessed pose data to the active visual tracking teacher module and the preprocessed visual observation images to the active visual tracking student module. During actual tracking, the data preprocessing module only sends the preprocessed visual observation images to the active visual tracking student module.

[0013] The active visual tracking teacher module assists the active visual tracking student module, operating only during training and not participating in actual tracking. The active visual tracking teacher module is connected to the data preprocessing module and the active visual tracking student module, and consists of a meta-tracker network, a meta-target network, a meta-interference network, a reward function calculation module, and a first loss function calculation module. The meta-tracker network consists of a first bidirectional gated recurrent unit, a first long short-term memory unit, a first fully connected layer, and a second fully connected layer. The first bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the tracker's pose features, and sends these features to the first long short-term memory unit. The first long short-term memory unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit to obtain the tracker's temporal pose features, and sends these features to the first and second fully connected layers. The first fully connected layer performs action prediction on the tracker's temporal pose features received from the first long short-term memory unit to obtain the tracker's action probability. When training the active visual tracking teacher module, the first fully connected layer sends the tracker's action probability to the meta-target network, the meta-interference network, and the first loss function calculation module. When training the active visual tracking student module, the first fully connected layer sends the tracker's action probability to the meta-target network, the meta-interference network, and the active visual tracking student module (in...). Figure 1 The dashed lines represent the first fully connected layer sending the tracker's action probability to the meta-target network, meta-interference network, first loss function calculation module, and second loss function calculation module of the active visual tracking student module. The second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the tracker's state value. When training the active visual tracking teacher module, the second fully connected layer sends the tracker's state value to the first loss function calculation module.

[0014] The meta-target network consists of a second bidirectional gated recurrent unit, a second long short-term memory unit, a third fully connected layer, and a fourth fully connected layer. The second bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the target's pose features, and sends these features to the second long short-term memory unit. The second long short-term memory unit extracts temporal features from the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probabilities received from the meta-tracker network to obtain the target's temporal pose features, and sends these features to the third and fourth fully connected layers. The third fully connected layer predicts the action probabilities of the target based on the temporal pose features received from the second long short-term memory unit. When training the active visual tracking teacher module, the third fully connected layer sends the target's action probabilities to the first loss function calculation module. The fourth fully connected layer estimates the value of the target's temporal pose features received from the second long short-term memory unit to obtain the target's state value. When training the active visual tracking teacher module, the fourth fully connected layer sends the target's state value to the first loss function calculation module.

[0015] The meta-interference network consists of a third bidirectional gated recurrent unit, a third long short-term memory unit, a fifth fully connected layer, and a sixth fully connected layer. The third bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the pose features of the interference object, and sends these features to the third long short-term memory unit. The third long short-term memory unit performs temporal feature extraction on the pose features of the interference object received from the third bidirectional gated recurrent unit and the action probabilities of the tracker received from the meta-tracker network to obtain the temporal pose features of the interference object, and sends these temporal pose features to the third long short-term memory unit. The fifth fully connected layer and the sixth fully connected layer are used. The fifth fully connected layer performs action prediction on the temporal pose features of the interfering object received from the third long short-term memory unit to obtain the action probability of the interfering object. When training the active visual tracking teacher module, the fifth fully connected layer sends the action probability of the interfering object to the first loss function calculation module. The sixth fully connected layer performs value estimation on the temporal pose features of the interfering object received from the third long short-term memory unit to obtain the state value of the interfering object. When training the active visual tracking teacher module, the sixth fully connected layer sends the state value of the interfering object to the first loss function calculation module.

[0016] The reward function calculation module is connected to the data preprocessing module and the first loss function calculation module. During the training of the active visual tracking teacher module, the reward function calculation module calculates the rewards for the tracker, target, and interfering objects based on the preprocessed pose data received from the data preprocessing module, and then sends these rewards to the first loss function calculation module.

[0017] The first loss function calculation module is connected to the reward function calculation module, the meta-tracker network, the meta-target network, and the meta-interference object network. During the training of the active visual tracking teacher module, the first loss function calculation module receives rewards from the reward function calculation module for the tracker, target, and interference objects; it receives the tracker's action probability and state value from the meta-tracker network; it receives the target's action probability and state value from the meta-target network; and it receives the interference object's action probability and state value from the meta-interference object network. Based on the tracker's reward, action probability, and state value, it calculates the tracker's temporal difference error loss and policy gradient loss; based on the target's reward, action probability, and state value, it calculates the target's temporal difference error loss and policy gradient loss; and based on the interference object's reward, action probability, and state value, it calculates the interference object's temporal difference error loss and policy gradient loss. During the training of the active visual tracking teacher module, the active visual tracking teacher module optimizes the meta-tracker network, meta-target network, and meta-interference object network by minimizing the temporal difference error loss and policy gradient loss of the tracker, target, and interference objects obtained from the first loss function calculation module.

[0018] The active visual tracking student module is connected to the data preprocessing module and the active visual tracking teacher module, and consists of a visual tracker network and a second loss function calculation module. The visual tracker network consists of a convolutional backbone, multi-scale convolutional network branches, a scale attention module, an adaptive fusion module, a recurrent attention module, and an eighth fully connected layer.

[0019] The convolutional backbone is connected to the data preprocessing module, the multi-scale convolutional network branch, and the scale attention module. It extracts features from the preprocessed visual observation images received from the data preprocessing module to obtain visual observation image features, and sends the visual observation image features to the multi-scale convolutional network branch and the scale attention module.

[0020] The multi-scale convolutional network has four branches: a first-scale convolutional network branch, a second-scale convolutional network branch, a third-scale convolutional network branch, and a fourth-scale convolutional network branch. The first-scale convolutional network branch extracts features from the visually observed image to obtain first-scale visually observed image features, which are then sent to the adaptive fusion module. The second-scale convolutional network branch extracts features from the visually observed image to obtain second-scale visually observed image features, which are then sent to the adaptive fusion module. The third-scale convolutional network branch extracts features from the visually observed image to obtain third-scale visually observed image features, which are then sent to the adaptive fusion module. The fourth-scale convolutional network branch performs dimensionality reduction and feature extraction on the visually observed image features received from the convolutional backbone to obtain fourth-scale visually observed image features, which are then sent to the adaptive fusion module. The first-scale convolutional network branch… The first-scale convolutional network consists of a first ordinary convolutional layer with a kernel size of 1×1 and a first dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 3, resulting in a receptive field size of 7. The second-scale convolutional network branch consists of a second ordinary convolutional layer with a kernel size of 1×1 and a second dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 2, resulting in a receptive field size of 5. The third-scale convolutional network branch consists of a third ordinary convolutional layer with a kernel size of 1×1 and a third dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 1, resulting in a receptive field size of 3. The fourth-scale convolutional network branch consists of a fourth ordinary convolutional layer with a kernel size of 1×1, resulting in a receptive field size of 1. The first-scale visual observation image features, second-scale visual observation image features, third-scale visual observation image features, and fourth-scale visual observation image features constitute multi-scale visual observation image features. The multi-scale convolutional network branches can extract features from visual observation images at multiple scale ranges (corresponding to different receptive field sizes), thus enabling the extraction of features from targets with varying scales.

[0021] The scale attention module consists of convolutional long short-term memory units, a global average pooling layer, a seventh fully connected layer, and a sigmoid activation function layer. The convolutional long short-term memory units extract temporal features from the visual observation image features received from the convolutional backbone, and send the temporal features of the visual observation image to the global average pooling layer. The global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory units in the spatial dimension, and obtains a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, and sends the first feature vector to the seventh fully connected layer. The seventh fully connected layer compresses the first feature vector received from the global average pooling layer, and obtains a second feature vector with a length equal to the number of branches of the multi-scale convolutional network (4), and sends the second feature vector to the sigmoid activation function layer. The sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range of [0,1], obtains the weights of the multi-scale visual observation image features, and sends the weights of the multi-scale visual observation image features to the adaptive fusion module. The scale attention module can adaptively calculate the weights of multi-scale visual observation image features based on the scale of the target in the visual observation image. Visual observation image features at scales containing more target features are assigned larger weights, while visual observation image features at scales containing fewer target features are assigned smaller weights.

[0022] The adaptive fusion module is connected to the multi-scale convolutional network branch, the scale attention module, and the recurrent attention module. It consists of a weighted concatenation layer and a fifth ordinary convolutional layer with a 1×1 kernel. The weighted concatenation layer uses the weights of the multi-scale visual observation image features received from the scale attention module to weight and concatenate the first, second, third, and fourth scale visual observation image features received from the multi-scale convolutional network branch, resulting in weighted concatenated multi-scale visual observation image features. These weighted concatenated features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted concatenated multi-scale visual observation image features received from the weighted concatenation layer in the channel dimension, obtaining adaptively fused multi-scale visual observation image features. These adaptively fused multi-scale visual observation image features are then sent to the recurrent attention module. The adaptive fusion module uses the weights of the multi-scale visual observation image features to perform weighted fusion, thereby achieving adaptive feature extraction for targets with varying scales.

[0023] The recurrent attention module is connected to the adaptive fusion module and the eighth fully connected layer. It performs temporal feature extraction and weighting on the multi-scale visual observation image features received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer.

[0024] The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module to obtain the action probability of the tracker. When training the active visual tracking student module, the eighth fully connected layer sends the action probability of the tracker to the second loss function calculation module.

[0025] The second loss function calculation module is connected to the eighth fully connected layer and the meta-tracker network. During the training of the active visual tracking student module, this module calculates the KL divergence loss based on the action probabilities of the trackers received from the eighth fully connected layer and the action probabilities of the trackers received from the meta-tracker network of the active visual tracking teacher module. During the training of the active visual tracking student module, it optimizes the visual tracker network by minimizing the KL divergence loss obtained from the second loss function calculation module.

[0026] The second step involves training the active visual tracking teacher module and the active visual tracking student module in the scale-adaptive active visual tracking system. The active visual tracking teacher module is trained using reinforcement learning, while the active visual tracking student module is trained using supervised learning.

[0027] 2.1 Reinforcement learning is used to train the active visual tracking teacher module. The method involves multi-scale, multi-stage training of the meta-tracker network, meta-target network, and meta-interference network during the interaction between the tracker, target, interference objects, and the environment. The reward functions for the target and interference objects differ in each stage, corresponding to different training scales. Specifically:

[0028] 2.1.1 The active teacher tracking module was trained in the first stage at a standard scale using reinforcement learning. The method was as follows:

[0029] 2.1.1.1 Set the number of training steps T to a positive integer greater than 1,000,000, preferably T = 2,000,000, and initialize the number of trained steps t = 1.

[0030] 2.1.1.2 Set the target location entropy reward coefficient a to a constant greater than 0.5, preferably a = 0.8; set the regularization factor α to a constant less than 1, preferably α = 0.005; set the reward decay factor γ to a constant greater than 0.5, preferably γ = 0.9; set the number of environmental horizontal grid divisions n to a positive integer, preferably n = 10.

[0031] 2.1.1.3 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward;

[0032] 2.1.1.4 The data acquisition module acquires the pose data at step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data at step t to the data preprocessing module. The pose data at step t includes the position coordinates of the tracker. and orientation angle Target's location coordinates and orientation angle Location coordinates of the interfering object and orientation angle

[0033] 2.1.1.5 The data preprocessing module uses the first preprocessing method to preprocess the pose data received from the data acquisition module at step t, obtaining the preprocessed pose data at step t. This preprocessed pose data is then sent to the active vision tracking teacher module. The first preprocessing method is as follows:

[0034] 2.1.1.5.1 Calculate the relative distance between the target's actual position and the tracker. relative angle relative orientation angle The relative distance between the actual position of the interfering object and the tracker relative angle relative orientation angle

[0035] 2.1.1.5.2 Set the relative distance ρ between the target's ideal position and the tracker * =250cm, relative angle θ * =0, relative orientation angle ω * =0 indicates that the ideal position of the target is 250cm directly in front of the tracker and facing the same direction as the tracker; sets the maximum distance ρ of the tracker's field of view. max =750cm and maximum angle θ max =90°.

[0036] 2.1.1.5.3 Calculate the normalized relative distance, normalized relative angle, and normalized relative orientation angle of the actual position of the target and the actual position of the interfering object:

[0037] 2.1.1.5.3.1 Calculate the normalized relative distance of the target's actual position. Normalized relative distance of the actual location of the interfering object

[0038] 2.1.1.5.3.2 Calculate the relative angle of the target's actual position. sine value Sum of cosine values Obtain the relative angle of the target's actual position using a normalized representation;

[0039] 2.1.1.5.3.3 Calculate the relative orientation angle of the target's actual position. The sine value of sin And cosine value cos Obtain the relative orientation angle, a normalized representation of the target's actual position;

[0040] 2.1.1.5.3.4 Calculate the relative angle of the actual position of the interfering object. The sine value of sin And cosine value cos Obtain the relative angle of the normalized representation of the actual position of the interfering object;

[0041] 2.1.1.5.3.5 Calculate the relative orientation angle of the actual position of the interfering object. The sine value of sin And cosine value cos The relative orientation angle is obtained as a normalized representation of the actual position of the interfering object.

[0042] 2.1.1.5.4 Set the tracker's position coordinates Target's location coordinates Location coordinates of the interfering object Relative distance of the target's actual location relative angle relative orientation angle Relative distance of the actual location of the interfering object relative angle relative orientation angle Normalized relative distance of the target's actual location The normalized representation of the relative angle sin of the target's actual position cos The normalized representation of the relative orientation angle sin of the target's actual position cos Normalized relative distance of the actual location of the interfering object The normalized relative angle sin of the actual position of the interfering object cos The normalized relative orientation angle sin of the actual location of the interfering object cos The preprocessed pose data is composed of the data from step t.

[0043] 2.1.1.6 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward based on the preprocessed pose data at step t.

[0044]

[0045] 2.1.1.7 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids, I = n × n, and uses a frequency calculation method to calculate the set of target position coordinates over the past N steps based on the preprocessed pose data of the past t steps (the set of target position coordinates is...). The frequency of occurrence of p1,…,p in each grid cell i ,…,p I The method is:

[0046] 2.1.1.7.1 Initialize variable i = 1;

[0047] 2.1.1.7.2 Calculate the frequency p of the set of target position coordinates from the past N steps appearing in the i-th grid. i :

[0048]

[0049] Where N i N is the number of positions in the set of target position coordinates from the past N steps that fall within the i-th grid. i <N。

[0050] 2.1.1.7.3 Let i = i + 1. If i ≤ I, go to 3.1.1.7.2; if i > I, we get p1, ..., p i ,…,p I , see 2.1.1.8.

[0051] 2.1.1.8 The reward function calculation module in the active vision teacher module calculates the target's positional entropy reward loc_entropy:

[0052]

[0053] 2.1.1.9 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0054]

[0055] 2.1.1.10 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0056]

[0057] 2.1.1.11 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0058] 2.1.1.12 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use prediction methods to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t The method is as follows:

[0059] 2.1.1.12.1 Let the normalized relative distance of the target's actual position in the preprocessed pose data at step t be... Normalized representation of relative angle sin cos Normalized representation of relative orientation angle sin cos Normalized relative distance of the actual location of the interfering object Normalized representation of relative angle sin cos Normalized representation of relative orientation angle sin cos The environmental state at step t is formed.

[0060] 2.1.1.12.2 The first bidirectional gated cyclic unit in the meta-tracker network for s tEncoding is performed to obtain the tracker's pose features, which are then sent to the first Long Short-Term Memory (LSTM) unit. The LSM unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit (BRN) to obtain the tracker's temporal pose features, which are then sent to the first fully connected layer and the second fully connected layer. The first fully connected layer performs action prediction on the temporal pose features received from the first LSM unit to obtain the tracker's action probability π. 1 (a t |s t The first fully connected layer sends the tracker's action probability to the meta-target network and the meta-interference network; the second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the tracker's state value V. 1 (s t ).

[0061] 2.1.1.12.3 The second bidirectional gated recurrent unit in the target network for s t Encoding is performed to obtain the target's pose features, and these features are then sent to the second long short-term memory unit. The second long short-term memory unit processes the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probability π received from the meta-tracker network. 1 (a t |s t Temporal feature extraction is performed to obtain the temporal pose features of the target. These features are then sent to the third and fourth fully connected layers. The third fully connected layer performs action prediction on the temporal pose features received from the second long short-term memory unit to obtain the target's action probability π. 2 (a t |s t The fourth fully connected layer performs value estimation on the temporal pose features of the target received from the second long short-term memory unit, obtaining the target's state value V. 2 (s t ).

[0062] 2.1.1.12.4 The third bidirectional gated cyclic unit in the interfering network for s t Encoding is performed to obtain the pose features of the interfering object, and these features are sent to the third long short-term memory unit. The third long short-term memory unit processes the pose features of the interfering object received from the third bidirectional gated recurrent unit and the action probability π of the tracker received from the meta-tracker network. 1 (a t |s tTemporal feature extraction is performed to obtain the temporal pose features of the interfering object. These features are then sent to the fifth and sixth fully connected layers. The fifth fully connected layer performs action prediction on the temporal pose features received from the third long short-term memory unit to obtain the action probability π of the interfering object. 3 (a t |s t The sixth fully connected layer performs value estimation on the temporal pose features of the interfering object received from the third long short-term memory unit, obtaining the state value V of the interfering object. 3 (s t ). Where a t To represent the random variable of the agent's actions, the value range is the agent's action range (the action range of the tracker, target, and interference object are all 7 actions: forward, backward, left, right, forward and left, forward and right, and stop), π k (a t |s t Let be a conditional probability, representing the probability in state s. t The probability distribution of 7 actions within the action range of the agent, k∈{1,2,3}, where 1 represents the tracker, 2 represents the target, and 3 represents the interfering object.

[0063] 2.1.1.13 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (at |s t ) is sent to the interference.

[0064] 2.1.1.14 If t = 1, go to 2.1.1.16; otherwise: the first loss function calculation module in the active visual tracking teacher module calculates the tracker's reward received from the reward function calculation module. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0065]

[0066] Where logπ k (a t |s t ) is π k (a t |s t The logarithm of π, H(π) k (·|s t )) is the entropy regularization term.

[0067] 2.1.1.15 The active visual tracking teacher module uses the Adam optimization algorithm (see the paper "Kingma DP, BaJ. Adam: A method for stochastic optimization[J]. arXiv preprint arXiv:1412.6980,2014", Kingma's paper: Adam, a stochastic optimization method) to minimize and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0068] 2.1.1.16 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0069] 2.1.1.17 Let t = t + 1. If t ≤ T, go to 2.1.1.18; if t > T, go to 2.1.1.19.

[0070] 2.1.1.18 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, go to 2.1.1.3, and continue training using the data of the next time step; otherwise: go directly to 2.1.1.3 and continue training using the data of the next time step.

[0071] 2.1.1.19 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.2.

[0072] 2.1.2 After the first stage of training at a standard scale, the meta-tracker network has the ability to track targets at a standard scale, but it still lacks the ability to track targets at small and large scales. Therefore, based on the first stage of training, reinforcement learning is used to further train the active visual tracking teacher module at a small scale in the second stage. The method is as follows:

[0073] 2.1.2.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the first stage of training in 2.1.1.19.

[0074] 2.1.2.2 Set the number of training steps T to a positive integer greater than 100,000, preferably T = 1,000,000, and initialize the number of trained steps t = 1;

[0075] 2.1.2.3 Set the target location entropy reward coefficient 'a' to a constant greater than 0.5, preferably 'a = 0.8'; set the regularization factor 'α' to a constant less than 1, preferably 'α = 0.005'; set the reward decay factor 'γ' to a constant greater than 0.5, preferably 'γ = 0.9'; set the number of environmental horizontal grid divisions 'n' to a positive integer, preferably 'n = 10'; set the threshold distance 'ρ' between the target and the tracker. s The value is 100-1000cm, with ρ being the preferred value. s =500cm.

[0076] 2.1.2.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward.

[0077] 2.1.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0078] 2.1.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0079] 2.1.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.6.

[0080] 2.1.2.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I .

[0081] 2.1.2.9 The reward function calculation module in the active vision teacher module calculates the target's position entropy reward loc_entropy according to formula (9) in 2.1.1.8.

[0082] 2.1.2.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0083]

[0084] 2.1.2.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0085]

[0086] 2.1.2.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0087] 2.1.2.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t).

[0088] 2.1.2.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t ) is sent to the interference.

[0089] 2.1.2.15 If t = 1, proceed to 2.1.2.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.14. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (st ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0090] 2.1.2.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0091] 2.1.2.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0092] 2.1.2.18 Let t = t + 1. If t ≤ T, go to 2.1.2.19; if t > T, go to 2.1.2.20.

[0093] 2.1.2.19 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.2.4 to continue training using the data of the next time step; otherwise: go directly to 2.1.2.4 to continue training using the data of the next time step.

[0094] 2.1.2.20 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.3.

[0095] 2.1.3 After the first stage of training at the normal scale and the second stage at the small scale, the meta tracker network has the ability to track targets at the normal scale and the small scale, but it still lacks the ability to track targets at the large scale. Therefore, based on the second stage of training, reinforcement learning is used to further train the active visual tracking teacher module at the third stage at the large scale.

[0096] 2.1.3.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the second stage of training in 2.1.2.20.

[0097] 2.1.3.2 Set the number of training steps T to a positive integer greater than 100,000, preferably T = 1,000,000, and initialize the number of trained steps t = 1;

[0098] 2.1.3.3 Set the target location entropy reward coefficient 'a' to a constant greater than 0.5, preferably 'a = 0.8'; set the regularization factor 'α' to a constant less than 1, preferably 'α = 0.005'; set the reward decay factor 'γ' to a constant greater than 0.5, preferably 'γ = 0.9'; set the number of environmental horizontal grid divisions 'n' to a positive integer, preferably 'n = 10'; set the threshold distance 'ρl' between the target and the tracker to 100–1000 cm, preferably 'ρl'. l =150cm.

[0099] 2.1.3.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward.

[0100] 2.1.3.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0101] 2.1.3.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0102] 2.1.3.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.6.

[0103] 2.1.3.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I .

[0104] 2.1.3.9 The reward function calculation module in the active vision teacher module calculates the target's position entropy reward loc_entropy according to formula (9) in 2.1.1.8.

[0105] 2.1.3.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0106]

[0107] 2.1.3.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0108]

[0109] 2.1.3.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0110] 2.1.3.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t).

[0111] 2.1.3.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t ) is sent to the interference.

[0112] 2.1.3.15 If t = 1, proceed to 2.1.3.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.14. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (st ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0113] 2.1.3.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0114] 2.1.3.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0115] 2.1.3.18 Let t = t + 1. If t ≤ T, go to 2.1.3.19; if t > T, go to 2.1.4.

[0116] 2.1.3.19 If t%10000=0, save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.3.4 to continue training using the data of the next time step; otherwise, go directly to 2.1.3.4 to continue training using the data of the next time step.

[0117] 2.1.4 The active visual tracking teacher module saves the parameters of the meta tracker network, see section 2.2.

[0118] 2.2 During the interaction between the tracker and the target, interference objects, and the environment, reinforcement learning is used to further fine-tune the meta-tracker network, optimizing only the parameters of the meta-tracker network. The method is as follows:

[0119] 2.2.1 Load the parameters of the meta-tracker network saved in step 2.1.4 in the active visual tracking teacher module.

[0120] 2.2.2 Set the number of training steps T = 1,000,000, and initialize the number of trained steps t = 1.

[0121] 2.2.3 Randomly select parameters of the meta-target network from the opponent's model pool and load them into the meta-target network; randomly select parameters of the meta-interference network from the opponent's model pool and load them into the meta-interference network.

[0122] 2.2.4 Fixed parameters of the target network and the interference network (only the parameters of the tracker network are optimized during the interaction between the tracker and the target, interference, and environment).

[0123] 2.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0124] 2.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0125] 2.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to formula (7) in 2.1.1.6 based on the preprocessed pose data at step t.

[0126] 2.2.8 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Send it to the first loss function calculation module in the active visual tracking teacher module.

[0127] 2.2.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2(s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ).

[0128] 2.2.10 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target network sends the target's action probability π to the tracker. 2 (a t |s t The signal is sent to the target. The meta-interference network transmits the action probability π of the interference object. 3 (a t |s t ) is sent to the interference.

[0129] 2.2.11 If t = 1, proceed to 2.2.13; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in step 2.1.1.14. and the tracker state value V received from the meta-tracker network 1 (s t ), the tracker's action probability π 1 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss

[0130] 2.2.12 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta tracker network.

[0131] 2.2.13 The tracker is based on the tracker's action probability π 1 (a t |s tThe conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0132] 2.2.14 Let t = t + 1. If t ≤ T, go to 2.2.15; if t > T, go to 2.2.16.

[0133] 2.2.15 If t%5000 = 0, proceed to 2.2.3 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.2.5 to continue training using the data from the next time step.

[0134] 2.2.16 The active visual tracking teacher module saves the parameters of the meta-tracking network, see section 2.3.

[0135] 2.3 The active visual tracking student module is trained using supervised learning. The method is as follows:

[0136] 2.3.1 Load the parameters of the meta-tracker network saved in step 2.2.16 in the active visual tracking teacher module.

[0137] 2.3.2 Parameters of the fixed element tracker network.

[0138] 2.3.3 Set the number of training steps T to a positive integer greater than 100,000, preferably T = 2,000,000, and initialize the number of trained steps t = 1.

[0139] 2.3.4 Randomly select parameters of the target network from the opponent's model pool and load them into the target network; randomly select parameters of the interfering network from the opponent's model pool and load them into the interfering network.

[0140] 2.3.5 Parameters of fixed target network and interfering network.

[0141] 2.3.6 The data acquisition module acquires the visual observation image at step t from the tracker's camera. t The pose data at step t is obtained from the pose sensors of the tracker, target, and interference objects, and the visual observation image and pose data at step t are sent to the data preprocessing module.

[0142] 2.3.7 The data preprocessing module uses the first preprocessing method in step 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0143] 2.3.8 The data preprocessing module employs a second preprocessing method to process the visual observation image o received from the data acquisition module at step t. t Preprocessing is performed to obtain the preprocessed visual observation image o′ at step t. t The preprocessed visual observation image o′ from step t t Send to the active visual tracking student module. The second preprocessing method is:

[0144] 2.3.8.1 will o t The width is scaled to 320 pixels and the height to 240 pixels to obtain a scaled visual observation image.

[0145] 2.3.8.2 Normalize the pixel values ​​of the scaled visual observation image to the [0,1] interval to obtain the normalized visual observation image at step t.

[0146] 2.3.8.3 Randomly flip the normalized visual observation image at step t to obtain the preprocessed visual observation image o′t′ at step t.

[0147] 2.3.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and action probability π 3 (a t |s t The meta-tracker network assigns the tracker's action probability π to... 1 (a t |s t The data is sent to the second loss function calculation module in the active visual tracking student module. The meta-target network calculates the target's action probability π. 2 (at |s t The network sends the probability of the interfering object's action π to the target. 3 (a t |s t ) is sent to the interference.

[0148] 2.3.10 The visual tracker network in the active visual tracking student module uses an action prediction method to process the preprocessed visual observation image o′ t Perform action prediction to obtain the tracker's action probability π. 1* (a t |o′ t The method is as follows:

[0149] 2.3.10.1 The convolutional backbone in the visual tracker network for the preprocessed visual observation image o′ t Feature extraction is performed to obtain visual observation image features, which are then sent to the multi-scale convolutional network branches and scale attention modules.

[0150] 2.3.10.2 The first-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain first-scale visual observation image features. Specifically, the first ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced first-scale visual observation image features, which are then sent to the first dilated convolutional layer. The first dilated convolutional layer extracts features from the dimensionality-reduced first-scale visual observation image features received from the first ordinary convolutional layer to obtain first-scale visual observation image features, which are then sent to the adaptive fusion module. The second-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain second-scale visual observation image features. Specifically, the second ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced second-scale visual observation image features, which are then sent to the second dilated convolutional layer. The second dilated convolutional layer extracts features from the dimensionality-reduced first-scale visual observation image features received from the second ordinary convolutional layer in the channel dimension to obtain second-scale visual observation image features. The second-scale visual observation image features are extracted from the second-scale visual observation image features and sent to the adaptive fusion module. The third-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain third-scale visual observation image features. The third ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced third-scale visual observation image features, which are then sent to the third dilated convolutional layer. The third dilated convolutional layer extracts features from the dimensionality-reduced third-scale visual observation image features received from the third ordinary convolutional layer to obtain third-scale visual observation image features, which are then sent to the adaptive fusion module. Finally, the fourth ordinary convolutional layer in the fourth-scale convolutional network branch in the multi-scale convolutional network branch reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension and extracts features to obtain fourth-scale visual observation image features, which are then sent to the adaptive fusion module.

[0151] In the 2.3.10.3 scale attention module, the convolutional long short-term memory unit extracts temporal features from the visual observation image features received from the convolutional backbone network, obtaining the temporal features of the visual observation image, and sends the temporal features of the visual observation image to the global average pooling layer; the global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory unit in the spatial dimension, obtaining a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, and sends the first feature vector to the seventh fully connected layer; the seventh fully connected layer compresses the first feature vector received from the global average pooling layer, obtaining a second feature vector with a length equal to the number of branches of the multi-scale convolutional network (4), and sends the second feature vector to the sigmoid activation function layer; the sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range of [0,1], obtains the weights of the multi-scale visual observation image features, and sends the weights of the multi-scale visual observation image features to the adaptive fusion module.

[0152] 2.3.10.4 The weighted stitching layer in the adaptive fusion module uses the weights of the multi-scale visual observation image features received from the scale attention module to perform weighted stitching on the first-scale visual observation image features, second-scale visual observation image features, third-scale visual observation image features, and fourth-scale visual observation image features received from the multi-scale convolutional network branch, to obtain weighted stitched multi-scale visual observation image features. The weighted stitched multi-scale visual observation image features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted stitched multi-scale visual observation image features received from the weighted stitching layer in the channel dimension to obtain adaptively fused multi-scale visual observation image features. The adaptively fused multi-scale visual observation image features are then sent to the recurrent attention module.

[0153] 2.3.10.5 The recurrent attention module extracts and weights the temporal features of the multi-scale visual observation image received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer.

[0154] 2.3.10.6 The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module, obtaining the tracker's action probability π. 1* (a t |o′ t ).

[0155] 2.3.11 The visual tracker network in the active visual tracking student module (referring to the eighth fully connected layer in the visual tracker network) will track the tracker's action probability π. 1* (a t |o′ tIt is sent to the second loss function calculation module and the tracker.

[0156] 2.3.12 The second loss function calculation module in the active visual tracking student module calculates the loss function based on the tracker's action probability π received from the visual tracker network. 1* (a t |o′ t The tracker's action probability π received from the meta-tracker network in the active visual tracking teacher module. 1 (a t |s t Calculate the KL divergence loss D KL (π 1* (a t |o′ t )|π 1 (a t |s t )):

[0157]

[0158] 2.3.13 The active visual tracking student module uses the Adam optimization algorithm to minimize D. KL (π 1* (a t |o′ t )|π 1 (a t |s t This is used to update the parameters of the visual tracker network.

[0159] 2.3.14 The tracker is based on the tracker's action probability π 1* (a t |o′ t The conditional probability denoted by π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0160] 2.3.15 Let t = t + 1. If t ≤ T, go to 2.3.16; if t > T, go to 2.3.17.

[0161] 2.3.16 If t%5000 = 0, proceed to 2.3.4 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.3.6 to continue training using the data from the next time step.

[0162] 2.3.17 Save the parameters of the visual tracker network and proceed to step 3.

[0163] The third step involves loading the parameters of the visual tracker network saved in step 2.3.17 into the active visual tracking student module of the scale-adaptive active visual tracking system, thus obtaining the trained scale-adaptive active visual tracking system.

[0164] The fourth step involves the trained scale-adaptive active visual tracking system tracking the target. The method is as follows:

[0165] 4.1 The data acquisition module acquires real-time visual observation images o from the tracker's camera and sends o to the data preprocessing module.

[0166] 4.2 The data preprocessing module receives the real-time visual observation image o, and uses the second preprocessing method described in step 2.3.8 to preprocess the real-time visual observation image o to obtain the preprocessed real-time visual observation image o′, and sends o′ to the active visual tracking student module.

[0167] 4.3 The active visual tracking student module receives the preprocessed real-time visual observation image o′. The visual tracker network uses the action prediction method described in step 2.3.10 to predict the action of the preprocessed real-time visual observation image o′, obtaining the tracker's action probability π. 1* (a′|o′). a′ is a random variable representing the agent's action, and its value range is the range of the agent's actions.

[0168] 4.4 Visual tracker networks use the tracker's action probability π 1* (a′|o′) is sent to the tracker.

[0169] 4.5 The tracker is based on the tracker's action probability π 1* (a′|o′) represents the conditional probability of selecting an action from 7 actions within the action range and taking that action to track the target.

[0170] The scale-adaptive active visual tracking method provided by this invention can achieve the following beneficial effects:

[0171] (1) The first step of this invention is to construct a scale-adaptive active visual tracking system. By using multi-scale convolutional network branches with different receptive field sizes and scale attention modules in the visual tracker network of the active visual tracking student module, it is possible to extract multi-scale features of visual observation images and adaptively fuse multi-scale features to enhance the tracking performance of the tracker when the target scale changes.

[0172] (2) The second step of the present invention, the active visual tracking teacher module, further enhances the tracking performance of the tracker in the scale-changing environment by conducting training at normal scale, small scale and large scale in multi-scale and multi-stage training.

[0173] (3) The second step of the present invention, the training of the active visual tracking teacher module, enhances the target’s exploration of the environment and the diversity of its movement patterns by adding position entropy reward to the target’s reward function, thereby improving the tracking effect of the tracker when there are interfering objects in the environment.

[0174] (4) In the fourth step of this invention, the trained scale-adaptive active visual tracking system is used to track the target, which improves the tracking performance of the tracker, namely, the cumulative reward AR, screen length EL, and tracking success rate SR are all improved. Attached Figure Description

[0175] Figure 1 This is the logical structure diagram of the scale-adaptive active visual tracking system built in the first step;

[0176] Figure 2 This is the overall flowchart of the scale-adaptive active visual tracking method of the present invention. Detailed Implementation

[0177] The specific embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0178] like Figure 1 As shown, one embodiment of the present invention includes the following steps:

[0179] The first step is to construct a scale-adaptive active visual tracking system. This system consists of a data acquisition module, a data preprocessing module, an active visual tracking module for teachers, and an active visual tracking module for students.

[0180] The data acquisition module is connected to the tracker's camera, the pose sensors of all agents, and the data preprocessing module. It acquires two-dimensional visual images from the tracker's camera and pose data of the tracker, target, and interfering objects from their pose sensors. During training, the data acquisition module sends the visual images acquired from the tracker's camera and the pose data from the pose sensors of the tracker, target, and interfering objects to the data preprocessing module. However, when actually tracking the target, the data acquisition module only sends the visual images acquired from the tracker's camera to the data preprocessing module.

[0181] The data preprocessing module is connected to the data acquisition module, the active visual tracking teacher module, and the active visual tracking student module. It receives visual observation images and pose data from the data acquisition module, preprocesses them to obtain preprocessed visual observation images and preprocessed pose data. During training, the data preprocessing module sends the preprocessed pose data to the active visual tracking teacher module and the preprocessed visual observation images to the active visual tracking student module. During actual tracking, the data preprocessing module only sends the preprocessed visual observation images to the active visual tracking student module.

[0182] The active visual tracking teacher module assists the active visual tracking student module, operating only during training and not participating in actual tracking. The active visual tracking teacher module is connected to the data preprocessing module and the active visual tracking student module, and consists of a meta-tracker network, a meta-target network, a meta-interference network, a reward function calculation module, and a first loss function calculation module. The meta-tracker network consists of a first bidirectional gated recurrent unit, a first long short-term memory unit, a first fully connected layer, and a second fully connected layer. The first bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the tracker's pose features, and sends these features to the first long short-term memory unit. The first long short-term memory unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit to obtain the tracker's temporal pose features, and sends these features to the first and second fully connected layers. The first fully connected layer performs action prediction on the tracker's temporal pose features received from the first long short-term memory unit to obtain the tracker's action probability. When training the active visual tracking teacher module, the first fully connected layer sends the tracker's action probability to the meta-target network, the meta-interference network, and the first loss function calculation module. When training the active visual tracking student module, the first fully connected layer sends the tracker's action probability to the meta-target network, the meta-interference network, and the active visual tracking student module (in...). Figure 1The dashed lines represent the first fully connected layer sending the tracker's action probability to the meta-target network, meta-interference network, first loss function calculation module, and second loss function calculation module of the active visual tracking student module. The second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the tracker's state value. When training the active visual tracking teacher module, the second fully connected layer sends the tracker's state value to the first loss function calculation module.

[0183] The meta-target network consists of a second bidirectional gated recurrent unit, a second long short-term memory unit, a third fully connected layer, and a fourth fully connected layer. The second bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the target's pose features, and sends these features to the second long short-term memory unit. The second long short-term memory unit extracts temporal features from the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probabilities received from the meta-tracker network to obtain the target's temporal pose features, and sends these features to the third and fourth fully connected layers. The third fully connected layer predicts the action probabilities of the target based on the temporal pose features received from the second long short-term memory unit. When training the active visual tracking teacher module, the third fully connected layer sends the target's action probabilities to the first loss function calculation module. The fourth fully connected layer estimates the value of the target's temporal pose features received from the second long short-term memory unit to obtain the target's state value. When training the active visual tracking teacher module, the fourth fully connected layer sends the target's state value to the first loss function calculation module.

[0184] The meta-interference network consists of a third bidirectional gated recurrent unit, a third long short-term memory unit, a fifth fully connected layer, and a sixth fully connected layer. The third bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the pose features of the interference object, and sends these features to the third long short-term memory unit. The third long short-term memory unit performs temporal feature extraction on the pose features of the interference object received from the third bidirectional gated recurrent unit and the action probabilities of the tracker received from the meta-tracker network to obtain the temporal pose features of the interference object, and sends these temporal pose features to the third long short-term memory unit. The fifth fully connected layer and the sixth fully connected layer are used. The fifth fully connected layer performs action prediction on the temporal pose features of the interfering object received from the third long short-term memory unit to obtain the action probability of the interfering object. When training the active visual tracking teacher module, the fifth fully connected layer sends the action probability of the interfering object to the first loss function calculation module. The sixth fully connected layer performs value estimation on the temporal pose features of the interfering object received from the third long short-term memory unit to obtain the state value of the interfering object. When training the active visual tracking teacher module, the sixth fully connected layer sends the state value of the interfering object to the first loss function calculation module.

[0185] The reward function calculation module is connected to the data preprocessing module and the first loss function calculation module. During the training of the active visual tracking teacher module, the reward function calculation module calculates the rewards for the tracker, target, and interfering objects based on the preprocessed pose data received from the data preprocessing module, and then sends these rewards to the first loss function calculation module.

[0186] The first loss function calculation module is connected to the reward function calculation module, the meta-tracker network, the meta-target network, and the meta-interference object network. During the training of the active visual tracking teacher module, the first loss function calculation module receives rewards from the reward function calculation module for the tracker, target, and interference objects; it receives the tracker's action probability and state value from the meta-tracker network; it receives the target's action probability and state value from the meta-target network; and it receives the interference object's action probability and state value from the meta-interference object network. Based on the tracker's reward, action probability, and state value, it calculates the tracker's temporal difference error loss and policy gradient loss; based on the target's reward, action probability, and state value, it calculates the target's temporal difference error loss and policy gradient loss; and based on the interference object's reward, action probability, and state value, it calculates the interference object's temporal difference error loss and policy gradient loss. During the training of the active visual tracking teacher module, the active visual tracking teacher module optimizes the meta-tracker network, meta-target network, and meta-interference object network by minimizing the temporal difference error loss and policy gradient loss of the tracker, target, and interference objects obtained from the first loss function calculation module.

[0187] The active visual tracking student module is connected to the data preprocessing module and the active visual tracking teacher module, and consists of a visual tracker network and a second loss function calculation module. The visual tracker network consists of a convolutional backbone, multi-scale convolutional network branches, a scale attention module, an adaptive fusion module, a recurrent attention module, and an eighth fully connected layer.

[0188] The convolutional backbone is connected to the data preprocessing module, the multi-scale convolutional network branch, and the scale attention module. It extracts features from the preprocessed visual observation images received from the data preprocessing module to obtain visual observation image features, and sends the visual observation image features to the multi-scale convolutional network branch and the scale attention module.

[0189] The multi-scale convolutional network has four branches: a first-scale convolutional network branch, a second-scale convolutional network branch, a third-scale convolutional network branch, and a fourth-scale convolutional network branch. The first-scale convolutional network branch extracts features from the visually observed image to obtain first-scale visually observed image features, which are then sent to the adaptive fusion module. The second-scale convolutional network branch extracts features from the visually observed image to obtain second-scale visually observed image features, which are then sent to the adaptive fusion module. The third-scale convolutional network branch extracts features from the visually observed image to obtain third-scale visually observed image features, which are then sent to the adaptive fusion module. The fourth-scale convolutional network branch performs dimensionality reduction and feature extraction on the visually observed image features received from the convolutional backbone to obtain fourth-scale visually observed image features, which are then sent to the adaptive fusion module. The first-scale convolutional network branch… The first-scale convolutional network consists of a first ordinary convolutional layer with a kernel size of 1×1 and a first dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 3, resulting in a receptive field size of 7. The second-scale convolutional network branch consists of a second ordinary convolutional layer with a kernel size of 1×1 and a second dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 2, resulting in a receptive field size of 5. The third-scale convolutional network branch consists of a third ordinary convolutional layer with a kernel size of 1×1 and a third dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 1, resulting in a receptive field size of 3. The fourth-scale convolutional network branch consists of a fourth ordinary convolutional layer with a kernel size of 1×1, resulting in a receptive field size of 1. The first-scale visual observation image features, second-scale visual observation image features, third-scale visual observation image features, and fourth-scale visual observation image features constitute multi-scale visual observation image features. The multi-scale convolutional network branches can extract features from visual observation images at multiple scale ranges (corresponding to different receptive field sizes), thus enabling the extraction of features from targets with varying scales.

[0190] The scale attention module consists of convolutional long short-term memory units, a global average pooling layer, a seventh fully connected layer, and a sigmoid activation function layer. The convolutional long short-term memory units extract temporal features from the visual observation image features received from the convolutional backbone, and send the temporal features of the visual observation image to the global average pooling layer. The global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory units in the spatial dimension, and obtains a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, and sends the first feature vector to the seventh fully connected layer. The seventh fully connected layer compresses the first feature vector received from the global average pooling layer, and obtains a second feature vector with a length equal to the number of branches of the multi-scale convolutional network (4), and sends the second feature vector to the sigmoid activation function layer. The sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range of [0,1], obtains the weights of the multi-scale visual observation image features, and sends the weights of the multi-scale visual observation image features to the adaptive fusion module. The scale attention module can adaptively calculate the weights of multi-scale visual observation image features based on the scale of the target in the visual observation image. Visual observation image features at scales containing more target features are assigned larger weights, while visual observation image features at scales containing fewer target features are assigned smaller weights.

[0191] The adaptive fusion module is connected to the multi-scale convolutional network branch, the scale attention module, and the recurrent attention module. It consists of a weighted concatenation layer and a fifth ordinary convolutional layer with a 1×1 kernel. The weighted concatenation layer uses the weights of the multi-scale visual observation image features received from the scale attention module to weight and concatenate the first, second, third, and fourth scale visual observation image features received from the multi-scale convolutional network branch, resulting in weighted concatenated multi-scale visual observation image features. These weighted concatenated features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted concatenated multi-scale visual observation image features received from the weighted concatenation layer in the channel dimension, obtaining adaptively fused multi-scale visual observation image features. These adaptively fused multi-scale visual observation image features are then sent to the recurrent attention module. The adaptive fusion module uses the weights of the multi-scale visual observation image features to perform weighted fusion, thereby achieving adaptive feature extraction for targets with varying scales.

[0192] The recurrent attention module is connected to the adaptive fusion module and the eighth fully connected layer. It performs temporal feature extraction and weighting on the multi-scale visual observation image features received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer.

[0193] The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module to obtain the action probability of the tracker. When training the active visual tracking student module, the eighth fully connected layer sends the action probability of the tracker to the second loss function calculation module.

[0194] The second loss function calculation module is connected to the eighth fully connected layer and the meta-tracker network. During the training of the active visual tracking student module, this module calculates the KL divergence loss based on the action probabilities of the trackers received from the eighth fully connected layer and the action probabilities of the trackers received from the meta-tracker network of the active visual tracking teacher module. During training, the active visual tracking student module optimizes the visual tracker network by minimizing the KL divergence loss obtained from the second loss function calculation module.

[0195] The second step involves training the active visual tracking teacher module and the active visual tracking student module in the scale-adaptive active visual tracking system. The active visual tracking teacher module is trained using reinforcement learning, while the active visual tracking student module is trained using supervised learning.

[0196] 2.1 Reinforcement learning is used to train the active visual tracking teacher module. The method involves multi-scale, multi-stage training of the meta-tracker network, meta-target network, and meta-interference network during the interaction between the tracker, target, interference objects, and the environment. The reward functions for the target and interference objects differ in each stage, corresponding to different training scales. Specifically:

[0197] 2.1.1 The active teacher tracking module was trained in the first stage at a standard scale using reinforcement learning. The method was as follows:

[0198] 2.1.1.1 Set the number of training steps T = 2,000,000, and initialize the number of trained steps t = 1.

[0199] 2.1.1.2 Set the target location entropy reward coefficient a = 0.8, set the regularization factor α = 0.005, set the reward decay factor γ = 0.9, and set the number of environmental horizontal grid divisions n = 10.

[0200] 2.1.1.3 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward;

[0201] 2.1.1.4 The data acquisition module acquires the pose data at step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data at step t to the data preprocessing module. The pose data at step t includes the position coordinates of the tracker. and orientation angle Target's location coordinates and orientation angle Location coordinates of the interfering object and orientation angle

[0202] 2.1.1.5 The data preprocessing module uses the first preprocessing method to preprocess the pose data received from the data acquisition module at step t, obtaining the preprocessed pose data at step t. This preprocessed pose data is then sent to the active vision tracking teacher module. The first preprocessing method is as follows:

[0203] 2.1.1.5.1 Calculate the relative distance between the target's actual position and the tracker. relative angle relative orientation angle The relative distance between the actual position of the interfering object and the tracker relative angle relative orientation angle

[0204]

[0205]

[0206] 2.1.1.5.2 Set the relative distance ρ between the target's ideal position and the tracker * =250cm, relative angle θ * =0, relative orientation angle ω * =0 indicates that the ideal position of the target is 250cm directly in front of the tracker and facing the same direction as the tracker; sets the maximum distance ρ of the tracker's field of view. max =750cm and maximum angle θ max =90°.

[0207] 2.1.1.5.3 Calculate the normalized relative distance, normalized relative angle, and normalized relative orientation angle of the actual target position and the actual position of the interfering object:

[0208] 2.1.1.5.3.1 Calculate the normalized relative distance of the target's actual position. Normalized relative distance of the actual location of the interfering object

[0209] 2.1.1.5.3.2 Calculate the relative angle of the target's actual position. The sine value of sin And cosine value cos Obtain the relative angle of the target's actual position using a normalized representation;

[0210] 2.1.1.5.3.3 Calculate the relative orientation angle of the target's actual position. The sine value of sin And cosine value cos Obtain the relative orientation angle, a normalized representation of the target's actual position;

[0211] 2.1.1.5.3.4 Calculate the relative angle of the actual position of the interfering object. The sine value of sin And cosine value cos Obtain the relative angle of the normalized representation of the actual position of the interfering object;

[0212] 2.1.1.5.3.5 Calculate the relative orientation angle of the actual position of the interfering object. The sine value of sin And cosine value cos The relative orientation angle is obtained as a normalized representation of the actual position of the interfering object.

[0213] 2.1.1.5.4 Set the tracker's position coordinates Target's location coordinates Location coordinates of the interfering object Relative distance of the target's actual location relative angle relative orientation angle Relative distance of the actual location of the interfering object relative angle relative orientation angle Normalized relative distance of the target's actual location The normalized representation of the relative angle sin of the target's actual position cos The normalized representation of the relative orientation angle sin of the target's actual position cos Normalized relative distance of the actual location of the interfering object The normalized relative angle sin of the actual position of the interfering object cos The normalized relative orientation angle sin of the actual location of the interfering object cos The preprocessed pose data is composed of the data from step t.

[0214] 2.1.1.6 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward based on the preprocessed pose data at step t.

[0215]

[0216] 2.1.1.7 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids, I = n × n, and uses a frequency calculation method to calculate the set of target position coordinates over the past N steps based on the preprocessed pose data of the past t steps (the set of target position coordinates is...). The frequency of occurrence of p1,…,p in each grid cell i ,…,p I The method is:

[0217] 2.1.1.7.1 Initialize variable i = 1;

[0218] 2.1.1.7.2 Calculate the frequency p of the set of target position coordinates from the past N steps appearing in the i-th grid. i :

[0219]

[0220] Where N i N is the number of positions in the set of target position coordinates from the past N steps that fall within the i-th grid. i <N。

[0221] 2.1.1.7.3 Let i = i + 1. If i ≤ I, go to 3.1.1.7.2; if i > I, we get p1, ..., p i ,…,p I , see 2.1.1.8.

[0222] 2.1.1.8 The reward function calculation module in the active vision teacher module calculates the target's positional entropy reward loc_entropy:

[0223]

[0224] 2.1.1.9 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0225] 2.1.1.10 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0226]

[0227] 2.1.1.11 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0228] 2.1.1.12 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use prediction methods to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t The method is as follows:

[0229] 2.1.1.12.1 Let the normalized relative distance of the target's actual position in the preprocessed pose data at step t be... Normalized representation of relative angle sin cos Normalized representation of relative orientation angle sin cos Normalized relative distance of the actual location of the interfering object Normalized representation of relative angle sin cos Normalized representation of relative orientation angle sin cos The environmental state at step t is formed.

[0230] 2.1.1.12.2 The first bidirectional gated cyclic unit in the meta-tracker network for s tEncoding is performed to obtain the tracker's pose features, which are then sent to the first Long Short-Term Memory (LSTM) unit. The LSM unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit (BRN) to obtain the tracker's temporal pose features, which are then sent to the first fully connected layer and the second fully connected layer. The first fully connected layer performs action prediction on the temporal pose features received from the first LSM unit to obtain the tracker's action probability π. 1 (a t |s t The first fully connected layer sends the tracker's action probability to the meta-target network and the meta-interference network; the second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the tracker's state value V. 1 (s t ).

[0231] 2.1.1.12.3 The second bidirectional gated recurrent unit in the target network for s t Encoding is performed to obtain the target's pose features, and these features are then sent to the second long short-term memory unit. The second long short-term memory unit processes the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probability π received from the meta-tracker network. 1 (a t |s t Temporal feature extraction is performed to obtain the temporal pose features of the target. These features are then sent to the third and fourth fully connected layers. The third fully connected layer performs action prediction on the temporal pose features received from the second long short-term memory unit to obtain the target's action probability π. 2 (a t |s t The fourth fully connected layer performs value estimation on the temporal pose features of the target received from the second long short-term memory unit, obtaining the target's state value V. 2 (s t ).

[0232] 2.1.1.12.4 The third bidirectional gated cyclic unit in the interfering network for s t Encoding is performed to obtain the pose features of the interfering object, and these features are sent to the third long short-term memory unit. The third long short-term memory unit processes the pose features of the interfering object received from the third bidirectional gated recurrent unit and the action probability π of the tracker received from the meta-tracker network. 1 (a t |s tTemporal feature extraction is performed to obtain the temporal pose features of the interfering object. These features are then sent to the fifth and sixth fully connected layers. The fifth fully connected layer performs action prediction on the temporal pose features received from the third long short-term memory unit to obtain the action probability π of the interfering object. 3 (a t |s t The sixth fully connected layer performs value estimation on the temporal pose features of the interfering object received from the third long short-term memory unit, obtaining the state value V of the interfering object. 3 (s t ). Where a t To represent the random variable of the agent's actions, the value range is the agent's action range (the action range of the tracker, target, and interference object are all 7 actions: forward, backward, left, right, forward and left, forward and right, and stop), π k (a t |s t Let be a conditional probability, representing the probability in state s. t The probability distribution of 7 actions within the action range of the agent, k∈{1,2,3}, where 1 represents the tracker, 2 represents the target, and 3 represents the interfering object.

[0233] 2.1.1.13 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (at |s t ) is sent to the interference.

[0234] 2.1.1.14 If t = 1, go to 2.1.1.16; otherwise: the first loss function calculation module in the active visual tracking teacher module calculates the tracker's reward received from the reward function calculation module. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0235]

[0236] Where logπ k (a t |s t ) is π k (a t |s t The logarithm of π, H(π) k (·|s t )) is the entropy regularization term.

[0237] 2.1.1.15 The active visual tracking teacher module uses the Adam optimization algorithm (see the paper "Kingma DP, BaJ. Adam: A method for stochastic optimization[J]. arXiv preprint arXiv:1412.6980,2014", Kingma's paper: Adam, a stochastic optimization method) to minimize and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0238] 2.1.1.16 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0239] 2.1.1.17 Let t = t + 1. If t ≤ T, go to 2.1.1.18; if t > T, go to 2.1.1.19.

[0240] 2.1.1.18 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, go to 2.1.1.3, and continue training using the data of the next time step; otherwise: go directly to 2.1.1.3 and continue training using the data of the next time step.

[0241] 2.1.1.19 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.2.

[0242] 2.1.2 After the first stage of training at a standard scale, the meta-tracker network has the ability to track targets at a standard scale, but it still lacks the ability to track targets at small and large scales. Therefore, based on the first stage of training, reinforcement learning is used to further train the active visual tracking teacher module at a small scale in the second stage. The method is as follows:

[0243] 2.1.2.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the first stage of training in 2.1.1.19.

[0244] 2.1.2.2 Set the training steps T = 1,000,000 and initialize the number of trained steps t = 1;

[0245] 2.1.2.3 Set the target location entropy reward coefficient a = 0.8; set the regularization factor α = 0.005; set the reward decay factor γ = 0.9; set the number of environmental horizontal grid divisions n = 10; set the threshold distance ρ between the target and the tracker. s =500cm.

[0246] 2.1.2.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward.

[0247] 2.1.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0248] 2.1.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0249] 2.1.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.6.

[0250] 2.1.2.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I .

[0251] 2.1.2.9 The reward function calculation module in the active vision teacher module calculates the target's position entropy reward loc_entropy according to formula (9) in 2.1.1.8.

[0252] 2.1.2.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0253]

[0254] 2.1.2.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0255]

[0256] 2.1.2.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0257] 2.1.2.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ).

[0258] 2.1.2.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s tThe first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t ) is sent to the interference.

[0259] 2.1.2.15 If t = 1, proceed to 2.1.2.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.14. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0260] 2.1.2.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0261] 2.1.2.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability denoted by π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0262] 2.1.2.18 Let t = t + 1. If t ≤ T, go to 2.1.2.19; if t > T, go to 2.1.2.20.

[0263] 2.1.2.19 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.2.4 to continue training using the data of the next time step; otherwise: go directly to 2.1.2.4 to continue training using the data of the next time step.

[0264] 2.1.2.20 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.3.

[0265] 2.1.3 After the first stage of training at the normal scale and the second stage at the small scale, the meta tracker network has the ability to track targets at the normal scale and the small scale, but it still lacks the ability to track targets at the large scale. Therefore, based on the second stage of training, reinforcement learning is used to further train the active visual tracking teacher module at the third stage at the large scale.

[0266] 2.1.3.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the second stage of training in 2.1.2.20.

[0267] 2.1.3.2 Set the training steps T = 1,000,000, and initialize the number of trained steps t = 1;

[0268] 2.1.3.3 Set the target location entropy reward coefficient a = 0.8; set the regularization factor α = 0.005; set the reward decay factor γ = 0.9; set the number of environmental horizontal grid divisions n = 10; set the threshold distance ρ for the target approaching the tracker. l =150cm.

[0269] 2.1.3.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward.

[0270] 2.1.3.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0271] 2.1.3.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0272] 2.1.3.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.6.

[0273] 2.1.3.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I .

[0274] 2.1.3.9 The reward function calculation module in the active vision teacher module calculates the target's position entropy reward loc_entropy according to formula (9) in 2.1.1.8.

[0275] 2.1.3.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t.

[0276]

[0277] 2.1.3.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t.

[0278]

[0279] 2.1.3.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module.

[0280] 2.1.3.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t t) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ).

[0281] 2.1.3.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker. The meta-target network sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (at |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t ) is sent to the interference.

[0282] 2.1.3.15 If t = 1, proceed to 2.1.3.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.14. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object

[0283] 2.1.3.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network.

[0284] 2.1.3.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability denoted by π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0285] 2.1.3.18 Let t = t + 1. If t ≤ T, go to 2.1.3.19; if t > T, go to 2.1.4.

[0286] 2.1.3.19 If t%10000=0, save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.3.4 to continue training using the data of the next time step; otherwise, go directly to 2.1.3.4 to continue training using the data of the next time step.

[0287] 2.1.4 The active visual tracking teacher module saves the parameters of the meta tracker network, see section 2.2.

[0288] 2.2 During the interaction between the tracker and the target, interference objects, and the environment, reinforcement learning is used to further fine-tune the meta-tracker network, optimizing only the parameters of the meta-tracker network. The method is as follows:

[0289] 2.2.1 Load the parameters of the meta-tracker network saved in step 2.1.4 in the active visual tracking teacher module.

[0290] 2.2.2 Set the number of training steps T = 1,000,000, and initialize the number of trained steps t = 1.

[0291] 2.2.3 Randomly select parameters of the meta-target network from the opponent's model pool and load them into the meta-target network; randomly select parameters of the meta-interference network from the opponent's model pool and load them into the meta-interference network.

[0292] 2.2.4 Parameters of fixed target network and interfering network.

[0293] 2.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module.

[0294] 2.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0295] 2.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to formula (7) in 2.1.1.6 based on the preprocessed pose data at step t.

[0296] 2.2.8 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Send it to the first loss function calculation module in the active visual tracking teacher module.

[0297] 2.2.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ).

[0298] 2.2.10 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s tThe first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target network sends the target's action probability π to the tracker. 2 (a t |s t The signal is sent to the target. The meta-interference network transmits the action probability π of the interference object. 3 (a t |s t ) is sent to the interference.

[0299] 2.2.11 If t = 1, proceed to 2.2.13; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in step 2.1.1.14. and the tracker state value V received from the meta-tracker network 1 (s t ), the tracker's action probability π 1 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss

[0300] 2.2.12 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta tracker network.

[0301] 2.2.13 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0302] 2.2.14 Let t = t + 1. If t ≤ t, go to 2.2.15; if t > T, go to 2.2.16.

[0303] 2.2.15 If t%5000 = 0, proceed to 2.2.3 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.2.5 to continue training using the data from the next time step.

[0304] 2.2.16 The active visual tracking teacher module saves the parameters of the meta-tracking network, see section 2.3.

[0305] 2.3 The active visual tracking student module is trained using supervised learning. The method is as follows:

[0306] 2.3.1 Load the parameters of the meta-tracker network saved in step 2.2.16 in the active visual tracking teacher module.

[0307] 2.3.2 Parameters of the fixed element tracker network.

[0308] 2.3.3 Set the number of training steps T = 2,000,000, and initialize the number of trained steps t = 1.

[0309] 2.3.4 Randomly select parameters of the target network from the opponent's model pool and load them into the target network; randomly select parameters of the interfering network from the opponent's model pool and load them into the interfering network.

[0310] 2.3.5 Parameters of fixed target network and interfering network.

[0311] 2.3.6 The data acquisition module acquires the visual observation image at step t from the tracker's camera. t The pose data at step t is obtained from the pose sensors of the tracker, target, and interference objects, and the visual observation image and pose data at step t are sent to the data preprocessing module.

[0312] 2.3.7 The data preprocessing module uses the first preprocessing method in step 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t, to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module.

[0313] 2.3.8 The data preprocessing module employs a second preprocessing method to process the visual observation image o received from the data acquisition module at step t. t Preprocessing is performed to obtain the preprocessed visual observation image o at step t. t ′, the preprocessed visual observation image o′ of step t. t Send to the active visual tracking student module. The second preprocessing method is:

[0314] 2.3.8.1 will o tThe width is scaled to 320 pixels and the height to 240 pixels to obtain a scaled visual observation image.

[0315] 2.3.8.2 Normalize the pixel values ​​of the scaled visual observation image to the [0,1] interval to obtain the normalized visual observation image at step t.

[0316] 2.3.8.3 Randomly flip the normalized visual observation image from step t horizontally to obtain the preprocessed visual observation image o′ from step t. t .

[0317] 2.3.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and action probability π 3 (a t |s t The meta-tracker network assigns the tracker's action probability π to... 1 (a t |s t The data is sent to the second loss function calculation module in the active visual tracking student module. The meta-target network calculates the target's action probability π. 2 (a t |s t The network sends the probability of the interfering object's action π to the target. 3 (a t |s t ) is sent to the interference.

[0318] 2.3.10 The visual tracker network in the active visual tracking student module uses an action prediction method to process the preprocessed visual observation image o′ t Perform action prediction to obtain the tracker's action probability π. 1* (a t |o′ t The method is as follows:

[0319] 2.3.10.1 The convolutional backbone in the visual tracker network for the preprocessed visual observation image o′ t Feature extraction is performed to obtain visual observation image features, which are then sent to the multi-scale convolutional network branches and the scale attention module.

[0320] 2.3.10.2 The first-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain first-scale visual observation image features. Specifically, the first ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced first-scale visual observation image features, which are then sent to the first dilated convolutional layer. The first dilated convolutional layer extracts features from the dimensionality-reduced first-scale visual observation image features received from the first ordinary convolutional layer to obtain first-scale visual observation image features, which are then sent to the adaptive fusion module. The second-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain second-scale visual observation image features. Specifically, the second ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced second-scale visual observation image features, which are then sent to the second dilated convolutional layer. The second dilated convolutional layer extracts features from the dimensionality-reduced first-scale visual observation image features received from the second ordinary convolutional layer in the channel dimension to obtain second-scale visual observation image features. The second-scale visual observation image features are extracted from the second-scale visual observation image features and sent to the adaptive fusion module. The third-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visual observation image features to obtain third-scale visual observation image features. The third ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced third-scale visual observation image features, which are then sent to the third dilated convolutional layer. The third dilated convolutional layer extracts features from the dimensionality-reduced third-scale visual observation image features received from the third ordinary convolutional layer to obtain third-scale visual observation image features, which are then sent to the adaptive fusion module. Finally, the fourth ordinary convolutional layer in the fourth-scale convolutional network branch in the multi-scale convolutional network branch reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension and extracts features to obtain fourth-scale visual observation image features, which are then sent to the adaptive fusion module.

[0321] In the 2.3.10.3 scale attention module, the convolutional long short-term memory unit extracts temporal features from the visual observation image features received from the convolutional backbone network, obtaining the temporal features of the visual observation image, and sends the temporal features of the visual observation image to the global average pooling layer; the global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory unit in the spatial dimension, obtaining a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, and sends the first feature vector to the seventh fully connected layer; the seventh fully connected layer compresses the first feature vector received from the global average pooling layer, obtaining a second feature vector with a length equal to the number of branches of the multi-scale convolutional network (4), and sends the second feature vector to the sigmoid activation function layer; the sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range of [0,1], obtains the weights of the multi-scale visual observation image features, and sends the weights of the multi-scale visual observation image features to the adaptive fusion module.

[0322] 2.3.10.4 The weighted stitching layer in the adaptive fusion module uses the weights of the multi-scale visual observation image features received from the scale attention module to perform weighted stitching on the first-scale visual observation image features, second-scale visual observation image features, third-scale visual observation image features, and fourth-scale visual observation image features received from the multi-scale convolutional network branch, to obtain weighted stitched multi-scale visual observation image features. The weighted stitched multi-scale visual observation image features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted stitched multi-scale visual observation image features received from the weighted stitching layer in the channel dimension to obtain adaptively fused multi-scale visual observation image features. The adaptively fused multi-scale visual observation image features are then sent to the recurrent attention module.

[0323] 2.3.10.5 The recurrent attention module extracts and weights the temporal features of the multi-scale visual observation image received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer.

[0324] 2.3.10.6 The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module, obtaining the tracker's action probability π. 1* (a t |o′ t ).

[0325] 2.3.11 In the active visual tracking student module, the eighth fully connected layer in the visual tracker network will transmit the tracker's action probability π. 1* (a t |o′ tIt is sent to the second loss function calculation module and the tracker.

[0326] 2.3.12 The second loss function calculation module in the active visual tracking student module calculates the loss function based on the tracker's action probability π received from the visual tracker network. 1* (a t |o′ t The tracker's action probability π received from the meta-tracker network in the active visual tracking teacher module. 1 (a t |s t Calculate the KL divergence loss D KL (π 1* (a t t|o′ t )|π 1 (a t |s t )):

[0327]

[0328] 2.3.13 The active visual tracking student module uses the Adam optimization algorithm to minimize D. KL (π 1* (a t |o′ t )|π 1 (a t |s t This is used to update the parameters of the visual tracker network.

[0329] 2.3.14 The tracker is based on the tracker's action probability π 1* (a t |o′ t The conditional probability π represents the action selected from seven actions within the action range, and the action is taken to interact with the environment. Simultaneously, the target interacts with the environment based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π is used to select an action from seven actions within the action range and to interact with the environment. Simultaneously, the interfering object selects an action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment.

[0330] 2.3.15 Let t = t + 1. If t ≤ T, go to 2.3.16; if t > T, go to 2.3.17.

[0331] 2.3.16 If t%5000 = 0, proceed to 2.3.4 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.3.6 to continue training using the data from the next time step.

[0332] 2.3.17 Save the parameters of the visual tracker network and proceed to step 3.

[0333] The third step involves loading the parameters of the visual tracker network saved in step 2.3.17 into the active visual tracking student module of the scale-adaptive active visual tracking system, thus obtaining the trained scale-adaptive active visual tracking system.

[0334] The fourth step involves the trained scale-adaptive active visual tracking system tracking the target. The method is as follows:

[0335] 4.1 The data acquisition module acquires real-time visual observation images o from the tracker's camera and sends o to the data preprocessing module.

[0336] 4.2 The data preprocessing module receives the real-time visual observation image o, and uses the second preprocessing method described in step 2.3.8 to preprocess the real-time visual observation image o to obtain the preprocessed real-time visual observation image o′, and sends o′ to the active visual tracking student module.

[0337] 4.3 The active visual tracking student module receives the preprocessed real-time visual observation image o′. The visual tracker network uses the action prediction method described in step 2.3.10 to predict the action of the preprocessed real-time visual observation image o′, obtaining the tracker's action probability π. 1* (a′|o′). a′ is a random variable representing the agent's action, and its value range is the range of the agent's actions.

[0338] 4.4 Visual tracker networks use the tracker's action probability π 1* (a′|o′) is sent to the tracker.

[0339] 4.5 The tracker is based on the tracker's action probability π 1* (a′|o′) represents the conditional probability of selecting an action from 7 actions within the action range and taking that action to track the target.

[0340] To verify the effectiveness of the above embodiments, the following experiment was conducted:

[0341] The scale-adaptive active visual tracking system constructed in the first step of this invention was trained and tested using three Unreal Engine-based simulation environments: Flexible Room, Urban City, and Parking Lot. Flexible Room is a simple room environment used for training and testing. The speeds of the opponents (target and distractors) were adjusted at different training phases to generate states at different scales. Urban City and Parking Lot are two highly realistic environments used to test the tracker's generalization ability in unfamiliar environments; Urban City is a city street environment, and Parking Lot is an underground parking lot environment. During the testing phase, a rule-based navigator was used to control the target and distractors, guiding them to move along the shortest route to a randomly selected destination. The maximum speed of the opponents (target and distractors) was set to 1.2 times the maximum speed of the tracker, thus creating scale variations.

[0342] Evaluation metrics for active visual tracking are important standards used to measure the tracking performance of a tracker. Following the evaluation metrics used in existing deep reinforcement learning-based active visual tracking methods (see Luo W, Sun P, Zhong F, et al. End-to-endactive object tracking via reinforcement learning[C]. International conference on machine learning.2018:3286–3295., Zhong F, Sun P, Luo W, et al. AD-VAT: Anasymmetric dueling mechanism for learning visual active tracking[C]. International Conference on Learning Representations.2018., Zhong F, Sun P, Luo W, et al. Towards distraction-robust active visual tracking[C]. International Conference on Machine Learning.2021:12782–12792.), these metrics include Accumulated Reward (AR), Episode Length (EL), and Success Rate (SR). One scene represents one tracking process, with a maximum step length of 500 steps. The maximum reward the tracker can obtain in each step is 1, therefore the maximum values ​​of the cumulative reward AR and scene length EL are both 500. A scene ends when the target is lost from the tracker's field of view for more than 5 seconds or when the maximum scene length is reached. The tracking success rate is the proportion of scenes that reach the maximum scene length (500 steps) out of 100 tracking scenes. The cumulative reward is related to the reward obtained by the tracker in each step and the tracking duration (scene length), and is used to evaluate overall performance; it is the main evaluation indicator. The scene length reflects the tracker's long-term tracking capability. The tracking success rate is used to evaluate the tracker's robustness. All three indicators are better the higher they are. The reward calculation method for the tracker in this invention is the same as the comparison method; therefore, the cumulative reward AR can reflect the tracking performance of the scale-adaptive active visual tracking method proposed in this invention compared to existing methods.

[0343] The experiment used Flexible Room as the training environment and tested the tracker's tracking performance in three environments: Flexible Room, Urban City, and ParkingLot. The environment was named Nav-x based on the number of interfering objects (x) in each environment. The degree of scale interference was controlled by adjusting the number of interfering objects, and the tracker's robustness to interference and scale changes was analyzed. To verify the effectiveness of the scale-adaptive active visual tracking method proposed in this invention, a comparative experiment was conducted with the two-stage method described in the background art and the end-to-end method based on deep reinforcement learning. The two-stage method employs a passive visual tracking algorithm and a controller. The passive visual tracking algorithms used in the two-stage method in this comparative experiment include DaSiamRPN (see Zhu Z, Wang Q, Li B, et al. Distractor-aware siamese networks for visual object tracking[C]. Proceedings of the European conference on computer vision (ECCV). 2018:101-117.), ATOM (see Danelljan M, Bhat G, Khan FS, et al. Atom: Accurate tracking by overlap maximization[C]. Proceedings of the IEEE / CVF conference on computer vision and pattern recognition. 2019:4660-4669.), and DiMP (see Bhat G, Danelljan M, Gool LV, et al. Learning discriminative model prediction for Tracking [C]. Proceedings of the IEEE / CVF international conference on computer vision. 2019:6182-6191.), the controller used is a PID controller.The end-to-end methods compared in this experiment include SARL (see Luo W, Sun P, Zhong F, et al. End-to-end active object tracking via reinforcement learning[C]. International conference on machine learning. 2018: 3286-3295.), SARL+ (see LUO W, SUN P, ZHONG F, et al. End-to-end active object tracking and its real-world deployment via reinforcement learning[J]. IEEE transactions on pattern analysis and machine intelligence, 2019, 42(6): 1317-1332.), AD-VAT (see Zhong F, Sun P, Luo W, et al. AD-VAT: An asymmetric dueling mechanism for learning visual active tracking[C]. International Conference on Learning Representations. 2018.), and AD-VAT+ (see Zhong F, Sun P, Luo W, et al. Advat+: An asymmetric dueling mechanism for learning and understanding visual active tracking[J]. IEEE transactions onpattern analysis and machine intelligence.2019,43(5):1467-1482.), TDR-AVT (see the literature Zhong F, Sun P, Luo W, et al.Towards distraction-robust active visual tracking[C].International Conference on Machine Learning.2021:12782-12792.).

[0344] To verify the robustness of this invention to interference and scale changes, tests were first conducted in Flexible Room environments containing 1, 2, 3, and 4 interfering objects, respectively. The experimental results are shown in Table 1. The maximum speed of the target and interfering objects is 1.2 times that of the tracker, thus scale changes occur randomly. As shown in Table 1, after training in the Flexible Room environment, the scale-adaptive active visual tracking system constructed in the first step of this invention significantly outperforms all comparative methods in three metrics: cumulative reward (AR), screen length (EL), and tracking success rate (SR). This fully demonstrates that this system, using convolutional network branches with multiple receptive field sizes, can extract features from objects of multiple different scales. Furthermore, based on the scale attention mechanism, it can adaptively and selectively extract target features. Therefore, it not only effectively combats interference but also adaptively pays attention to target scale changes, thereby significantly improving the tracker's tracking performance.

[0345] To verify the generalization ability of this invention in real-world environments, experiments were conducted in two highly realistic environments: Urban City and Parking Lot. The experimental results are shown in Table 2. Table 2 shows that the scale-adaptive active visual tracking system of this invention can still achieve a high cumulative reward in highly realistic environments, indicating that the system can maintain accurate tracking in complex environments. This invention consistently maintains a high tracking duration, exhibits good long-term tracking capability, and has a high tracking success rate, demonstrating good generalization ability in unknown environments.

[0346] Table 1. Test results for different numbers of interfering objects (x = 1, 2, 3, or 4) in the Flexible Room environment.

[0347]

[0348]

[0349] Table 2. Test results in a highly realistic simulation environment (number of interfering objects x = 2 or 4)

[0350]

[0351] The above embodiments demonstrate the effectiveness of the scale-adaptive active visual tracking method of the present invention in improving the tracking performance of active trackers compared to the two-stage method and the end-to-end method based on deep reinforcement learning described in the background art.

[0352] Finally, it should be noted that the above content is only for illustrating the technical solution of the present invention and does not constitute a limitation. Those skilled in the art should understand that modifications or equivalent substitutions can be made to the specific embodiments without departing from the spirit and scope of the present invention, and all such modifications or substitutions should be included within the scope of protection of the claims of the present invention.

Claims

1. A scale-adaptive active visual tracking method, characterized in that... Includes the following steps: The first step is to construct a scale-adaptive active visual tracking system; The scale-adaptive active visual tracking system consists of a data acquisition module, a data preprocessing module, an active visual tracking teacher module, and an active visual tracking student module. The data acquisition module is connected to the tracker's camera, the pose sensors of all intelligent agents (tracker, target, and interfering objects), and the data preprocessing module. It acquires two-dimensional visual observation images from the tracker's camera and pose data of the tracker, target, and interfering objects from their pose sensors. During training, the data acquisition module sends the visual observation images acquired from the tracker's camera and the pose data acquired from the pose sensors of the tracker, target, and interfering objects to the data preprocessing module. When tracking a target, the data acquisition module only sends the visual observation images acquired from the tracker's camera to the data preprocessing module; The data preprocessing module is connected to the data acquisition module, the active visual tracking teacher module, and the active visual tracking student module. It receives visual observation images and pose data from the data acquisition module, preprocesses the visual observation images and pose data to obtain preprocessed visual observation images and preprocessed pose data. During training, the data preprocessing module sends the preprocessed pose data to the active visual tracking teacher module and the preprocessed visual observation images to the active visual tracking student module. When tracking the target, the data preprocessing module only sends the preprocessed visual observation images to the active visual tracking student module. The active visual tracking teacher module assists the active visual tracking student module, and only works during training; it does not participate in the tracking of the target. The active visual tracking teacher module is connected to the data preprocessing module and the active visual tracking student module. It consists of a meta-tracker network, a meta-target network, a meta-interference network, a reward function calculation module, and a first loss function calculation module. The meta-tracker network consists of a first bidirectional gated recurrent unit, a first long short-term memory unit, a first fully connected layer, and a second fully connected layer. The first bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the tracker's pose features, and sends the tracker's pose features to the first long short-term memory unit. The first long short-term memory unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit to obtain the tracker's temporal pose features, and sends the tracker's temporal pose features to the first fully connected layer. The first fully connected layer performs action prediction on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the action probability of the tracker. When training the active visual tracking teacher module, the first fully connected layer sends the action probability of the tracker to the meta-target network, the meta-interference network, and the first loss function calculation module. When training the active visual tracking student module, the first fully connected layer sends the action probability of the tracker to the meta-target network, the meta-interference network, and the active visual tracking student module. The second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit to obtain the state value of the tracker. When training the active visual tracking teacher module, the second fully connected layer sends the state value of the tracker to the first loss function calculation module. The meta-target network consists of a second bidirectional gated recurrent unit, a second long short-term memory unit, a third fully connected layer, and a fourth fully connected layer. The second bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the target's pose features, and sends these features to the second long short-term memory unit. The second long short-term memory unit extracts temporal features from the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probabilities received from the meta-tracker network to obtain the target's temporal pose features, and sends these features to the third and fourth fully connected layers. The third fully connected layer predicts the action probabilities of the target based on the temporal pose features received from the second long short-term memory unit. When training the active visual tracking teacher module, the third fully connected layer sends the target's action probabilities to the first loss function calculation module. The fourth fully connected layer estimates the value of the target's temporal pose features received from the second long short-term memory unit to obtain the target's state value. When training the active visual tracking teacher module, the fourth fully connected layer sends the target's state value to the first loss function calculation module. The meta-interference network consists of a third bidirectional gated recurrent unit, a third long short-term memory unit, a fifth fully connected layer, and a sixth fully connected layer. The third bidirectional gated recurrent unit encodes the preprocessed pose data received from the data preprocessing module to obtain the pose features of the interference, and sends the pose features of the interference to the third long short-term memory unit. The third long short-term memory unit performs temporal feature extraction on the pose features of the interference received from the third bidirectional gated recurrent unit and the action probabilities of the tracker received from the meta-tracker network to obtain the temporal pose features of the interference, and sends the temporal pose features of the interference to the fifth and sixth fully connected layers. The fifth fully connected layer performs action prediction on the temporal pose features of the interference received from the third long short-term memory unit to obtain the action probabilities of the interference. When training the active visual tracking teacher module, the fifth fully connected layer sends the action probabilities of the interference to the first loss function calculation module. The sixth fully connected layer performs value estimation on the temporal pose features of the interference received from the third long short-term memory unit to obtain the state value of the interference. When training the active visual tracking teacher module, the sixth fully connected layer sends the state value of the interference to the first loss function calculation module. The reward function calculation module is connected to the data preprocessing module and the first loss function calculation module. When training the active visual tracking teacher module, the reward function calculation module calculates the rewards for the tracker, target, and interference based on the preprocessed pose data received from the data preprocessing module, and sends the rewards for the tracker, target, and interference to the first loss function calculation module. The first loss function calculation module is connected to the reward function calculation module, the meta-tracker network, the meta-target network, and the meta-interference object network. During the training of the active visual tracking teacher module, the first loss function calculation module receives rewards from the reward function calculation module for the tracker, target, and interference objects; it receives the tracker's action probability and state value from the meta-tracker network; it receives the target's action probability and state value from the meta-target network; and it receives the interference object's action probability and state value from the meta-interference object network. Based on the tracker's reward, action probability, and state value, it calculates the tracker's temporal difference error loss and policy gradient loss; based on the target's reward, action probability, and state value, it calculates the target's temporal difference error loss and policy gradient loss; and based on the interference object's reward, action probability, and state value, it calculates the interference object's temporal difference error loss and policy gradient loss. During the training of the active visual tracking teacher module, the active visual tracking teacher module optimizes the meta-tracker network, meta-target network, and meta-interference object network by minimizing the temporal difference error loss and policy gradient loss of the tracker, target, and interference objects obtained from the first loss function calculation module. The active visual tracking student module is connected to the data preprocessing module and the active visual tracking teacher module, and consists of a visual tracker network and a second loss function calculation module. The visual tracker network consists of a convolutional backbone, multi-scale convolutional network branches, a scale attention module, an adaptive fusion module, a recurrent attention module, and an eighth fully connected layer. The convolutional backbone is connected to the data preprocessing module, the multi-scale convolutional network branch, and the scale attention module. It extracts features from the preprocessed visual observation images received from the data preprocessing module to obtain visual observation image features, and sends the visual observation image features to the multi-scale convolutional network branch and the scale attention module. The multi-scale convolutional network has four branches: a first-scale convolutional network branch, a second-scale convolutional network branch, a third-scale convolutional network branch, and a fourth-scale convolutional network branch. The first-scale convolutional network branch extracts features from the visually observed image to obtain first-scale visually observed image features, which are then sent to the adaptive fusion module. The second-scale convolutional network branch extracts features from the visually observed image to obtain second-scale visually observed image features, which are then sent to the adaptive fusion module. The third-scale convolutional network branch extracts features from the visually observed image to obtain third-scale visually observed image features, which are then sent to the adaptive fusion module. The fourth-scale convolutional network branch performs dimensionality reduction and feature extraction on the visually observed image features received from the convolutional backbone to obtain fourth-scale visually observed image features, which are then sent to the adaptive fusion module. The scale attention module consists of convolutional long short-term memory units, a global average pooling layer, a seventh fully connected layer, and a sigmoid activation function layer. The convolutional long short-term memory units extract temporal features from the visual observation image features received from the convolutional backbone, obtaining temporal features of the visual observation image, which are then sent to the global average pooling layer. The global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory units in the spatial dimension, obtaining a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, which is then sent to the seventh fully connected layer. The seventh fully connected layer compresses the first feature vector received from the global average pooling layer, obtaining a second feature vector with a length equal to the number of branches of the multi-scale convolutional network, which is then sent to the sigmoid activation function layer. The sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range [0,1], obtaining the weights of the multi-scale visual observation image features, which are then sent to the adaptive fusion module. The adaptive fusion module is connected to the multi-scale convolutional network branch, the scale attention module, and the recurrent attention module. It consists of a weighted concatenation layer and a fifth ordinary convolutional layer. The weighted concatenation layer uses the weights of the multi-scale visual observation image features received from the scale attention module to perform weighted concatenation on the first-scale, second-scale, third-scale, and fourth-scale visual observation image features received from the multi-scale convolutional network branch, resulting in weighted concatenated multi-scale visual observation image features. These weighted concatenated multi-scale visual observation image features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted concatenated multi-scale visual observation image features received from the weighted concatenation layer in the channel dimension, resulting in adaptively fused multi-scale visual observation image features. These adaptively fused multi-scale visual observation image features are then sent to the recurrent attention module. The recurrent attention module is connected to the adaptive fusion module and the eighth fully connected layer. It performs temporal feature extraction and weighting on the multi-scale visual observation image features received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer. The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module to obtain the action probability of the tracker. When training the active visual tracking student module, the eighth fully connected layer sends the action probability of the tracker to the second loss function calculation module. The second loss function calculation module is connected to the eighth fully connected layer and the meta-tracker network. When training the active visual tracking student module, the second loss function calculation module calculates the KL divergence loss based on the action probabilities of the trackers received from the eighth fully connected layer and the action probabilities of the trackers received from the meta-tracker network of the active visual tracking teacher module. When training the active visual tracking student module, the active visual tracking student module optimizes the visual tracker network by minimizing the KL divergence loss obtained by the second loss function calculation module. The second step involves training the active visual tracking teacher module and the active visual tracking student module in the scale-adaptive active visual tracking system. The active visual tracking teacher module is trained using reinforcement learning, while the active visual tracking student module is trained using supervised learning. The specific method is as follows: 2.1 Reinforcement learning is used to train the active visual tracking teacher module. The method involves multi-scale, multi-stage training of the meta-tracker network, meta-target network, and meta-interference network during the interaction between the tracker, target, interference objects, and the environment. The reward functions for the target and interference objects differ in each stage, corresponding to different training scales. Specifically: 2.1.1 The active teacher tracking module was trained in the first stage at a standard scale using reinforcement learning. The method was as follows: 2.1.1.1 Set the number of training steps T to a positive integer greater than 100,000, and initialize the number of trained steps t = 1; 2.1.1.2 Set the target location entropy reward coefficient 'a' to a constant greater than 0.5; set the regularization factor 'α' to a constant less than 1; set the reward decay factor 'γ' to a constant greater than 0.5; set the number of environmental horizontal grid divisions 'n' to a positive integer; 2.1.1.3 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward; 2.1.1.4 The data acquisition module acquires the pose data at step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data at step t to the data preprocessing module; the pose data at step t includes the position coordinates of the tracker. and orientation angle Target's location coordinates and orientation angle Location coordinates of the interfering object and orientation angle 2.1.1.5 The data preprocessing module uses the first preprocessing method to preprocess the pose data received from the data acquisition module at step t, obtaining the preprocessed pose data at step t, and then sends the preprocessed pose data at step t to the active visual tracking teacher module; the first preprocessing method is as follows: 2.1.1.5.1 Calculate the relative distance between the target's actual position and the tracker. relative angle relative orientation angle The relative distance between the actual position of the interfering object and the tracker relative angle relative orientation angle 2.1.1.5.2 Set the relative distance ρ between the target's ideal position and the tracker * Relative angle θ * =0, relative orientation angle ω * =0 indicates that the ideal position of the target is located at a distance ρ directly in front of the tracker. * The location and orientation are the same as the tracker; set the maximum distance ρ of the tracker's field of view. max and maximum angle θ max ; 2.1.1.5.3 Calculate the normalized relative distance of the target's actual position. Normalized relative distance of the actual location of the interfering object The normalized relative angle of the target's actual position The normalized relative orientation angle of the target's actual position Normalized relative angle of the actual location of the interfering object The normalized relative orientation angle of the actual location of the interfering object 2.1.1.5.4 Set the tracker's position coordinates Target's location coordinates Location coordinates of the interfering object Relative distance of the target's actual location relative angle relative orientation angle Relative distance of the actual location of the interfering object relative angle relative orientation angle Normalized relative distance of the target's actual location The normalized relative angle of the target's actual position The normalized relative orientation angle of the target's actual position Normalized relative distance of the actual location of the interfering object Normalized relative angle of the actual location of the interfering object The normalized relative orientation angle of the actual location of the interfering object The preprocessed pose data is composed of the data from step t. 2.1.1.6 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward based on the preprocessed pose data at step t. 2.1.1.7 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids, I = n × n, and uses a frequency calculation method to calculate the set of target position coordinates over the past N steps based on the preprocessed pose data of the past t steps. The frequency of occurrence in each grid is p1,…,p i ,…,p I ; 2.1.1.8 The reward function calculation module in the active vision teacher module calculates the target's positional entropy reward loc_entropy: 2.1.1.9 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t. 2.1.1.10 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t. 2.1.1.11 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module; 2.1.1.12 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use prediction methods to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t The method is as follows: 2.1.1.12.1 Let the normalized relative distance of the target's actual position in the preprocessed pose data at step t be... Normalized representation of relative angles Normalized representation of relative orientation angle Normalized relative distance of the actual location of the interfering object Normalized representation of relative angles Normalized representation of relative orientation angle The environmental state at step t is formed. 2.1.1.12.2 The first bidirectional gated cyclic unit in the meta-tracker network for s t Encoding is performed to obtain the tracker's pose features, which are then sent to the first Long Short-Term Memory (LSTM) unit. The LSM unit extracts temporal features from the tracker's pose features received from the first bidirectional gated recurrent unit (BRN) to obtain the tracker's temporal pose features, which are then sent to the first fully connected layer and the second fully connected layer. The first fully connected layer performs action prediction on the temporal pose features received from the first LSM unit to obtain the tracker's action probability π. 1 (a t |s t The first fully connected layer sends the tracker's action probability to the meta-target network and the meta-interference network; The second fully connected layer performs value estimation on the temporal pose features of the tracker received from the first long short-term memory unit, obtaining the tracker's state value V. 1 (s t ); 2.1.1.12.3 The second bidirectional gated recurrent unit in the target network for s t Encoding is performed to obtain the target's pose features, and these features are then sent to the second long short-term memory unit. The second long short-term memory unit processes the target's pose features received from the second bidirectional gated recurrent unit and the tracker's action probability π received from the meta-tracker network. 1 (a t |s t Temporal feature extraction is performed to obtain the temporal pose features of the target. These features are then sent to the third and fourth fully connected layers. The third fully connected layer performs action prediction on the temporal pose features received from the second long short-term memory unit to obtain the target's action probability π. 2 (a t |s t The fourth fully connected layer performs value estimation on the temporal pose features of the target received from the second long short-term memory unit, obtaining the target's state value V. 2 (s t ); 2.1.1.12.4 The third bidirectional gated cyclic unit in the interfering network for s t Encoding is performed to obtain the pose features of the interfering object, and these features are sent to the third long short-term memory unit. The third long short-term memory unit processes the pose features of the interfering object received from the third bidirectional gated recurrent unit and the action probability π of the tracker received from the meta-tracker network. 1 (a t |s t Temporal feature extraction is performed to obtain the temporal pose features of the interfering object. These features are then sent to the fifth and sixth fully connected layers. The fifth fully connected layer performs action prediction on the temporal pose features received from the third long short-term memory unit to obtain the action probability π of the interfering object. 3 (a t |s t The sixth fully connected layer performs value estimation on the temporal pose features of the interfering object received from the third long short-term memory unit, obtaining the state value V of the interfering object. 3 (s t ); where a t Let π be a random variable representing the agent's actions, with a range of values ​​equal to the agent's action range. k (a t |s t Let be a conditional probability, representing the probability in state s. t The probability distribution of actions within the action range of the agent, k∈{1,2,3}, where 1 represents the tracker, 2 represents the target, and 3 represents the interfering object; 2.1.1.13 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker; the meta-target network then sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target; the meta-interference network sends the state value V of the interfering object. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t Send to the interference; 2.1.1.14 If t = 1, go to 2.1.1.16; Otherwise: The first loss function calculation module in the active visual tracking teacher module calculates the tracker's reward r received from the reward function calculation module. t 1 The reward of the goal r t 2 Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object Where logπ k (a t |s t ) is π k (a t |s t The logarithm of π, H(π) k (·|s t )) is the entropy regularization term. 2.1.1.15 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network; 2.1.1.16 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from 7 actions within the action range, and the action is taken to interact with the environment; simultaneously, the target selects an action based on the target's action probability π. 2 (a t |s t The conditional probability π represents the action selected from the action range, and the action is taken to interact with the environment; simultaneously, the interfering object selects an action based on the interfering object's action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment; 2.1.1.17 Let t = t + 1; if t ≤ T, go to 2.1.1.18; if t > T, go to 2.1.1.19; 2.1.1.18 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, go to 2.1.1.3, and continue training using the data from the next time step; Otherwise: Proceed directly to 2.1.1.3 and continue training using the data from the next time step; 2.1.1.19 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.2; 2.1.2 Based on the first stage of training, reinforcement learning was used to further train the active visual tracking teacher module in a second stage on a small scale. The method was as follows: 2.1.2.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the first stage of training in 2.1.1.19; 2.1.2.2 Set the number of training steps T to a positive integer greater than 100,000, and initialize the number of trained steps t = 1; 2.1.2.3 Set the target location entropy reward coefficient 'a' to a constant greater than 0.5; set the regularization factor 'α' to a constant less than 1; set the reward decay factor 'γ' to a constant greater than 0.5; set the number of environmental horizontal grid divisions 'n' to a positive integer; and set the threshold distance 'ρ' between the target and the tracker. s 100-1000cm; 2.1.2.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward; 2.1.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module; 2.1.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module. 2.1.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.

6. 2.1.2.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I ; 2.1.2.9 The reward function calculation module in the active vision teacher module calculates the target's positional entropy reward loc_entropy according to formula (9) in 2.1.1.8; 2.1.2.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t. 2.1.2.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t. 2.1.2.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module; 2.1.2.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ); 2.1.2.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker; the meta-target network then sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target; the meta-interference network sends the state value V of the interfering object. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t Send to the interference; 2.1.2.15 If t = 1, proceed to 2.1.2.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.

14. Rewards for the goal The reward r of the interfering object t 3 The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object 2.1.2.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network; 2.1.2.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from the action range, and the action is taken to interact with the environment; simultaneously, the target selects an action based on the target's action probability π. 2 (a t |s t The conditional probability π represents the action selected from the action range, and the action is taken to interact with the environment; simultaneously, the interfering object selects an action based on the interfering object's action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from the action range and takes the action to interact with the environment; 2.1.2.18 Let t = t + 1. If t ≤ T, go to 2.1.2.19; if t > T, go to 2.1.2.

20. 2.1.2.19 If t%10000=0: Save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.2.4 to continue training using the data from the next time step; Otherwise: Proceed directly to 2.1.2.4 and continue training using the data from the next time step; 2.1.2.20 Save the parameters of the meta-tracker network, meta-target network, and meta-interference network, then proceed to 2.1.3; 2.1.3 Based on the second stage of training, reinforcement learning is used to further train the active visual tracking teacher module on a large scale in the third stage; 2.1.3.1 Load the parameters of the meta-tracker network, meta-target network, and meta-interference network saved at the end of the second stage of training in 2.1.2.20; 2.1.3.2 Set the number of training steps T to a positive integer greater than 100,000, and initialize the number of trained steps t = 1; 2.1.3.3 Set the target location entropy reward coefficient 'a' to a constant greater than 0.5; set the regularization factor 'α' to a constant less than 1; set the reward decay factor 'γ' to a constant greater than 0.5; set the number of horizontal grid divisions 'n' to a positive integer; and set the threshold distance 'ρ' between the target and the tracker. l 100-1000cm; 2.1.3.4 Set the number of steps N = min(t, 50) used to calculate the target location entropy reward; 2.1.3.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module; 2.1.3.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module. 2.1.3.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to the preprocessed pose data at step t, using formula (7) in 2.1.1.

6. 2.1.3.8 The reward function calculation module in the active visual tracking teacher module divides the training environment into I grids and uses the frequency calculation method described in 2.1.1.7 to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid based on the preprocessed pose data of the past t steps. i ,…,p I ; 2.1.3.9 The reward function calculation module in the active vision teacher module calculates the target's positional entropy reward loc_entropy according to formula (9) in 2.1.1.8; 2.1.3.10 The reward function calculation module in the active visual tracking teacher module calculates the target's reward based on the preprocessed pose data at step t. 2.1.3.11 The reward function calculation module in the active visual tracking teacher module calculates the reward for the interference based on the preprocessed pose data at step t. 2.1.3.12 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Rewards for the goal Rewards for interference Send it to the first loss function calculation module in the active visual tracking teacher module; 2.1.3.13 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ); 2.1.3.14 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target's state value V is sent to the tracker; the meta-target network then sends the target's state value V to the tracker. 2 (s t ) and action probability π 2 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the target's action probability π. 2 (a t |s t The state value V of the interfering object is sent to the target; the meta-interference network sends the state value V of the interfering object. 3 (s t ) and action probability π 3 (a t |s t The data is sent to the first loss function calculation module in the active visual tracking teacher module, and the motion probability π of the interfering object is also sent. 3 (a t |s t Send to the interference; 2.1.3.15 If t = 1, proceed to 2.1.3.17; otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in 2.1.1.

14. Rewards for the goal Rewards for interference The tracker state value V received from the meta-tracker network, meta-target network, and meta-interference network. 1 (s t ), the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ), the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ), the probability of the interference's action π 3 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss target temporal difference error loss Policy gradient loss of the target Timing differential error loss of interfering objects Policy gradient loss of the interfering object 2.1.3.16 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta-tracker network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-target network, the Adam optimization algorithm is used to minimize... and To update the parameters of the meta-interference network; 2.1.3.17 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from 7 actions within the action range, and the action is taken to interact with the environment; simultaneously, the target selects an action based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π selects an action from seven actions within the action range and interacts with the environment accordingly; simultaneously, the interfering object determines the action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment; 2.1.3.18 Let t = t + 1. If t ≤ T, go to 2.1.3.19; if t > T, go to 2.1.

4. 2.1.3.19 If t%10000=0, save the parameters of the meta-target network and the meta-interference network to the opponent model pool, and go to 2.1.3.4 to continue training using the data from the next time step; Otherwise: Proceed directly to 2.1.3.4 and continue training using the data from the next time step; 2.1.4 The active visual tracking teacher module saves the parameters of the meta-tracker network, see section 2.2; 2.2 During the interaction between the tracker and the target, interference objects, and the environment, reinforcement learning is used to further fine-tune and train the meta-tracker network, optimize the parameters of the meta-tracker network, and the active visual tracking teacher module saves the parameters of the meta-tracker network. 2.3 The active visual tracking student module is trained using supervised learning. The method is as follows: 2.3.1 Load the parameters of the meta-tracker network saved in step 2.2 in the active visual tracking teacher module; 2.3.2 Parameters of the fixed element tracker network; 2.3.3 Set the number of training steps T to a positive integer greater than 100,000, and initialize the number of trained steps t = 1; 2.3.4 Randomly select parameters for the meta-target network from the opponent's model pool and load them into the meta-target network; randomly select parameters for the meta-interference network from the opponent's model pool and load them into the meta-interference network. 2.3.5 Parameters of fixed target network and interfering object network; 2.3.6 The data acquisition module acquires the visual observation image at step t from the tracker's camera. t The pose data at step t is obtained from the pose sensors of the tracker, target, and interference objects, and the visual observation image and pose data at step t are sent to the data preprocessing module. 2.3.7 The data preprocessing module uses the first preprocessing method in step 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active visual tracking teacher module. 2.3.8 The data preprocessing module employs a second preprocessing method to process the visual observation image o received from the data acquisition module at step t. t Preprocessing is performed to obtain the preprocessed visual observation image o′ at step t. t The preprocessed visual observation image o′ from step t t Send to the active visual tracking student module; the second preprocessing method is: 2.3.8.1 will o t The width is scaled to 320 pixels and the height is scaled to 240 pixels to obtain a scaled visual observation image; 2.3.8.2 Normalize the pixel values ​​of the scaled visual observation image to the [0,1] interval to obtain the normalized visual observation image at step t; 2.3.8.3 Randomly flip the normalized visual observation image from step t horizontally to obtain the preprocessed visual observation image o′ from step t. t ; 2.3.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and action probability π 3 (a t |s t The meta-tracker network will assign the tracker's action probability π 1 (a t |s t The data is sent to the second loss function calculation module in the active visual tracking student module. The meta-target network calculates the target's action probability π. 2 (a t |s t The network sends the probability of the interfering object's action π to the target. 3 (a t |s t Send to the interference; 2.3.10 The visual tracker network in the active visual tracking student module uses an action prediction method to process the preprocessed visual observation image o′ t Perform action prediction to obtain the tracker's action probability π. 1* (a t |o′ t The method is as follows: 2.3.10.1 The convolutional backbone in the visual tracker network for the preprocessed visual observation image o′ t Feature extraction is performed to obtain visual observation image features, and these visual observation image features are then sent to the multi-scale convolutional network branches and the scale attention module. 2.3.10.2 The first-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visually observed image features to obtain first-scale visually observed image features, and sends the first-scale visually observed image features to the adaptive fusion module; the second-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visually observed image features to obtain second-scale visually observed image features, and sends the second-scale visually observed image features to the adaptive fusion module; the third-scale convolutional network branch in the multi-scale convolutional network branch extracts features from the visually observed image features to obtain third-scale visually observed image features, and sends the third-scale visually observed image features to the adaptive fusion module; the fourth ordinary convolutional layer in the fourth-scale convolutional network branch in the multi-scale convolutional network branch performs dimensionality reduction and feature extraction on the visually observed image features received from the convolutional backbone in the channel dimension to obtain fourth-scale visually observed image features, and sends the fourth-scale visually observed image features to the adaptive fusion module; In the 2.3.10.3 scale attention module, the convolutional long short-term memory unit extracts temporal features from the visual observation image features received from the convolutional backbone network, obtaining temporal features of the visual observation image, and sends the temporal features of the visual observation image to the global average pooling layer; the global average pooling layer compresses the temporal features of the visual observation image received from the convolutional long short-term memory unit in the spatial dimension, obtaining a first feature vector with a length equal to the number of channels of the temporal features of the visual observation image, and sends the first feature vector to the seventh fully connected layer; the seventh fully connected layer compresses the first feature vector received from the global average pooling layer, obtaining a second feature vector with a length equal to the number of branches of the multi-scale convolutional network, and sends the second feature vector to the sigmoid activation function layer; the sigmoid activation function layer scales the value of the second feature vector received from the seventh fully connected layer to the range [0,1], obtains the weights of the multi-scale visual observation image features, and sends the weights of the multi-scale visual observation image features to the adaptive fusion module; 2.3.10.4 In the adaptive fusion module, the weighted stitching layer uses the weights of the multi-scale visual observation image features received from the scale attention module to perform weighted stitching on the first-scale visual observation image features, second-scale visual observation image features, third-scale visual observation image features, and fourth-scale visual observation image features received from the multi-scale convolutional network branch, to obtain weighted stitched multi-scale visual observation image features. The weighted stitched multi-scale visual observation image features are then sent to the fifth ordinary convolutional layer. The fifth ordinary convolutional layer performs dimensionality reduction on the weighted stitched multi-scale visual observation image features received from the weighted stitching layer in the channel dimension to obtain adaptively fused multi-scale visual observation image features, which are then sent to the recurrent attention module. 2.3.10.5 The recurrent attention module extracts and weights the temporal features of the multi-scale visual observation image received from the adaptive fusion module to obtain adaptive temporal scale features, and sends the adaptive temporal scale features to the eighth fully connected layer. 2.3.10.6 The eighth fully connected layer performs action prediction on the adaptive temporal scale features received from the recurrent attention module, obtaining the tracker's action probability π. 1* (a t |o′ t ); 2.3.11 The visual tracker network in the active visual tracking student module will track the tracker's action probability π 1* (a t |o′ t (This is sent to the second loss function calculation module and the tracker;) 2.3.12 The second loss function calculation module in the active visual tracking student module calculates the loss function based on the tracker's action probability π received from the visual tracker network. 1* (a t |o′ t The tracker's action probability π received from the meta-tracker network in the active visual tracking teacher module. 1 (a t |s t Calculate the KL divergence loss D KL (π 1* (a t |o′ t )|π 1 (a t |s t )): 2.3.13 The active visual tracking student module uses the Adam optimization algorithm to minimize D. KL (π 1* (a t |o′ t )|π 1 (a t |s t This is used to update the parameters of the visual tracker network; 2.3.14 The tracker is based on the tracker's action probability π 1* (a t |o′ t The conditional probability π represents the action selected from 7 actions within the action range, and the action is taken to interact with the environment; simultaneously, the target selects an action based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π selects an action from seven actions within the action range and interacts with the environment accordingly; simultaneously, the interfering object determines the action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment; 2.3.15 Let t = t + 1; if t ≤ T, go to 2.3.16; if t > T, go to 2.3.17; 2.3.16 If t%5000 = 0, proceed to 2.3.4 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.3.6 to continue training using the data from the next time step. 2.3.17 Save the parameters of the visual tracker network, then proceed to step 3; The third step involves loading the parameters of the visual tracker network saved in step 2.3.17 into the active visual tracking student module of the scale-adaptive active visual tracking system, thereby obtaining the trained scale-adaptive active visual tracking system. The fourth step involves the trained scale-adaptive active visual tracking system tracking the target. The method is as follows: 4.1 The data acquisition module acquires real-time visual observation images o from the tracker's camera and sends o to the data preprocessing module; 4.2 The data preprocessing module receives the real-time visual observation image o and preprocesses it using the second preprocessing method described in step 2.3.8 to obtain the preprocessed real-time visual observation image o. ′ , will o ′ Send to the Active Visual Tracking Student Module; 4.3 The active visual tracking student module receives preprocessed real-time visual observation images. ′ The visual tracker network uses the action prediction method described in step 2.3.10 to process the preprocessed real-time visual observation image. ′ Perform action prediction to obtain the tracker's action probability π. 1* (a ′ |o ′ );a ′ Let be a random variable representing the action of the agent, and let its value range be the range of actions of the agent. 4.4 Visual tracker networks use the tracker's action probability π 1* (a ′ |o ′ Send to the tracker; 4.5 The tracker is based on the tracker's action probability π 1* (a ′ |o ′ The conditional probability represents the selection of an action from the action range and the execution of that action to track the target.

2. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... The first-scale convolutional network branch consists of a first ordinary convolutional layer with a kernel size of 1×1 and a first dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 3, with a receptive field size of 7; the second-scale convolutional network branch consists of a second ordinary convolutional layer with a kernel size of 1×1 and a second dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 2, with a receptive field size of 5; the third-scale convolutional network branch consists of a third ordinary convolutional layer with a kernel size of 1×1 and a third dilated convolutional layer with a kernel size of 3×3 and a dilation rate of 1, with a receptive field size of 3. The fourth-scale convolutional network branch consists of a fourth ordinary convolutional layer with a kernel size of 1×1 and a receptive field size of 1.

3. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... The kernel size of the fifth ordinary convolutional layer is 1×1.

4. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... The number of training steps T in steps 2.1.1.1 and 2.3.3 is set to 2,000,000, and the number of training steps T in steps 2.1.2.2 and 2.1.3.2 is set to 1,000,000. In steps 2.1.1.2, 2.1.2.3, and 2.1.3.3, the target location entropy reward coefficient α is set to 0.8; the regularization factor α is set to 0.005; the reward decay factor γ is set to 0.9; and the number of environmental horizontal grid divisions n is set to 10. 2.1.2.3 The threshold distance ρ between the target and the tracker mentioned in step 2.1.2.3 s Set to 500cm; 2.1.3.3 The threshold distance for the target to approach the tracker, as described in step 2.1.3.3, is set to ρ. l =150cm.

5. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... 2.1.1.1 The ρ described in step 2.1.1.5.2 * Set to 250cm, the ρ max Set to 750cm, the θ max Set to 90°.

6. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... 2.1.1.5.3 Normalized relative distance of the target's actual position Normalized relative distance of the actual location of the interfering object The normalized relative angle of the target's actual position The normalized relative orientation angle of the target's actual position Normalized relative angle of the actual location of the interfering object The normalized relative orientation angle of the actual location of the interfering object The method is: 2.1.1.5.3.1 Calculate the normalized relative distance of the target's actual position. Normalized relative distance of the actual location of the interfering object 2.1.1.5.3.2 Calculate the relative angle of the target's actual position. sine value Sum of cosine values The normalized representation of the relative angle of the target's actual position is obtained; 2.1.1.5.3.3 Calculate the relative orientation angle of the target's actual position. sine value Sum of cosine values The relative orientation angle of the target's actual position, represented by a normalized symbol, is obtained. 2.1.1.5.3.4 Calculate the relative angle of the actual position of the interfering object. sine value Sum of cosine values The normalized representation of the relative angle of the actual position of the interfering object is obtained; 2.1.1.5.3.5 Calculate the relative orientation angle of the actual position of the interfering object. sine value Sum of cosine values The relative orientation angle of the actual position of the interfering object is obtained in a normalized representation.

7. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... In step 2.1.1.7, the reward function calculation module in the active visual tracking teacher module uses a frequency calculation method to calculate the frequency p1,…,p of the set of target position coordinates appearing in each grid in the past N steps based on the preprocessed pose data of the past t steps. i ,…,p I The method is: 2.1.1.7.1 Initialize variable i = 1; 2.1.1.7.2 Calculate the frequency p of the set of target position coordinates from the past N steps appearing in the i-th grid. i : Where N i N is the number of positions in the set of target position coordinates from the past N steps that fall within the i-th grid. i <N; 2.1.1.7.3 Let i = i + 1. If i ≤ I, go to 3.1.1.7.2; if i > I, we get p1, ..., p i ,…,p I .

8. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... The range of actions of the intelligent agent described in step 2.1.1.12.4 is 7 actions: forward, backward, left, right, forward and left, forward and right, and stop.

9. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... Step 2.2 describes a method for further fine-tuning and training the meta-tracker network using reinforcement learning during the interaction between the tracker and the target, interfering objects, and the environment. The method for optimizing the parameters of the meta-tracker network is as follows: 2.2.1 Load the parameters of the meta-tracker network saved in step 2.1.4 in the active visual tracking teacher module; 2.2.2 Set the training steps T = 1,000,000, and initialize the number of trained steps t = 1; 2.2.3 Randomly select parameters for the meta-target network from the opponent's model pool and load them into the meta-target network; randomly select parameters for the meta-interference network from the opponent's model pool and load them into the meta-interference network. 2.2.4 Parameters of fixed target network and interfering object network; 2.2.5 The data acquisition module acquires the pose data of step t from the pose sensors of the tracker, target, and interference objects, and sends the pose data of step t to the data preprocessing module; 2.2.6 The data preprocessing module uses the first preprocessing method in 2.1.1.5 to preprocess the pose data received from the data acquisition module at step t to obtain the preprocessed pose data at step t, and sends the preprocessed pose data at step t to the active vision tracking teacher module. 2.2.7 The reward function calculation module in the active visual tracking teacher module calculates the tracker's reward according to formula (7) in 2.1.1.6 based on the preprocessed pose data at step t. 2.2.8 The reward function calculation module in the active visual tracking teacher module will calculate the tracker's reward. Send it to the first loss function calculation module in the active visual tracking teacher module; 2.2.9 In the active visual tracking teacher module, the meta-tracker network, meta-target network, and meta-interference object network use the prediction method described in step 2.1.1.12 to perform action prediction and value estimation on the preprocessed pose data, respectively, to obtain the tracker's state value V. 1 (s t ) and the tracker's action probability π 1 (a t |s t ), the state value V of the target 2 (s t ) and the target's action probability π 2 (a t |s t The state value V of the interfering object 3 (s t ) and the probability of the interference π 3 (a t |s t ); 2.2.10 The meta-tracker network in the active visual tracking teacher module will store the tracker's state value V. 1 (s t ) and action probability π 1 (a t |s t The first loss function calculation module in the active visual tracking teacher module is sent to the tracker, and the tracker's action probability π is also sent to the active visual tracking teacher module. 1 (a t |s t The target network sends the target's action probability π to the tracker; 2 (a t |s t The signal is sent to the target; the meta-interference network transmits the action probability π of the interference object. 3 (a t |s t Send to the interference; 2.2.11 If t = 1, go to 2.2.13; Otherwise, the first loss function calculation module in the active visual tracking teacher module calculates the loss function based on the tracker's reward received from the reward function calculation module according to formulas (12) and (13) in step 2.1.1.

14. and the tracker state value V received from the meta-tracker network 1 (s t ), the tracker's action probability π 1 (a t |s t ) Calculate the timing differential error loss of the tracker Tracker's policy gradient loss 2.2.12 The active visual tracking teacher module uses the Adam optimization algorithm to minimize... and To update the parameters of the meta tracker network; 2.2.13 The tracker is based on the tracker's action probability π 1 (a t |s t The conditional probability π represents the action selected from 7 actions within the action range, and the action is taken to interact with the environment; simultaneously, the target selects an action based on the target's action probability π. 2 (a t |s t The conditional probability denoted by π selects an action from seven actions within the action range and interacts with the environment accordingly; simultaneously, the interfering object determines the action based on its action probability π. 3 (a t |s t The conditional probability represented by ) selects an action from 7 actions within the action range and takes that action to interact with the environment; 2.2.14 Let t = t + 1. If t ≤ T, go to 2.2.15; if t > T, go to 2.2.

16. 2.2.15 If t%5000 = 0, proceed to 2.2.3 to train the active visual tracking teacher module with the parameters of the new meta-target network and meta-interference network; otherwise, proceed to 2.2.5 to continue training using the data from the next time step. 2.2.16 The Active Visual Tracking Teacher Module saves the parameters of the meta-tracking network.

10. The scale-adaptive active visual tracking method as described in claim 1, characterized in that... The method for feature extraction of visual observation image features in the first-scale convolutional network branch of the multi-scale convolutional network branch described in step 2.3.10.2 is as follows: the first ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain the dimensionality-reduced first visual observation image features, and sends the dimensionality-reduced first visual observation image features to the first dilated convolutional layer; the first dilated convolutional layer extracts features from the dimensionality-reduced first visual observation image features received from the first ordinary convolutional layer to obtain the first-scale visual observation image features, and sends the first-scale visual observation image features to the adaptive fusion module; the method for feature extraction of visual observation image features in the second-scale convolutional network branch of the multi-scale convolutional network branch is as follows: the second ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain the dimensionality-reduced second visual observation image features. The dimensionality-reduced second visual observation image features are sent to the second dilated convolutional layer. The second dilated convolutional layer extracts features from the dimensionality-reduced second visual observation image features received from the second ordinary convolutional layer to obtain second-scale visual observation image features, which are then sent to the adaptive fusion module. The method for feature extraction of visual observation image features in the third-scale convolutional network branch of the multi-scale convolutional network is as follows: the third ordinary convolutional layer reduces the dimensionality of the visual observation image features received from the convolutional backbone in the channel dimension to obtain dimensionality-reduced third visual observation image features, which are then sent to the third dilated convolutional layer. The third dilated convolutional layer extracts features from the dimensionality-reduced third visual observation image features received from the third ordinary convolutional layer to obtain third-scale visual observation image features, which are then sent to the adaptive fusion module.

Citation Information

Patent Citations

  • Unmanned aerial vehicle target tracking method based on multi-scale feature fusion

    CN115690156A

  • Teaching interaction method and device, equipment and storage medium

    CN117612244A