Method for detecting article leaving in key area of port operation area

Through the combination of HRNet and UNet models, combined with the DeepSORT algorithm, the existing technology solves the problem of misdetection of indefinite categories of objects and multi-light environments, achieves accurate identification and tracking of items left behind in the port operation area, and improves the system recognition accuracy and stability.

CN118658102APending Publication Date: 2024-09-17BEIJING AEROSPACE AUTOMATIC CONTROL RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845107.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing item legacy detection technology has difficulty in identifying indefinite categories of objects and accurately identifying foreground objects in multi-illumination environments, and methods based on pixel changes are susceptible to illumination problems that lead to false detections.

Method used

The HRNet algorithm is used to extract deep features of the image, and combined with the unsupervised deep learning background segmentation algorithm of the UNet model, the target position rectangular frame is generated by splicing background and dynamic feature information, and the DeepSORT algorithm is used for target tracking, reducing the impact of lighting and improving recognition accuracy. .

Benefits of technology

It achieves stable recognition and tracking of indefinite categories of objects, reduces the false detection rate, and can accurately identify and alarm leftover objects in multi-illumination environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658102A
    Figure CN118658102A
Patent Text Reader

Abstract

The invention relates to a method for detecting article leaving in a key area of a port operation area, which is applied to areas such as a port material preparation room (warehouse) and a safety channel and is used for detecting whether suspected objects exist in specific positions of the areas or not, and if the suspected objects appear, a system can position the objects and stably track the objects to determine whether the objects are always left. And if the object is a left object, the object information is reported to a platform and an alarm is given. The method is applied to areas such as port material preparation rooms (warehouses) and safety channels, whether suspected objects exist in specific positions of the areas or not is detected, and if the suspected objects appear, the system can position the objects and stably track the objects to determine whether the objects are always left. And if the object is a left object, the object information is reported to a platform and an alarm is given.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of machine vision and deep learning, and relates to a system for detecting objects left behind in key areas of a port operation area based on unsupervised deep learning and computer vision technology, which is mainly applicable to the port industry. Background Art

[0002] In the port operation area, there are many specific places, such as the corridors of the material preparation room and the fire passages, where it is prohibited to pile up debris according to regulations. If debris is piled up, it will affect the cleanliness of the specific area, cause the passage of personnel and equipment in the specific area to be unchanged, and even cause serious consequences such as fire. Usually, the port will patrol the above-mentioned specific areas by sending security personnel to eliminate the pile of debris. However, due to the large area of ​​the port operation area, this method cannot monitor the specific area in real time, and it consumes a lot of manpower and material resources. Based on the above situation, the automated detection and identification technology for leftover items in specific areas of the port operation area has been widely studied.

[0003] In recent years, with the rapid development of various sensor technologies, machine vision analysis technologies and other technologies, the above technologies have been widely used in the field of intelligent control; in many industries, relevant technical departments have applied the above technologies and tried to use machine vision methods to detect the situation of items left behind. There are two main ideas for the existing detection of left-behind items: ① Identification of left-behind items based on target detection algorithms. This method uses a target detection algorithm based on deep learning to locate all possible objects that appear in a specific area category and frame the position of the object in the picture; ② A moving target detection algorithm based on machine vision. Through a variety of moving target detection methods, such as optical flow method, mixed Gaussian model and other methods, the area where the picture moves is extracted, and it is considered to be a foreground object different from the background and is located and the position of the object in the picture is framed.

[0004] The existing methods have the following problems:

[0005] (1) The target detection algorithm for a specific category has high accuracy, but it can only detect a limited number of objects. If a foreign object appears in a specific area, it is difficult for the target detection algorithm to extract the feature and locate the target.

[0006] (2) The method of object detection based on the motion characteristics of the picture has poor detection effect on foreground objects that are relatively still compared to the background. At the same time, the traditional algorithm for extracting moving targets based on the change of pixel values ​​may cause misdetection of foreground objects due to lighting problems. Summary of the invention

[0007] 1. Technical issues to be solved

[0008] It can identify objects of indefinite categories located in a specific area; stably identify foreground objects in a specific area under a variety of lighting environments; stably track objects in a specific area and perform ID recognition on remaining objects.

[0009] (II) Technical solution

[0010] A method for detecting items left behind in key areas of a port operation area, the process is as follows.

[0011] A1: Obtain the camera points where the object left behind detection is required, define the alarm area for the object left behind detection, capture the video frames of the point without the object left behind during the day and at night, and save them as background feature information;

[0012] A2: After decoding the network camera into video frames, extract the deep features of the image as the feature information of the current frame;

[0013] A3: The background feature information of A1, the feature information of the current frame of A2 and the dynamic background feature information of the last N frames are concatenated along the pixel dimension and pushed into the algorithm as the input of the object left behind algorithm to generate a rectangular frame of the target position corresponding to the area;

[0014] A4: Based on the target position rectangle of the suspected foreground object generated in step 3, use the target tracking algorithm to assign an ID number to each foreground object and generate the motion trajectory of the target;

[0015] A5: Through the tracking ID and tracking trajectory results of the target, it is determined whether there is a stationary foreground object left in a specific area for a long time. If there is such an object, the object is reported to the port operation area video monitoring platform, and the platform will issue an alarm and display the target location.

[0016] Furthermore, steps A1 and A2 use the HRNet algorithm to extract image features, as follows:

[0017] B1: Gradually add multiple sub-networks from high resolution to low resolution to form multiple branches; connect the multi-resolution sub-network branches in parallel at each stage and perform repeated multi-scale fusion, so that each high-resolution to low-resolution branch repeatedly receives information from other parallel branches, thereby generating rich high-resolution representations;

[0018] B2: Cache the images and deep features of the video stream in the time sequence of nearly N frames as a frame cache queue; when sending the feature information of the current frame each time, average the pixel values ​​of all images in the frame cache queue, and average the pixel values ​​of all corresponding feature images to obtain the dynamic background feature information of the video in the nearly N frames;

[0019] B3: Send the feature information of the current frame, the background feature information, and the dynamic background feature information of the last N frames to the next step for analysis

[0020] Furthermore, the object-leftover algorithm described in A3 is a background segmentation algorithm based on unsupervised deep learning for predicting unknown video foregrounds, and the specific steps are as follows:

[0021] C1: Based on a background image at a specific point, it is input into the UNet model together with the current video frame. The UNet model will encode the two scenes to generate a vector, find the difference between the images and display the area through the decoder;

[0022] C2: On the basis of inputting the above two images, the average image and features of N images before the current frame are input into the UNet model to reduce the influence of lighting on the foreground and background segmentation algorithm;

[0023] C3: According to the encoding vector generated by the three variable encoders, find out the information that ultimately belongs to the foreground and decode the foreground information through the decoder to generate a probability map of each pixel belonging to the foreground.

[0024] Furthermore, the target tracking algorithm described in A4 uses the DeepSORT algorithm, which realizes association measurement by combining more accurate measurements of motion and appearance information, and uses a CNN network to extract features, thereby increasing the robustness of tracking missing and occluded objects.

[0025] Furthermore, the DeepSORT algorithm process is as follows:

[0026] D1: For the input detection results, first deduct the image area corresponding to each detection coordinate, and use the CNN network to extract the deducted image features as the feature parameters of the detected object;

[0027] D2: For the original tracking trajectory, the Kalman filter method is used to predict the motion trajectory of the tracked object; Kalman filtering is an algorithm that uses the linear system state equation and the system input and output observation data to optimally estimate the system state;

[0028] D3: After obtaining the detection results and tracking prediction results, calculate the similarity between the two sets of results (i.e., the similarity between each detected object and each tracked object), and consider the detection-tracking object pairs whose similarity exceeds the threshold as one object;

[0029] D4: If the similarity between the detected object and the tracked object is higher than a certain threshold, that is, the distance is lower than a certain threshold, the two objects are associated as the same object, and the tracker's coordinates and object feature information are updated at the same time.

[0030] D5: After the matching tracking results are associated, the objects that have not been matched in the detection are taken out as the candidate new tracking objects. If the new tracking object can be matched for N consecutive frames, it is considered to be a stable new tracking object.

[0031] D6, while performing step D5, takes out the objects that are not matched with the detection in the tracking and records them as the candidate lost objects; if the object is still marked as lost in N consecutive frames, the object is considered to be a lost object and the track of the object is eliminated.

[0032] Furthermore, the Kalman filter operation steps are as follows:

[0033] E1: Calculate the target information and target estimation error in the previous frame:

[0034] x'=Fx (1)

[0035] P'=FPF T +Q (2)

[0036] Where x is the information of the target in the previous frame [u, v, gama, h, x1, y1, gama1, h1], P is the estimated error of the target; F is the state transfer matrix; Q is the system error;

[0037] E2: Calculate the mean error of tracking

[0038] y=z-Hx' (3)

[0039] Among them, z is the detected mean vector, excluding the speed change value, that is, z = [u, v, gama, h], H

[0040] It is called the measurement matrix, which maps the tracked mean vector x' to the detection space;

[0041] E3: Map the covariance matrix P' to the detection space, and then add the noise matrix

[0042] RS=HP'H T +R (4)

[0043] Where: R is the noise matrix of the detector, which is a 4×4 diagonal matrix. The values ​​on the diagonal are the two coordinates of the center point and the width and height noises, respectively. It is initialized with arbitrary values. Generally, the width and height noises are set to be greater than the center point noise.

[0044] E5: Calculate the Kalman gain K, which is used to estimate the importance of the error

[0045] K=P'H T S -1 (5)

[0046] E6: Calculate the updated mean vector x and covariance matrix P. The first four items of x are the object tracking results predicted by the Kalman filter.

[0047] x=x'+Ky (6)

[0048] P = (1-KH)P' (7).

[0049] Furthermore, the similarity calculation uses the following distance formula:

[0050] Mahalanobis distance: is the Euclidean distance in the normalized principal component space.

[0051] The expression of Mahalanobis distance is:

[0052]

[0053] Among them, d j Indicates the position of the jth detection box; y i represents the predicted position of the target by the ith tracker; S i Represents the covariance matrix between the detection box and the tracking box. The two vectors d j ,y i To find the difference, due to the correlation and order of magnitude, we need to use the covariance matrix S i Normalize it and finally find the Mahalanobis distance between the ith tracking and the jth detection. If the Mahalanobis distance of a certain association is less than the specified threshold, the two objects are associated as the same object.

[0054] Cosine distance: It is used to express the distance between the directions of two vectors. The expression is:

[0055]

[0056] Among them, d j Represents the feature vector of the jth detected target, y i Represents the target feature vector stored by the i-th tracker. Calculate the cosine similarity of the two vectors and subtract the value from 1 to get the distance; if the distance is less than the specified threshold, the two objects are associated as the same object.

[0057] (III) Technical Effect

[0058] The present invention is applied to areas such as port preparation rooms (warehouses) and safety passages to detect whether there are suspicious objects at specific locations in the above areas. If a suspicious object appears, the system will locate the object and track it stably to determine whether it is an object that has been left behind. If it is a left-behind object, the object information will be reported to the platform and an alarm will be issued. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 :Flowchart of detection of items left behind in key areas of port operation areas;

[0060] Figure 2 : Preprocessing flow chart;

[0061] Figure 3 : HRNet structure diagram;

[0062] Figure 4 : BSUV algorithm model diagram;

[0063] Figure 5 : Background detection flow chart;

[0064] Figure 6 : DeepSORT tracking algorithm flow chart;

[0065] Figure 7 : Comparison of the accuracy of HRNet's human key point detection algorithm;

[0066] Figure 8 : Comparison chart of recognition accuracy of BSUV algorithm in CDNet2014 background detection dataset;

[0067] Fig. 9 : Cameras and alarm areas that require object left behind detection:

[0068] Fig.10 : Background reference image for object left behind detection (left is daytime, right is nighttime). DETAILED DESCRIPTION

[0069] In addition to the embodiments described below, the present invention may also have other embodiments or be implemented in different ways. Therefore, it should be understood that the present invention is not limited to the details of the structures described in the following description or shown in the accompanying drawings. When only one embodiment is introduced here, the claims are not limited to that embodiment.

[0070] like Figure 1 As shown in the figure, a method for detecting objects left behind in key areas of a port operation area is applied to areas such as port preparation rooms (warehouses) and safety passages to detect whether there are suspicious objects in specific locations in the above areas. If a suspected object appears, the system will locate the object and track it stably to determine whether it is an object that has been left behind. If it is a left-behind object, the object information will be reported to the platform and an alarm will be issued. The steps are as follows:

[0071] Step 1: Obtain the camera points where the item left behind detection is required, and define the alarm area for the item left behind detection according to the area that needs to be detected. Fig. 9 In the example, the area where items left behind need to be detected is the corridor of the material preparation room, so the area is limited to the area in the red frame in the figure below.

[0072] After demarcating the area, capture the video frames of the point during the day and night when there is no object left behind, and save them as the background reference template for the detection of object left behind at the point (see attached Fig.10 When the algorithm starts, the program will first select a specific background reference template based on time, and use the feature extraction algorithm (the feature extraction algorithm is introduced in step 2) to extract the background features as the static background feature information reference input of the object left behind algorithm.

[0073] Step 2: After decoding the network camera into video frames, put the video frames into the feature extraction algorithm mentioned above to extract the deep features of the image as the feature information of the current frame. The feature extraction algorithm used is the HRNet algorithm.

[0074] The HRNet algorithm gradually adds multiple sub-networks from high resolution to low resolution to form multiple branches. At each stage, the multi-resolution sub-network branches are connected in parallel and repeated multi-scale fusion is performed, so that each high-resolution to low-resolution repeatedly receives information from other parallel branches, thereby generating rich high-resolution representations. Its structure is shown in the attached figure. Figure 3 shown.

[0075] The rich high-resolution features extracted by the HRNet base network have been fully verified in applications such as key point detection. In the HRNet related paper, the author tested the accuracy of the human key point detection algorithm based on HRNet, and the results showed that its effect on human key point detection is significantly better than the original key point detection algorithm. The experimental results are shown in the attached Figure 7 shown.

[0076] At the same time, the images and deep features of nearly N frames in the time sequence of the video stream are cached as a frame cache queue; each time the feature information of the current frame is sent, each pixel value of all images in the frame cache queue is averaged, and each pixel value of all corresponding feature images is averaged at the same time to obtain the dynamic background feature information of nearly N frames of the video.

[0077] The feature information, background feature information of the current frame, and the dynamic background feature information of the last N frames are sent to the next step of the item left behind algorithm for analysis. The overall process of this step is as shown in the attached figure. Figure 2 shown.

[0078] Step 3: The background feature information of step 1, the feature information of the current frame of step 2, and the dynamic background feature information of the last N frames are concatenated along the pixel dimension and pushed into the algorithm as the input of the object left behind algorithm. The object left behind algorithm is an unsupervised deep learning foreground and background segmentation algorithm - BSUV (Background Subtraction of Unseen Videos).

[0079] The BSUV algorithm is a background segmentation algorithm based on unsupervised deep learning for predicting unknown video foregrounds. The main idea is: based on a background image (without foreground) at a specific point, it is input into the UNet model together with the current video frame. The UNet model will encode the two scenes to generate vectors, find the differences between the images and display the area through the decoder; in order to reduce the impact of lighting on the foreground and background segmentation algorithm, on the basis of inputting the above two images, the average image and features of the N images before the current frame are also input into the UNet model. According to the encoding vector generated by the three variable encoders, the information that ultimately belongs to the foreground is found and the foreground information is decoded through the decoder to generate a probability map of each pixel belonging to the foreground. The algorithm structure is shown in the attached figure. Figure 4 shown.

[0080] The BSUV algorithm was tested on the background detection dataset CDNet2014. Compared with other supervised learning algorithms, its effect is shown in the attached figure. Figure 8 As shown in the figure, it can be observed that BSUV achieves the best performance in 5 of the 11 categories, especially in the case of different lighting conditions; it has poor effects on "camera shake" and "dynamic background". This is due to its design purpose. However, in the requirement of detecting and identifying objects left behind in specific scenes and locations in port operation areas, the above two effects can be ignored.

[0081] The probability image representing the foreground calculated by the BSUV algorithm has a pixel value of [0,1], which is the probability that a specific pixel belongs to the foreground. Through threshold filtering, binary image corrosion, expansion and other operations, the areas with low probability and small area are filtered out, and finally the suspected object left area in the specific area is obtained.

[0082] For the generated suspected object left behind area, use the maximum enclosing rectangle algorithm of openCV to generate the target position rectangular frame corresponding to the area. The overall process of this step is as shown in the attached figure. Figure 5 shown.

[0083] Step 4: Based on the target position rectangle of the suspected foreground object generated in step 3, use the target tracking algorithm to assign an ID number to each foreground object and generate the motion trajectory of the target.

[0084] Reasons for using tracking algorithms: The foreground target detection results generated in step 3 include moving objects and stationary objects. Objects moving in a specific area (such as port workers) do not meet the requirements for item left behind alarms. If moving objects are not filtered out, the algorithm will cause false alarms. Therefore, it is necessary to design a tracking algorithm to obtain and filter out objects moving in a specific area.

[0085] The tracking algorithm used is the DeepSORT algorithm. DeepSORT is an improved version of the SORT multi-target tracking algorithm. It designs a new association method to improve the accuracy of tracking objects that are occluded for a long time. Compared with the SORT algorithm, DeepSORT realizes the association measurement by combining more accurate measurements of motion and appearance information, and uses CNN network to extract features, which increases the robustness of tracking missing and occluded objects. The DeepSORT process is shown in the attached figure. Figure 6 shown.

[0086] The algorithm flow of DeepSORT is:

[0087] ① For the input detection results, first deduct the image area corresponding to each detection coordinate, and use the CNN network to extract the deducted image features as the feature parameters of the detected object.

[0088] ② For the original tracking trajectory, the Kalman filter method is used to predict the motion trajectory of the tracked object. Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through system input and output observation data. DeepSORT uses eight parameters, u, v, gama, h, x1, y1, gama1, h1, to describe the motion state of the target, where (u, v) is the center coordinate of the target anchor box, gama is the aspect ratio of the target anchor box, h represents the height of the target anchor box, and the remaining four variables are the motion information of the target corresponding to the image coordinates.

[0089] Kalman filter operation steps: (the following formulas are executed in sequence)

[0090] ■ Kalman filter formulas 1 and 2:

[0091] x'=Fx (1)

[0092] P'=FPF T +Q (2)

[0093] ■Wherein, x is the information of the target in the previous frame [u,v,gama,h,x1,y1,gama1,h1], P is the estimated error of the target; F is the state transfer matrix; Q is the system error.

[0094] y=z-Hx' (3)

[0095] S=HP'H T +R (4)

[0096] K=P'H T S -1 (5)

[0097] x=x'+Ky (6)

[0098] P=(1-KH)P' (7)

[0099] ■In Formula 3, z is the detected mean vector, which does not include the speed change value, that is, z = [u, v, gama, h], H is called the measurement matrix, which maps the tracked mean vector x' to the detection space. This formula calculates the mean error of the tracking.

[0100] ■In Formula 4, R is the noise matrix of the detector, which is a 4×4 diagonal matrix. The values ​​on the diagonal are the two coordinates of the center point and the noise of width and height. It is initialized with arbitrary values. Generally, the noise of width and height is set greater than the noise of the center point. This formula first maps the covariance matrix P' to the detection space, and then adds the noise matrix R.

[0101] ■Formula 5 calculates the Kalman gain K, which is used to estimate the importance of the error.

[0102] ■ Formula 6 and Formula 7 obtain the updated mean vector x and covariance matrix P. The first four items of x are the object tracking results predicted by the Kalman filter.

[0103] ③ After obtaining the detection results and tracking prediction results, calculate the similarity between the two sets of results (that is, the similarity between each detected object and each tracked object), and consider the detection-tracking object pairs whose similarity exceeds the threshold as one object.

[0104] DeepSORT's similarity calculation uses two distance formulas: Mahalanobis distance and cosine distance.

[0105] ■ Mahalanobis distance: It is the Euclidean distance in the normalized principal component space. The so-called normalized principal component space is to use principal component analysis to decompose some data into principal components. Then all principal component decomposition axes are normalized to form new coordinate axes. The space spanned by these coordinate axes is the normalized principal component space.

[0106] In DeepSORT, the expression of Mahalanobis distance is:

[0107]

[0108] Among them, d j Indicates the position of the jth detection box; y i represents the predicted position of the target by the ith tracker; S i Represents the covariance matrix between the detection box and the tracking box. The two vectors d j ,y i To find the difference, due to the correlation and order of magnitude, we need to use the covariance matrix S iNormalize it and finally find the Mahalanobis distance between the ith tracking and the jth detection. If the Mahalanobis distance of a certain association is less than the specified threshold, the two objects are associated as the same object.

[0109] ■Cosine distance: It is used to represent the distance between the directions of two vectors. The larger the cosine distance, the more inconsistent the directions of the two vectors.

[0110] In DeepSORT, the expression of cosine distance is:

[0111]

[0112] Among them, d j represents the feature vector of the jth detected target (calculated by the previous CNN network), y i Represents the target feature vector stored by the i-th tracker. Calculate the cosine similarity of the two vectors and subtract it from 1 to get the distance. If the distance is less than the specified threshold, the two objects are associated as the same object.

[0113] ④ If the similarity between the detected object and the tracked object is higher than a certain threshold (i.e. the distance is lower than a certain threshold), the two objects are associated as the same object, and the tracker's coordinates and object feature information are updated at the same time.

[0114] ⑤ After the matching tracking results are associated, the objects that were not matched in the detection are taken out as the candidate new tracking objects. If the new tracking object can be matched for N consecutive frames, it is considered to be a stable new tracking object.

[0115] ⑥ While performing step ⑤, take out the objects that are not matched with the detection in the tracking and record them as the candidate lost objects. If the object is still marked as lost in N consecutive frames, it is considered to be a lost object and the object track is eliminated.

[0116] The DeepSORT algorithm can stably track multiple targets. Through the target's tracking ID and tracking trajectory results, it can be determined whether there are static foreground objects left in a specific area for a long time. If there are such objects, the algorithm will report the object's parameters (including the object's position, size, confidence, etc. in the image) to the port operation area video monitoring platform, which will issue an alarm, display the target's position, and record the video of the camera point where the target is located.

[0117] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for detecting items left behind in key areas of a port operation area, characterized in that: The process is as follows. A1: Obtain the camera points where the object left behind detection is required, define the alarm area for the object left behind detection, capture the video frames of the point without the object left behind during the day and at night, and save them as background feature information; A2: After decoding the network camera into video frames, extract the deep features of the image as the feature information of the current frame; A3: The background feature information of A1, the feature information of the current frame of A2 and the dynamic background feature information of the last N frames are concatenated along the pixel dimension and pushed into the algorithm as the input of the object left behind algorithm to generate a rectangular frame of the target position corresponding to the area; A4: Based on the target position rectangle of the suspected foreground object generated in step 3, use the target tracking algorithm to assign an ID number to each foreground object and generate the motion trajectory of the target; A5; Through the tracking ID and tracking trajectory results of the target, it is determined whether there is a stationary foreground object left in a specific area for a long time. If there is such an object, the object will be reported to the port operation area video monitoring platform, and the platform will issue an alarm and display the target location.

2. The method according to claim 1, characterized in that Steps A1 and A2 use the HRNet algorithm to extract image features, as follows: B1: Gradually add multiple sub-networks from high resolution to low resolution to form multiple branches; connect the multi-resolution sub-network branches in parallel at each stage and perform repeated multi-scale fusion, so that each high-resolution to low-resolution branch repeatedly receives information from other parallel branches, thereby generating rich high-resolution representations; B2: Cache the images and deep features of the video stream in the time sequence of nearly N frames as a frame cache queue; when sending the feature information of the current frame each time, average the pixel values ​​of all images in the frame cache queue, and average the pixel values ​​of all corresponding feature images to obtain the dynamic background feature information of the video in the nearly N frames; B3: Send the feature information, background feature information of the current frame, and dynamic background feature information of the recent N frames to the next step for analysis.

3. The method according to claim 1, characterized in that The object-leftover algorithm described in A3 is a background segmentation algorithm based on unsupervised deep learning for predicting the foreground of an unknown video. The specific steps are as follows: C1: Based on a background image at a specific point, it is input into the UNet model together with the current video frame. The UNet model will encode the two scenes to generate a vector, find the difference between the images and display the area through the decoder; C2: On the basis of inputting the above two images, the average image and features of N images before the current frame are input into the UNet model to reduce the influence of lighting on the foreground and background segmentation algorithm; C3: According to the encoding vector generated by the three variable encoders, find out the information that ultimately belongs to the foreground and decode the foreground information through the decoder to generate a probability map of each pixel belonging to the foreground.

4. The method according to claim 1, characterized in that The target tracking algorithm described in A4 uses the DeepSORT algorithm, which realizes the association measurement by combining more accurate measurements of action and appearance information, and uses the CNN network to extract features, thereby increasing the robustness of tracking missing and occluded objects.

5. The method according to claim 4, characterized in that The DeepSORT algorithm process is as follows: D1: For the input detection results, first deduct the image area corresponding to each detection coordinate, and use the CNN network to extract the deducted image features as the feature parameters of the detected object; D2: For the original tracking trajectory, the Kalman filter method is used to predict the motion trajectory of the tracked object; Kalman filtering is an algorithm that uses the linear system state equation to optimally estimate the system state through system input and output observation data; D3: After obtaining the detection results and tracking prediction results, calculate the similarity between the two sets of results (i.e., the similarity between each detected object and each tracked object), and consider the detection-tracking object pairs whose similarity exceeds the threshold as one object; D4: If the similarity between the detected object and the tracked object is higher than a certain threshold, that is, the distance is lower than a certain threshold, the two objects are associated as the same object, and the tracker's coordinates and object feature information are updated at the same time. D5: After the matching tracking results are associated, the objects that have not been matched in the detection are taken out as new tracking objects; If the newly tracked object can be matched for N consecutive frames, the object is considered to be a stable newly tracked object; D6, while performing step D5, takes out the objects that are not matched with the detection in the tracking and records them as the candidate lost objects; If the object is still marked as lost in N consecutive frames, the object is considered to be lost and the object track is eliminated.

6. The method according to claim 5, characterized in that The Kalman filter operation steps are as follows: E1: Calculate the target information and target estimation error in the previous frame: x'=Fx (1) P'=FPF T +Q (2) Where x is the information of the target in the previous frame [u, v, gama, h, x1, y1, gama1, h1], P is the estimated error of the target; F is the state transfer matrix; Q is the system error; E2: Calculate the mean error of tracking y=z-Hx' (3) Among them, z is the detected mean vector, excluding the speed change value, that is, z = [u, v, gama, h], H is called the measurement matrix, which maps the tracked mean vector x' to the detection space; E3: Map the covariance matrix P' to the detection space, and then add the noise matrix RS=HP'HT+R (4) Where: R is the noise matrix of the detector, which is a 4×4 diagonal matrix. The values ​​on the diagonal are the two coordinates of the center point and the width and height noises, respectively. It is initialized with arbitrary values. Generally, the width and height noises are set to be greater than the center point noise. E5: Calculate the Kalman gain K, which is used to estimate the importance of the error K=P'H T S -1 (5) E6: Calculate the updated mean vector x and covariance matrix P. The first four items of x are the object tracking results predicted by the Kalman filter. x=x'+Ky (6) P = (1-KH)P' (7).

7. The method according to claim 5, characterized in that The similarity calculation uses the following distance formula: Mahalanobis distance: is the Euclidean distance in the normalized principal component space. The expression of Mahalanobis distance is: Among them, d j Indicates the position of the jth detection box; y i represents the predicted position of the target by the ith tracker; S i Represents the covariance matrix between the detection box and the tracking box. The two vectors d j ,y i To find the difference, due to the correlation and order of magnitude, we need to use the covariance matrix S i Normalize it and finally find the Mahalanobis distance between the ith tracking and the jth detection. If the Mahalanobis distance of a certain association is less than the specified threshold, the two objects are associated as the same object. Cosine distance: It is used to express the distance between the directions of two vectors. The expression is: Among them, d j Represents the feature vector of the jth detected target, y i Represents the target feature vector stored by the i-th tracker. Calculate the cosine similarity of the two vectors and subtract the value from 1 to get the distance; if the distance is less than the specified threshold, the two objects are associated as the same object.