Topological temporal double-constrained prototype distillation roadside zero-shot perception method and system

By employing a topological temporal dual-constraint prototype distillation method, combined with three-branch decoupled coding and a dual-constraint gated prototype distillation model, the problems of prototype drift and gradient imbalance in roadside zero-sample perception are solved, achieving highly reliable and low-false-alarm traffic scene perception, which is suitable for deployment at low-computing-power edge terminals.

CN123158408APending Publication Date: 2026-11-24ZHEJIANG SUPCON INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611656972.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing roadside zero-shot perception methods suffer from problems such as prototype drift, difficulty in cross-modal feature alignment, imbalance in multi-branch gradient updates, and uncontrollable dynamic evolution of the prototype library in complex dynamic scenarios, making it difficult to meet the requirements of high reliability and low false alarms for perception results in traffic scenarios.

Method used

A topological temporal dual-constraint prototype distillation method is adopted. Static semantics, dynamic trajectory and spatial topological information are extracted through a three-branch decoupled coding model. Incremental updates are performed by combining a dual-constraint gated prototype distillation model. Temporal stability and topological consistency constraints are introduced. Momentum smoothing incremental update units and modal game penalty loss are used to achieve gradient equilibrium.

Benefits of technology

It improves the accuracy, stability, and sustainability of the roadside perception system in open environments, reduces deployment costs, and achieves highly stable zero-sample perception at low-computing-power edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158408A_ABST
    Figure CN123158408A_ABST
Patent Text Reader

Abstract

This application relates to the interdisciplinary fields of intelligent transportation and artificial intelligence, and discloses a roadside zero-shot perception method and system based on topological temporal dual-constraint prototype distillation. First, roadside scene data of the target highway is acquired, and features are extracted from the data using a pre-trained three-branch decoupled coding model to obtain a composite representation vector. Then, based on a pre-constructed dual-constraint gated prototype distillation model, a pre-constructed dynamic prototype library is incrementally updated using the composite representation vector, resulting in an updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gate unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit. Based on the updated dynamic prototype library, zero-shot inference matching is performed on the composite representation vector, outputting a perception result containing semantic category identification and spatiotemporal anchoring information. This perception result is used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the interdisciplinary fields of intelligent transportation and artificial intelligence, and in particular to a zero-shot roadside perception method based on topological temporal dual-constraint prototype distillation, and a zero-shot roadside perception system based on topological temporal dual-constraint prototype distillation. Background Technology

[0002] With the deepening of smart highway construction, roadside perception systems, as the core infrastructure for traffic situation awareness and abnormal event response, directly determine the safety and efficiency of road operations based on their intelligence level. However, in actual deployment scenarios, the data collected by roadside sensors often faces the problem of long-tail distribution, meaning that a large number of rare traffic events (such as illegal parking of special vehicles, non-standard obstacles, and abnormal behavior under extreme weather conditions) lack sufficient labeled samples, making it difficult for traditional supervised learning models to effectively identify them. Although zero-shot learning provides a theoretical path to solve this problem, existing methods mostly rely on semantic embedding or generative models for knowledge transfer. In complex and dynamic roadside scenarios, these methods generally suffer from problems such as prototype drift, difficulties in cross-modal feature alignment, and insufficient temporal stability, making it difficult to meet the stringent requirements of traffic scenarios for high reliability and low false alarms in perception results.

[0003] Current mainstream prototype distillation-based zero-shot perception methods typically employ single-modality or simple fusion strategies to construct category prototypes, neglecting the inherent coupling relationship between static semantics, dynamic trajectory, and spatial topology in roadside scenarios. On the one hand, relying solely on visual semantic features is susceptible to environmental interference such as illumination and occlusion, leading to distorted prototype representations. On the other hand, prototype update mechanisms lacking temporal constraints are highly prone to prototype contamination when faced with sensor noise or instantaneous false detections, causing historically accumulated knowledge to be overwritten by erroneous samples. Furthermore, existing methods do not consider the balance of gradient updates between different branches during incremental updates, often resulting in one branch dominating training while others stagnate, further weakening the prototype's generalization ability and robustness, and limiting its long-term stable operation in real roadside systems.

[0004] More importantly, roadside perception systems need to continuously adapt to unknown targets in an open world without new category-labeled data. This poses a dual challenge to the dynamic evolution mechanism of the prototype library: ensuring that the integration of new samples does not disrupt the structural integrity of existing knowledge, while also ensuring that the update process itself is interpretable and controllable. Existing technologies either use fixed momentum coefficients, leading to rigid updates, or rely entirely on real-time confidence levels, causing drastic fluctuations, neither of which can simultaneously guarantee temporal continuity and topological consistency. Therefore, there is an urgent need for a zero-shot perception method that can integrate the dual constraints of topological structure and temporal dynamics, adaptively adjust the prototype update intensity through gating mechanisms, and achieve gradient equilibrium through multi-branch collaboration, in order to support the accurate, stable, and sustainable perception of unknown traffic events by roadside systems in open environments. Summary of the Invention

[0005] (a) Technical problems to be solved In view of the above-mentioned shortcomings and deficiencies of the prior art, this application provides a roadside zero-shot perception method and system based on topological temporal dual-constraint prototype distillation, in order to solve the problems of prototype drift being difficult to suppress, cross-modal feature alignment being difficult, multi-branch gradient update imbalance, and uncontrollable dynamic evolution of prototype library in the roadside zero-shot perception scenario in the prior art.

[0006] (II) Technical Solution To achieve the above objectives, the main technical solutions adopted in this application include: Firstly, this application provides a zero-sample roadside sensing method based on topological temporal dual-constraint prototype distillation, the specific steps of which include: S1. Obtain roadside scene data of the target highway, and extract features from the roadside scene data according to the pre-trained three-branch decoupled coding model to obtain a composite representation vector. The three-branch decoupled coding model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. S2, Based on the pre-built dual-constraint gated prototype distillation model, the pre-built dynamic prototype library is incrementally updated based on the composite representation vector to obtain the updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gated unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit. The dual-constraint gated unit includes temporal stability constraints and topological consistency constraints. The temporal stability constraints include sequentially executed instantaneous scale verification, short-term scale verification, and long-period scale verification. S3, based on the updated dynamic prototype library, performs zero-shot inference matching on the composite representation vector and outputs perception results containing semantic category identifiers and spatiotemporal anchoring information. The perception results are used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.

[0007] Optionally, in step S1, the static semantic encoding branch outputs a static semantic representation vector, the dynamic trajectory encoding branch outputs a dynamic temporal representation vector, and the topological graph convolutional regularization bypass outputs a topological constraint representation vector; the unified mapping layer maps the static semantic representation vector, the dynamic temporal representation vector, and the topological constraint representation vector to a preset visual-language shared semantic space to generate a composite representation vector.

[0008] Optionally, step S2 specifically includes: S21, the composite representation vector is verified according to the temporal stability constraint and topological consistency constraint in the dual-constraint gating unit, and the composite representation vector that passes the verification is determined as a valid representation sample; S22, According to the prototype matching and similarity calculation unit, calculate the similarity between the effective representation sample and each candidate prototype vector in the dynamic prototype library, and determine the candidate prototype vector whose similarity meets the preset conditions as the matching candidate prototype vector. S23, invoke the momentum smoothing incremental update unit, perform momentum smoothing update on the matched candidate prototype vectors based on the effective representation samples, and obtain the updated dynamic prototype library.

[0009] Optionally, the composite representation vector is validated based on the temporal stability constraint and topological consistency constraint in the dual-constraint gating unit, specifically including: S211, Perform instantaneous scale verification, short-term scale verification and long-period scale verification on the composite representation vector in sequence. If any scale verification fails, discard the composite representation vector. The instantaneous scale verification includes: calculating the similarity score between the composite representation vector and each candidate prototype vector in the dynamic prototype library, and determining the maximum value of the similarity score as the matching confidence; if the matching confidence is not lower than the preset first threshold, it is determined that the instantaneous scale verification is satisfied, and short-term scale verification is performed. Short-term scale verification includes: within a preset short-term sliding time window containing the composite representation vector of the current frame, counting the category label sequence of composite representation vectors of multiple consecutive frames; calculating the proportion of the mode label in the category label sequence, and matching the static semantic representation vector output by the static semantic coding branch and the topological constraint representation vector output by the topological graph convolution regularization bypass with the dynamic prototype library respectively to obtain their respective matching category labels. If the matching category labels of the two are inconsistent, it is determined that there is a modal conflict. The ratio of the number of frames with modal conflicts within the short-term sliding time window to the total number of frames is calculated as the conflict degree. If the proportion of the mode label exceeds a preset ratio threshold and the conflict degree is lower than a preset conflict threshold, it is determined that the short-term scale verification is satisfied, and long-term scale verification is performed. The long-period scale verification includes: extracting the historical matching confidence time series of the candidate prototype vector corresponding to the mode label determined in the short-period scale verification within a preset long-period time window that is larger than the short-period sliding time window; calculating the moving mean and variance of the historical matching confidence time series; and determining that the long-period scale verification is satisfied if the moving mean does not show a continuous decrease within the long-period time window and the variance does not exceed the preset second threshold. S212, Perform spatial topology matching verification based on topology consistency constraints; match the semantic category corresponding to the composite representation vector with the lane physical topology reachability rules of its lane, and determine whether the semantic category meets the requirements of the lane's travel direction and functional attributes. If it does, the topology consistency constraints are satisfied. S213, the composite representation vector that simultaneously satisfies the three-level verification and topological consistency constraints of the time-series stability constraint is determined as the effective representation sample.

[0010] Optionally, step S23 specifically includes: S231, obtain the comprehensive credibility score output by the valid representation sample corresponding to the current update step after verification by the dual-constraint gating unit; wherein, the comprehensive credibility score is calculated by weighting the three-level verification results of the dual-constraint gating unit based on the temporal stability constraint and the verification results of the topological consistency constraint; S232, obtain the historical stability index of the matched candidate prototype vectors. The historical stability index is calculated based on the moving mean and variance. S233, calculate the momentum coefficient of the current update step based on the weighted combination of the comprehensive credibility score and the historical stability index; S234, weighted fusion of effective characterization samples and matched candidate prototype vectors based on momentum coefficients to obtain updated candidate prototype vectors; replace the matched candidate prototype vectors in the dynamic prototype library with the updated candidate prototype vectors to complete the momentum smoothing update of the current update step. S235, traverse all valid representation samples in the current frame, repeat steps S231 to S234 until the candidate prototype vectors corresponding to all valid representation samples in the current frame are updated, and the updated dynamic prototype library is obtained.

[0011] Optionally, the training steps for the three-branch decoupled coding model include: S01, Obtain the roadside training sample set; S02, input the roadside training sample set into the initial three-branch decoupled coding model to obtain the composite representation vector; wherein, the initial three-branch decoupled coding model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer; S03, according to the preset hierarchical multi-objective loss function, the loss of the composite representation vector is calculated to obtain the calculation result, and the parameters of the initial three-branch decoupled coding model are updated according to the calculation result; Repeat steps S02 and S03 until the preset convergence condition is met, and the trained three-branch decoupled coding model is obtained.

[0012] Optional, the hierarchical multi-objective loss function specifically includes: Semantic contrastive loss is used to constrain the intra-class compactness and inter-class separation of samples of the same category in the visual-language shared semantic space. Trajectory alignment loss is used to constrain the motion continuity of composite representation vectors between consecutive frames in the temporal dimension. Topological regularization loss is used to constrain the consistency between the spatial topological relationships between the semantic categories represented by the composite representation vectors and the lane physical topological reachability rules. The modal game penalty loss is used to suppress gradient conflicts between the static semantic encoding branch, the dynamic trajectory encoding branch, and the topological graph convolutional regularization bypass, so as to balance the training convergence rate of each branch.

[0013] Optionally, the specific steps for constructing the modal game penalty loss include: The highest matching category of the output features of the static semantic coding branch, the dynamic trajectory coding branch, and the topological graph convolutional regularization bypass are calculated separately. The modal conflict level is determined based on the number of branches with inconsistent highest matching categories. The modal conflict level includes three levels: mild, moderate, and severe. The more inconsistent branches there are, the higher the conflict level. Based on the modal conflict level, the modal game penalty loss is calculated according to a preset step-by-step penalty gradient. The modal game penalty loss is positively correlated with the modal conflict level, and the higher the modal conflict level, the larger the step-by-step penalty gradient.

[0014] Optionally, the topological graph convolution regularization bypass includes a pre-built multi-layer graph convolutional network. In step S02, the execution steps of the topological graph convolution regularization bypass include: S021. Based on the lane space layout information in the roadside training sample set, construct a static topology graph with the roadside sensing area as nodes and physical connectivity as edges. S022, the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch are mapped to each node of the static topology graph according to their corresponding spatial positions, and used as the initial features of each node. S023, through a pre-constructed multi-layer graph convolutional network, message passing and aggregation are performed on the initial features of each node to obtain the node features after topology enhancement; S024, the node features after topology enhancement are used as regularization constraints to perform regularization weighting on the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch; among them, feature vectors that conflict with the physical connectivity between nodes in the static topology graph are subject to weight reduction penalties.

[0015] Secondly, this application provides a zero-sample roadside sensing system based on topological temporal dual-constraint prototype distillation, specifically including: The roadside data acquisition and feature encoding module is used to acquire roadside scene data of the target highway. It extracts features from the roadside scene data according to the pre-trained three-branch decoupled encoding model to obtain a composite representation vector. The three-branch decoupled encoding model includes a static semantic encoding branch, a dynamic trajectory encoding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. The dual-constraint gated prototype distillation module is used to incrementally update the pre-built dynamic prototype library based on a composite representation vector according to the pre-built dual-constraint gated prototype distillation model, so as to obtain the updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gate unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit. The dual-constraint gate unit includes temporal stability constraints and topological consistency constraints. The temporal stability constraints include instantaneous scale verification, short-term scale verification, and long-period scale verification executed sequentially. The zero-shot inference matching and perception output module is used to perform zero-shot inference matching on composite representation vectors based on the updated dynamic prototype library, and output perception results containing semantic category identifiers and spatiotemporal anchoring information. The perception results are used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.

[0016] (III) Beneficial Effects This application presents a zero-shot roadside perception method based on topological temporal dual-constraint prototype distillation. It extracts features from roadside scene data through a pre-trained three-branch decoupled coding model. The model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. The three branches process three types of information: static semantics, dynamic trajectory, and spatial topology, respectively. This avoids feature coupling ambiguity caused by spatiotemporal granularity mismatch in existing single-branch unified coding or back-end weighted fusion schemes from the coding source. The unified mapping layer maps the three features to a visual-language shared semantic space, enabling the composite representation vector to have both multimodal semantic information and cross-modal alignment capabilities, thereby improving the accuracy and robustness of feature extraction in complex roadside scenes. The dynamic prototype library is incrementally updated by using a pre-built dual-constraint gated prototype distillation model. The dual-constraint gated unit in this model includes temporal stability constraints and topological consistency constraints. The temporal stability constraints further include sequential instantaneous scale verification, short-term scale verification, and long-term scale verification. Samples are screened layer by layer from three time dimensions: single-frame confidence, short-term category stability, and long-term evolution trend. The topological consistency constraints are superimposed to verify the spatial rule matching. Only when all verifications pass are samples allowed to participate in prototype updates. This fundamentally blocks the path of low-quality samples contaminating the prototype pool, effectively suppresses prototype drift in long-term operation, and improves the evolutionary stability and controllability of the prototype library in an open environment. By performing zero-shot inference matching on composite representation vectors using an updated dynamic prototype library, the system outputs perception results containing semantic category identifiers and spatiotemporal anchoring information. These perception results can be directly used to generate roadside traffic event intelligence, supporting road situation awareness and abnormal event response for target highways. The entire perception process requires no manual sample annotation, the backbone encoder weights are frozen throughout, and only the prototype vectors and lightweight adaptation layer parameters are updated. This achieves highly stable zero-shot perception deployment at low-computing-power edge devices, reducing the deployment cost and cycle time for new intersections. Attached Figure Description

[0017] Figure 1 This is a flowchart of a roadside zero-sample sensing method based on topological temporal dual-constraint prototyping distillation according to this application; Figure 2 This is a flowchart of the training process for a three-branch decoupled coding model in one embodiment of this application; Figure 3 This is a flowchart illustrating the incremental update process of the dynamic prototype library by the dual-constraint gated prototype distillation model in one embodiment of this application. Figure 4 This is a flowchart illustrating the determination of valid characterization samples using dual-constraint gating verification in one embodiment of this application; Figure 5 This is a flowchart of momentum smoothing incremental update in one embodiment of this application. Detailed Implementation

[0018] In existing technologies, zero-shot sensing methods for roadside applications can be mainly categorized into the following three types: The first category is the general dual-stream spatiotemporal coding method. Represented by the SlowFast network, it extracts static spatial features through the slow path and dynamic motion features through the fast path, and is widely used in general video behavior recognition. This type of method only models general pixel-level motion and does not include traffic spatial rules such as lane adjacency and accessibility. When directly transferred to roadside scenes, it is prone to errors that violate topological common sense, and the generalization accuracy across intersections is significantly reduced.

[0019] The second category is topology-guided point cloud distillation methods. Designed for 3D point cloud segmentation scenarios in autonomous vehicles, these methods preserve the geometric structure information of the point cloud through topology-aware representation, distilling the structural perception capabilities of a large model into a lightweight model. However, this type of method only applies to 3D point cloud modalities and cannot cover 2D vision-language zero-shot perception scenarios. It also does not consider the prototype temporal drift problem caused by dynamic scenarios such as variable lanes, and therefore cannot be directly reused.

[0020] The third category is hierarchical self-supervised distillation methods. These methods generate multi-layered soft labels through shallow and deep network classifiers, achieving hierarchical knowledge transfer to compress large models and improve edge inference speed. However, these methods only perform knowledge transfer at the network level, using a single global contrastive loss. They cannot address conflict scenarios involving static ground markings, dynamic electronic signs, and vehicle trajectories—three types of traffic-specific evidence—with targeted gradient penalties. Online updates rely solely on single-frame confidence as sample admission criteria, neglecting short-term stability and long-term evolution trends. Low-quality conflicting samples continuously pollute the prototype pool, leading to a model drift rate exceeding 20% ​​over long-term operation. Multimodal fusion remains at the back-end weighting level, without decoupling the encoding layer, making it impossible to eliminate ambiguities caused by feature coupling through post-processing.

[0021] To address this, this application provides a roadside zero-shot perception method based on topological temporal dual-constraint prototype distillation. This method employs a three-branch decoupled coding model, comprising a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. It comprehensively utilizes three types of information—static semantics, dynamic trajectory, and spatial topology—and achieves gradient decoupling. Furthermore, it combines a dual-constraint gated prototype distillation model with temporal stability and topological consistency constraints, while introducing momentum smoothing incremental update units and modal game penalty loss. Combined with adaptive momentum coefficients and a hierarchical prototype tree structure, this method achieves zero-shot perception at the roadside edge without manual annotation, with low computational cost, high stability, and long-term operation, overcoming the shortcomings of the aforementioned prior art.

[0022] To better explain and facilitate understanding of this application, a detailed description of its embodiments is provided below in conjunction with the accompanying drawings. While exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a clearer and more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.

[0023] Example 1: Figure 1 This is a flowchart illustrating a roadside zero-shot perception method based on topological temporal dual-constraint prototyping distillation, according to this application. This embodiment uses a two-way four-lane urban road intersection as an application scenario. This scenario involves both variable lane switching and temporary construction detours. Using this complex scenario as an example, the roadside zero-shot perception method based on topological temporal dual-constraint prototyping distillation of this application is described in detail. Multiple roadside monitoring cameras are deployed along the intersection, each with a unique device identifier and lane coverage area, used to collect roadside video streams containing static ground markings, dynamic vehicle trajectories, and lane topology relationships.

[0024] The method in this embodiment operates on a perception system deployed in a roadside edge computing device. This roadside edge computing device is communicatively connected to a roadside camera and accesses an urban traffic management platform. The roadside camera transmits real-time roadside video streams to the edge computing device. The edge computing device analyzes the video stream frame by frame, extracts composite representation vectors through a three-branch decoupled coding model, incrementally updates the dynamic prototype library based on a dual-constraint gated prototype distillation model, and finally outputs the perception results through zero-shot inference matching. After processing, the edge computing device uploads the perception results to the urban traffic management platform to generate roadside traffic event intelligence, supporting road situation awareness and abnormal event response. In this embodiment, the edge computing device is an 8-TOPS computing power edge computing box equipped with 4GB of video memory; the training end uses a single-card RTX4090 server; the static semantic coding branch in the three-branch decoupled coding model uses a lightweight SAM segmentation model as the base model, and the visual-language shared semantic space is derived from the CLIP-ViT-B / 16 cross-modal basis model. Those skilled in the art can choose other equivalent models according to actual computing power conditions and accuracy requirements, and this application does not limit this. Figure 1 As shown, the roadside zero-sample sensing method based on topological temporal dual-constraint prototype distillation specifically includes the following steps: S1. Obtain roadside scene data of the target highway, and extract features from the roadside scene data according to the pre-trained three-branch decoupled coding model to obtain a composite representation vector.

[0025] The three-branch decoupled coding model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer.

[0026] Specifically, in this embodiment, roadside cameras capture real-time video streams of urban four-lane intersections at a fixed frame rate, and edge computing devices acquire these real-time video streams frame by frame as roadside scene data. For each frame, the edge computing devices extract three types of raw data in parallel: static semantic elements, dynamic vehicle trajectory sequences, and lane topology maps.

[0027] The static semantic elements include region-of-interest (ROI) image blocks for each lane, ground guidance sign segmentation masks, and road surface text semantic labels. Specifically, the ROI image blocks can be cropped from the current frame image based on pre-labeled lane regions; the ground guidance sign segmentation masks can be obtained by segmenting road surface guidance arrows, stop lines, and other signs using a lightweight semantic segmentation model; and the road surface text semantic labels can be obtained through optical character recognition or pre-labeled text attributes.

[0028] The dynamic vehicle trajectory sequence includes short-term vehicle trajectory point sequences ranging from 1 to 5 seconds and a variable electronic signage status time sequence. Specifically, the short-term vehicle trajectory point sequence can be obtained by detecting and tracking vehicles in multiple consecutive frames of images using vehicle detection and multi-target tracking algorithms. Each trajectory point contains the vehicle's position coordinates and a corresponding timestamp. The variable electronic signage status time sequence can be obtained by reading the status signals of the roadside electronic signs or by performing image recognition on the electronic signage area. It is used to characterize the traffic direction or lane function displayed by the electronic signs at different times.

[0029] The lane topology map includes lane adjacency relationships and upstream / downstream accessibility relationships. Specifically, lane adjacency relationships and upstream / downstream accessibility relationships can be obtained from pre-built high-definition or standard-definition roadside map data, or they can be calibrated by roadside sensing devices during deployment based on the actual lane layout.

[0030] Subsequently, the three types of raw data are input into the corresponding branches of the pre-trained three-branch decoupled coding model for feature extraction. Specifically, static semantic elements are input into the static semantic coding branch, dynamic vehicle trajectory sequences are input into the dynamic trajectory coding branch, and lane topology maps are input into the topology graph convolutional regularization bypass. The specific processing steps for each branch are as follows: (1) The static semantic coding branch receives the image block of the region of interest of the lane, the segmentation mask of the ground guidance sign, and the semantic label of the road surface text. It adopts a lightweight visual Transformer as the backbone network, embeds the semantic information of road traffic elements through the cue adapter, extracts deep spatial features layer by layer, and automatically applies feature attenuation weights to occluded and worn areas, and outputs a static semantic representation vector. The feature attenuation weights can be determined according to the area ratio of the occluded area or the degree of wear. The larger the occluded area or the more severe the wear, the lower the feature attenuation weight.

[0031] In variable lane switching scenarios, this branch can extract the functional attribute semantics of the current lane from electronic signs or ground markings.

[0032] (2) The dynamic trajectory coding branch receives short-term vehicle trajectory point sequences of 1 to 5 seconds and variable electronic signage state time sequences. It adopts a lightweight temporal Transformer encoder, first normalizes the pixel coordinates of all trajectory points and aligns them with timestamps, then models the distribution characteristics of vehicle motion direction through a self-attention mechanism, and simultaneously fuses the state time sequence change information of the electronic signage to output a dynamic temporal representation vector. In the scenario of temporary construction and detour, this branch can capture the temporal relationship between the actual vehicle trajectory and the state changes of the electronic signage.

[0033] Specifically, pixel coordinate normalization refers to dividing the pixel coordinates of each trajectory point by the width and height of the image, mapping them to a normalized coordinate range of 0 to 1 to eliminate scale differences caused by different camera resolutions. Timestamp alignment refers to aligning trajectory points collected by different cameras according to a unified time reference; for trajectory points with missing timestamps, linear interpolation can be used to fill in the missing timestamps. Self-attention mechanism modeling of the distribution characteristics of vehicle motion direction involves calculating the displacement vector between adjacent points of continuous trajectory points and further obtaining the motion direction angle. The direction information of each trajectory point is aggregated through the self-attention mechanism to obtain a distribution representation of the vehicle motion direction. Synchronous fusion of the temporal change information of electronic signage refers to encoding the state sequence of variable electronic signage (such as "left turn," "straight ahead," "road diversion under construction," etc.) into a state vector, and concatenating or weighting it with the trajectory direction features.

[0034] In temporary construction and detour scenarios, the actual driving trajectory of vehicles may exhibit patterns different from regular traffic, such as detours and lane changes. This branch can capture changes in the current actual traffic rules based on the correspondence between the trajectory direction distribution and the time sequence of electronic sign status, providing dynamic basis for subsequent topology consistency verification.

[0035] (3) The topology graph convolutional regularization bypass is used to receive the topology graph of lane adjacency relationships and upstream and downstream accessibility. Based on the lane spatial layout information, a static topology graph is constructed with roadside sensing areas as nodes and physical connectivity relationships as edges. The node features with enhanced topology are generated through a pre-constructed multi-layer graph convolutional network, and spatial topology constraints are applied to the static semantic representation vector and dynamic temporal representation vector accordingly, outputting the topology constraint representation vector. When temporary construction and lane diversion cause temporary changes in lane connectivity relationships, this bypass can constrain the representation according to the current lane connectivity relationships, avoiding the generation of features that violate the current traffic rules.

[0036] Finally, the unified mapping layer maps the aforementioned static semantic representation vector, dynamic temporal representation vector, and topological constraint representation vector to the vision-language shared semantic space using a learnable projection matrix, generating a composite representation vector. Based on this, the composite representation vector contains static semantic information from the static semantic encoding branch, dynamic temporal information from the dynamic trajectory encoding branch, and topological constraint information from the topological graph convolutional regularization bypass.

[0037] It should be noted that the visual-language shared semantic space is a fixed representation space formed by a pre-trained cross-modal contrastive learning model (such as CLIP) after pre-training with image-text pairing data. In this embodiment, the unified mapping layer maps the three-way features to this visual-language shared semantic space through a learnable projection matrix, achieving cross-modal alignment between roadside perception features and traffic text descriptions. The independent gradient propagation channels of the three-way features are preserved throughout the mapping process for targeted optimization of the subsequent hierarchical multi-objective loss function.

[0038] Thus, the edge computing device completed the feature extraction of roadside scene data through a three-branch decoupled coding model, and obtained a composite representation vector that simultaneously contains static semantic information, dynamic temporal information and topological constraint information, which provides a foundation for subsequent dual-constraint gated prototype distillation update and zero-sample inference matching.

[0039] In practical applications, the three-branch decoupled coding model needs to be pre-trained. However, since the static semantic coding branch, dynamic trajectory coding branch, and topological graph convolutional regularization bypass are used to extract static semantic representation vectors, dynamic temporal representation vectors, and topological constraint representation vectors, respectively, the modal differences among the three types of data are significant. During training, the gradients of each branch are prone to imbalance: the gradient norm of some branches is much larger than that of other branches, causing the parameter update direction to be dominated by that branch, preventing the other branches from learning sufficiently, ultimately affecting the representational ability and generalization performance of the composite representation vector. To solve the above problems, in a preferred embodiment, this application uses a training method including a hierarchical multi-objective loss function to train the three-branch decoupled coding model. Figure 2 As shown, the specific training steps of the three-branch decoupled coding model include: S01, Obtain the roadside training sample set.

[0040] Specifically, in this embodiment, the roadside training sample set comes from unlabeled roadside video data from multiple urban intersections, covering various scenarios such as sunny days, rainy nights, temporary construction, and reversible lane switching. The acquisition method of the roadside training sample set is the same as that of the roadside scene data acquisition method in step S1, both of which use roadside cameras to capture real-time video streams at a fixed frame rate and extract them frame by frame by edge computing devices. The difference from step S1 is that the roadside training sample set is used to train the initial three-branch decoupled coding model before deployment, while the roadside scene data in step S1 is used for real-time inference after deployment at the edge.

[0041] For each frame of image in the roadside training sample set, three types of raw data are extracted in parallel, following the same method as in step S1: static semantic elements, dynamic vehicle trajectory sequences, and lane topology maps. Static semantic elements include image blocks of regions of interest for each lane, ground guidance sign segmentation masks, and road surface text semantic labels; dynamic vehicle trajectory sequences include short-term vehicle trajectory point sequences of 1 to 5 seconds and time-series sequences of variable electronic sign states; and lane topology maps include lane adjacency relationships and upstream / downstream accessibility relationships. These three types of raw data together constitute the roadside training samples, used as input to the initial three-branch decoupled coding model for forward propagation and parameter updates.

[0042] S02, input the roadside training sample set into the initial three-branch decoupled coding model to obtain the composite representation vector.

[0043] The initial three-branch decoupled coding model uses the same network architecture as the pre-trained three-branch decoupled coding model in step S1, both including a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. The static semantic coding branch outputs static semantic representation vectors, the dynamic trajectory coding branch outputs dynamic temporal representation vectors, the topological graph convolutional regularization bypass outputs topological constraint representation vectors, and the unified mapping layer maps the static semantic representation vectors, dynamic temporal representation vectors, and topological constraint representation vectors to the visual-language shared semantic space, generating composite representation vectors for the training phase.

[0044] Existing dual-stream networks only model general pixel-level motion and do not include traffic spatial rules such as lane adjacency and accessibility. When directly transferred to roadside scenarios, they are prone to generating erroneous representations that violate topological common sense, such as identifying the leftmost lane as a right-turn lane, resulting in a significant decrease in generalization accuracy across intersections. Therefore, in a preferred embodiment, the topological graph convolutional regularization bypass includes a pre-constructed multi-layer graph convolutional network. During the training phase, spatial topological constraints are applied to the static semantic representation vector and the dynamic temporal representation vector from the encoding layer, ensuring that the composite representation vector conforms to the physical connectivity of lanes. Based on this, the execution steps of the topological graph convolutional regularization bypass in step S02 include: S021. Based on the lane space layout information in the roadside training sample set, construct a static topology graph with the roadside sensing area as nodes and physical connectivity as edges.

[0045] The lane spatial layout information includes the lane centerline position, lane boundary lines, adjacent lane adjacency relationships, and upstream and downstream connectivity relationships between lanes. Physical connectivity relationships include adjacent lane adjacency relationships and upstream and downstream connectivity relationships between lanes, used to construct the edges of the static topology graph. Physical connectivity relationships only describe whether lanes are physically connected, not whether the direction of travel is permitted. For example, lane 1 and lane 2 are not physically separated, but are physically connected; lane 1 and lane 4 are separated by two lanes, but are not directly physically connected. Another example is that a lane in an upstream road segment is physically connected to its corresponding lane at an intersection, but whether an upstream left-turn lane can enter a downstream straight-ahead lane is subject to the lane physical topology reachability rules and is not considered a physical connectivity relationship.

[0046] S022, the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch are mapped to each node of the static topology graph according to their corresponding spatial positions, and used as the initial features of each node.

[0047] S023 uses a pre-built multi-layer graph convolutional network to perform message passing and aggregation on the initial features of each node, resulting in topology-enhanced node features.

[0048] In step S024, the topology-enhanced node features are used as regularization constraints to perform regularization weighting on the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch. Feature vectors that conflict with the physical connectivity relationships between nodes in the static topology graph are subject to a weight reduction penalty. The conflicting feature vectors refer to the static semantic representation vectors and dynamic temporal representation vectors mapped to each node in the static topology graph in step S022. The topology-enhanced node features are used to determine whether the feature vectors corresponding to each node conflict with the physical connectivity relationships, and a weight reduction penalty is applied to conflicting feature vectors.

[0049] Through the steps S021 to S024 above, the topological graph convolutional regularization bypass directly applies spatial topological constraints to the static semantic representation vector and the dynamic temporal representation vector during the encoding stage, so that the composite representation vector conforms to the physical connectivity of the lanes during the generation process. This filters out unreasonable representations that violate topological common sense from the source and improves the cross-intersection generalization ability of the composite representation vector.

[0050] S03, according to the preset hierarchical multi-objective loss function, the loss of the composite representation vector is calculated to obtain the calculation result, and the parameters of the initial three-branch decoupled coding model are updated according to the calculation result; Repeat steps S02 and S03 until the preset convergence condition is met, and the trained three-branch decoupled coding model is obtained.

[0051] In a specific example, the preset convergence condition is: the loss value of the hierarchical multi-objective loss function is less than 0.01, or the number of iterations reaches 100. When either condition is met, training stops, and the trained three-branch decoupled coding model is obtained.

[0052] Furthermore, considering that the three-branch decoupled coding model contains three independent coding branches responsible for extracting static semantic representation vectors, dynamic temporal representation vectors, and topological constraint representation vectors, respectively, and that each branch processes different data modalities, corresponding supervision signals need to be set separately; at the same time, gradient imbalance is prone to occur during the training process of the three branches. Therefore, in this embodiment, the hierarchical multi-objective loss function sets corresponding supervision loss terms for each of the three branches, and additionally sets a term to balance the gradients between branches, specifically including the following four sub-loss terms: (1) Semantic contrast loss, used to constrain the intra-class compactness and inter-class separation of samples of the same class in the visual-linguistic shared semantic space. Intra-class compactness refers to the degree to which the composite representation vectors of samples of the same class are close to each other in the visual-linguistic shared semantic space; inter-class separation refers to the degree to which the composite representation vectors of samples of different classes are far apart from each other in the visual-linguistic shared semantic space.

[0053] Specifically, for each roadside training sample, a pre-constructed traffic category text attribute template is mapped to the visual-language shared semantic space. The cosine similarity between the composite representation vector of the roadside training sample and the corresponding category text attribute template is calculated, and a contrastive learning loss function is used to constrain this, ensuring that the composite representation vectors of samples of the same category are closer to each other in the semantic space, while the composite representation vectors of samples of different categories are further apart. The traffic category text attribute template can be predefined based on lane attributes in the roadside scene, such as "straight lane," "dedicated left-turn lane," "dedicated right-turn lane," and "reversible lane."

[0054] (2) Trajectory alignment loss is used to constrain the motion continuity of the composite representation vector between consecutive frames in the temporal dimension. Specifically, for the composite representation vector of consecutive multiple frames, the dynamic temporal information from the dynamic trajectory coding branch is extracted, the KL divergence between the vehicle motion direction distribution represented by the dynamic temporal information between adjacent frames and the actual vehicle driving direction distribution is calculated, and the KL divergence is used as the trajectory alignment loss to make the dynamic temporal representation conform to the real traffic flow motion law.

[0055] (3) Topological regularization loss is used to constrain the consistency between the spatial topological relationship between the semantic categories represented by the composite representation vector and the lane physical topological accessibility rules. Specifically, for multiple semantic categories represented by the composite representation vector, the consistency loss between the spatial topological relationship between the semantic categories represented by the composite representation vector and the real physical topology is calculated according to the lane physical topological accessibility rules of the lane to which it belongs. Basic penalties are imposed on features that violate the lane physical topological accessibility rules to strengthen the role of topological constraints.

[0056] Among them, the lane physical topology accessibility rules are pre-set based on the actual lane layout and traffic organization plan of the target highway. These rules refer to the lane traffic rules determined by the road spatial layout, including the correspondence between lane positions and traffic directions, and the upstream and downstream accessibility relationships between lanes. For example, in a standard urban two-way four-lane road intersection, the leftmost lane only allows left turns or U-turns, prohibiting straight or right turns; the rightmost lane only allows right turns, prohibiting left turns or U-turns; the middle lane allows straight traffic. After a vehicle enters the intersection from the upstream left-turn lane, it can only enter the corresponding downstream left-turn target lane and cannot enter the straight or right-turn target lane.

[0057] When the semantic category represented by the composite representation vector violates the above lane physical topology accessibility rules, such as identifying the leftmost lane as a "right-turn lane," the semantic category is determined to be inconsistent with the lane physical topology accessibility rules, and a basic penalty is imposed. These lane physical topology accessibility rules can also be dynamically updated based on variable lane switching or temporary construction detours.

[0058] (4) Modal game penalty loss is used to suppress gradient conflicts between static semantic encoding branch, dynamic trajectory encoding branch and topological graph convolution regularization bypass, so as to balance the training convergence rate of each branch.

[0059] The total loss value L of the hierarchical multi-objective loss function total Calculate according to the following formula: L total =w1×L1+w2×L2+w3×L3+w4×L4; Among them, L1 is the semantic contrast loss, L2 is the trajectory alignment loss, L3 is the topological regularization loss, and L4 is the modal game penalty loss; w1, w2, w3, and w4 are the dynamic weight coefficients of each loss term, which can be adaptively adjusted according to the scenario.

[0060] For example, in scenarios where ground markings are blurred due to rain, the weight of semantic contrast loss can be reduced while the weight of trajectory alignment loss can be increased, allowing the model to rely more on dynamic trajectory information for judgment. In scenarios involving temporary construction and road diversion, the weight of topology regularization loss can be increased to ensure the constraint strength of spatial topology rules. The specific values ​​of each dynamic weight coefficient can be calibrated experimentally based on the actual scenario, and this application does not impose any limitations on this.

[0061] In a preferred embodiment, considering that gradient conflict between the static semantic encoding branch, the dynamic trajectory encoding branch, and the topological graph convolutional regularization bypass is difficult to measure directly, this embodiment indirectly characterizes the degree of gradient conflict between branches by calculating the modal conflict level, and applies a step-wise penalty according to the modal conflict level to suppress gradient conflict and balance the training convergence rate of each branch. Specifically, the construction steps of the modal game penalty loss include: Calculate the highest matching category of the output features of the static semantic coding branch, the dynamic trajectory coding branch, and the topological graph convolutional regularization bypass, respectively. The modal conflict level is determined based on the number of branches that do not match the highest matching category. The modal conflict level includes three levels: mild, moderate, and severe. The more branches that do not match, the higher the conflict level. Based on the modal conflict level, the modal game penalty loss is calculated according to a preset stepped penalty gradient; wherein, the modal game penalty loss is positively correlated with the modal conflict level, and the higher the modal conflict level, the larger the stepped penalty gradient.

[0062] Specifically, the stepped penalty gradient can be set with different penalty coefficients according to the modal conflict level. For example, when the modal conflict level is mild, the penalty coefficient is the first value; when the modal conflict level is moderate, the penalty coefficient is the second value; when the modal conflict level is severe, the penalty coefficient is the third value; the first value, the second value, and the third value increase sequentially, and the increase rate between adjacent levels gradually increases.

[0063] In a specific example, the penalty coefficient for mild conflict is 1, for moderate conflict it is 2, and for severe conflict it is 4. That is, the higher the level of conflict, the greater the increase in the penalty coefficient.

[0064] The modal game penalty loss can be calculated according to the following formula: L modal =γ × penalty coefficient, where L modal The penalty loss is determined by the modal conflict level according to the above rules. γ is the basic penalty weight, which is used to adjust the overall contribution of the modal game penalty loss to the total loss. Its value can be set by experimental calibration or experience based on the training effect. For example, it can be a positive number between 0.1 and 1.

[0065] Among them, the modal conflict level corresponds to the gradient conflict between the three branches: when the highest matching category of the three branches is inconsistent, it indicates that the features extracted by each branch are inconsistent in the semantic space, and the gradient directions of each branch will also conflict during backpropagation; the higher the modal conflict level, the more serious the gradient conflict between the branches.

[0066] It should be noted that since a single image frame typically contains multiple lanes, the edge computing device generates a corresponding region of interest image block for each lane and performs the aforementioned three-branch decoupling encoding process separately. Therefore, each image frame may correspond to multiple composite representation vectors. In subsequent steps S2 and S3, "current frame" refers to the image frame currently being processed; "samples within the current frame" refers to the valid representation samples obtained after the composite representation vectors generated from each lane in that image frame are verified by double-constraint gating.

[0067] S2, based on the pre-constructed dual-constraint gated prototype distillation model, incrementally update the pre-constructed dynamic prototype library based on the composite representation vector to obtain the updated dynamic prototype library; wherein, the dual-constraint gated prototype distillation model includes a dual-constraint gated unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit; the dual-constraint gated unit includes temporal stability constraints and topological consistency constraints; the temporal stability constraints include sequentially executed instantaneous scale verification, short-term scale verification, and long-period scale verification.

[0068] The dynamic prototype library is a collection storing prototype vectors for each category, with each category's prototype vector corresponding to a traffic semantic category (such as "straight lane," "dedicated left-turn lane," "dedicated right-turn lane," "reversible lane," etc.). Before deployment, the initial state of the dynamic prototype library is generated by encoding the traffic category description text using a pre-trained cross-modal contrastive learning model (such as CLIP) text encoder, resulting in initial prototype vectors for each category. After deployment, the dynamic prototype library undergoes incremental evolution updates driven by valid representation samples that satisfy the dual-constraint gating verification conditions, using a momentum smoothing approach. Each category's prototype vector in the dynamic prototype library is associated with and stored as a semantic category identifier and spatial topological attributes, used for calculating the similarity between the composite representation vector and each candidate prototype vector during subsequent zero-shot inference matching.

[0069] In this dynamic prototype library, each category prototype vector is associated with a semantic category identifier, which is used to determine the category corresponding to the matching result during zero-sample inference matching.

[0070] Figure 3 This is a flowchart illustrating the incremental update process of the dynamic prototype library by the dual-constraint gated prototype distillation model in this embodiment. Figure 3As shown, the incremental update process of the dynamic prototype library by the dual-constraint gated prototype distillation model in step S2 specifically includes the following sub-steps: S21, the composite representation vector is verified according to the temporal stability constraint and topological consistency constraint in the dual-constraint gating unit, and the composite representation vector that passes the verification is determined as a valid representation sample.

[0071] Among them, the temporal stability constraint is used to verify the continuity of the dynamic temporal information from the dynamic trajectory coding branch in the composite representation vector, so as to filter out the effective representation samples with coherent trajectories and confidence levels that meet the preset threshold; the topology consistency constraint is used to verify the lane physical topology matching of the topology constraint information from the topology graph convolution regular bypass in the composite representation vector, so as to eliminate invalid samples with spatial location and semantic category conflicts.

[0072] Figure 4 This is a flowchart of the dual-constraint gating verification process for determining valid characterization samples in this embodiment, as follows: Figure 4 As shown, in a preferred embodiment, the dual-constraint gating verification for determining valid characterization samples specifically includes the following process: S211, perform instantaneous scale verification, short-term scale verification and long-period scale verification on the composite representation vector in sequence. If any scale verification fails, the composite representation vector is discarded.

[0073] Existing prototype update schemes typically use only single-frame matching confidence as the sample admission criterion, without considering short-term stability and long-term evolution trends. Low-quality conflicting samples can easily pollute the prototype pool. Therefore, in this embodiment, the temporal stability constraint includes sequentially executed instantaneous scale verification, short-term scale verification, and long-term scale verification, filtering samples layer by layer from three time dimensions.

[0074] The instantaneous scale verification includes: calculating the similarity score between the composite representation vector and each candidate prototype vector in the dynamic prototype library, and determining the maximum value of the similarity score as the matching confidence score; if the matching confidence score is not lower than the preset first threshold, the instantaneous scale verification is satisfied and short-term scale verification is performed; if the matching confidence score is lower than the preset first threshold, the instantaneous scale verification is not satisfied.

[0075] For example, the preset first threshold can be 0.8; those skilled in the art can select an appropriate value between 0.7 and 0.9 according to the actual roadside scenario and the different similarity calculation methods, and this application does not limit it in this regard.

[0076] Short-term scale verification includes: within a preset short-term sliding time window containing the composite representation vector of the current frame, counting the category label sequence of composite representation vectors of multiple consecutive frames; calculating the proportion of the category label that appears most frequently in the category label sequence (hereinafter referred to as the mode label); and matching the static semantic representation vector output by the static semantic coding branch and the topological constraint representation vector output by the topological graph convolution regularization bypass with the dynamic prototype library respectively to obtain their respective matching category labels. If the matching category labels of the two are inconsistent, it is determined that there is a modal conflict. The ratio of the number of frames with modal conflicts within the short-term sliding time window to the total number of frames is calculated as the conflict degree. If the proportion of the mode label exceeds a preset ratio threshold and the conflict degree is lower than a preset conflict threshold, it is determined that the short-term scale verification is satisfied and long-term scale verification is performed; otherwise, it is determined that the short-term scale verification is not satisfied.

[0077] For example, the preset proportion threshold can be 0.8, and the preset conflict threshold can be 0.2. That is, when the proportion of the mode label exceeds 80% and the conflict degree is less than 20%, it is determined that the short-time scale verification is satisfied. Those skilled in the art can adjust the above thresholds according to the actual roadside scenario and window length, and this application does not limit this.

[0078] The long-period scale verification includes: extracting the historical matching confidence time series of the candidate prototype vectors corresponding to the mode label determined in the short-term scale verification within a preset long-period time window that is larger than the short-term sliding time window; wherein, the historical matching confidence time series is generated by the system recording the calculated matching confidence in chronological order each time the instantaneous scale verification is performed; calculating the moving mean and variance of the historical matching confidence time series, if the moving mean does not show a continuous decrease within the long-period time window and the variance does not exceed the preset second threshold, then the long-period scale verification is deemed to be satisfied; otherwise, the long-period scale verification is deemed not to be satisfied.

[0079] For example, the preset second threshold can be 0.01. That is, when the moving average of the historical matching confidence time series does not show a continuous downward trend and the variance does not exceed 0.01, it is determined that the long-term scale verification is met; if the moving average continues to decrease, or the variance exceeds 0.01, it is determined that the long-term scale verification is not met. For example, within a 7-day long-term time window, the moving average of the historical matching confidence time series of a candidate prototype vector is 0.82, 0.83, 0.81, and 0.82, which does not decrease continuously, and the variance is approximately 0.00005, not exceeding 0.01, then it is determined that the long-term scale verification is met; if the moving average continues to decrease to 0.90, 0.85, 0.80, and 0.75, or the variance reaches 0.02, then it is determined that the long-term scale verification is not met.

[0080] Those skilled in the art can select an appropriate value between 0.005 and 0.05 based on the length of the long-term time window and the fluctuation of confidence level; this application does not impose any limitation on this.

[0081] The variance not exceeding the second threshold further constrains the fluctuation range of the moving average, and the two together constitute the stability criterion for long-period scale verification.

[0082] S212, Perform spatial topology matching verification based on topology consistency constraints; match the semantic category corresponding to the composite representation vector with the lane physical topology reachability rules of its lane, and determine whether the semantic category meets the requirements of the lane's travel direction and functional attributes. If it does, the topology consistency constraint is satisfied; if it does not, the topology consistency constraint is not satisfied, and the composite representation vector is discarded.

[0083] S213, the composite representation vector that simultaneously satisfies the three-level verification and topological consistency constraints of the time-series stability constraint is determined as the effective representation sample.

[0084] In a preferred embodiment, the output of the dual-constraint gating unit can be divided into three intervals: samples that simultaneously satisfy the three-level verification of temporal stability constraints and topological consistency constraints enter the high-confidence interval, are identified as valid characterization samples, and are sent to the prototype distillation pool for updating; samples that satisfy instantaneous scale verification and short-term scale verification but fail long-period scale verification enter the observation interval, are cached in the observation pool, and are re-verified after a preset time; samples that do not meet any core verification conditions enter the rejection interval and are directly discarded.

[0085] For example, samples in the observation interval can be cached for 72 hours and then re-performed with a long-term scale verification. If the verification passes, the samples are moved to the high-confidence interval; if they still fail, they are moved to the rejection interval. Through the above three-stage gating output, sample admission control can be further refined to avoid the accidental loss of potentially valid samples due to insufficient long-term data.

[0086] Through the above steps S211 to S213, the dual-constraint gating unit performs joint verification on the composite representation vector from three time dimensions (instantaneous, short-term, and long-term) and the topological consistency dimension. Only when all verifications pass is it determined as a valid representation sample, thereby blocking the path of low-quality samples contaminating the prototype pool from the source.

[0087] S22, according to the prototype matching and similarity calculation unit, calculate the similarity between the effective representation sample and each candidate prototype vector in the dynamic prototype library, and determine the candidate prototype vector whose similarity meets the preset conditions as the matching candidate prototype vector.

[0088] S23, invoke the momentum smoothing incremental update unit to perform momentum smoothing update on the matched candidate prototype vectors based on the effective representation samples, and obtain the updated dynamic prototype library.

[0089] Figure 5 This is a flowchart of momentum smoothing incremental update in one embodiment of this application. Existing prototype update schemes typically use a fixed momentum coefficient, resulting in rigid updates that are difficult to adapt to dynamic changes such as lane switching; or they rely entirely on real-time confidence levels, which can easily cause prototype mutations due to a single extreme sample. Therefore, in this embodiment, the momentum smoothing incremental update unit adaptively calculates the momentum coefficient based on the comprehensive confidence score of the sample and the historical stability index of the prototype, so that the update intensity is dynamically adjusted according to the sample confidence and the historical stability of the prototype. Figure 5 As shown, the momentum smoothing incremental update step in step S23 specifically includes: S231, obtain the comprehensive credibility score output by the valid representation sample corresponding to the current update step after verification by the dual-constraint gating unit, denoted as C; wherein, while outputting the verification result, the dual-constraint gating unit also calculates the comprehensive credibility score by weighting the verification result of the three-level verification result of the temporal stability constraint and the verification result of the topological consistency constraint.

[0090] Specifically, the overall credibility score C can be defined as the weighted sum of four factors: the matching confidence of the instantaneous scale verification, the proportion of the mode label of the short-term scale verification, the moving average of the long-term scale verification, and the pass rate of the topology consistency verification, and normalized to between 0 and 1.

[0091] S232, Obtain the historical stability index of the matched candidate prototype vector, denoted as S. The historical stability index S is calculated based on the moving mean and variance.

[0092] Specifically, the historical stability index S can be defined as a function of the moving average and the variance, for example, by dividing the moving average by the sum of the variance and a preset constant, and normalizing it to between 0 and 1; the higher the historical stability index S, the more stable the historical confidence of the matched candidate prototype vector.

[0093] S233, calculate the momentum coefficient α of the current update step based on the weighted combination of the comprehensive credibility score C and the historical stability index S; wherein, the momentum coefficient α decreases monotonically with the increase of the comprehensive credibility score C and increases monotonically with the increase of the historical stability index S.

[0094] Specifically, the momentum coefficient α can be calculated according to the following formula: ; Wherein, λ is a preset weight, and its value ranges from 0 to 1.

[0095] S234, the effective characterization sample and the matched candidate prototype vector are weighted and fused according to the momentum coefficient α to obtain the updated candidate prototype vector; the matched candidate prototype vector in the dynamic prototype library is replaced with the updated candidate prototype vector to complete the momentum smooth update of the current update step.

[0096] Specifically, the weighted fusion can be calculated using the following formula: ; Among them, P old V represents the candidate prototype vector for matching. sample P represents the composite representation vector of the valid representation samples. new This represents the updated candidate prototype vector.

[0097] S235, traverse all valid representation samples in the current frame, repeat steps S231 to S234 until the candidate prototype vectors corresponding to all valid representation samples in the current frame are updated, and the updated dynamic prototype library is obtained.

[0098] Through the above steps S21 to S23, highly reliable and effective representation samples are first screened by the dual-constraint gating unit, then the update target is determined by prototype matching, and finally the adaptive momentum is used for smooth writing. This suppresses prototype drift while adapting to dynamic scene changes, and achieves long-term stable evolution of the dynamic prototype library.

[0099] It should be noted that during the update process from S231 to S235, the momentum smoothing incremental update unit only updates the category prototype vectors and lightweight adaptation layer parameters in the dynamic prototype library. The backbone network weights of the three-branch decoupled coding model are frozen throughout the process, thereby significantly reducing the computing power overhead at the edge and meeting the deployment requirements of low-computing-power edge devices.

[0100] S3, based on the updated dynamic prototype library, performs zero-shot inference matching on the composite representation vector and outputs perception results containing semantic category identifiers and spatiotemporal anchoring information. The perception results are used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.

[0101] In a preferred embodiment, the specific process of zero-sample inference matching in step S3 is as follows: The similarity between the composite representation vector of the current frame and the candidate prototype vectors in the updated dynamic prototype library is calculated to obtain the initial matching result. The similarity can be calculated using cosine similarity or Euclidean distance, and this embodiment does not limit it to this method.

[0102] Based on the initial matching results, the semantic category identifier of the current frame is determined. The semantic category identifier is the identified traffic element category label, such as "straight lane," "dedicated left-turn lane," "dedicated right-turn lane," and "reversible lane." Simultaneously, combined with the timestamp, intersection markers, and lane markers carried in the roadside scene data, spatiotemporal anchoring information is generated to associate the semantic category identifier with specific spatiotemporal locations. The spatiotemporal anchoring information includes the timestamp of the current frame, the intersection markers of the target highway, and the current lane marker. The semantic category identifier and the spatiotemporal anchoring information are then output as the perception result.

[0103] The perception results are used to generate roadside traffic event intelligence. For example, when the perception results indicate that a lane is a "dedicated left-turn lane", but the dynamic trajectory shows that multiple vehicles are going straight through in succession, and the modal conflict level reaches moderate or above, "lane function abnormality" event intelligence is generated, indicating that there may be a variable lane not switching or vehicles going straight illegally, in order to support road situation awareness and abnormal event response for the target highway.

[0104] In addition, while outputting the sensing results, the trusted gating verification of the dual-constraint gating unit is triggered simultaneously. Samples that meet the verification conditions are sent into the prototype distillation cell to start the incremental distillation update process, thereby realizing a closed-loop self-improvement mechanism.

[0105] Through the above process, step S3 uses the updated dynamic prototype library to complete zero-sample inference matching, and can output perception results containing semantic category identifiers and spatiotemporal anchoring information without manual annotation, and directly serve the generation of roadside traffic event intelligence and road situation perception.

[0106] In a preferred embodiment, considering the natural hierarchical relationship between semantic categories in roadside traffic scenarios—for example, "motor vehicle lane" can be further subdivided into "straight lane," "left turn lane," and "right turn lane," and "straight lane" can correspond to a specific lane instance at a specific intersection—the updated dynamic prototype library can be organized using a hierarchical prototype tree structure to improve the efficiency and accuracy of zero-shot inference matching. The hierarchical prototype tree includes multiple levels of category prototype nodes, from top to bottom: major category prototypes, subcategory prototypes, and instance prototypes. Each category prototype node is associated with a corresponding semantic category identifier and spatial topological attributes. For example, major category prototypes can correspond to "motor vehicle lane," "non-motor vehicle lane," etc.; subcategory prototypes can correspond to "straight lane," "dedicated left turn lane," "dedicated right turn lane," "reversible lane," etc.; and instance prototypes can correspond to the prototype vector of a specific lane in the target highway.

[0107] Based on this, zero-shot inference matching is performed on the composite representation vector using the updated dynamic prototype library, specifically including: S31, starting from the top node of the hierarchical prototype tree, calculate the similarity score between the composite representation vector and each candidate prototype vector in the current level, layer by layer downwards. Specifically, the similarity score can be calculated using cosine similarity or Euclidean distance; this embodiment does not limit this.

[0108] S32, in the current level, select the category prototype node with the highest similarity score as the current matching node; determine whether the highest similarity score of the current matching node meets the preset matching conditions. The preset matching conditions are, for example, that the similarity score is not lower than a preset similarity threshold, or that the similarity score ranks first among all candidate prototype vectors and the difference between the scores of the first and second-highest similarity vectors exceeds a preset difference threshold. Specifically: If the condition is met, and the currently matched node has a child node, then jump to the next level to continue matching; If the condition is met, and the current matching node is a leaf node, then the semantic category identifier associated with the leaf node will be used as the semantic category identifier of the perception result.

[0109] S33, if the highest similarity score of the current matching node does not meet the preset matching conditions, then stop matching downwards and use the semantic category identifier associated with the parent category prototype node corresponding to the current matching node as the semantic category identifier in the perception result; or, use the semantic category identifier associated with the preset unknown category node as the semantic category identifier in the perception result. Here, the unknown category node is a node pre-set in the hierarchical prototype tree for categorizing samples that cannot be matched to existing categories; when the unknown category identifier is selected to be output, it indicates that the traffic element corresponding to the current composite representation vector may belong to a new, undefined category, which can be cached in the observation pool for subsequent manual confirmation or prototype expansion.

[0110] The spatiotemporal anchoring information in the perception results consists of timestamps, intersection signs, and lane signs carried in the roadside scene data. It is used to associate semantic category signs with specific spatiotemporal locations, which facilitates event localization and situation analysis by the upper-level traffic management platform.

[0111] Through the steps S31 to S33 above, zero-shot inference matching can use the hierarchical prototype tree to narrow down the matching range layer by layer, and reasonably backtrack to the parent category or classify it into an unknown category when a fine-grained category cannot be matched. This ensures matching efficiency and avoids erroneous perception results caused by forced classification.

[0112] It should be noted that the specific values ​​of the first threshold, preset ratio threshold, preset conflict threshold, and second threshold described in this embodiment are merely examples. Those skilled in the art can set and adjust the specific values ​​of the above thresholds according to the actual roadside scene of the target highway, the number of lanes, the video frame rate, and the perception accuracy requirements. This application does not limit this. Other preset parameters whose specific values ​​are not given in this embodiment can be determined by those skilled in the art through offline calibration, on-site debugging, or experimental comparison according to actual application scenarios.

[0113] This embodiment presents a roadside zero-sample perception method based on topological temporal dual-constraint prototype distillation. Through the aforementioned steps S1 to S3, it achieves roadside zero-sample perception without manual annotation in a complex scenario where variable lane switching and temporary construction diversion occur simultaneously at a two-way four-lane road intersection in an urban area. Specifically, the three-branch decoupled coding model eliminates the coupling ambiguity of three types of features—static semantics, dynamic trajectory, and spatial topology—from the coding source; the dual-constraint gated prototype distillation model rigorously screens samples from multiple dimensions, including instantaneous, short-term, long-term, and topological consistency, effectively suppressing prototype drift; and the momentum smoothing incremental update unit adaptively adjusts the update intensity based on sample credibility and prototype historical stability, ensuring that the dynamic prototype library remains stable in the long term while adapting to changes in dynamic scenarios.

[0114] Experiments show that, compared with the three existing mainstream solutions, the average recognition accuracy across intersections in this embodiment reaches 96.2%, the variable lane switching response speed is 5 seconds, the prototype drift rate is only 1.3% after 30 days of continuous operation, and the single-frame inference time at the edge is 17 milliseconds. At the same time, the total number of parameters of the three-branch decoupled coding model, dynamic prototype library and lightweight adaptation layer finally deployed on the edge computing device in this embodiment is more than 70% smaller than the number of parameters of the uncompressed complete cross-modal large model solution, and the single-frame inference time is reduced by 41%. This verifies the effectiveness and superiority of this application in unlabeled, low-computing-power, and highly stable roadside zero-sample perception.

[0115] Example 2: This embodiment discloses a roadside zero-shot sensing system based on topology-temporal dual-constraint proto-distillation, used to implement the roadside zero-shot sensing method based on topology-temporal dual-constraint proto-distillation described in Embodiment 1. This embodiment provides the hardware and system implementation foundation for this method, and is the system support that enables the implementation of the method described in Embodiment 1.

[0116] The system in this embodiment operates on a perception system deployed in a roadside edge computing device on the target highway. This edge computing device is communicatively connected to roadside cameras and accesses the urban traffic management platform. It includes a roadside data acquisition and feature encoding module, a dual-constraint gating prototype distillation module, and a zero-shot inference matching and perception output module. The modules collaborate through memory sharing and message passing to jointly complete zero-shot roadside perception processing, as detailed below: The roadside data acquisition and feature encoding module is used to acquire roadside scene data of the target highway and extract features from the roadside scene data according to a pre-trained three-branch decoupled encoding model to obtain a composite representation vector. The three-branch decoupled encoding model includes a static semantic encoding branch, a dynamic trajectory encoding branch, a topological graph convolutional regularization bypass, and a unified mapping layer.

[0117] The dual-constraint gated prototype distillation module is used to incrementally update the pre-built dynamic prototype library based on the composite representation vector according to the pre-built dual-constraint gated prototype distillation model, so as to obtain the updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gate unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit. The dual-constraint gate unit includes temporal stability constraints and topological consistency constraints. The temporal stability constraints include instantaneous scale verification, short-term scale verification, and long-period scale verification executed sequentially.

[0118] The zero-shot inference matching and perception output module performs zero-shot inference matching on the composite representation vector based on the updated dynamic prototype library, and outputs a perception result containing semantic category identifiers and spatiotemporal anchoring information. The perception result is used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.

[0119] This embodiment presents a roadside zero-shot perception system based on topological temporal dual-constraint prototype distillation. Through the collaborative work of a roadside data acquisition and feature encoding module, a dual-constraint gated prototype distillation module, and a zero-shot inference matching and perception output module, it achieves roadside zero-shot perception without manual annotation, with low computational power and high stability. The system utilizes a three-branch decoupled encoding model to eliminate ambiguity in multimodal feature coupling and a dual-constraint gated prototype distillation model to rigorously screen samples from multiple dimensions, including instantaneous, short-term, long-term, and topological consistency, effectively suppressing prototype drift. It can directly output perception results containing semantic category identifiers and spatiotemporal anchoring information, supporting roadside traffic event intelligence generation and road situation awareness, and is adaptable to dynamic scenarios such as variable lane switching and temporary construction diversions.

[0120] Example 3: Finally, this application also proposes a computing device including a processor and a memory. The memory stores a computer program, and the processor executes the instructions stored in the memory so that the computer device executes the topology-temporal dual-constraint prototype distillation roadside zero-sample sensing method described in the above embodiments.

[0121] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make modifications, alterations, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A zero-sample sensing method for roadside transportation based on topological temporal dual-constraint prototype distillation, characterized in that, include: S1, acquire roadside scene data of the target highway, and extract features from the roadside scene data according to the pre-trained three-branch decoupled coding model to obtain a composite representation vector; The three-branch decoupled coding model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer. S2, Based on the pre-constructed dual-constraint gated prototype distillation model, the pre-constructed dynamic prototype library is incrementally updated based on the composite representation vector to obtain the updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gated unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit; the dual-constraint gated unit includes temporal stability constraints and topological consistency constraints; the temporal stability constraints include sequentially executed instantaneous scale verification, short-term scale verification, and long-period scale verification. S3. Based on the updated dynamic prototype library, zero-shot inference matching is performed on the composite representation vector to output a perception result containing semantic category identifiers and spatiotemporal anchoring information. The perception result is used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.

2. The zero-sample sensing method for roadside distillation based on topological temporal dual-constraint prototyping as described in claim 1, characterized in that, In step S1, the static semantic encoding branch outputs a static semantic representation vector, the dynamic trajectory encoding branch outputs a dynamic temporal representation vector, and the topological graph convolutional regularization bypass outputs a topological constraint representation vector. The unified mapping layer maps the static semantic representation vector, the dynamic temporal representation vector, and the topological constraint representation vector to a preset visual-language shared semantic space to generate the composite representation vector.

3. The zero-sample sensing method for roadside distillation based on topological temporal dual-constraint prototyping as described in claim 2, characterized in that, Step S2 specifically includes: S21, the composite representation vector is verified according to the temporal stability constraint and topological consistency constraint in the dual-constraint gating unit, and the composite representation vector that passes the verification is determined as a valid representation sample; S22, according to the prototype matching and similarity calculation unit, calculate the similarity between the effective representation sample and each candidate prototype vector in the dynamic prototype library, and determine the candidate prototype vector whose similarity meets the preset conditions as the matching candidate prototype vector; S23, invoke the momentum smoothing incremental update unit to perform momentum smoothing update on the matched candidate prototype vector based on the effective characterization sample, and obtain the updated dynamic prototype library.

4. The roadside zero-sample sensing method based on topological temporal dual-constraint prototype distillation according to claim 3, characterized in that, The composite representation vector is validated based on the temporal stability constraint and topological consistency constraint in the dual-constraint gating unit, specifically including: S211, the composite representation vector is sequentially subjected to instantaneous scale verification, short-term scale verification and long-period scale verification. If any scale verification fails, the composite representation vector is discarded. The instantaneous scale verification includes: calculating the similarity score between the composite representation vector and each candidate prototype vector in the dynamic prototype library, and determining the maximum value among the similarity scores as the matching confidence; if the matching confidence is not lower than a preset first threshold, it is determined that the instantaneous scale verification is satisfied, and short-term scale verification is performed. The short-time scale verification includes: within a preset short-time sliding window containing the composite representation vector of the current frame, counting the category label sequence of composite representation vectors of multiple consecutive frames; calculating the proportion of the mode label in the category label sequence; and matching the static semantic representation vector output by the static semantic coding branch and the topological constraint representation vector output by the topological graph convolution regularization bypass with the dynamic prototype library to obtain their respective matching category labels. If the matching category labels of the two are inconsistent, it is determined that there is a modal conflict. The ratio of the number of frames with modal conflicts within the short-time sliding window to the total number of frames is calculated as the conflict degree. If the proportion of the mode label exceeds a preset proportion threshold and the conflict degree is lower than a preset conflict threshold, then the short-term scale verification is satisfied, and a long-term scale verification is performed. The long-period scale verification includes: extracting the historical matching confidence time series of the candidate prototype vector corresponding to the mode label determined in the short-period scale verification within a preset long-period time window that is larger than the short-period sliding time window; calculating the moving mean and variance of the historical matching confidence time series; and determining that the long-period scale verification is satisfied if the moving mean does not show a continuous decrease within the long-period time window and the variance does not exceed a preset second threshold. S212, Perform spatial topology matching verification according to the topology consistency constraint; match the semantic category corresponding to the composite representation vector with the lane physical topology reachability rule of its lane, and determine whether the semantic category meets the requirements of the lane's travel direction and functional attributes. If it does, the topology consistency constraint is satisfied. S213, the composite representation vector that simultaneously satisfies the three-level verification and the topological consistency constraint is determined as the effective representation sample.

5. The roadside zero-sample sensing method based on topological temporal dual-constraint prototype distillation according to claim 4, characterized in that, Step S23 specifically includes: S231, obtain the comprehensive credibility score output by the dual-constraint gating unit after the valid representation sample corresponding to the current update step is verified; wherein, the comprehensive credibility score is calculated by the dual-constraint gating unit by weighting the verification results of the three-level verification results of the temporal stability constraint and the topological consistency constraint; S232, Obtain the historical stability index of the matched candidate prototype vector, the historical stability index being calculated based on the moving mean and variance; S233, Calculate the momentum coefficient of the current update step based on the weighted combination of the comprehensive credibility score and the historical stability index; S234, the effective characterization sample and the matched candidate prototype vector are weighted and fused according to the momentum coefficient to obtain the updated candidate prototype vector; the matched candidate prototype vector in the dynamic prototype library is replaced with the updated candidate prototype vector to complete the momentum smooth update of the current update step. S235, traverse all valid representation samples in the current frame, repeat steps S231 to S234 until the candidate prototype vectors corresponding to all valid representation samples in the current frame are updated, and the updated dynamic prototype library is obtained.

6. The roadside zero-sample sensing method based on topological temporal dual-constraint prototype distillation according to claim 1, characterized in that, The training steps of the three-branch decoupled coding model include: S01, Obtain the roadside training sample set; S02, input the roadside training sample set into the initial three-branch decoupled coding model to obtain a composite representation vector; wherein, the initial three-branch decoupled coding model includes a static semantic coding branch, a dynamic trajectory coding branch, a topological graph convolutional regularization bypass, and a unified mapping layer; S03, according to the preset hierarchical multi-objective loss function, the loss of the composite representation vector is calculated to obtain the calculation result, and the parameters of the initial three-branch decoupled coding model are updated according to the calculation result; Repeat steps S02 and S03 until the preset convergence condition is met, and the trained three-branch decoupled coding model is obtained.

7. The zero-sample sensing method for roadside prototyping based on topological temporal dual-constraint prototyping distillation according to claim 6, characterized in that, The hierarchical multi-objective loss function specifically includes: Semantic contrastive loss is used to constrain the intra-class compactness and inter-class separation of samples of the same category in the visual-language shared semantic space. Trajectory alignment loss is used to constrain the motion continuity of composite representation vectors between consecutive frames in the temporal dimension. Topological regularization loss is used to constrain the consistency between the spatial topological relationships between the semantic categories represented by the composite representation vectors and the lane physical topological reachability rules. The modal game penalty loss is used to suppress gradient conflicts among the static semantic encoding branch, the dynamic trajectory encoding branch, and the topological graph convolutional regularization bypass, so as to balance the training convergence rate of each branch.

8. The zero-sample sensing method for roadside prototyping based on topological temporal dual-constraint prototyping distillation according to claim 7, characterized in that, The specific steps for constructing the modal game penalty loss include: Calculate the highest matching category of the output features of the static semantic coding branch, the dynamic trajectory coding branch, and the topological graph convolutional regularization bypass, respectively. The modal conflict level is determined based on the number of branches that do not match the highest matching category; the modal conflict level includes three levels: mild, moderate and severe, and the more branches that do not match, the higher the conflict level. Based on the modal conflict level, the modal game penalty loss is calculated according to a preset stepped penalty gradient; wherein the modal game penalty loss is positively correlated with the modal conflict level, and the higher the modal conflict level, the larger the stepped penalty gradient.

9. The roadside zero-sample sensing method based on topological temporal dual-constraint proto-distillation according to claim 6, characterized in that, The topological graph convolution regularization bypass includes a pre-constructed multi-layer graph convolutional network. In step S02, the execution steps of the topological graph convolution regularization bypass include: S021, Based on the lane space layout information in the roadside training sample set, construct a static topology graph with the roadside sensing area as nodes and physical connectivity as edges; S022, the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch are mapped to each node of the static topology graph according to their corresponding spatial positions, and used as the initial features of each node. S023, through a pre-constructed multi-layer graph convolutional network, message passing and aggregation are performed on the initial features of each node to obtain the node features after topology enhancement; S024, the node features enhanced by the topology are used as regularization constraints to perform regularization weighting on the static semantic representation vector output by the static semantic coding branch and the dynamic temporal representation vector output by the dynamic trajectory coding branch; wherein, feature vectors that conflict with the physical connectivity relationship between nodes in the static topology graph are subject to weight reduction penalties.

10. A zero-sample sensing system for roadside distillation based on topological temporal dual-constraint prototyping, characterized in that, include: The roadside data acquisition and feature encoding module is used to acquire roadside scene data of the target highway, and extract features from the roadside scene data according to a pre-trained three-branch decoupled encoding model to obtain a composite representation vector; wherein, the three-branch decoupled encoding model includes a static semantic encoding branch, a dynamic trajectory encoding branch, a topological graph convolutional regularization bypass, and a unified mapping layer; A dual-constraint gated prototype distillation module is used to incrementally update a pre-built dynamic prototype library based on the composite representation vector according to a pre-built dual-constraint gated prototype distillation model, thereby obtaining an updated dynamic prototype library. The dual-constraint gated prototype distillation model includes a dual-constraint gate unit, a prototype matching and similarity calculation unit, and a momentum smoothing incremental update unit. The dual-constraint gate unit includes temporal stability constraints and topological consistency constraints. The temporal stability constraints include sequentially executed instantaneous scale verification, short-term scale verification, and long-period scale verification. The zero-shot inference matching and perception output module is used to perform zero-shot inference matching on the composite representation vector based on the updated dynamic prototype library, and output perception results containing semantic category identifiers and spatiotemporal anchoring information. The perception results are used to generate roadside traffic event intelligence to support road situation awareness and abnormal event response for the target highway.