A bidirectional space-time memory target tracking method based on trajectory guidance
By employing trajectory guidance and bidirectional spatiotemporal memory, the robustness problem of existing visual target tracking methods in complex scenarios is solved, achieving high-precision tracking in scenarios with occlusion, rapid movement, and similar interference, thereby improving target localization accuracy and long-term stability.
Patent Information
- Application Number
- CN202610879796.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-17
- Publication Date
- 2026-11-20
AI Technical Summary
Existing visual target tracking methods are not robust in complex scenarios such as occlusion, rapid movement, similar interference, and deformation. They lack effective utilization of the target's historical motion trajectory and have unreasonable memory module update strategies, resulting in insufficient tracking accuracy and stability.
A trajectory-guided bidirectional spatiotemporal memory target tracking method is adopted. A trajectory prompt generator generates trajectory prompts containing spatial geometry and temporal information. Combined with a bidirectional spatiotemporal memory module and a cross-attention mechanism, a deep interaction between visual features and memory information is achieved. A template update strategy with uniform intervals is also adopted.
It significantly improves the tracking accuracy and stability of targets in complex scenarios, and can quickly recover tracking in scenarios with occlusion, rapid movement and similar interference, reducing the probability of loss and improving the accuracy of target localization and the robustness of long-term tracking.
Smart Images

Figure CN123142102A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer vision target tracking technology, specifically to a trajectory-guided bidirectional spatiotemporal memory target tracking method. Background Technology
[0002] Visual target tracking is one of the fundamental tasks in computer vision, playing a crucial role in fields such as autonomous driving and intelligent surveillance. Its purpose is to identify targets in the initial frames of a video and predict their positions in subsequent frames. Despite significant advancements in visual tracking technology in recent years, designing robust trackers for complex scenarios involving occlusion, rapid motion, similar interference, and deformation remains a considerable challenge.
[0003] Existing target tracking methods mainly suffer from the following shortcomings: First, traditional methods rely solely on the appearance features of initial frames or dynamic templates for matching, severely underestimating the historical motion trajectory of the target. Most methods simply normalize the bounding box before inputting it into the network, discarding detailed geometric information such as the target's scale and corner structure. Furthermore, they lack explicit modeling of inter-frame temporal relationships, making it impossible to utilize motion trends as prior information in fast-moving or abrupt motion scenarios. This hinders the effective guidance of visual feature attention areas, leading to decreased localization accuracy. Second, while some methods incorporating memory networks attempt to utilize historical spatiotemporal information, they often employ recurrent neural networks or attention mechanisms within local windows for inference. These methods either struggle to capture long-term dependencies due to the vanishing gradient problem of recurrent networks or are forced to limit the memory window length due to the secondary computational complexity of attention mechanisms, making it impossible to process sequences of hundreds of frames with limited computational resources. Simultaneously, most existing methods employ unidirectional temporal modeling, lacking a reverse contextual compensation mechanism when the target briefly disappears and then reappears, resulting in difficulties in tracking and recovery in occluded scenarios. Moreover, the update strategy for memory units is often fixed or heuristic, failing to dynamically adjust the retention and discard of historical information based on target deformation or lighting changes. Third, existing methods for visual feature extraction and historical information interaction are relatively simple, often employing one-time fusion or only splicing operations at the shallow layer of the network. This interaction lacks a multi-layered, two-way feedback mechanism, making it difficult for the visual encoder to prioritize regions related to the target's historical trajectory, and similar interference objects easily cause false activations. Simultaneously, the memory module cannot correct its state based on the encoder's latest observations, leading to a gradual deviation between the memory information and current visual perception during long-term tracking, resulting in memory drift. Fourth, existing methods have significant flaws in their template update strategies. Some methods only use the most recent few frames for template updates, leading to overfitting to short-term appearance changes. Once a deviation occurs in tracking a particular frame, the error accumulates rapidly, causing drift. Other methods retain the initial template, but their sampling strategies are unreasonable; either the sampling interval is too small, causing information redundancy, or the interval is too large, causing gaps in key temporal information, making it difficult to achieve a good balance between tracking accuracy and computational efficiency. Fifth, in summary, existing methods perform poorly in complex scenarios where the above problems combine: in occluded scenarios, it is difficult to quickly resume tracking after the target reappears, and the probability of loss is high; in fast-moving scenarios, it is impossible to predict the target's movement trend, and the search area is not accurately located under large displacement conditions; in scenarios with interference from similar targets, it relies too much on appearance features, and the identity swapping error rate remains high; in long-term tracking tasks of hundreds of frames, the memory information gradually becomes invalid, and the tracking stability is difficult to guarantee.
[0004] Therefore, in order to address the aforementioned problems of traditional target tracking methods, it is necessary to propose a target tracking method that can fully utilize the spatiotemporal information in video sequences, possess long-range modeling capabilities, achieve deep interaction between vision and memory, and adopt a reasonable update strategy. Summary of the Invention
[0005] To address the problem that traditional visual target tracking methods suffer from poor robustness in complex scenarios such as occlusion, rapid movement, and interference from similar targets due to neglecting the temporal coherence of video sequences and the difficulty in capturing long-term dependencies, this invention proposes a trajectory-guided bidirectional spatiotemporal memory-based target tracking method. By integrating the target motion trajectory with a bidirectional spatiotemporal memory mechanism, the accuracy and stability of target tracking in complex scenarios are improved.
[0006] The technical solution of this invention is implemented as follows: A trajectory-guided bidirectional spatiotemporal memory target tracking method, the steps of which are as follows: Step S1: Extract a template image based on the target's true location information given in the initial frame. In the next frame, extract a square region 4.5 times the size of the previous frame's positioning result as the search region image. Subsequent template images will be expanded into video clips. Convert the video clips and search region images into patch embeddings to generate video clip and search region feature tokens.
[0007] Step S2: Obtain the historical bounding box sequence corresponding to the input video segment, input it into the trajectory prompt generator, perform spatial location encoding and temporal encoding on the bounding boxes, and generate trajectory prompts containing spatial geometric information and temporal evolution information; specifically, perform Gaussian kernel-based spatial location encoding on the coordinates of the upper left and lower right corners of the bounding boxes, superimpose corner point category embedding, and introduce temporal location encoding.
[0008] Step S3: Using the trajectory prompt described in Step S2 as the query, and the search region features of the current frame in Step S1 as the key and value, feature fusion is performed through a cross-attention mechanism to fuse motion information with visual features.
[0009] Step S4: Input the video segment feature tokens and search region feature tokens obtained in step S1 into the visual encoder for feature interaction and fusion.
[0010] Step S5: Input the fused features obtained in step S3 and the visual features obtained in step S1 into the bidirectional spatiotemporal memory module; this module uses the state space model in the Mamba architecture as the core memory unit, sets the forward scan branch to recursively update the memory information according to the image patch flattening order, and the backward scan branch to recursively update the memory information after flipping the sequence; add the bidirectional outputs element by element to obtain the comprehensive spatiotemporal context features.
[0011] Step S6: Perform progressive feature interaction between the features extracted and fused by the encoder in step S4 and the output features of the integrated memory information in step S5; specifically, in each backbone block, firstly, extract context information and update memory information through the Mamba layer; then, inject memory information into visual features and pass it to the encoder by injecting attention; then, extract attention and feed the encoder output back to the bidirectional spatiotemporal memory module, and obtain the output of the current backbone block through the feedforward neural network.
[0012] Step S7: Repeat steps S5 and S6 until 12 backbone blocks have been passed. Input the feature that has finally completed spatiotemporal modeling and interaction into the prediction head, output the target bounding box position of the current frame, and keep the bounding box coordinates and visual template in the memory list. Set the template update interval. When the update condition is met, sample the initial template and several historical templates from the memory list to form a video segment and corresponding bounding box sequence for use in steps S1 and S2.
[0013] Furthermore, the specific implementation of the trajectory prompt generator in step S2 is as follows: the bounding box of the t-th frame is represented as the coordinates of the upper left and lower right corners, the two corner points are respectively encoded based on Gaussian kernel spatial position, corner point category embedding is superimposed, and time position encoding is introduced, and finally the trajectory prompts are formed by splicing them together.
[0014] Furthermore, in step S3, a cross-attention mechanism is used to fuse trajectory prompts and search area features, using trajectory prompts as queries and search area features as keys and values to calculate attention output.
[0015] Furthermore, in step S5, the forward and backward branches of the bidirectional spatiotemporal memory module are recursively calculated using a state-space model. The forward branch models the motion trend in sequence, while the backward branch captures the reverse contextual association. The bidirectional outputs are added element by element to obtain the final memory enhancement feature.
[0016] Furthermore, the progressive feature interaction in step S6 includes: updating memory information in the Mamba layer, injecting attention to integrate the memory information into the visual encoder, and extracting attention to feed the encoder output back to the memory module, forming a two-way information flow.
[0017] Furthermore, the template sampling strategy in step S7 is as follows: retain the initial template unchanged, sample the remaining templates from the memory list at uniform intervals to form a fixed-length video segment and bounding box sequence for subsequent frame tracking processing.
[0018] This invention significantly improves the tracking robustness and accuracy of targets in complex scenarios such as occlusion, deformation, rapid movement, and similar interference by introducing trajectory guidance and bidirectional spatiotemporal memory mechanisms. It is suitable for visual tracking applications such as intelligent monitoring, autonomous driving, and target positioning.
[0019] Compared with existing technologies, the trajectory-guided bidirectional spatiotemporal memory target tracking method proposed in this invention achieves significant improvements in tracking accuracy, robustness, and long-term stability in complex scenarios through innovative designs in core aspects such as trajectory modeling, bidirectional memory, progressive interaction, and dynamic sampling. Specific beneficial effects are as follows: 1. By integrating spatiotemporal and geometric information, the representation of motion trajectories becomes more discriminative. This invention designs a trajectory cue generator. By performing Gaussian kernel spatial encoding and temporal encoding on the corner points of historical bounding boxes, and superimposing corner point category embeddings to distinguish between the top left and bottom right corners, the generated trajectory cue not only contains precise geometric scale information but also explicitly models the target's motion trend. The trajectory cue is used as a feature of the query and search regions for cross-attention fusion, allowing motion information to specifically guide the visual attention area and reduce background interference. This design enables the model to utilize motion patterns as strong prior information in fast-moving or abrupt motion scenarios, effectively compensating for tracking gaps when appearance features are temporarily lost, and significantly improving the accuracy of target localization.
[0020] 2. Introducing bidirectional memory in state space makes long-range dependency modeling efficient and robust. This invention employs the state-space model in the Mamba architecture as the core memory unit. Its linear computational complexity enables the model to process sequences of hundreds of frames with limited computing resources, overcoming the limitations of local window reasoning in traditional methods. By setting two scanning branches, forward and backward, the forward branch recursively calculates and captures the continuous motion trend of the target in sequence, while the backward branch recursively calculates after flipping the sequence. This effectively compensates for the reverse context association when the target reappears after a brief disappearance. The spatiotemporal context features obtained by adding the bidirectional outputs element by element are more comprehensive and robust than those obtained by unidirectional modeling. The introduction of discretization parameters and continuous-time SSM weighted parameters enables the memory unit to dynamically adjust the information update amplitude according to the current input. This avoids discarding historical valid information too quickly or responding to appearance changes too slowly when the target deforms or the illumination changes, achieving the best balance between preserving historical information and responding to the current situation.
[0021] 3. Design a progressive interaction mechanism to achieve a deep two-way integration of visual and memory information. This invention designs a progressive interactive process in the backbone blocks, including Mamba layers, injection attention, and extraction attention. This interaction is repeated layer by layer in the 12 backbone blocks. The shallow layer fuses coarse-grained spatiotemporal information, and the deep layer fuses high semantic category features. Injection attention uses the output of the visual encoder as the query and the memory information output by the Mamba layer as the key and value, actively injecting historical spatiotemporal context into the current visual features. This allows the encoder to prioritize regions related to the target's historical trajectory, effectively suppressing false activations caused by similar interference objects. Extraction attention uses the latest visual features output by the encoder, enhanced by a multilayer perceptron, as the query and feeds them back to the bidirectional spatiotemporal memory module. This allows the memory module to correct its historical memory state based on the current observation results, forming a closed-loop feedback mechanism that avoids memory drift problems in long-term tracking.
[0022] 4. Employing uniform interval dynamic sampling, the template update strategy is accurate and efficient. This invention sets a template update interval and employs a uniform interval sampling strategy to construct video segments and bounding box sequences when an update is triggered. It always retains the template and bounding box of the initial frame, providing a stable appearance reference for the tracking process and effectively preventing drift caused by error accumulation during long-term tracking. The sampling formula, by setting a sampling interval and using floor function and minimum value operation, ensures uniform extraction of historical frames from the memory list. This avoids both short-term overfitting due to excessive reliance on recent frames and information gaps caused by excessively large sampling intervals. When the memory list length is insufficient, the index range is automatically limited. By controlling the video segment length, sufficiently rich temporal information is provided to the trajectory cue generator and bidirectional memory module without excessively increasing computational overhead, achieving a good trade-off between tracking accuracy and real-time performance.
[0023] 5. Comprehensively improve tracking performance in complex scenarios By organically combining the above steps, this invention achieves excellent overall performance: In occlusion scenarios, the bidirectional spatiotemporal memory module retains the target's motion trajectory and appearance features before occlusion. When the target reappears, the combined guidance of trajectory cues and memory information can quickly re-lock onto the target, significantly reducing the probability of tracking loss. In fast-moving scenarios, the temporal encoding in the trajectory cues and the recursive computation mechanism of the state-space model enable the model to predict the target's motion trend. Even if the target shifts significantly between frames, the location of the search area remains accurate. In scenarios with interference from similar targets, by cross-fusing motion trajectories as an independent query modality with visual features, the model can distinguish similar targets using the target's unique motion patterns rather than relying solely on appearance, significantly reducing the error rate of identity swapping. In long-term tracking scenarios, the combined effect of progressive feature interaction and dynamic template sampling enables the model to maintain consistent tracking of the target even in video sequences of hundreds or even thousands of frames, ensuring that memory information does not become invalid or overwhelmed by noise over time. Attached Figure Description
[0024] Figure 1 This is a flowchart of the present invention.
[0025] Figure 2 This is a structural diagram of the bidirectional spatiotemporal memory module of the present invention. Detailed Implementation
[0026] The technical solution of the present invention will now be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical principles and implementation process of the present invention and should not be construed as limiting the scope of protection of this application.
[0027] like Figure 1 As shown, this embodiment of the invention provides a trajectory-guided bidirectional spatiotemporal memory target tracking method, the specific implementation steps of which are as follows: Step S1: Input Image Preprocessing and Feature Token Generation A template image is extracted based on the target's true location information given in the initial frame. For the next frame, a square region 4.5 times the size of the target is extracted, centered on the target's localization coordinates from the previous frame, as the search region image. In subsequent processing, the template image is expanded into a video clip containing multiple frames. The obtained video clips and search region images are respectively divided into image patches and mapped to patch embeddings, thereby generating video clip feature tokens and search region feature tokens. This step aims to preserve the target's initial and historical appearance information in the temporal and spatial dimensions, providing a foundation for subsequent feature interaction and modeling.
[0028] Step S2: Trajectory Hint Generation Obtain the sequence of historical target bounding boxes corresponding to the input video clip and input it into the trajectory cue generator. Specifically: S2.1: Represent the bounding box of frame t as... ,in The coordinates of the top left corner The coordinates of the bottom right corner; S2.2: Perform Gaussian kernel-based spatial location encoding on the above corner coordinates, and superimpose corner category embedding to distinguish between the top left and bottom right corners. Introduce temporal location encoding to form trajectory cues. The formula is as follows:
[0029]
[0030]
[0031] in, Indicates the corner position code. Indicates the corner category label, Indicates splicing, Encoding for time location, Represents dimension variables, Provides trajectory hints.
[0032] Step S3: Preliminary fusion of motion information and visual features The trajectory prompt described in step S2 is used as the query, and the search region features of the current frame in step S1 are used as the key and value. Feature fusion is performed through a cross-attention mechanism to combine motion information with visual features. The specific formula is as follows:
[0033] in, Represents the characteristics of the search area. For query, As key, For value, For dimensions.
[0034] Step S4: Visual encoder feature interaction The video segment feature tokens and search region feature tokens obtained in step S1 are input into the visual encoder for feature interaction and fusion. This visual encoder can employ structures such as Transformer to extract rich visual semantic features, laying the foundation for subsequent spatiotemporal memory modeling.
[0035] Step S5: Two-way spatiotemporal memory modeling The fused features obtained in step S3 and the visual features obtained in step S1 are input into the bidirectional spatiotemporal memory module for forward and backward scan modeling. Forward motion features and reverse contextual associations are captured respectively, updating the memory information state and obtaining the output features integrating the memory information. The specific steps are as follows: S5.1: Employs the State-Space Model (SSM) from the Mamba architecture as the core memory unit. A forward scan branch is set up: recursively calculates and updates memory information according to the image patch flattening sequence. Setting up a backward scan branch: Flip the image patch flattening sequence and perform recursive calculations to update the memory information. The formula is as follows: , , in, and These are discretization parameters. and These are the weighted parameters of the continuous-time SSM. , These represent the previous frame memory information that stores key context in the forward and reverse branches, respectively. , They are based on the current input and Updated memory information, , These are the outputs of forward and reverse integrated memory information, respectively.
[0036] Step S6: Progressive Feature Interaction The features extracted and fused by the encoder in step S4 are progressively interacted with the output features that integrate memory information in step S5. Specifically, this includes the following sub-steps: S6.1: The input of the bidirectional spatiotemporal memory module in the nth main block comes from the output of the bidirectional spatiotemporal memory module in the (n-1)th main block. It first extracts context information through the Mamba layer and updates the memory information, as shown in the following formula:
[0037] in, This represents the Mamba layer of the nth backbone block. This represents the output of the bidirectional spatiotemporal memory module in the (n-1)th backbone block. This represents the memory information before frame t-1 in the nth backbone block. This indicates updated memory information. Contextual information that represents integrated memory information.
[0038] S6.2 Setting Injector Attention: Using the output of the (n-1)th backbone block visual encoder For query (Q), the output of the Mamba layer of the bidirectional spatiotemporal memory module in the nth backbone block. For the key (K) and value (V), the memory information is injected into the visual features and passed to the nth backbone block encoder for feature extraction, as shown in the following formula:
[0039]
[0040] in, This indicates the injection of attention. This represents the encoder layer of the nth backbone block. This represents the output characteristics of the (n-1)th backbone block encoder. This represents the input of the nth backbone block encoder. This represents the output of the nth backbone encoder.
[0041] S6.3 Setting Extractor Attention: Integrating contextual information into memory information Feature enhancement is performed using a multilayer perceptron (MLP) to obtain... ,Will As a query (Q), the output of the nth trunk block encoder is used. As the key (K) and value (V), the output information of the nth backbone block encoder is fed back to the bidirectional spatiotemporal memory module. Finally, the output of the nth backbone block bidirectional spatiotemporal memory module is obtained through the feedforward neural network FFN. The formula is as follows:
[0042]
[0043]
[0044] in, The contextual information after feature enhancement This refers to ExtractorAttention. This represents the output of the bidirectional spatiotemporal memory module in the nth main block.
[0045] Step S7: Target Prediction and Dynamic Template Update Repeat steps S5 and S6 until 12 backbone blocks have been passed. Input the final spatiotemporal modeling and interaction features into the prediction head, output the target bounding box position of the current frame, and store the bounding box coordinates and visual template in a memory list for use in steps S1 and S2 sampling. The specific sampling method is as follows: S7.1: Set the template update interval to ΔP. When the sequence number t of the current video frame satisfies t mod ΔP=0, the sampling process is triggered.
[0046] S7.2: Set the required video clip and bounding box sequence length to N, and the length of the templates and bounding boxes in the current memory list to L. Keep the initial templates and bounding boxes unchanged, and sample N-1 new templates and their corresponding bounding boxes from the memory list. The sampling formula is as follows:
[0047] For the i-th sample (i=1,2,…,N-1), its corresponding memory list index is:
[0048] , Where d is defined as the sampling interval, [·] represents the floor function, and min(⋅) represents the minimum value operation, ensuring that the index does not exceed the maximum index of the list. and These represent the constructed video segment and the corresponding bounding box sequence, respectively. The sampled video segment and bounding box sequence are re-inputted into steps S1 and S2 for tracking processing of subsequent frames.
[0049] The experiments of this invention were conducted on a computer equipped with an Intel(R) Xeon(R) Platinum 8163 CPU (2.50GHz), 24GB RAM, and an NVIDIA TITAN RTX GPU, using the Python 3.8 programming language and the PyTorch framework.
[0050] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A trajectory-guided bidirectional spatiotemporal memory target tracking method, characterized in that, Includes the following steps: Step S1: Extract a template image based on the target's real location information given in the initial frame. In the next frame, extract a square region 4.5 times the size of the previous frame's positioning result as the center as the search region image. Subsequent template images will be expanded into video clips. Convert the video clips and search region images into patch embeddings to generate video clip and search region feature tokens. Step S2: Obtain the historical bounding box sequence corresponding to the input video segment, input it into the trajectory prompt generator, perform spatial location encoding and temporal encoding on the bounding boxes, and generate trajectory prompts containing spatial geometric information and temporal evolution information; Step S3: Use the trajectory prompts described in Step S2 as a query, and the search region features of the current frame in Step S1 as keys and values. Perform feature fusion through a cross-attention mechanism to fuse motion information with visual features. Step S4: Input the video segment feature tokens and search region feature tokens obtained in step S1 into the visual encoder for feature interaction and fusion; Step S5: Input the fused features obtained in step S3 and the visual features obtained in step S1 into the bidirectional spatiotemporal memory module to perform forward scanning modeling and backward scanning modeling, capture forward motion features and reverse context association respectively, update the memory information state, and obtain the output features of integrated memory information. Step S6: Perform progressive feature interaction between the features extracted and fused by the encoder in step S4 and the output features that integrate memory information in step S5; Step S7: Repeat steps S5 and S6 until 12 backbone blocks have been passed. Input the feature of the final spatiotemporal modeling and interaction into the prediction head, output the target bounding box position of the current frame, and keep the bounding box coordinates and visual template in the memory list for sampling in steps S1 and S2.
2. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 1, characterized in that, The trajectory prompt generator in step S2 specifically includes: representing the bounding box of the t-th frame as the coordinates of the upper left corner and the lower right corner, performing Gaussian kernel-based spatial position encoding on the corner coordinates, superimposing corner category embedding to distinguish the upper left corner and the lower right corner, introducing temporal position encoding, and forming a trajectory prompt through splicing operation.
3. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 1, characterized in that, Step S3 specifically includes: using cross attention to interactively fuse trajectory hints as queries and search region features as keys and values.
4. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 1, characterized in that, The bidirectional spatiotemporal memory module in step S5 specifically includes: using the state space model in the Mamba architecture as the core memory unit, setting a forward scan branch to recursively calculate and update the memory information according to the image patch flattening sequence, setting a backward scan branch to flip the image patch flattening sequence and then recursively calculate and update the memory information, and adding the bidirectional outputs element by element to obtain the comprehensive spatiotemporal context features.
5. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 1, characterized in that, The progressive feature interaction in step S6 specifically includes: the input of the bidirectional spatiotemporal memory module in the nth backbone block comes from the output of the bidirectional spatiotemporal memory module in the (n-1)th backbone block. First, the context information is extracted and the memory information is updated through the Mamba layer; attention is set up, with the output of the visual encoder of the (n-1)th backbone block as the query and the output of the Mamba layer of the bidirectional spatiotemporal memory module of the nth backbone block as the key and value, the memory information is injected into the visual features and passed to the encoder of the nth backbone block; attention is set up, with the context information integrating the memory information being enhanced by a multilayer perceptron as the query, and the output of the encoder of the nth backbone block as the key and value, the output information of the encoder is fed back to the bidirectional spatiotemporal memory module, and finally the output of the bidirectional spatiotemporal memory module of the nth backbone block is obtained through a feedforward neural network.
6. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 1, characterized in that, The sampling method for the bounding box sequence and video segments in step S7 specifically includes: setting the template update interval, triggering the sampling process when the sequence number of the current video frame meets the update condition; setting the required length of the video segment and bounding box sequence, keeping the initial template and bounding box unchanged, and sampling the remaining templates and corresponding bounding boxes from the memory list at uniform intervals according to the sampling formula to form the video segment and bounding box sequence.
7. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 4, characterized in that, The discretization parameters and continuous-time weighted parameters of the state-space model are learnable dynamic parameters, enabling the memory unit to dynamically adjust the information update magnitude according to the current input.
8. The trajectory-guided bidirectional spatiotemporal memory target tracking method according to claim 5, characterized in that, The injection and extraction of attention are repeated layer by layer in the 12 backbone blocks. The shallow backbone blocks fuse coarse-grained spatial and motion information, while the deep backbone blocks fuse highly semantic category and contextual information to achieve progressive spatiotemporal modeling.
