Rgb-t infrared visible light dual-modal target tracking method based on loRA asymmetric adaptation

By introducing an asymmetric LoRA adaptation mechanism into the RGBT tracker, the problems of insufficient infrared modal feature adaptation and inadequate cross-modal feature fusion are solved, realizing efficient cross-domain knowledge transfer from visible light to infrared modes and improving the robustness and accuracy of target tracking.

CN123181512APending Publication Date: 2026-11-27ANHUI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611673522.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-28
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing RGBT trackers suffer from insufficient infrared modal feature adaptation, inadequate cross-modal feature fusion, and computational redundancy, especially the decrease in robustness caused by the difference between infrared and visible light modal features in complex scenarios.

Method used

An RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation is adopted. By introducing an asymmetric LoRA adaptation mechanism into the shared ViT backbone network, low-rank LoRA adaptation is activated only in the infrared branch, achieving efficient cross-domain transfer of parameters from visible light to infrared modes. Feature processing is performed through cross-modal feature decoupling and convolutional fusion layers.

Benefits of technology

While minimizing additional computational overhead, it retains the pre-trained knowledge of visible light modes and effectively adapts to the infrared data distribution, thereby improving the robustness and accuracy of target tracking and reducing computational redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181512A_ABST
    Figure CN123181512A_ABST
Patent Text Reader

Abstract

The present application relates to a RGB-T infrared visible light dual-mode target tracking method based on LoRA asymmetric adaptation, comprising constructing a template image pair, searching an image pair, constructing a visual encoder of a shared ViT backbone of an asymmetric LoRA adaptation mechanism, decoupling the extracted features by mode and function, outputting a predicted target frame, designing a composite loss function to train the target tracking model, and then realizing infrared visible light dual-mode target tracking based on the trained target tracking model. The present application solves the problems of large difference in dual-mode data distribution and easy explosion of parameter quantity in RGBT tracking through the asymmetric LoRA adaptation strategy, while utilizing the large-scale visible light pre-training representation capability, realizing efficient infrared mode adaptation and robust target tracking with extremely low parameter quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and artificial intelligence, and in particular to an RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation. Background Technology

[0002] Visual object tracking is a core task in computer vision, aiming to continuously locate an arbitrary object given in the initial frame in each frame of a video sequence. In recent years, deep learning-based methods have made significant progress in object tracking, especially the Vision Transformer (ViT), which has become the mainstream backbone network for visual tracking due to its powerful modeling capabilities brought by its global self-attention mechanism.

[0003] However, trackers relying solely on visible light (RGB) images experience a significant performance degradation in harsh environments such as low light, strong light, fog, and nighttime, or in complex scenarios where the target and background are similar in appearance. To address this issue, infrared and visible light (RGBT) multimodal tracking has attracted widespread attention. Infrared thermal imaging is independent of ambient lighting and can image based on the object's thermal radiation, providing effective all-weather supplementary information to the RGB data and significantly improving the robustness of tracking in complex scenarios.

[0004] Current RGBT tracking methods face several key challenges. At the feature extraction level, existing ViT-based RGBT trackers often directly apply ViT weights pre-trained on large-scale RGB datasets to the infrared modality. However, infrared images reflect the thermal radiation information of objects, lacking color and texture details, and differ fundamentally from visible light images in data distribution. Directly reusing pre-trained RGB weights leads to a decline in the quality of infrared branch feature extraction. At the feature fusion level, existing methods often employ simple feature element-wise addition or channel concatenation strategies, failing to effectively capture deep complementary relationships between modalities. Furthermore, existing methods typically treat the template region and search region with complete symmetry, neglecting the functional difference between the template providing a stable reference and the search region containing dynamic changes, resulting in a degree of information interference and computational redundancy.

[0005] Low-Rank Adaptation (LoRA), a parameter-efficient fine-tuning technique, has shown good results in domain adaptation of large-scale language models. Its core idea is to concatenate a trainable low-rank decomposition matrix in parallel with frozen pre-trained weights, achieving efficient model adaptation to downstream tasks with minimal additional parameters. However, in the field of RGBT multimodal object tracking, there is currently no effective solution for using LoRA to achieve asymmetric, parameter-efficient adaptation from visible light to infrared modalities. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention provides an RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation. This method solves the problems of insufficient infrared modal feature adaptation, inadequate cross-modal feature fusion, and computational redundancy in existing RGBT trackers. By introducing an asymmetric LoRA adaptation mechanism into the shared ViT backbone network, low-rank LoRA adaptation is activated only in the infrared branch, achieving efficient cross-domain parameter transfer from visible light to infrared modes. This minimizes additional computational overhead while preserving visible light modal pre-training knowledge and effectively adapting to the infrared data distribution.

[0007] To achieve the above technical objectives, the present invention provides the following technical solution: an RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation, comprising the following steps:

[0008] Based on a given initial bounding box of the tracking target, visible light images and infrared images are obtained in pairs from a cross-modal video sequence containing real target bounding boxes. Template image pairs and search image pairs are constructed, and the corresponding real target bounding boxes are obtained at the same time. The cross-modal video sequence includes visible light video sequences and infrared video sequences.

[0009] A visual encoder with a shared ViT backbone is constructed, which maps template image pairs and search image pairs into image blocks of visible light and infrared modes. These blocks are then fed into several Transformer layers to extract visible light and infrared features. The Transformer layers include visible light and infrared branches with shared parameters. The infrared branch incorporates a low-rank adaptation LoRA path.

[0010] A cross-modal feature decoupling module is constructed to decouple visible light features and infrared features into visible light template features, visible light search features and infrared template features, and infrared search features, respectively.

[0011] A convolutional fusion layer is constructed to fuse visible light search features with infrared search features. The fusion is then fed into the center prediction head to generate candidate center of the tracking target and its sub-pixel offset relative to the grid cell and the normalized target width and height, thus constructing the predicted target bounding box.

[0012] A target tracking model is constructed by using a shared ViT backbone visual encoder, cross-modal feature decoupling module, convolutional fusion layer and central prediction head. A composite loss function is designed, an asymmetric learning strategy is adopted, and the target tracking model is trained using real target boxes.

[0013] For a cross-modal video sequence to be tracked, based on the given initial bounding box of the target, the trained target tracking model extracts and solidifies the visible light template features and infrared template features of the first frame, and extracts the visible light search features and infrared search features frame by frame from the second frame to the last frame to generate the predicted target box, thereby realizing infrared and visible light dual-modal target tracking.

[0014] Optionally, the step of acquiring visible light and infrared images in pairs from a cross-modal video sequence containing real target bounding boxes based on a given initial bounding box of the tracking target, and constructing template image pairs and search image pairs, includes:

[0015] Visible light image frames and infrared image frames are loaded simultaneously from visible light video sequences and infrared video sequences. The timestamps of the two are consistent and the size and resolution are verified. If the size or resolution is inconsistent, pre-alignment is performed to obtain the same number of visible light images and infrared images with aligned timestamps, sizes, and resolutions. Then, visible light image sequences and infrared image sequences are constructed according to the timestamps.

[0016] The first image of the visible light image sequence and the infrared image sequence are cropped and normalized according to the given initial bounding box of the tracking target, and the resulting template images of the visible light mode and the infrared mode are used to construct the initial template image pair.

[0017] For the second to the last image in the visible light image sequence and the infrared image sequence, search boxes are constructed and cropped based on the center position of the tracking target in the previous image. The cropped search images of the visible light mode and the infrared mode constitute the initial search image pair. The center position of the tracking target in the previous image is determined by the real target box corresponding to the previous image during the target tracking model training process, and by the predicted target box generated by the trained target tracking model for the previous image when performing target tracking.

[0018] We selected a common visible light image dataset and an infrared light image dataset, and calculated the mean and standard deviation of the pixel values ​​for the visible light mode and the infrared mode.

[0019] Based on the mean and standard deviation of the pixel values ​​of the visible light mode and the infrared mode, the initial template image pair and the initial search image pair are Z-score normalized to obtain the template image pair and the search image pair.

[0020] Optionally, the first image of the visible light image sequence and the infrared image sequence are cropped and normalized according to the given initial bounding box of the tracking target, and the cropped area is twice the area of ​​the initial bounding box of the tracking target.

[0021] For the second to the last images of the visible light image sequence and the infrared image sequence, a search box is constructed and cropped based on the center position of the tracking target in the previous image. The area of ​​the search box is 4 times the area of ​​the initial bounding box of the tracking target, that is, the cropping area is 4 times the area of ​​the initial bounding box of the tracking target.

[0022] Optionally, the Z-Score normalization of the initial template image pair and the initial search image pair based on the mean and standard deviation of the pixel values ​​of the visible light mode and the infrared mode includes:

[0023] For each template image and search image of the visible light mode in the initial template image pair and the initial search image pair, subtract the mean value of the visible light mode pixel value from each of their three channels and divide by the standard deviation of the visible light mode pixel value;

[0024] For each template image and search image of the infrared mode in the initial template image pair and the initial search image pair, copy them from a single channel to a three-channel format, and then subtract the mean value of the infrared mode pixel value from each of the three channels and divide by the standard deviation of the infrared mode pixel value.

[0025] Optionally, the step of mapping the template image pair and the search image pair to image blocks of visible light and infrared modes, and then sequentially feeding them into several Transformer layers to extract visible light and infrared features, includes:

[0026] Each image in the template image pair and the search image pair is divided into non-overlapping image blocks and projected into feature vectors. The feature vectors of the template image pair are concatenated with the feature vectors of the search image pair in front and the feature vectors of the search image pair behind. This concatenation is added to the learnable positional encoding to form an image block embedding, which is then fed into multiple Transformer layers as input embedding.

[0027] The Transformer layer feeds the input embedding from the visible light mode into the visible light branch, calculates the visible light query matrix, visible light value matrix, and visible light bond matrix using pre-trained weights, and generates the output embedding of the visible light mode through the attention layer and feedforward network, which serves as the input embedding of the visible light mode for the next Transformer layer. The output embedding of the visible light mode output by the last Transformer layer serves as the visible light feature.

[0028] The Transformer layer feeds the input embedding from the infrared mode into the infrared branch, incorporates low-rank adaptation LoRA on the basis of the frozen pre-trained weights, and generates the output embedding of the infrared mode, which is used as the input embedding of the infrared mode of the next Transformer layer. The output embedding of the infrared mode of the last Transformer layer is used as the infrared feature.

[0029] Optionally, the step of feeding the input embedding from the infrared mode into the infrared branch, incorporating low-rank adaptation LoRA on the basis of the frozen pre-trained weights, and generating the output embedding of the infrared mode includes:

[0030] Using pre-trained weights combined with low-rank adaptation LoRA, an infrared query matrix, an infrared key matrix, and an infrared value matrix are constructed. These are then passed through an attention layer and a feedforward network to generate the output embedding of the infrared mode. This process can be mathematically represented as follows:

[0031] ;

[0032] ;

[0033] ;

[0034] ;

[0035] in, , , These represent the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the pre-training weights for constructing the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. To adapt the LoRA scaling factor to low rank, , These represent the LoRA scaling constant and the low-rank dimension, respectively. , , These represent the dimensionality reduction matrices for low-rank adaptation LoRA in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the upscaling matrices of low-rank LoRA adaptation in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. Indicates a linearly normalized layer; Indicates the first The Transformer layer is derived from the input embedding of the infrared mode; Indicates the first The Transformer layer is derived from the output embedding of the infrared mode, i.e., the first layer. The Transformer layer is derived from the input embedding of the infrared mode; Indicates a feedforward network; Indicates the attention layer;

[0036] When training the target tracking model, , , Always frozen, , , and , , Participate in training updates.

[0037] Optionally, the step of fusing visible light search features and infrared search features, and then feeding them into the center prediction head, generates candidate tracking target centers and their sub-pixel offsets relative to grid cells, as well as normalized target width and height, to construct a predicted target bounding box, including:

[0038] Visible light search features and infrared search features are concatenated along the channel dimension, then dimensionality is reduced using convolution operations, and finally a fused feature map is obtained after ReLU nonlinear activation and reshaping operations.

[0039] The fused feature map is input into the center prediction head; the center prediction head includes three branches: center heatmap branch, offset regression branch, and size regression branch, which respectively generate candidate center points and confidence maps, sub-pixel offsets of each candidate center point relative to the grid cell, and normalized target width and height.

[0040] The candidate center point with the highest confidence level is selected from the confidence map as the candidate center point for tracking the target. Simultaneously, based on the sub-pixel offset of this candidate center point relative to the grid cell and the normalized target width and height, the center point and width / height of the normalized predicted target bounding box are calculated, mathematically expressed as:

[0041] ;

[0042] ;

[0043] in, , These represent the x and y coordinates of the center point of the normalized predicted bounding box, respectively. , These represent the horizontal and vertical coordinates of the candidate center of the tracking target, respectively. , These represent the horizontal and vertical sub-pixel offsets of the candidate center of the tracking target relative to the grid cell, respectively. Indicates the spatial dimensions of the fused feature map; , These represent the width and height of the normalized predicted bounding box, respectively. , These represent the normalized target width and height corresponding to the candidate center of the tracking target;

[0044] A normalized predicted bounding box is generated based on the center point and width and height of the obtained normalized predicted bounding box;

[0045] The normalized predicted bounding box is mapped back to the size of the search image pair to obtain the predicted bounding box that reflects the location of the tracked target.

[0046] Optionally, selecting the candidate center point with the highest confidence from the confidence map as the candidate center of the tracking target includes:

[0047] When using a trained target tracking model for target tracking, before generating candidate target centers, a Haining window penalty is applied to the confidence map, centered on the center point of the normalized predicted target box from the previous image. Mathematically, this is expressed as:

[0048] ;

[0049] in, This represents the confidence graph after applying the Haining window penalty. This represents the confidence level before the application of the Haining window penalty; Represents the two-dimensional Haining window weight matrix; This indicates an element-wise multiplication operation.

[0050] Optionally, the composite loss function is obtained by a weighted combination of the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, and is mathematically expressed as:

[0051] ;

[0052] in, Represents the composite loss function; , , Let represent the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, respectively. , , represents the weight coefficients of the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, respectively;

[0053] The generalized intersection-union ratio (GIoU) ​​loss is mathematically represented as:

[0054] ;

[0055] in, This represents the total number of predicted bounding boxes, which is the total number of actual bounding boxes. Indicates the index of the predicted target box; Indicates the first The generalized intersection-union ratio (GUC) is calculated from each predicted target box and its corresponding ground truth target box.

[0056] The smoothed L1 regression loss is mathematically expressed as:

[0057] ;

[0058] in, , They represent the first The predicted target box and its corresponding first... The first real target bounding box The vertex coordinates include four values: the horizontal and vertical coordinates of the lower left corner and the horizontal and vertical coordinates of the upper right corner. The above formula is used to calculate the distance between coordinates, indicating the calculation of the modulus.

[0059] The Focal classification loss is mathematically represented as:

[0060] ;

[0061] in, Represents the set of positive samples. The number of positive samples. Represents the set of negative samples; This indicates the confidence plot after being expanded row-majorly. The score obtained by applying Sigmoid activation to the pixel values ​​at each location; Indicates the focus factor; Indicates the negative sample decay factor; Indicates the first The Gaussian heatmap values ​​at each location; the positive sample set is the set of location indices in the Gaussian heatmap where the value is equal to 1; the negative sample set is the set of location indices in the Gaussian heatmap where the value is less than 1; the Gaussian heatmap is a Gaussian distribution map drawn with the center of the real target box as the center of Gaussian and the distribution radius calculated based on the width and height of the real target box;

[0062] The asymmetric learning strategy sets the learning rate of the visible light branch of the Transformer layer to 0.1 times that of the infrared branch.

[0063] The present invention also provides an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to execute the RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation.

[0064] By employing the above technical solution, this invention provides an RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation, which has at least the following beneficial effects:

[0065] (1) This invention designs an asymmetric LoRA adaptation mechanism to implement differentiated LoRA deployment strategies for the visible light branch and the infrared branch in a visual encoder that shares a ViT backbone. The visible light branch directly reuses the frozen pre-trained weights, while the infrared branch additionally activates the low-rank adaptation LoRA path. With very few additional parameters (only the low-rank LoRA matrix is ​​introduced in the attention projection layer of the infrared branch), efficient cross-domain knowledge transfer from the visible light to the infrared modality is achieved. This asymmetric design fully preserves the pre-trained knowledge of the visible light modality to support the visible light branch, while adaptively capturing the unique thermal radiation feature distribution of the infrared modality, thereby alleviating the problem of mismatch between the pre-trained ViT weights and the infrared data distribution.

[0066] (2) The asymmetric LoRA adaptation mechanism of the present invention achieves parallel single-stream processing of visible light and infrared in a shared Transformer layer, avoiding the computational overhead caused by the traditional dual-stream architecture of maintaining a complete encoder for infrared modes separately. Visible light and infrared features share the same attention weight space in each Transformer layer, and are differentiated only by LoRA low-rank matrix (dimensionality reduction matrix and dimension increase matrix). This significantly reduces the number of parameters and computational overhead while promoting implicit alignment and interaction between modes in the feature space.

[0067] (3) This invention uses a cross-modal feature decoupling mechanism to finely separate the fused long sequence features by modality (visible light / infrared) and function (template / search) at the output of the Transformer layer. Combined with convolutional feature compression and a multi-branch structure center prediction head, it achieves efficient mapping from multimodal features to accurate target localization. The invention also introduces motion constraint suppression based on the Hann window to effectively filter abrupt shifts caused by occlusion and interference from similar objects, thereby improving the temporal stability and accuracy of tracking.

[0068] (4) The present invention extracts features from the template image pair only once in the first frame and saves them. All subsequent frames share the template features without repeated calculation. This design utilizes the natural property of the template to provide a stable reference. The search image pair re-extracts features based on the predicted position of the previous frame in each frame to adapt to the displacement and appearance changes of the target. Furthermore, an adaptive Haining window penalty based on the predicted position of the previous frame is applied to the confidence map of the search region only during inference to suppress the response of the region far from the target position of the previous frame, thereby realizing the functional differentiation between template stable anchoring and search dynamic adaptation. Attached Figure Description

[0069] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0070] Figure 1 This is an overall flowchart of the RGB-T infrared and visible dual-modal target tracking method based on LoRA asymmetric adaptation of the present invention;

[0071] Figure 2 This is a schematic diagram of the Transformer layer structure incorporating the asymmetric LoRA adaptation mechanism of the present invention.

[0072] Figure 3 This is a graph showing the comprehensive evaluation results on the LasHeR test set in the experiments of this embodiment of the invention. Detailed Implementation

[0073] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. This will allow for a full understanding of how the present application uses technical means to solve technical problems and achieve technical effects, and to facilitate its implementation.

[0074] Those skilled in the art will understand that all or part of the steps in the implementation of the methods of the embodiments can be implemented by a program instructing related hardware. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0075] Please refer to Figures 1-3 This illustration shows a specific implementation of the present embodiment. This embodiment constructs a visual encoder with a shared ViT backbone based on an asymmetric LoRA adaptation mechanism by building template image pairs and search image pairs. The extracted features are decoupled by modality and function, and the predicted target box is output. A composite loss function is designed to train the target tracking model. Then, based on the trained target tracking model, infrared and visible light dual-modal target tracking is realized. This solves the problems of insufficient infrared modal feature adaptation, insufficient cross-modal feature fusion, and computational redundancy in existing RGBT trackers. By introducing an asymmetric LoRA adaptation mechanism and implementing differentiated processing for visible light and infrared branches in the visual encoder with a shared ViT backbone, efficient cross-modal knowledge transfer of parameters is achieved while minimizing additional computational overhead.

[0076] Please refer to Figure 1 This embodiment proposes an RGB-T infrared-visible dual-mode target tracking method based on LoRA asymmetric adaptation, which includes the following steps:

[0077] S1. Based on the given initial bounding box of the tracking target, obtain visible light images and infrared images in pairs from the cross-modal video sequence containing the real target bounding box, construct template image pairs and search image pairs, and obtain the corresponding real target bounding boxes at the same time.

[0078] As a preferred embodiment of step S1, it specifically includes:

[0079] S11. Simultaneously load visible light image frames and infrared image frames from the visible light video sequence and the infrared video sequence, ensuring that their timestamps are consistent and verifying their size and resolution. If the size or resolution is inconsistent, pre-alignment is performed to obtain the same number of visible light and infrared images with aligned timestamps, sizes, and resolutions. These are then used to construct visible light and infrared image sequences based on their timestamps. In this step, pre-alignment utilizes the timetamp correspondence and frame sequence consistency between the visible light and infrared image frames to ensure a one-to-one spatial correspondence between the dual-modal images; if the size or resolution is inconsistent, scaling is used to unify them.

[0080] S12. For the first image of the visible light image sequence and the infrared image sequence, respectively, based on the given initial bounding box of the tracking target... Perform cropping and normalization, where , These represent the x and y coordinates of the center point of the initial bounding box of the tracking target, respectively. , These represent the width and height of the initial bounding box of the tracking target, respectively. During cropping, a template factor is selected such that the cropping area is twice the area of ​​the initial bounding box of the tracking target, ensuring that the resulting 128×128 pixel template image contains sufficient contextual information.

[0081] S13. Construct the obtained template images of visible light mode and infrared mode into an initial template image pair.

[0082] S14. For the second to last images of the visible light image sequence and the infrared image sequence, construct a search box with a larger context range centered on the center position of the tracked target in the previous image, and then crop it. During cropping, select a search factor that makes the area of ​​the search box four times the area of ​​the initial bounding box of the tracked target, so that the cropped area is four times the area of ​​the initial bounding box of the tracked target. Use bicubic interpolation to crop and obtain the corresponding 256×256 pixel search image.

[0083] In this step, the center position of the target in the previous image is determined by the ground truth bounding box corresponding to the previous image during the target tracking model training process. When using the trained target tracking model for target tracking, the predicted bounding box generated by the trained target tracking model for the previous image is used to determine the target center position.

[0084] S15. The cropped search images of the visible light mode and the infrared mode constitute the initial search image pair.

[0085] S16. To eliminate the data distribution differences between visible light and infrared modes daily, heterogeneous normalization is employed. A common visible light image dataset and an infrared image dataset are selected, and the mean and standard deviation of pixel values ​​for the visible light and infrared modes are calculated. Based on the mean and standard deviation of pixel values ​​for the visible light and infrared modes, Z-score normalization is applied to the initial template image pair and the initial search image pair to obtain the template image pair and the search image pair.

[0086] As a preferred embodiment of step S16, the Z-Score normalization of the initial template image pair and the initial search image pair based on the mean and standard deviation of the pixel values ​​of the visible light mode and the infrared mode specifically includes:

[0087] S161. For each template image and search image of the visible light mode in the initial template image pair and the initial search image pair, subtract the mean value of the visible light mode pixel value from each of their three channels and divide by the standard deviation of the visible light mode pixel value.

[0088] S162. For each template image and search image of the infrared mode in the initial template image pair and the initial search image pair, copy them from a single channel to a three-channel format, and then subtract the mean value of the infrared mode pixel value from each of the three channels and divide it by the standard deviation of the infrared mode pixel value.

[0089] In this embodiment, the mean and standard deviation of the visible light modal pixel values ​​are obtained by using the three-channel statistical values ​​of the ImageNet dataset, which are [0.485, 0.456, 0.406] and [0.229, 0.224, 0.225], respectively; the mean and standard deviation of the infrared modal pixel values ​​are obtained by statistically calculating all pixel values ​​of the infrared dataset, with typical values ​​of [0.449, 0.449, 0.449] and [0.226, 0.226, 0.226].

[0090] The heterogeneous normalization process in this step maps the two modal data to their respective appropriate normalization spaces.

[0091] S2. Construct a visual encoder with a shared ViT backbone, map template image pairs and search image pairs to embed image blocks of visible light and infrared modes, and feed them into several Transformer layers to extract visible light and infrared features. Construct a cross-modal feature decoupling module to decouple visible light and infrared features into visible light template features, visible light search features and infrared template features, and infrared search features, respectively.

[0092] The visual encoder with a shared ViT backbone constructed in this embodiment uses a ViT-Base model pre-trained on ImageNet-22K as the initial weights, and contains 12 Transformer layers, each with a feature dimension of 768 and 12 attention heads. As a preferred implementation of step S2, it specifically includes:

[0093] S21. Divide each image in the template image pair and the search image pair into non-overlapping 16×16 image blocks. The standardized template image (128×128) generates 64 tokens, and the standardized search image (256×256) generates 256 tokens. Each token is projected as a 768-dimensional feature vector. The feature vectors of the template image pair are concatenated with the feature vectors of the search image pair in front and the feature vectors of the search image pair in the back. This concatenation is added to the learnable positional encoding to form the image block embedding, which is then used as the input embedding and sequentially fed into multiple Transformer layers.

[0094] S22. The inputs from the visible light mode and the infrared mode are embedded and fed into a multi-layer Transformer layer that incorporates an asymmetric LoRA adaptation mechanism. Specifically:

[0095] S221. The input embedding from the visible light mode is fed into the visible light branch. The visible light query matrix, visible light value matrix, and visible light bond matrix are calculated using pre-trained weights. The output embedding of the visible light mode is then generated through the attention layer and the feedforward network. This process is mathematically represented as follows:

[0096] ;

[0097] ;

[0098] ;

[0099] ;

[0100] in, , , These represent the visible light query matrix, the visible light value matrix, and the visible light bond matrix, respectively. , , These represent the pre-training weights for constructing the visible light query matrix, visible light value matrix, and visible light bond matrix, respectively. Indicates the first The Transformer layer is derived from the input embedding of the visible light mode; Indicates a linearly normalized layer; Indicates the first The Transformer layer is derived from the output embedding of the visible light mode, i.e., the first... The Transformer layer is derived from the input embedding of the visible light mode; Indicates a feedforward network; This represents the attention layer.

[0101] The output embedding of each visible light mode is used as the input embedding of the visible light mode of the next Transformer layer, and the output embedding of the visible light mode of the last Transformer layer is used as the visible light feature.

[0102] S222. The input embedding from the infrared mode is fed into the infrared branch, and low-rank adaptation LoRA is incorporated into the frozen pre-trained weights to generate the output embedding of the infrared mode.

[0103] Specifically, by combining pre-trained weights with low-rank adaptation LoRA, an infrared query matrix, an infrared key matrix, and an infrared value matrix are constructed. These are then passed through an attention layer and a feedforward network to generate the output embedding of the infrared modality. This process can be mathematically represented as follows:

[0104] ;

[0105] ;

[0106] ;

[0107] ;

[0108] in, , , These represent the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the pre-trained weights for constructing the infrared query matrix, infrared key matrix, and infrared value matrix (shared with the visible light branch); To adapt the LoRA scaling factor to low rank, This represents the LoRA scaling constant, which is taken in this embodiment. ; To represent the low-rank dimension, this embodiment takes... ; , , These represent the dimensionality reduction matrices for low-rank adaptation LoRA in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the upscaling matrices of low-rank LoRA adaptation in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. Indicates a linearly normalized layer; Indicates the first The Transformer layer is derived from the input embedding of the infrared mode; Indicates the first The Transformer layer is derived from the output embedding of the infrared mode, i.e., the first layer. The Transformer layer is derived from the input embedding of the infrared mode; Indicates a feedforward network; This represents the attention layer.

[0109] When training the target tracking model, , , Always frozen, , , and , , Participate in training updates;

[0110] The output embedding from each layer of the infrared mode is used as the input embedding of the infrared mode of the next Transformer layer, and the output embedding of the infrared mode of the last Transformer layer is used as the infrared feature.

[0111] This invention introduces dropout in the low-rank branch to enhance generalization when training the target tracking model. When performing target tracking using the trained model, the dropout is automatically disabled. In this embodiment, the attention projection weights ( , , The dimension is 768×768; the dimensionality reduction matrix for low-rank LoRA adaptation. Upgraded dimensional matrix ,in Represents the space of real numbers. To adapt the low-rank dimension of LoRA to low-rank (set in this embodiment) Low-rank adaptation LoRA scaling factor); Setting it to 2 allows the model to be flexibly adjusted without over-relying on LoRA adaptation.

[0112] The aforementioned asymmetric design allows the visible light branch to fully retain the rich visual knowledge learned from pre-training on a large scale of visible light, while the infrared branch efficiently adapts to the infrared data distribution with approximately 0.3% additional trainable parameters.

[0113] This invention designs an asymmetric LoRA adaptation mechanism, implementing differentiated LoRA deployment strategies for the visible light and infrared branches in a visual encoder sharing a ViT backbone. The visible light branch directly reuses frozen pre-trained weights, while the infrared branch additionally activates low-rank adapted LoRA paths. This achieves efficient cross-domain knowledge transfer from the visible light to the infrared modality with minimal additional parameters (introducing a low-rank LoRA matrix only in the infrared branch's attention projection layer). This asymmetric design fully preserves the pre-trained knowledge of the visible light modality to support the visible light branch while adaptively capturing the unique thermal radiation feature distribution of the infrared modality, thus alleviating the mismatch between pre-trained ViT weights and infrared data distribution. The ViT backbone weights for the visible light modality have been fully pre-trained on large-scale natural image datasets, and their extracted visual semantic representations such as color and texture can be well generalized to visible light tracking tasks. Applying LoRA adaptation to the visible light branch would not only perturb its learned stable visual knowledge and reduce the tracking accuracy of the visible light branch, but also double the number of trainable parameters, increasing training difficulty and the risk of overfitting. Infrared modes reflect the thermal radiation distribution of an object, and they differ fundamentally from visible light in terms of grayscale distribution and texture structure. Directly reusing visible light pre-trained weights leads to a decrease in the quality of infrared feature extraction. Therefore, low-rank adaptation LoRA is introduced only for the infrared branch, allowing the learning of the unique thermal radiation distribution representation of the infrared mode with minimal low-rank matrix increments. This achieves targeted cross-domain transfer from visible light to infrared modes without compromising the visible light pre-trained knowledge. This design, which "applies adaptation only to the modes that need it," compared to existing methods that apply LoRA to both branches, can simultaneously ensure the representational stability of the visible light branch and the sufficiency of the infrared branch's adaptation, demonstrating a differentiated design for RGBT tracking scenarios.

[0114] Meanwhile, the asymmetric LoRA adaptation mechanism of this invention achieves parallel single-stream processing of visible light and infrared in a shared Transformer layer, avoiding the computational overhead of maintaining a separate complete encoder for infrared modes in traditional dual-stream architectures. Visible light and infrared features share the same attention weight space in each Transformer layer, and are differentiated only by LoRA low-rank matrices (dimensionality reduction matrix and dimension increase matrix). This significantly reduces the number of parameters and computational overhead while promoting implicit alignment and interaction between modes in the feature space.

[0115] This embodiment incorporates a Transformer layer with an asymmetric LoRA adaptation mechanism; its structure can be found in [reference needed]. Figure 2 . Figure 2In the diagram, the outermost large box represents the Transformer layer, which is stacked 12 times within a shared ViT backbone. The visible light branch and the infrared branch share all parameters, with only the infrared branch activating an additional low-rank adaptation bypass. The data flow is as follows: input embedding (768 dimensions), layer normalization, multi-head self-attention, residual stacking (including random depth), layer normalization, feedforward neural network (expansion → activation → compression, excluding adaptation bypass), and then the output embedding of the current Transformer layer is obtained. The multi-head self-attention layer contains: a query / key / value joint projection layer (mapping 768 dimensions to 2304), which is split into query, key, and value, scaled by dot product, normalized, weighted and merged, and finally output projection layer (mapping 768 dimensions back to 768, also including frozen weights and a low-rank adaptation bypass). The query / key / value joint projection layer contains two parallel paths: a frozen projection weights and biases path (weights are frozen during training and do not participate in gradient updates), and a low-rank adaptation bypass path (only effective in the infrared branch, processed sequentially by a random dropout layer, a low-rank dimensionality reduction matrix, and a low-rank dimensionality increase matrix). The output projection layer uses the same frozen weights and low-rank adaptation bypass structure as the query / key / value joint projection layer. The bypass of the visible light branch is closed, and its forward output is calculated solely from the frozen projection weights and biases. The bypass of the infrared branch is open, and its forward output is the superposition of the result of the frozen projection weights and biases and the increment of the low-rank adaptation bypass. Both branches share parameters such as the normalization layer, feedforward neural network, and block embedding. The rank of the low-rank adaptation bypass is 8, and the scaling factor is 2.

[0116] S23. After completing feature extraction of the 12-layer Transformer with shared parameters, cross-modal feature decoupling is performed on the output concatenated sequence. Cross-modal feature decoupling is divided into two levels: functional decoupling, which separates the template token region (the first 64 tokens) and the search token region (the last 256 tokens) in the sequence to obtain template region features and search region features respectively; and modal decoupling, which splits the separated search region features along the feature dimension into visible light search features and infrared search features, each with a dimension of 768, to prepare for subsequent modal fusion. At the same time, the separated template region features are split into visible light template features and infrared template features.

[0117] This invention employs a cross-modal feature decoupling mechanism to finely separate the fused long-sequence features at the Transformer layer output according to modality (visible light / infrared) and function (template / search). Combined with convolutional feature compression and a multi-branch structured center prediction head, it achieves efficient mapping from multimodal features to accurate target localization. Furthermore, it introduces motion constraint suppression based on the Hann window to effectively filter abrupt shifts caused by occlusion and interference from similar objects, thereby improving the temporal stability and accuracy of tracking. The cross-modal feature decoupling module is not a simple feature segmentation, but rather, based on the functional differences between the template and search in the tracking task, as well as the distribution differences between visible light and infrared modalities, it finely decouples the long fusion sequence output by the Transformer from two dimensions: "functional dimension (template / search)" and "modal dimension (visible light / infrared)," providing a structured feature representation for subsequent fusion and localization. The convolutional fusion layer concatenates the decoupled dual-modal search features in the channel dimension and uses a 1×1 convolution to compress the 1536 dimensions to 768 dimensions. It achieves implicit weighted fusion of inter-modal features through learnable convolutional kernels, rather than simple element-wise addition. The center prediction head uses three branches—center heatmap, offset regression, and size regression—to predict in parallel, decomposing the target localization task into three sub-tasks: "center position, sub-pixel offset, and target width and height," which are supervised separately. Compared to single-branch direct bounding box regression, this significantly improves the accuracy and training stability of target localization. These modules work synergistically with the front-end asymmetric LoRA adaptation mechanism to form a targeted network structure for RGBT tracking tasks.

[0118] The visual encoder with shared ViT backbone constructed in this embodiment adopts a single-stream shared parameter architecture, that is, the visible light branch and the infrared branch share the same encoder. It achieves modal differentiation feature extraction through an asymmetric LoRA adaptation mechanism and performs cross-modal feature decoupling on the output sequence.

[0119] S3. Construct a convolutional fusion layer to fuse visible light search features with infrared search features, and then feed it into the center prediction head to generate the candidate center of the tracking target and its sub-pixel offset relative to the grid unit and the normalized target width and height, and construct the predicted target box.

[0120] As a preferred embodiment of step S3, it specifically includes:

[0121] S31, Search for features using visible light With infrared search features The splicing feature is obtained by splicing along the channel dimension. ,in This indicates the number of channels. The splicing features will then be used. Feeding the data into a 1×1 convolutional layer compresses the number of channels from 1536 to 768, and the fused feature tensor is obtained by ReLU nonlinear activation. Then fuse the feature tensor The token sequence is reshaped into a feature map, resulting in a fused feature map. This provides spatially structured input to the central prediction head.

[0122] S32. Input the fused feature map into the center prediction head.

[0123] The central prediction head consists of three branches, each composed of several stacked convolutional layers. The number of channels is gradually compressed from 768 to the output channels. The three branches are as follows:

[0124] S321, Center Heatmap Branch, outputs 1 channel and activates it with Sigmoid to obtain candidate center points and confidence map. The value of each spatial location in the confidence map represents the probability that the location is the center of the tracking target.

[0125] S322, Offset Regression Branch, outputs 2 channels, representing the sub-pixel offset of each candidate center point relative to the grid cell;

[0126] S323, the size regression branch, outputs 2 channels and obtains the normalized target width and height after Sigmoid activation.

[0127] S33. Select the candidate center point with the highest confidence from the confidence map as the candidate center point for tracking the target. Simultaneously, based on the sub-pixel offset of this candidate center point relative to the grid cell and the normalized target width and height, calculate the center point and width / height of the normalized predicted target box, mathematically expressed as:

[0128] ;

[0129] ;

[0130] in, , These represent the x and y coordinates of the center point of the normalized predicted bounding box, respectively. , These represent the horizontal and vertical coordinates of the candidate center of the tracking target, respectively. , These represent the horizontal and vertical sub-pixel offsets of the candidate center of the tracking target relative to the grid cell, respectively. This represents the spatial dimensions of the fused feature map, in this embodiment. ; , These represent the width and height of the normalized predicted bounding box, respectively. , These represent the normalized target width and height corresponding to the candidate center of the tracking target, respectively.

[0131] As a preferred embodiment of step S33, it specifically includes:

[0132] When using a trained target tracking model for target tracking, before generating candidate target centers, a Haining window penalty centered on the center point of the normalized predicted target box from the previous image is applied to the center point confidence map to perform motion constraint suppression. Mathematically, this is expressed as:

[0133] ;

[0134] in, This represents the confidence graph after applying the Haining window penalty. This represents the confidence map before the application of the Haining window penalty (each pixel value represents the probability that the location is the center of the target). This represents a two-dimensional Haining window weight matrix (decreasing outwards from the center, with dimensions equal to...). Consistent); This indicates an element-wise multiplication operation.

[0135] This operation effectively suppresses regions far from the target position in the previous frame, filtering out abrupt displacements caused by occlusion, drastic changes in illumination, or interference from similar objects, thus maintaining a smooth and continuous prediction result space. The Haining window can effectively constrain the maximum displacement range of the target between two frames. This invention applies an adaptive Haining window penalty based on the predicted position in the previous frame only to the confidence map of the search region during inference, suppressing the response of regions far from the target position in the previous frame, thereby achieving functional differentiation between template stable anchoring and dynamic search adaptation.

[0136] S34. Generate a normalized predicted target box based on the center point and width and height of the obtained normalized predicted target box.

[0137] S35. Map the normalized predicted bounding box back to the size of the search image pair to obtain the predicted bounding box reflecting the position of the tracked target, mathematically represented as:

[0138] ;

[0139] in, Indicates the predicted target box; This indicates a uniform size for the model input; This indicates the scaling ratio from the original image cropped block to the model input size.

[0140] S4. Construct a target tracking model by sharing the ViT backbone visual encoder, cross-modal feature decoupling module, convolutional fusion layer and central prediction head, design a composite loss function, adopt an asymmetric learning strategy, and train the target tracking model using real target boxes.

[0141] As a preferred embodiment of step S4, it specifically includes:

[0142] S41. The composite loss function is obtained by a weighted combination of the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, and is mathematically expressed as follows:

[0143] ;

[0144] in, Represents the composite loss function; , , Let represent the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, respectively. , , represents the weight coefficients of the Generalized Intersection over Union (GIoU) ​​loss, the Smooth L1 Regression loss, and the Focal Classification loss, respectively.

[0145] In this embodiment, the settings are as follows: , , .

[0146] S42. The generalized intersection-union ratio (GIoU) ​​loss is mathematically represented as:

[0147] ;

[0148] in, This represents the total number of predicted bounding boxes, which is the total number of actual bounding boxes. Indicates the index of the predicted target box; Indicates the first The generalized intersection-union ratio (GUU) is calculated from each predicted target box and its corresponding ground truth target box.

[0149] The Generalized Intersection over Union (GIoU) ​​loss is used to supervise the regression quality of tracked target bounding boxes. It penalizes not only the positional deviation between the predicted and ground truth bounding boxes but also their shape differences, imposing an additional penalty on predicted boxes with different shapes but overlapping positions. In this embodiment, the GIoU is calculated as follows:

[0150] Let the x and y coordinates of the bottom left corner of the predicted target box be... , The horizontal and vertical coordinates of the upper right corner are , The horizontal and vertical coordinates of the lower left corner of the true target bounding box are: , The horizontal and vertical coordinates of the upper right corner are , For intersection-union ratio The calculations are as follows:

[0151] ;

[0152] in, , These represent the areas of the predicted bounding box and the ground truth bounding box, respectively. , These represent the larger of the horizontal and vertical coordinates of the lower left corner of the predicted bounding box and the ground truth bounding box, respectively. , These represent the smaller of the horizontal and vertical coordinates of the upper right corner of the predicted bounding box and the true bounding box, respectively. This indicates the operation of retrieving the maximum value; This indicates the operation of taking the minimum value; This represents the overlap area between the predicted bounding box and the ground truth bounding box; This represents the area of ​​the union of the predicted and ground truth bounding boxes. Furthermore, for the generalized intersection-union ratio... The calculations are as follows:

[0153] ;

[0154] in, , These represent the smaller of the horizontal and vertical coordinates of the lower left corner of the predicted bounding box and the ground truth bounding box, respectively. , These represent the larger of the horizontal and vertical coordinates of the upper right corner of the predicted bounding box and the true bounding box, respectively. This represents the area of ​​the smallest bounding rectangle that simultaneously contains both the predicted and actual bounding boxes.

[0155] S43. The smoothed L1 regression loss is mathematically expressed as:

[0156] ;

[0157] in, , They represent the first The predicted target box and its corresponding first... The first real target bounding box The vertex coordinates include four values: the horizontal and vertical coordinates of the lower left corner and the horizontal and vertical coordinates of the upper right corner. The formula above indicates the calculation of the modulus, and is used to calculate the distance between coordinates.

[0158] The smoothed L1 regression loss is applied to the four coordinate parameters of the predicted target box (center x and y coordinates and width and height), directly supervising the position and size of the predicted target box.

[0159] S44. The Focal classification loss is mathematically expressed as:

[0160] ;

[0161] in, Represents the set of positive samples. The number of positive samples. Represents the set of negative samples; This indicates the confidence plot after being expanded row-majorly. The score obtained by applying Sigmoid activation to the pixel values ​​at each location; Indicates the focus factor; Indicates the negative sample decay factor; Indicates the first The Gaussian heatmap values ​​at each location. The positive sample set is the set of indices of locations in the Gaussian heatmap where the value is equal to 1, denoted as . The negative sample set is the set of positions with values ​​less than 1 in the Gaussian heatmap, denoted as . . For positive samples, the modulation factor is used. The joint weights are for negative samples.

[0162] A Gaussian heatmap is a Gaussian distribution map plotted with the center of the ground truth bounding box as the Gaussian center and the distribution radius calculated based on the width and height of the ground truth bounding box. The center value is 1, decaying to 0 towards the edges. The Focal classification loss is... For monitoring signals, guidance Approaching The distribution of .

[0163] The Focal classification loss is applied to the 2D Gaussian heatmap generated from the ground truth bounding boxes. In this embodiment, the focus factor is... Negative sample attenuation factor This allows the model to focus more on hard-to-distinguish samples during training, alleviating the severe imbalance between positive and negative samples.

[0164] S45. The asymmetric learning strategy sets the learning rate of the visible light branch of the Transformer layer to 0.1 times that of the infrared branch.

[0165] In this embodiment, the learning rate of the visible light branch (excluding the frozen part) is set to 7.5e-6 to protect the pre-trained knowledge from being destroyed. The LoRA parameters (dimension reduction matrix A and dimension increase matrix B) of the infrared branch, as well as all parameters of the cross-modal feature decoupling module, convolutional fusion layer, and central prediction head, are set to a normal learning rate of 7.5e-5, so that the LoRA adapter and prediction head can fully learn the feature distribution and target localization capability of the infrared domain.

[0166] In this embodiment, the model training adopts distributed data parallel training. The PyTorch Distributed Data Parallel (DDP) framework is used to train simultaneously on multiple GPUs. Each GPU independently calculates the local gradient and then averages it synchronously through the NCCL backend. The parameters of each GPU are updated in a consistent manner, which linearly accelerates the training.

[0167] The DDP framework consists of the following steps: maintaining a complete copy of the model for each GPU; and DistributedSampler dividing each batch into... The model is divided into equal parts, and each GPU performs forward propagation independently. Backpropagation allows each GPU to independently calculate its local gradient. The gradients are exchanged and averaged across GPUs via NCCL (NVIDIA Collective Communication Library) to ensure that the model parameters are updated identically on each GPU. Each GPU then performs parameter updates independently. Because the gradients are synchronized, the parameters are naturally consistent. The above operations can be represented as:

[0168] ;

[0169] in Indicates the first Zhang's local gradient is calculated based on local data sharding. This represents the global gradient after synchronization and averaging via the NCCL collection communication library.

[0170] S5. For the cross-modal video sequence to be tracked, based on the given initial bounding box of the tracking target, the trained target tracking model extracts and solidifies the visible light template features and infrared template features of the first frame, and extracts the visible light search features and infrared search features frame by frame from the second frame to the last frame to generate the predicted target box, thereby realizing infrared and visible light dual-modal target tracking.

[0171] As a preferred embodiment of step S5, it specifically includes:

[0172] S51. In the tracking initialization phase (frame 1), a 128×128 visible light and infrared template image is cropped centered on the given initial bounding box of the tracking target according to the method in step S12. The image is then sent to the visual encoder of the shared ViT backbone to extract features. The resulting template features (token sequence, including 64 tokens each for visible light and infrared) are fixed and saved. They are shared for all subsequent frames throughout the tracking process and do not need to be recalculated.

[0173] S52. During the tracking and inference phase (from frame 2 to the last frame), perform the following for each frame: Read the visible light and infrared images of the current frame; crop the visible light and infrared search images to 256×256 using the predicted target box center of the previous frame as the center, according to the method in step S14; send the search token obtained by mapping the search image and the fixed template features (template token) together into the visual encoder of the shared ViT backbone, and combine the template token and search token into the input sequence (64+256=320 tokens in total) in the direct concatenation mode; process through 12 layers of Transformer layers that incorporate the asymmetric LoRA adaptation mechanism, and obtain the visible light search features and infrared search features through cross-modal feature decoupling; concatenate the two channels and fuse them with 1×1 convolution, and then send them into the central prediction head to output the predicted target box of the current frame.

[0174] S53. Repeat S52 frame by frame to track the cross-modal video sequence to be tracked. The predicted target box of each frame is archived in a standard format to complete the infrared and visible light dual-modal target tracking of the cross-modal video sequence.

[0175] This embodiment uses the RGBT evaluation tool for evaluation after tracking is completed. Evaluation metrics include center position error (CLE) and overlap success rate (SR).

[0176] The center position error is the Euclidean distance between the center of the predicted target box and the center of the ground truth target box in each frame. It is calculated as follows:

[0177] ;

[0178] in, Indicates the first Frame center position error, , They represent the first The horizontal and vertical coordinates of the center of the predicted bounding box in the frame; , They represent the first The horizontal and vertical coordinates of the center of the true bounding box in a frame. For a given frame... Determine its This indicates successful tracking; the center position error threshold is met. In this embodiment, For a given frame Mixing accuracy Take two modes The smaller one can be represented as:

[0179] ;

[0180] in, Indicates the total number of frames tracked; , Representing the visible light mode and the infrared mode respectively. Frame center position error; Let this be the indicator function. Normalizing the center position error to the true target bounding box size to eliminate the influence of target scale, it can be expressed as:

[0181] ;

[0182] in, Indicates the normalized mixture accuracy. , They represent the first The width and height of the actual target bounding box in the frame. To normalize the mixing accuracy threshold, this embodiment takes... The representative normalized mixed accuracy is calculated.

[0183] The overlap success rate is the percentage of frames where the intersection-union ratio (IoU) between the predicted bounding box and the ground truth bounding box exceeds 0.5. For a given frame... Mixed success rate Taking the intersection of two modes and comparing the larger one, it can be represented as:

[0184] ;

[0185] in, , They represent the first Cross-intersection over union (CUI) of visible light modes and infrared modes in a frame; This represents the mixed success rate threshold. In this embodiment, all 21 mixed success rate thresholds are taken. The average value is used as a representative overlap success rate.

[0186] The effectiveness of the method proposed in this invention will be verified by the following experiments.

[0187] This embodiment selects the LasHeR dataset as both the training and testing dataset. LasHeR is currently the largest RGBT target tracking benchmark dataset, containing 1224 training video sequences and 245 test video sequences, covering various challenging scenarios such as illumination changes, scale changes, occlusion, motion blur, and hot crossover. During training, the batch size is set to 16, and 60,000 pairs of samples are randomly sampled from the training set per epoch. The AdamW optimizer is used to update the network weights, with a weight decay coefficient set to 0.0001.

[0188] The model was trained for 15 epochs. In the first 10 epochs, the visual encoder sharing the ViT backbone had its weight learning rate multiplier frozen at 0.1 (equivalent to 7.5e-6), and the learning rates for LoRA parameters and the center prediction head parameters were set to 7.5e-5. After the 10th epoch, all learning rates were reduced to one-tenth of their original values. This phased strategy ensured that the pre-trained backbone remained stable in the first 10 epochs while LoRA and the prediction head converged rapidly, and the last 5 epochs provided fine-tuning, suppressing overfitting while achieving a balance between efficient training and generalization using short training cycles.

[0189] Figure 3 This figure shows the comprehensive evaluation results on the LasHeR test set in this embodiment. From top to bottom, they represent the accuracy curve based on the position error threshold (pixels), the success rate curve based on the overlap threshold, and the normalized accuracy curve based on the normalized position error threshold. "Ours (based on LoRA asymmetric adaptation)" in the figure indicates the method of this invention. Figure 3 As can be seen, the area under the accuracy curve is 0.698, the area under the success rate curve is 0.555, and the area under the normalized accuracy curve is 0.660, indicating that the method of the present invention has achieved competitive tracking performance in the three indicators of PR, NPR and SR, and verifies the effectiveness of the asymmetric LoRA adaptation mechanism in the RGBT multimodal target tracking task.

[0190] Evaluation metrics descriptions: Precision (PR) is the percentage of frames with a center position error of less than 20 pixels; Normalized Precision (NPR) is the success rate after normalizing the center position error according to the target scale; Success Rate (SR) is the percentage of frames with an intersection-union ratio (IUU) of the predicted bounding box and the ground truth bounding box exceeding 0.5. All metrics are calculated using a hybrid approach, taking the better of the two modalities as the benchmark.

[0191] This application also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation.

[0192] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0193] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).

[0194] The above embodiments provide a detailed description of the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A dual-modal target tracking method for RGB-T infrared and visible light based on LoRA asymmetric adaptation, characterized in that, include: Based on the given initial bounding box of the tracking target, visible light images and infrared images are obtained in pairs from cross-modal video sequences containing real target boxes. Template image pairs and search image pairs are constructed, and the corresponding real target boxes are obtained at the same time. The cross-modal video sequence includes visible light video sequences and infrared video sequences; A visual encoder with a shared ViT backbone is constructed, which maps template image pairs and search image pairs into image blocks of visible light and infrared modes. These blocks are then fed into several Transformer layers to extract visible light and infrared features. The Transformer layers include visible light and infrared branches with shared parameters. The infrared branch incorporates a low-rank adaptation LoRA path. A cross-modal feature decoupling module is constructed to decouple visible light features and infrared features into visible light template features, visible light search features and infrared template features, and infrared search features, respectively. A convolutional fusion layer is constructed to fuse visible light search features with infrared search features. The fusion is then fed into the center prediction head to generate candidate center of the tracking target and its sub-pixel offset relative to the grid cell and the normalized target width and height, thus constructing the predicted target bounding box. A target tracking model is constructed by using a shared ViT backbone visual encoder, cross-modal feature decoupling module, convolutional fusion layer and central prediction head. A composite loss function is designed, an asymmetric learning strategy is adopted, and the target tracking model is trained using real target boxes. For a cross-modal video sequence to be tracked, based on the given initial bounding box of the target, the trained target tracking model extracts and solidifies the visible light template features and infrared template features of the first frame, and extracts the visible light search features and infrared search features frame by frame from the second frame to the last frame to generate the predicted target box, thereby realizing infrared and visible light dual-modal target tracking.

2. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 1, characterized in that: The process involves acquiring visible light and infrared images in pairs from a cross-modal video sequence containing the real target bounding box, based on a given initial bounding box of the tracking target, and constructing template image pairs and search image pairs, including: Visible light image frames and infrared image frames are loaded simultaneously from visible light video sequences and infrared video sequences. The timestamps of the two are consistent and the size and resolution are verified. If the size or resolution is inconsistent, pre-alignment is performed to obtain the same number of visible light images and infrared images with aligned timestamps, sizes, and resolutions. Then, visible light image sequences and infrared image sequences are constructed according to the timestamps. The first image of the visible light image sequence and the infrared image sequence are cropped and normalized according to the given initial bounding box of the tracking target, and the resulting template images of the visible light mode and the infrared mode are used to construct the initial template image pair. For the second to the last image in the visible light image sequence and the infrared image sequence, search boxes are constructed and cropped based on the center position of the tracking target in the previous image. The cropped search images of the visible light mode and the infrared mode constitute the initial search image pair. The center position of the tracking target in the previous image is determined by the real target box corresponding to the previous image during the target tracking model training process, and by the predicted target box generated by the trained target tracking model for the previous image when performing target tracking. We selected a common visible light image dataset and an infrared light image dataset, and calculated the mean and standard deviation of the pixel values ​​for the visible light mode and the infrared mode. Based on the mean and standard deviation of the pixel values ​​of the visible light mode and the infrared mode, the initial template image pair and the initial search image pair are Z-score normalized to obtain the template image pair and the search image pair.

3. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 2, characterized in that: The first image of the visible light image sequence and the infrared image sequence are cropped and normalized according to the given initial bounding box of the tracking target, and the cropped area is twice the area of ​​the initial bounding box of the tracking target. For the second to the last images of the visible light image sequence and the infrared image sequence, a search box is constructed and cropped based on the center position of the tracking target in the previous image. The area of ​​the search box is 4 times the area of ​​the initial bounding box of the tracking target, that is, the cropping area is 4 times the area of ​​the initial bounding box of the tracking target.

4. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 2, characterized in that: The Z-Score normalization of the initial template image pair and the initial search image pair based on the mean and standard deviation of pixel values ​​in the visible light and infrared modes includes: For each template image and search image of the visible light mode in the initial template image pair and the initial search image pair, subtract the mean value of the visible light mode pixel value from each of their three channels and divide by the standard deviation of the visible light mode pixel value; For each template image and search image of the infrared mode in the initial template image pair and the initial search image pair, copy them from a single channel to a three-channel format, and then subtract the mean value of the infrared mode pixel value from each of the three channels and divide by the standard deviation of the infrared mode pixel value.

5. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 1, characterized in that: The process of mapping template image pairs and search image pairs into image blocks of visible light and infrared modes, and then sequentially feeding them into several Transformer layers to extract visible light and infrared features, includes: Each image in the template image pair and the search image pair is divided into non-overlapping image blocks and projected into feature vectors. The feature vectors of the template image pair are concatenated with the feature vectors of the search image pair in front and the feature vectors of the search image pair behind. This concatenation is added to the learnable positional encoding to form an image block embedding, which is then fed into multiple Transformer layers as input embedding. The Transformer layer feeds the input embedding from the visible light mode into the visible light branch, calculates the visible light query matrix, visible light value matrix, and visible light bond matrix using pre-trained weights, and generates the output embedding of the visible light mode through the attention layer and feedforward network, which serves as the input embedding of the visible light mode for the next Transformer layer. The output embedding of the visible light mode output by the last Transformer layer serves as the visible light feature. The Transformer layer feeds the input embedding from the infrared mode into the infrared branch, incorporates low-rank adaptation LoRA on the basis of the frozen pre-trained weights, and generates the output embedding of the infrared mode, which is used as the input embedding of the infrared mode of the next Transformer layer. The output embedding of the infrared mode of the last Transformer layer is used as the infrared feature.

6. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 5, characterized in that: The step of feeding the input embedding from the infrared mode into the infrared branch, incorporating low-rank adaptation LoRA on the basis of the frozen pre-trained weights, and generating the output embedding of the infrared mode includes: Using pre-trained weights combined with low-rank adaptation LoRA, an infrared query matrix, an infrared key matrix, and an infrared value matrix are constructed. These are then passed through an attention layer and a feedforward network to generate the output embedding of the infrared mode. This process can be mathematically represented as follows: ; ; ; ; in, , , These represent the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the pre-training weights for constructing the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. To adapt the LoRA scaling factor to low rank, , These represent the LoRA scaling constant and the low-rank dimension, respectively. , , These represent the dimensionality reduction matrices for low-rank adaptation LoRA in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. , , These represent the upscaling matrices of low-rank LoRA adaptation in the construction branches of the infrared query matrix, infrared key matrix, and infrared value matrix, respectively. Indicates a linearly normalized layer; Indicates the first The Transformer layer is derived from the input embedding of the infrared mode; Indicates the first The Transformer layer is derived from the output embedding of the infrared mode, i.e., the first layer. The Transformer layer is derived from the input embedding of the infrared mode; Indicates a feedforward network; Indicates the attention layer; When training the target tracking model, , , Always frozen, , , and , , Participate in training updates.

7. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 1, characterized in that: The process of fusing visible light search features and infrared search features, then feeding them into the center prediction head, generates candidate center points for tracking targets, their sub-pixel offsets relative to grid cells, and normalized target width and height, constructing a predicted target bounding box, including: Visible light search features and infrared search features are concatenated along the channel dimension, then dimensionality is reduced using convolution operations, and finally a fused feature map is obtained after ReLU nonlinear activation and reshaping operations. The fused feature map is input into the center prediction head; the center prediction head includes three branches: center heatmap branch, offset regression branch, and size regression branch, which respectively generate candidate center points and confidence maps, sub-pixel offsets of each candidate center point relative to the grid cell, and normalized target width and height. The candidate center point with the highest confidence level is selected from the confidence map as the candidate center point for tracking the target. Simultaneously, based on the sub-pixel offset of this candidate center point relative to the grid cell and the normalized target width and height, the center point and width / height of the normalized predicted target bounding box are calculated, mathematically expressed as: ; ; in, , These represent the x and y coordinates of the center point of the normalized predicted bounding box, respectively. , These represent the horizontal and vertical coordinates of the candidate center of the tracking target, respectively. , These represent the horizontal and vertical sub-pixel offsets of the candidate center of the tracking target relative to the grid cell, respectively. Indicates the spatial dimensions of the fused feature map; , These represent the width and height of the normalized predicted bounding box, respectively. , These represent the normalized target width and height corresponding to the candidate center of the tracking target; A normalized predicted bounding box is generated based on the center point and width and height of the obtained normalized predicted bounding box; The normalized predicted bounding box is mapped back to the size of the search image pair to obtain the predicted bounding box that reflects the location of the tracked target.

8. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 7, characterized in that: The step of selecting the candidate center point with the highest confidence from the confidence map as the candidate center for tracking the target includes: When using a trained target tracking model for target tracking, before generating candidate target centers, a Haining window penalty is applied to the confidence map, centered on the center point of the normalized predicted target box from the previous image. Mathematically, this is expressed as: ; in, This represents the confidence graph after applying the Haining window penalty. This represents the confidence level before the application of the Haining window penalty; Represents the two-dimensional Haining window weight matrix; This indicates an element-wise multiplication operation.

9. The RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation according to claim 1, characterized in that: The composite loss function is obtained by a weighted combination of the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, and is mathematically expressed as follows: ; in, Represents the composite loss function; , , Let represent the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss, respectively. , , , respectively, represent the weight coefficients of the generalized intersection-union (GIoU) ​​loss, the smoothed L1 regression loss, and the Focal classification loss; The generalized intersection-union ratio (GIoU) ​​loss is mathematically represented as: ; in, This represents the total number of predicted bounding boxes, which is the total number of actual bounding boxes. Indicates the index of the predicted target box; Indicates the first The generalized intersection-union ratio (GUC) is calculated from each predicted target box and its corresponding ground truth target box. The smoothed L1 regression loss is mathematically expressed as: ; in, , They represent the first The predicted target box and its corresponding first... The first real target bounding box The vertex coordinates include four values: the horizontal and vertical coordinates of the lower left corner and the horizontal and vertical coordinates of the upper right corner. The above formula is used to calculate the distance between coordinates, indicating the calculation of the modulus. The Focal classification loss is mathematically represented as: ; in, Represents the set of positive samples. The number of positive samples. Represents the set of negative samples; This indicates the confidence plot after being expanded row-majorly. The score obtained by applying Sigmoid activation to the pixel values ​​at each location; Indicates the focus factor; Indicates the negative sample decay factor; Indicates the first The Gaussian heatmap values ​​at each location; the positive sample set is the set of location indices in the Gaussian heatmap where the value is equal to 1; the negative sample set is the set of location indices in the Gaussian heatmap where the value is less than 1; the Gaussian heatmap is a Gaussian distribution map drawn with the center of the real target box as the center of Gaussian and the distribution radius calculated based on the width and height of the real target box; The asymmetric learning strategy sets the learning rate of the visible light branch of the Transformer layer to 0.1 times that of the infrared branch.

10. An electronic device, characterized in that, The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the RGB-T infrared-visible dual-modal target tracking method based on LoRA asymmetric adaptation as described in any one of claims 1-9.