A park perimeter intrusion behavior recognition method based on multi-target tracking
By introducing gait cycle features and adaptive alarm thresholds into the multi-target tracking system, the problems of false alarms and missed alarms in scenarios with uniform clothing are solved, achieving efficient intrusion detection and accurate differentiation of compliant behaviors.
Patent Information
- Application Number
- CN202611317771.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-28
- Publication Date
- 2026-11-27
AI Technical Summary
In scenarios where clothing is uniform, existing multi-target tracking systems suffer from incorrect cross-target dwell time due to similar appearance features, leading to false alarms and missed alarms.
By introducing gait cycle features into a multi-target tracking framework, combined with appearance and positional motion features, identity restoration is performed, and a comprehensive intrusion score is constructed. Alarm thresholds are adaptively adjusted to distinguish between compliant and intrusive behaviors.
It effectively solves the problems of false alarms and false negatives in scenarios with uniform attire, improves the accuracy and sensitivity of intrusion detection, and reduces operation and maintenance costs.
Smart Images

Figure CN123182293A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video surveillance and image processing technology, specifically to a method for identifying intrusion behavior at a park perimeter based on multi-target tracking. Background Technology
[0002] To continuously monitor personnel activities within perimeter areas, key locations such as industrial parks and aerospace manufacturing bases deploy multiple high-definition cameras along perimeter fences, using AI algorithms to analyze the video streams in real time. Existing systems generally employ a two-stage approach combining virtual perimeter line crossing detection with target dwell time determination. A virtual perimeter buffer zone is drawn in the camera's view; a timer starts when a target enters the zone, and if the dwell time exceeds a preset threshold, an intrusion alarm is triggered.
[0003] To achieve continuous cross-frame tracking and duration accumulation for a single physical target, the system introduces a multi-target tracking algorithm. It predicts the target position using Kalman filtering and employs a method combining appearance feature vectors extracted by a pedestrian re-identification network to complete frame-by-frame association between the detection box and historical trajectories. To address the issue of target occlusion within the buffer causing a jump in identification number, the system performs cross-frame identity restoration based on the cosine similarity of appearance features. The accumulated dwell time of the lost trajectory is inherited into the restored trajectory to prevent time reset due to identification number jumps.
[0004] In perimeter inspection and maintenance scenarios, a large number of workers simultaneously wear uniform safety vests or work clothes of the same color. This phenomenon may affect the appearance feature vectors of different physical persons in the pedestrian re-identification feature space, leading to high convergence. Their inter-frame cosine similarity is on the same order of magnitude as the inter-frame cosine similarity of the same person before and after occlusion. When multiple similarly dressed persons in the buffer simultaneously cause occlusion and crossover, resulting in the synchronous loss of multiple trajectories, the repair algorithm faces a many-to-many matching problem with multiple lost trajectories and multiple newly generated trajectories. It cannot distinguish between the reappearance of the same person and the appearance of another person with a similar appearance from appearance similarity, leading to an uncertain state in the repair decision. At this time, the system is forced to perform repair randomly or sequentially, incorrectly transplanting the historical dwell time of person A to person B's trajectory, resulting in repair cross-contamination. Because compliance personnel mistakenly inherited the high dwell time of the intrusion target, a false alarm was triggered. Meanwhile, the dwell time record of the real intrusion target was broken down and injected into multiple compliance tracks. The score of each track was lower than the alarm threshold. This difference caused the intrusion detection blind spot to reappear in a new form in high-threat scenarios where everyone was dressed uniformly. Summary of the Invention
[0005] To address the existing technical problem of false positives and false negatives caused by the failure of appearance features in uniform clothing scenarios, which leads to incorrect transfer of cross-target dwell time. This invention provides a method for identifying campus perimeter intrusion behavior based on multi-target tracking.
[0006] This invention provides a method for identifying perimeter intrusion behavior in a park based on multi-target tracking, comprising: delineating a perimeter buffer zone and simultaneously extracting the appearance feature vector, position and motion feature vector, and gait sequence cache of target detection boxes falling into the perimeter buffer zone; performing initial screening based on the appearance feature vector to obtain a candidate set; when multiple candidate lost trajectories exist in the candidate set, extracting the gait cycle estimate corresponding to the gait sequence cache, and performing spatial displacement reachability verification in conjunction with the position and motion feature vector to narrow the candidate set; further determining the target candidate based on the difference comparison of the gait cycle estimate, performing identity restoration, and inheriting the cumulative dwell time; based on the historical coordinate sequence of the restored trajectory, calculating the ratio between the cumulative absolute displacement and the net displacement perpendicular to the perimeter direction to obtain the trajectory oscillation index, and multiplying the cumulative dwell time by the trajectory oscillation index to construct a comprehensive intrusion score; adaptively deriving a warning threshold and an alarm threshold based on the historical sample distribution, and comparing the comprehensive intrusion score with the warning threshold and the alarm threshold respectively to trigger the corresponding graded alarm output.
[0007] By introducing gait periodic features independent of clothing color and texture into the identity restoration stage of the multi-target tracking framework, the problem of feature convergence in pedestrian re-identification networks under uniform workwear scenarios is effectively solved, the contamination path of cross-target dwell time error transfer is cut off, and the accuracy of individual attribution in the time accumulation dimension is ensured.
[0008] Preferably, the step of defining the perimeter buffer zone includes: pre-marking a virtual inner boundary line and a virtual outer boundary line along the fence direction in the image coordinate system; and defining the area between the virtual inner boundary line and the virtual outer boundary line as the perimeter buffer zone.
[0009] Preferably, the synchronous extraction of the appearance feature vector, position motion feature vector, and gait sequence cache of the target detection boxes falling into the perimeter buffer includes: running a target detection network on the video image to output human detection boxes; encoding the appearance feature vectors of the detection boxes that fall into or partially fall into the perimeter buffer using a pedestrian re-identification network; extracting the position motion feature vectors containing the center coordinates, width, height, and inter-frame displacement vectors of the detection boxes; and appending the height value of the target detection boxes frame by frame for each activated trajectory, maintaining a sliding window height sequence to form the gait sequence cache.
[0010] By precisely limiting the consumption of computing resources to the perimeter area where security threats are most concentrated, the linear expansion of computing power overhead caused by maintaining the gait sequence of the entire map is avoided, ensuring the efficient and synchronous availability of appearance, movement and gait information from the data acquisition level.
[0011] Preferably, the initial screening based on the appearance feature vector to obtain the candidate set includes: extracting the cosine similarity of appearance features between adjacent frames of all active trajectories within the current perimeter buffer to form an inter-frame self-similarity sample set; taking the minimum value of the inter-frame self-similarity sample set as the dynamic anchor point of the appearance initial screening threshold; calculating the cosine similarity between the current appearance features of the newly generated trajectory and the representative appearance descriptor of the lost trajectory, and screening out the lost trajectories whose similarity exceeds the appearance initial screening threshold to obtain the candidate set.
[0012] Preferably, the step of extracting the gait period estimate corresponding to the gait sequence cache includes: for each candidate lost trajectory in the candidate set, calculating the normalized autocorrelation function of the detection box height sequence stored in the gait sequence cache; locating the time delay corresponding to the first local maximum value whose amplitude exceeds a preset significance threshold on the normalized autocorrelation function curve, and using the time delay as the gait period estimate of the candidate lost trajectory.
[0013] By calculating the normalized autocorrelation function of the detection box height sequence to locate the dominant oscillation period, the walking rhythm of the target is transformed into a calculable individual physiological characteristic. This provides an independent and stable basis for individual differentiation when the candidate set is too large, effectively eliminating the uncertainty of many-to-many repair matching.
[0014] Preferably, the step of performing spatial displacement reachability verification by combining the positional motion feature vector to narrow the candidate set includes: obtaining the pixel distance between the last known position coordinates of the candidate lost trajectory and the center coordinates of the current newly generated detection box; determining whether the pixel distance exceeds the farthest distance that the target can cover within the number of lost frames at the maximum reasonable walking speed; if it exceeds, then determining that it is physically unreachable, removing the corresponding candidate lost trajectory from the candidate set, and completing the narrowing of the candidate set.
[0015] Preferably, the step of determining the target candidate for identity restoration based on the difference comparison of the gait cycle estimates and inheriting the accumulated dwell time includes: comparing the gait cycle estimates of each candidate trajectory that has passed the spatial displacement accessibility verification with the estimated gait cycle estimates of the new trajectory that have been accumulated from the gait sequence; selecting the only candidate with the smallest absolute difference for identity restoration, and completely inheriting the candidate's historical coordinate sequence and the accumulated dwell time to the new trajectory.
[0016] Preferably, the step of calculating the ratio between the cumulative absolute displacement and the net displacement perpendicular to the perimeter direction to obtain the trajectory oscillation index includes: acquiring a predetermined number of coordinate points of the trajectory within the perimeter buffer zone; calculating the sum of the cumulative absolute displacements of the coordinate sequence components perpendicular to the perimeter direction; calculating the straight-line distance between the first and last endpoints of the sequence in the vertical direction as the net displacement; dividing the sum of the cumulative absolute displacements by the net displacement to obtain the trajectory oscillation index; and assigning the trajectory oscillation index to twice the pre-statistically counted maximum unidirectional crossing sample value as a saturation value for a stationary state where the first and last coordinates almost coincide.
[0017] By constructing a comprehensive intrusion score, compliant crossing behaviors and real intrusion behaviors are separated in the scoring space, which effectively suppresses the tendency of false alarms caused by simply relying on time thresholds and improves the spatial dimension sensitivity of behavior judgment.
[0018] Preferably, the adaptive derivation of the warning threshold and alarm threshold based on historical sample distribution includes: determining the warning threshold by the preset high quantile value of the comprehensive intrusion score sample generated by the historical compliant targets in the perimeter buffer; calculating the mean and standard deviation of the comprehensive intrusion score sample of the historical compliant targets, using the median of the interval between the warning threshold and the mean plus the standard deviation as the initial value of the alarm threshold, and updating the alarm threshold incrementally after each newly confirmed intrusion event, wherein the update magnitude of the alarm threshold does not exceed a preset upper bound.
[0019] Preferably, the step of comparing the comprehensive intrusion score with the warning threshold and the alarm threshold respectively to trigger the corresponding graded alarm output includes: when the comprehensive intrusion score is not less than the warning threshold, outputting a warning event, highlighting the trajectory points and recording the identity number and gait cycle parameters; when the comprehensive intrusion score is not less than the alarm threshold, triggering an intrusion alarm and pushing an alarm event containing a complete video clip, a comprehensive intrusion score value and a continuous trajectory heatmap.
[0020] This invention, through the deep integration of multi-dimensional feature collaborative processing and adaptive scoring, can accurately isolate interference from the normal activities of compliant personnel in complex industrial scenarios, ensuring the effective scheduling of security resources. Simultaneously, by using adaptive thresholds, the alarm sensitivity of each camera automatically adapts to the actual operational patterns of the monitored area, eliminating the need for frequent manual parameter adjustments. While ensuring highly sensitive response to real intrusion events, it significantly reduces the overall system's maintenance costs and false alarm fatigue. Attached Figure Description
[0021] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent upon reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of the invention are illustrated by way of example and not limitation, and like or corresponding reference numerals denote like or corresponding parts, wherein: Figure 1 This is a flowchart illustrating a method for identifying intrusion behavior in a campus based on multi-target tracking, as described in this invention.
[0022] Figure 2 This is a comparison chart of the existing single appearance restoration method and the two-level restoration method of this application in terms of key performance indicators of identity restoration and intrusion detection in a scenario with uniform clothing in the embodiments of the present invention. Detailed Implementation
[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0024] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0025] This invention discloses a method for identifying campus perimeter intrusion behavior based on multi-target tracking, referring to... Figure 1 This includes steps S1-S4: S1. Define the perimeter buffer zone and extract three layers of features.
[0026] In an optional embodiment, for the field of view of the perimeter camera in the park, a virtual inner boundary line is pre-marked along the fence in the image coordinate system. and virtual outer boundary line The area between the two lines is defined as the perimeter buffer zone. Coinciding with the physical line of the fence When the camera installation parameters are readable, the offset is calculated from the actual ratio of focal length to installation height. When the parameters are not readable, a preset ratio of the screen width is used as the default offset. For example, this ratio can be 8% of the screen width to cover the typical range of the physical width of the fence under the standard installation specifications of the park.
[0027] In response to the completion of buffer delineation, the object detection network is run on each frame of video image, outputting all human detection boxes and their corresponding confidence scores. For detection boxes that fall into or partially fall into the perimeter buffer, three layers of features are extracted simultaneously, with the first layer being the appearance feature vector. The first layer is obtained by encoding the image within the detection box through a pedestrian re-identification network. Its dimension is determined by the selected pedestrian re-identification network structure and serves as the initial screening criterion for multiple candidate restorations. The second layer is the position and motion feature vector. The first layer contains the center coordinates, width, height, and inter-frame displacement vectors of the detection box, which are used for Kalman filter state prediction; the third layer is a gait sequence buffer. For each activated trajectory, the height value of the target detection box is appended frame by frame. (Unit: pixels), to maintain a length of The sliding window height sequence of the frames is used for subsequent gait cycle feature extraction. The value is estimated by the number of frames required for the target to complete two full gait cycles within the buffer at a normal walking speed, and is calculated based on the actual calibrated frame rate when the system is deployed.
[0028] Thus, by precisely defining the virtual perimeter and simultaneously extracting the three layers of features, a complete multi-dimensional data foundation is provided for identity restoration in scenarios with uniform attire, ensuring the synchronous availability of information on appearance, movement, and gait from the data collection level.
[0029] S2. Perform identity restoration based on gait cycle estimates.
[0030] In response to the end of the regular association process for each frame, an initial appearance screening is performed on the set of trajectories in the lost state and the set of newly generated trajectories in the current frame. This is done by calculating the appearance of each newly generated trajectory. Current appearance features With each lost track Cosine similarity between representative appearance descriptors for each All candidate lost trajectories with similarity exceeding the initial appearance screening threshold are selected to obtain the candidate set. .
[0031] In this optional embodiment, the initial screening threshold for appearance... The determination method is as follows: extract the cosine similarity of appearance features between adjacent frames of all active trajectories in the current buffer to form an inter-frame self-similarity sample set, and take the minimum value of this sample set as... The dynamic anchor point reflects the lowest similarity lower bound that the same target can maintain its appearance changes between any adjacent frames. When the similarity is lower than this value, it indicates that the candidate is an unfamiliar target with no visual association, thus separating the recurring target from completely unrelated unfamiliar targets in the initial screening stage. It dynamically converges as the inter-frame similarity samples of the activated trajectories in the buffer accumulate, and is adaptive to different lighting conditions and clothing scenarios.
[0032] when When the newly generated trajectory corresponds to only one missing trajectory with a matching appearance, the repair is performed directly, and the cumulative dwell time of the missing trajectory is inherited. and historical coordinate sequence; when At that time, the multi-candidate uncertainty resolution procedure is triggered, and the gait cycle feature comparison stage begins.
[0033] For candidate set Each candidate lost trajectory By caching gait sequences The detection box height sequence stored in Calculate the normalized autocorrelation function to pinpoint the dominant oscillation period of the sequence. Let the mean of the height sequence be... Then the delay The normalized autocorrelation coefficient at point is:
[0034] in, For the first Frame detection box height (pixels) The mean of the sequence. For time delay (frames). The length of the sliding window; On the curve, the time delay corresponding to the first local maximum value whose amplitude exceeds the preset significance threshold is... As an estimate of gait period (Unit: frames) For example, the significance threshold can be 0.3. If there is no peak on the curve that meets the condition, the trajectory gait sequence is marked as having insufficient quality, and gait comparison is temporarily suspended.
[0035] In this optional embodiment, This value directly corresponds to the target gait rhythm and is an individual physiological characteristic independent of clothing color and texture. A higher value indicates a lower target gait frequency, typically corresponding to taller individuals; a lower value indicates a higher target gait frequency, typically corresponding to shorter individuals. (The text then repeats itself, seemingly unrelated to the previous sentence.) The estimated values exhibit high inter-frame stability, while the differences in step frequency among different individuals cause their respective... The estimated values exhibit a distinguishable discrete distribution, thus providing independent individual discrimination capabilities even when the appearance features for pedestrian re-identification have failed.
[0036] Next, in response to completing the missing trajectories in the candidate set... Extract and synchronize the trajectory of newborns Spatial displacement reachability verification is performed by combining positional motion feature vectors. When a candidate lost trajectory... If the pixel distance between the last known location coordinates and the center coordinates of the current newly generated detection box exceeds the farthest distance the target can cover within the number of lost frames at the maximum reasonable walking speed, it indicates that the candidate is physically unreachable. In this case, the candidate is directly removed from the list. Candidates are narrowed down by removing those that are excluded from subsequent gait comparisons. The maximum pixel displacement per frame corresponding to the maximum reasonable walking speed is calculated based on the camera installation height and the calibrated frame rate. By performing reachability checks before gait comparisons, the size of the candidate set is further narrowed, reducing the computational burden of gait comparisons.
[0037] For the remaining candidates that pass the reachability check, by... The estimated gait cycle of newborns is calculated from the gait sequence accumulated from the newborn trajectory. Perform difference comparison and select The smallest unique candidate performs identity restoration and retrieves the candidate's historical coordinate sequence and cumulative dwell time. Completely inherited into the new life trajectory The number of frames accumulated in the gait sequence is lower than that of newly formed trajectories due to their recent appearance. In cases where a reliable period cannot be extracted, the repair decision is temporarily suspended in the current frame, and the newly formed trajectory is marked as pending confirmation. The decision will be retried once sufficient gait sequences are available in subsequent frames. It operates independently based on its current duration and does not inherit the history of any candidate trajectories. This is to ensure that no incorrect repairs are performed.
[0038] Thus, through a two-level resolution mechanism of initial screening based on appearance and comparison of gait cycle features, the uncertainty of many-to-many repair matching in uniform workwear scenarios is effectively solved, ensuring that the cumulative dwell time of each trajectory is accurately attributed to the corresponding real physical personnel, and cutting off the contamination path of cross-target duration error transplantation.
[0039] S3. Calculate the trajectory oscillation index to construct a comprehensive intrusion score.
[0040] For each trajectory that has undergone multi-candidate uncertainty resolution to ensure accurate attribution of dwell time, its cumulative dwell time within the perimeter buffer is continuously updated. (Unit: seconds). Since authorized personnel typically exhibit purposeful, one-way movement within the perimeter buffer zone, while intrusion-prone targets display a pattern of repeatedly pacing or probing along the inner edge of the fence, this invention calculates the trajectory oscillation index from the historical coordinate sequence of each repaired trajectory. This is to distinguish between the two types of behavior mentioned above.
[0041] Get the most recent trajectory in the buffer There are coordinate points, among which The specific number is determined based on the physical width of the buffer and the calibrated frame rate, and is calculated as a preset multiple of the number of frames required for the target to traverse the buffer at a normal walking speed. For example, this multiple can be 3 times. The net displacement is obtained by calculating the sum of the cumulative absolute displacements of the coordinate sequence along the components perpendicular to the perimeter, divided by the straight-line distance between the beginning and end points of the sequence in the vertical direction:
[0042] in, For the first The projection components of each trajectory coordinate point in the vertical perimeter direction; The numerator reflects the cumulative absolute motion of the target in the direction perpendicular to the perimeter, while the denominator reflects the overall net displacement. When crossing in one direction, the numerator and denominator are of similar magnitude. It approaches 1; when repeatedly turning back and forth, the cumulative absolute displacement is much greater than the straight-line distance between the beginning and end. It is significantly greater than 1 and increases monotonically with the number of turns, which is clearly distinguishable from the baseline value that approaches 1 generated by unidirectional crossing.
[0043] For the stationary state where the beginning and end coordinates almost overlap, the trajectory oscillation index is directly applied. The saturation value is set to twice the pre-statistically maximum one-way crossing sample value. . The determination method is as follows: count all historical one-way crossing targets generated within the current buffer. The sample is taken as twice its maximum value. This makes the score for the state of lingering in place significantly higher than any normal crossing behavior.
[0044] Based on this, a comprehensive intrusion score is defined:
[0045] Sensitive to both the temporal and spatial dimensions of intrusion behavior: brief accidental entry into the target due to... Small and low score; compliant fieldwork personnel due to The score is suppressed when the value approaches 1; only for intruding targets that repeatedly probe near the perimeter for extended periods does the product of the two factors amplify simultaneously, driving the score. Exceeding the threshold. This is because cross-target movement has been eliminated through gait cycle characteristics. Error porting, each trajectory The attribution accurately corresponds to the actual physical personnel, therefore The reliability of the judgment was effectively guaranteed from the perspective of data sources.
[0046] In this way, by constructing an intrusion score through the product of trajectory oscillation index and cumulative dwell time, the compliant crossing behavior and the real intrusion behavior are separated by magnitude in the scoring space, which effectively suppresses the tendency of false alarms caused by simply relying on the time threshold in the scenario of uniform attire.
[0047] S4. Compare the comprehensive intrusion score to trigger a graded alarm output.
[0048] Furthermore, for each camera buffer, based on The magnitude adaptively derives two-level alarm thresholds, and the warning threshold. Generated by the historical compliance targets of this buffer zone The preset high quantile of the sample is determined; for example, this quantile could be the 99th quantile, to ensure that even if multiple compliance personnel in uniform attire briefly stay in the buffer zone, their... The sample size is still below the threshold, which suppresses the tendency for false alarms in uniformly dressed scenarios from the source.
[0049] alarm threshold The history of this buffer has confirmed the occurrence of intrusion events. The mean is used as the initial value and is updated incrementally after each newly confirmed intrusion event. Not exceeding a preset upper limit. In response to the initial system installation having zero historical intrusion events, the mean of the comprehensive intrusion score sample for historical compliance targets is calculated. and standard deviation With warning threshold arrive The median of the interval between them is used as The initial value of ...
[0050] Furthermore, the comprehensive intrusion score is compared with the warning threshold and the alarm threshold respectively to trigger the corresponding graded alarm output. Not less than the warning threshold When the system issues an alert, it highlights the target's trajectory points on the control platform map, and records its complete trajectory coordinate sequence, the corrected identification number, and the gait cycle parameters used during the repair process. This information is used by security personnel to verify the rationality of repair decisions. When considering the overall intrusion score... Not less than the alarm threshold When the system triggers an intrusion alarm, it pushes the alarm event to the management platform. The alarm content includes the camera number that triggered the alarm, the time preceding the alarm, and other relevant information. A complete video clip of 1 second, and the target's overall intrusion score. The continuous trajectory heatmap restored after identity verification and the judgment path marking used in this restoration are provided for security personnel to verify and make restoration decisions afterward.
[0051] For trajectories that are pending confirmation and whose repair is temporarily suspended, if they are timed independently... It had exceeded [a certain threshold] before the gait judgment was completed. Similarly, an alarm is triggered to ensure that the conservative handling method does not result in missed alarms. Since both levels of thresholds are adaptively derived based on the actual sample distribution in this buffer, differences in personnel flow at different camera locations and time periods will not cause systematic false alarms or missed alarms. Therefore, the alarm sensitivity of each camera automatically adapts to the actual operating patterns of the area it monitors.
[0052] like Figure 2 The figure shown is a comparison of the key performance indicators of identity restoration and intrusion detection between the existing single appearance restoration method and the two-level restoration method of this application in the scenario of uniform attire in the embodiments of the present invention. It can be seen that the present invention is significantly higher than the existing method in terms of correct restoration rate, while it is lower than the existing method in terms of three negative indicators: false restoration rate, false detection rate, and false alarm rate. This indicates that the present invention effectively improves the reliability of intrusion detection in the complex working conditions of uniform attire by introducing gait periodic features for resolution.
[0053] Thus, through the combined effect of two-level adaptive thresholds and graded alarm outputs, the system can effectively reduce the probability of compliant personnel triggering false alarms in uniformly dressed scenarios while ensuring a highly sensitive response to real intrusion events, thereby achieving an effective balance between intrusion detection sensitivity and false alarm suppression capability.
Claims
1. A method for identifying intrusion behavior at a park perimeter based on multi-target tracking, characterized in that, include: Define a perimeter buffer zone and simultaneously extract the appearance feature vector, position and motion feature vector, and gait sequence cache of the target detection box falling into the perimeter buffer zone; A candidate set is obtained by initial screening based on the appearance feature vector. When there are multiple candidate lost trajectories in the candidate set, the gait cycle estimate corresponding to the gait sequence cache is extracted, and spatial displacement reachability verification is performed in combination with the position motion feature vector to narrow the candidate set. Then, the target candidate is determined based on the difference comparison of the gait cycle estimate, the identity restoration is performed, and the accumulated dwell time is inherited. Based on the historical coordinate sequence of the repaired trajectory, the ratio between the cumulative absolute displacement and the net displacement perpendicular to the perimeter direction is calculated to obtain the trajectory oscillation index. The cumulative dwell time is then multiplied by the trajectory oscillation index to construct a comprehensive intrusion score. Based on the historical sample distribution, the early warning threshold and alarm threshold are adaptively derived. The comprehensive intrusion score is compared with the early warning threshold and the alarm threshold respectively to trigger the corresponding graded alarm output.
2. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The defined perimeter buffer zone includes: In the image coordinate system, pre-define the virtual inner boundary line and the virtual outer boundary line along the fence direction; The area between the virtual inner boundary line and the virtual outer boundary line is defined as the perimeter buffer zone.
3. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The synchronous extraction of the appearance feature vector, position and motion feature vector, and gait sequence buffer of the target detection box falling into the perimeter buffer includes: Run an object detection network on video images to output human detection boxes; For detection boxes that fall into or partially fall into the perimeter buffer, the appearance feature vector is obtained by encoding through a pedestrian re-identification network; Extract the positional motion feature vector containing the center coordinates, width and height of the detection box, and inter-frame displacement vector; For each activated trajectory, the height value of the target detection box is appended frame by frame, and the height sequence of the sliding window is maintained to form the gait sequence cache.
4. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The initial screening based on the appearance feature vectors to obtain the candidate set includes: Extract the cosine similarity of appearance features between adjacent frames of all active trajectories within the current perimeter buffer to form a sample set of inter-frame self-similarity. The minimum value of the inter-frame self-similarity sample set is taken as the dynamic anchor point of the appearance initial screening threshold; Calculate the cosine similarity between the current appearance features of the newly generated trajectory and the representative appearance descriptors of the lost trajectory, and filter out the lost trajectories whose similarity exceeds the initial appearance screening threshold to obtain the candidate set.
5. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The step of extracting the gait cycle estimate corresponding to the gait sequence cache includes: For each candidate lost trajectory in the candidate set, calculate the normalized autocorrelation function of the detection box height sequence stored in the gait sequence cache; Locate the time delay corresponding to the first local maximum on the normalized autocorrelation function curve whose amplitude exceeds a preset significance threshold, and use this time delay as the gait period estimate of the candidate lost trajectory.
6. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The step of performing spatial displacement reachability verification by combining the positional motion feature vectors to narrow the candidate set includes: Obtain the pixel distance between the last known position coordinates of the candidate lost trajectory and the center coordinates of the current newly generated detection box; Determine whether the pixel distance exceeds the farthest distance the target can cover within the number of lost frames at the maximum reasonable walking speed; If the number of candidates exceeds the limit, the candidate is determined to be physically unreachable, and the corresponding candidate lost trajectory is removed from the candidate set, thus narrowing the candidate set.
7. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The step of determining the target candidate for identity restoration based on the difference comparison of the gait cycle estimates, and inheriting the accumulated dwell time, includes: The gait cycle estimate of each candidate trajectory that has passed the spatial displacement accessibility verification is compared with the gait cycle estimate of the new trajectory that has been accumulated by the gait sequence. The unique candidate with the smallest absolute difference is selected for identity restoration, and the candidate's historical coordinate sequence and the accumulated dwell time are fully inherited into the new trajectory.
8. The method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The calculation of the ratio between the cumulative absolute displacement and the net displacement perpendicular to the perimeter direction yields the trajectory oscillation index, including: Obtain a preset number of coordinate points of the trajectory within the perimeter buffer zone, and calculate the sum of the cumulative absolute displacements of the coordinate sequence along the component perpendicular to the perimeter direction; The net displacement is calculated as the straight-line distance between the two ends of the sequence in the vertical direction. The trajectory oscillation index is obtained by dividing the sum of the cumulative absolute displacements by the net displacement. For the stationary state where the coordinates of the beginning and end are almost overlapping, the trajectory oscillation index is assigned as twice the pre-statistically calculated maximum unidirectional crossing sample value as the saturation value.
9. A method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The adaptive derivation of early warning thresholds and alarm thresholds based on historical sample distribution includes: The warning threshold is determined by the preset high percentile value of the comprehensive intrusion score sample generated from the historical compliance targets of the perimeter buffer. The mean and standard deviation of the historical compliance target comprehensive intrusion score sample are calculated. The median of the interval between the warning threshold and the mean plus the standard deviation is used as the initial value of the alarm threshold. The alarm threshold is updated incrementally after each newly confirmed intrusion event, and the update range of the alarm threshold does not exceed a preset upper limit.
10. A method for identifying campus perimeter intrusion behavior based on multi-target tracking according to claim 1, characterized in that, The step of comparing the comprehensive intrusion score with the warning threshold and the alarm threshold respectively to trigger the corresponding graded alarm output includes: When the comprehensive intrusion score is not less than the warning threshold, a warning event is output, the trajectory points are highlighted and the identity number and gait cycle parameters are recorded. When the comprehensive intrusion score is not less than the alarm threshold, an intrusion alarm is triggered, and an alarm event containing a complete video clip, a comprehensive intrusion score value, and a continuous trajectory heatmap is pushed.
