Aircraft intelligent detection tracking and anomaly analysis method
By collecting video data from multi-gun cameras and designing anomaly detection algorithms, real-time tracking and abnormal status monitoring of aircraft are realized, which solves the problem of lack of automatic analysis capabilities in the existing technology and improves the automation level of aircraft management and airport safety. .
Patent Information
- Application Number
- CN202411055599.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The existing technology lacks the ability to automatically analyze aircraft abnormal conditions during the take-off and landing stages, causing controllers to rely on empirical judgment, which increases work burden and accident risks.
Multi-gun cameras are used to collect video data, and behavioral anomaly analysis and appearance anomaly detection algorithms are designed. Through image decoupling networks and generative adversarial networks, real-time tracking of aircraft targets and abnormal status monitoring are achieved, and automatic warnings are provided.
It realizes real-time tracking and abnormal status analysis of aircraft, reduces the burden on tower personnel, improves the level of aircraft management automation, and enhances airport safety monitoring capabilities.
Smart Images

Figure CN118864433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of aircraft intelligent detection, and in particular to an aircraft intelligent detection tracking and abnormality analysis method. Background Art
[0002] The take-off and landing phase is one of the most critical and complex links in the flight process. Data shows that about 60% of air crashes occur during the take-off and landing phase. This is mainly due to the complexity of pilot control tasks during the take-off and landing phase, the relatively poor stability of ground airflow, and the frequent bird activities, which make aircraft prone to accidents. Abnormal accidents during the take-off and landing phases require air traffic controllers and pilots to prepare in advance, and to prepare emergency measures and rescue preparations in the air and on the ground. On the other hand, before take-off and after landing, it is necessary to check whether there are cracks, impact damage and other areas on the aircraft shell. Therefore, detecting, tracking and monitoring abnormal flight status can provide controllers and pilots with necessary information, help air traffic control personnel take appropriate disposal measures in a timely manner, and are of great significance to improving the level of aviation control automation and reducing the burden on personnel.
[0003] Traditional monitoring of take-off and landing phases mainly relies on the experience and judgment of controllers, ground crew and pilots. With the continuous development of computer technology and data analysis methods, the use of technical means to monitor and analyze flight status has become increasingly important. However, related methods (such as the document "An Aircraft Intelligent Tracking System and Method" (CN113691775A)) usually only focus on the detection and tracking of aircraft. At present, there is no algorithm that focuses on the automatic analysis of abnormal aircraft status. Therefore, constructing aircraft detection, tracking and abnormal analysis to timely discover abnormal aircraft status is of great significance for reducing the visual burden of controllers, reminding controllers to be prepared in time, and improving the level of aviation control automation. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art and provide an aircraft intelligent detection, tracking and abnormality analysis method.
[0005] The technical solution provided by the present invention is as follows: an aircraft intelligent detection, tracking and abnormality analysis method, characterized in that it specifically includes the following steps:
[0006] Step 1: Data collection and preprocessing
[0007] Use multiple gun-type cameras to collect airport video data of take-off and landing areas, and clean and normalize the video data; organize each image frame in the video data and mark the flight status of the aircraft target;
[0008] Step 2: Target tracking
[0009] Detect and track aircraft targets;
[0010] Step 3: Warning of abnormal behavior
[0011] Design a behavior anomaly analysis algorithm to analyze the flight status of the aircraft target and detect flight status behavior anomalies caused by local airflow on the ground, pilot operation, etc.
[0012] Step 4: Abnormal behavior monitoring and warning
[0013] Display target location information and whether there are behavioral abnormalities;
[0014] Step 5: Construction of appearance anomaly detection algorithm
[0015] A self-supervised anomaly detection method based on image element decoupling is designed. By decoupling the normal image and the abnormal noise part, the model is enabled to better extract the features of the normal and abnormal areas in the image.
[0016] Step 6: Results display
[0017] The acquired images are stitched according to their position arrangement and displayed on the screen. The aircraft target tracking results are displayed according to step 2, and the aircraft target is marked with a green frame. The behavior anomaly detection method constructed in steps 3 and 4 and the appearance anomaly detection method constructed in step 5 are run in the background. The targets detected to have abnormalities are marked with red frames and warnings are provided.
[0018] Furthermore, in the data collection and preprocessing of step 1, each image frame in the video data is sorted, and the position of the aircraft target (x1, y1, x2, y2) is marked on all images with a vertical frame, where x1, y1 is the coordinate point of the upper left corner of the marked frame, and x2, y2 is the coordinate point of the lower right corner of the marked frame; and an aircraft target detection and tracking data set is obtained;
[0019] The flight status of the aircraft target is annotated frame by frame for each image frame in the video data of the aircraft target detection and tracking dataset; for each image frame in the video data, if the flight status of a certain aircraft in a certain image frame is normal, it is marked as 0, if there is an abnormal behavior, it is marked as 1, and if there is an abnormal appearance, it is marked as 2;
[0020] The image frames in the aircraft target detection and tracking dataset are divided into a detection and tracking training set, a detection and tracking verification set, and a detection and tracking test set in a ratio of 7:1:2; wherein, the flight status of all aircraft targets in the detection and tracking training set and the detection and tracking verification set are normal, and the video data of aircraft targets with abnormal behavior and appearance are all in the detection and tracking test set; wherein, the frame-by-frame images, location information, and flight status information of the manually labeled aircraft targets are stored in the data storage module.
[0021] Furthermore, in the target tracking of step 2, the detection and tracking training set of the aircraft target detection and tracking data set marked in step 1 is used to train JDE, whose input is the image frame of the detection and tracking training set, and the output is the position (x1, y1, x2, y2) of each aircraft target in the image frame.
[0022] Furthermore, in the step 3, in the abnormal behavior warning, the tracking result of the aircraft target in the video in the detection and tracking training set is obtained through step 2. Assuming that the aircraft appears in n image frames, each frame image number is i=1,...,n, and the aircraft target is obtained in step 2. The position in the frame image is ; The center point of the tracking box in each image frame is ,in, , , the flight trajectory of the aircraft target is expressed as T=[ , ,…, ]; For the above aircraft target motion trajectory, the sliding window method is used to divide the motion trajectory, the window size is z, and a total of n-z+1 track segments are obtained; for the t-th track segment, its starting frame is the t-th frame image, and the ending frame is the t+z-th frame image, then the stability s of the aircraft target in the [t, t+z] frame can be calculated according to the following formula:
[0023] s=var([T t+1 -T t ,T t+2 -T t+1 ,...,T t+z -T t+z-1 ])
[0024] var is the variance.
[0025] Furthermore, in the step 4 of abnormal behavior monitoring and warning, the input is the image frame in the detection and tracking test set in step 1, the stability degree s is calculated using the method in step 3, and then compared with the threshold In comparison, the output is whether there is any abnormal behavior;
[0026] Threshold The calculation method is as follows: For all normal flights in the detection and tracking verification set, use the target tracking algorithm described in step 2 to detect and track the aircraft targets in the verification set in real time, obtain their flight trajectory T, and then divide the track segments into sliding window segments, and calculate the stability s for each track segment, and then calculate the average value of s and standard deviation σ, we get ,by as a threshold for distinguishing behavioral abnormalities;
[0027] The test method is as follows: Calculate the stability s of the aircraft target according to step 3. If s> , the detection frame of the aircraft target and the trajectory section are displayed in red, and a warning of abnormal status is provided.
[0028] Furthermore, the construction of the appearance anomaly detection algorithm in step 5 specifically includes the following steps:
[0029] 5-1. Crop the image to obtain the aircraft target image;
[0030] Crop the image: For the image frame containing the aircraft target in the aircraft target detection and tracking dataset in step 1, crop the vertical frame area marked by the position coordinates according to the position information (x1, y1, x2, y2) marked in step 1 to obtain the aircraft target slice with a length and width size of x2-x1, y2-y1, and uniformly adjust the size to 64×64×3 to obtain the aircraft target image;
[0031] According to the above-mentioned image cropping method, the image frames of the detection and tracking training set, the detection and tracking verification set, and the detection and tracking test set in the aircraft target detection and tracking data set constructed in step 1 are respectively cut to obtain the appearance anomaly detection training set, the appearance anomaly detection verification set, and the appearance anomaly detection test set of the appearance anomaly detection algorithm;
[0032] 5-2. For the appearance anomaly detection training set image A, randomly use one of the following three methods to obtain the input image X of the appearance anomaly detection algorithm;
[0033] The first one is to randomly generate a Gaussian noise mask M with a size of 64×64, a mean μ=0.3, and a standard deviation σ=0.2, and then copy it three times by channel and add it to the 64×64×3 appearance anomaly detection training set image A;
[0034] The second method is to randomly generate k masks M with a size of n×n and a pixel value of 0 in a template with a size of 64×64 and all pixel values are 1, and then multiply the mask by the appearance anomaly detection training set image A pixel by pixel. Here, k=5 and n=8 are set;
[0035] The third method is to randomly select an image from the appearance anomaly detection training set and cut j image blocks of size n×n, multiply them by the weight coefficient α and randomly superimpose them on the appearance anomaly detection training set image A as the mask M. Here, j=5, n=8, and α are set to a random value between 0.2 and 0.8;
[0036] 5-3. Image decoupling network construction
[0037] The image decoupling network detects abnormal areas by decomposing and reconstructing images. The network input is the input image X processed in step 5-2, and after Enc, DecY, and DecM, the output is a reconstructed image Y of 64×64×3. out and reconstruct the mask noise M out ;
[0038] The image decoupling network is divided into encoder Enc, decoder DecY and DecM, where Enc encodes the input image X into a vector F of length 4096, the input of DecY is vector F, and the output is the reconstructed image Y out , whose training goal is to promote DecY decoding Y out Try to be equal to the appearance anomaly detection training set image A in step 5-2; DecM decodes the vector F into the mask noise M added to the appearance anomaly detection training set image in step 5-2 out , whose training goal is to reconstruct the mask noise M that promotes DecM decoding out Try to be equal to the mask M added in step 5-2;
[0039] 5-4. Reconstructed image optimization
[0040] Construct a generative adversarial network Dis to improve the model's reconstruction effect on the appearance anomaly detection training set image A; the input D of the designed generative adversarial network Dis is the reconstructed image Y output by DecY in step 5-3 out , or with the reconstructed image Y out The corresponding appearance anomaly detection training set image A, the output is the generated adversarial network Dis for the input D is the appearance anomaly detection training set image A or the reconstructed image Y out The authenticity judgment of out The corresponding label is 0, and the corresponding label of the appearance anomaly detection training set image A is 1;
[0041] Randomly select a batch of appearance anomaly detection training set images, input them into the image decoupling network described in 5-3, and generate corresponding reconstructed images. Then, shuffle the order of the batch of appearance anomaly detection training set images and the corresponding reconstructed images to form the input of the generative adversarial network. As the input image of the generative adversarial network Dis, after conv(3,2,32), conv(3,2,64),conv(3,2,128), conv(3,2,256), expand and connect to the fully connected layer with a length of 2048, and finally connect to the two nodes of true / false;
[0042] Use binary classification loss to optimize the authenticity discrimination of the generated adversarial network:
[0043] (2)
[0044] Where N is the batch size, i.e. the number of images used in one training iteration; x i is the i-th image in the input D of the generative adversarial network, which can be an image from the appearance anomaly detection training set or an image reconstructed by DecY decoding; i is x i The source label is 1 for images from the appearance anomaly detection training set and 0 for images reconstructed by DecY decoding; D(x i ) is the output of the discriminator for the i-th image, that is, the degree to which the discriminator considers that the image is from the appearance anomaly detection training set;
[0045] 5-5. Decoupling reconstruction loss function optimization
[0046] Design and extend Focal loss function L EF as follows:
[0047] (5)
[0048] in is the true value of each pixel; for the DecY branch, the true value is the appearance anomaly detection training set image A, and for the DecM branch, the true value is the mask M generated according to step 5-2; is the predicted value. For the DecY branch, the predicted value is the reconstructed output Y of DecY in 5-3 out For the DecM branch, the predicted value is the output of DecM in step 5-3 to reconstruct the mask noise M out ;
[0049] 5-6. EDAD model training
[0050] ① Take e aircraft target images A from the appearance anomaly detection training set constructed in 5-1 in , according to the 5-2 method, randomly select a noise addition method to generate the mask M in , and then randomly added to the aircraft target image A in , and obtain a corresponding batch of e input images X in ;
[0051] ② Take a batch of e input images X in Input Enc, DecY and DecM in the image decoupling network constructed as in step 5-3, and obtain e reconstructed images from DecY output , obtain e reconstruction mask noise from DecM output ; Calculate according to formula (5) With A in , With M inThe loss is then fed back to the optimized network DecY, DecM and Enc;
[0052] ③The reconstructed image output from step ② The original aircraft target image X selected in step ① in After obfuscation, input the generative adversarial network Dis constructed by the method in step 5-4, calculate the authenticity identification loss according to formula (2) and update the network weights of Enc and DecY;
[0053] ④ Repeat ①~③ 500 times to finally obtain the trained EDAD model;
[0054] 5-7. Threshold calculation;
[0055] After completing the model training in 5-6, retain the Enc and DecY parts and embed them into the designed abnormal warning module as the application model of appearance abnormality detection; input the appearance abnormality detection verification set image Xv constructed in 5-1 into the above application model, obtain the reconstructed image Yv through DecY, and then calculate the average reconstruction error μ of the image according to formula (6): Y ;
[0056] (6)
[0057] Repeat this for all validation set images and then calculate μ Y The mean and standard deviation σ Y , set θ=μ Y +σ Y As a threshold for appearance anomaly detection;
[0058] 5-8 Model Testing
[0059] For the appearance anomaly detection test set image constructed in 5-1, input it into the application model of appearance anomaly detection described in 5-7 to obtain the reconstructed image output by DecY, and then calculate the reconstruction error μ according to formula (6): Y ; If the reconstruction error μ Y If the value is greater than θ, the aircraft is marked with a red frame at the corresponding position in the video collected in step 1 in the display module, and a warning of abnormal appearance is provided.
[0060] The beneficial effects of the present invention are as follows: the present invention can realize real-time tracking and abnormal status analysis of airport aircraft targets, can obtain a wider field of view through the deployment of multiple cameras, can assist or replace the visual observation of the airport status by tower personnel, automatically detect abnormal conditions and provide warnings, thereby realizing automatic auxiliary monitoring of aircraft status.
[0061] The present invention realizes intelligent management of airport aircraft through automatic tracking and abnormal analysis of aircraft targets through algorithms, reduces the burden on tower personnel, and improves command efficiency.
[0062] Through steps 1-6, by analyzing the track data and image data, the detection of abnormal flight status and abnormal appearance can be realized from the two aspects of statistics and machine learning respectively, so as to automatically discover the unstable flight status caused by air currents such as ground wind shear or abnormalities caused by potential mechanical failures, bird strikes, mechanical damage, engine fires and other special situations, and provide warning information to the controller to improve the efficiency of special situation handling.
[0063] Through steps 3 and 4, a stability index is proposed to monitor the stability of the aircraft's flight trajectory. The stability of the trajectory is measured by calculating the variance of the position changes of adjacent frames of the trajectory coordinates, thereby monitoring the problem of excessive fluctuations in the flight trajectory caused by wind shear and other factors during takeoff and landing.
[0064] Through step 5, a method for detecting appearance anomalies based on image decoupling is constructed. There are two main approaches to existing image anomaly detection schemes. One is to use an unsupervised method, with the input being a normal image or a normal image after mask superposition, and the output being a reconstructed normal image, and the normal image is fitted by a training model; in the test phase, the model can accurately reconstruct the normal image, but the reconstruction accuracy of the abnormal part in the abnormal image is low, thereby achieving the distinction between normal and abnormal images. This method does not require label data and can adapt to different abnormal targets / regions without knowing the abnormal target / region, but the false alarm rate is high. One is to use a supervised method, with the input being an abnormal image, and the output being the position or mask of the abnormal target / region, and the model is trained to detect and segment abnormal targets / regions in abnormal images through image detection or segmentation methods. This method has high accuracy and interpretability, but relies on labeled data and has limited generalization ability. To address the above problems, this paper proposes a method that combines two ideas. By designing a multi-branch structure, it is proposed to decode normal images and abnormal noise in an image decoupling manner, so that the model can better understand and distinguish normal and abnormal information, and improve the Focal loss function to specifically optimize the pixels with large reconstruction errors, thereby improving the model's fit to normal images. Finally, a model with a high degree of fit and strong robustness for normal samples is obtained, thereby increasing the difference in reconstruction errors between abnormal samples and normal samples, and improving the analysis effect of aircraft appearance abnormalities.
[0065] Through step 5-5, an optimized Focal loss function is proposed, and the Focal loss in image segmentation is extended to the image reconstruction task, thereby giving a larger weight loss to pixels with high reconstruction errors, so as to prompt the model to focus on pixels that are difficult to reconstruct and perform targeted optimization, thereby improving the convergence speed of the model and reducing the reconstruction error of the model.
[0066] The present invention aims to monitor, track and analyze the abnormal state of aircraft take-off and landing in real time through intelligent means to ensure the safe flight of aircraft. Aiming at the problem of detecting small-area abnormalities on the appearance of aircraft, an aircraft abnormality detection method based on image decoupling and generative adversarial is designed to improve the detection effect of the model on aircraft appearance abnormalities. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 It is the overall framework diagram of the present invention;
[0068] Figure 2 A schematic diagram of adding a noise mask in step 5-2 of the present invention (taking k=3, j=3 as an example);
[0069] Figure 3 This is a framework diagram of the image decoupling function part of step 5-3 of the present invention;
[0070] Figure 4 The network framework diagram of the adversarial network Dis generated by reconstructing the image optimization module in step 5-4 of the present invention. DETAILED DESCRIPTION
[0071] The specific implementation of the present invention is described in detail below with reference to the accompanying drawings:
[0072] like Figure 1 As shown, an aircraft intelligent detection, tracking and abnormality analysis method specifically includes the following steps:
[0073] Step 1: Data collection and preprocessing
[0074] Multiple gun-type cameras were used to collect airport video data of take-off and landing areas, and the video data was cleaned and normalized. An image was collected every 0.05s, and the images in the acquired video data were resized to 224×224.
[0075] The image frames in the video data are sorted, and the positions of the aircraft targets are marked with vertical boxes (x1, y1, x2, y2) for all images, where x1, y1 are the coordinate points of the upper left corner of the marked box, and x2, y2 are the coordinate points of the lower right corner of the marked box; the aircraft target detection and tracking data set is obtained.
[0076] The flight status of the aircraft target is annotated frame by frame for each image frame in the video data of the aircraft target detection and tracking dataset. The flight status includes three types of status: normal, abnormal behavior, and abnormal appearance. Abnormal behavior refers to the abnormal movement trajectory of the aircraft within a period of time (usually 1 to 2 seconds); abnormal appearance refers to the change in the appearance of the aircraft caused by engine fire, bird collision, lightning strike, or cracking. For each image frame in the video data, if the flight status of an aircraft in a certain image frame is normal, the mark is 0, if there is abnormal behavior, it is marked as 1, and if there is abnormal appearance, it is marked as 2.
[0077] For the task of identifying abnormalities in aircraft status, since the number of abnormalities that occur is very small, the present invention adopts anomaly detection for identification. Specifically, the image frames in the aircraft target detection and tracking data set are divided into a detection and tracking training set, a detection and tracking verification set, and a detection and tracking test set in a quantity ratio of 7:1:2. Among them, the flight status of all aircraft targets in the detection and tracking training set and the detection and tracking verification set are normal, and the video data of aircraft targets with abnormal behavior and abnormal appearance are all located in the detection and tracking test set. Among them, the frame-by-frame images, location information, and flight status information of the manually labeled aircraft targets are stored in the data storage module.
[0078] Step 2: Target tracking
[0079] The input of this step is the detection and tracking training set in the aircraft target detection and tracking data set constructed in step 1, and the output is the target position information. This method does not involve innovation in the target tracking method. Considering that the Joint Detection and Embedding (JDE, document Towards Real-Time Multi-Object Tracking) algorithm has reached a real-time level in the multi-target tracking task, and the tracking task in the scene involved in the present invention is relatively simple, JDE is used as the tracking model of the target aircraft. Specifically, the detection and tracking training set of the aircraft target detection and tracking data set marked in step 1 is used to train JDE, and its input is the image frame of the detection and tracking training set, and the output is the position of each aircraft target in the image frame (x1, y1, x2, y2), that is, the aircraft target is marked in each frame of the image in a vertical box manner, so as to achieve tracking of the aircraft target in the video and obtain the motion trajectory of the aircraft target.
[0080] Step 3: Warning of abnormal behavior
[0081] Design a behavior anomaly analysis algorithm to analyze the flight status of the aircraft target, and detect flight status behavior anomalies caused by local airflow on the ground, pilot operation, etc. Its input is the position (x1, y1, x2, y2) of each aircraft target in the image frame obtained in step 2, and the output is the flight stability s.
[0082] Specifically, step 2 can be used to obtain the tracking results of the aircraft target in the video in the detection and tracking training set. Assuming that the aircraft appears in n image frames, each frame image number is i=1,...,n, and the aircraft target is obtained in step 2. The position in the frame image is . Then the center point of the tracking box in each image frame is ,in, , , the flight trajectory of the aircraft target is expressed as T=[ , ,…, ].
[0083] For the above aircraft target motion trajectory, the sliding window method is used to divide the motion trajectory, the window size is z, and a total of n-z+1 track segments are obtained. For the t-th track segment, its starting frame is the t-th frame image, and the ending frame is the t+z-th frame image. The stability s of the aircraft target in the [t, t+z] frame can be calculated according to the following formula:
[0084] s=var([T t+1 -T t ,T t+2 -T t+1 ,...,T t+z -T t+z-1 ]) (1)
[0085] var is the variance. Here z is 20 frames. Since an image is collected every 0.05 seconds, the duration of each track segment is 0.05*z=1 second. That is, the stability within 1 second after frame t is calculated.
[0086] Step 4: Abnormal behavior monitoring and warning
[0087] Displays the target location information and whether there is any abnormal behavior. The input is the image frame in the detection and tracking test set in step 1. The stability level s is calculated using the method in step 3 and then compared with the threshold In comparison, the output is whether there is any abnormal behavior.
[0088] Threshold The calculation method is as follows: For all flights in the detection and tracking verification set (all normal flights), use the target tracking algorithm described in step 2 to detect and track the aircraft targets in the verification set in real time, obtain their flight trajectory T, and then divide the track segments into sliding window segments, and calculate the stability s for each track segment, and then calculate the average value of s and standard deviation σ, we get ,by As a threshold for distinguishing behavioral abnormalities.
[0089] The test method is as follows: Calculate the stability s of the aircraft target according to step 3. If s> , the detection frame of the aircraft target and the trajectory section are displayed in red, and a warning of abnormal status is provided.
[0090] Step 5: Construction of appearance anomaly detection algorithm
[0091] The present invention combines the ideas of unsupervised and supervised anomaly detection, designs a self-supervised anomaly detection method based on image element decoupling (Element Decoupling Anomaly Detection, EDAD), and enables the model to better extract the features of normal and abnormal areas in the image by decoupling the normal image and abnormal noise parts. It includes the following steps:
[0092] 5-1. Crop the image to obtain the aircraft target image.
[0093] Crop the image: For the image frame containing the aircraft target in the aircraft target detection and tracking dataset in step 1, crop the vertical frame area marked by the position coordinates according to the position information (x1, y1, x2, y2) marked in step 1 to obtain the aircraft target slice with a length and width size of x2-x1, y2-y1, and uniformly adjust the size to 64×64×3 to obtain the aircraft target image.
[0094] According to the above-mentioned image cropping method, aircraft target images are respectively cut from the image frames of the detection and tracking training set, the detection and tracking verification set, and the detection and tracking test set in the aircraft target detection and tracking dataset constructed in step 1 to obtain the appearance anomaly detection training set, the appearance anomaly detection verification set, and the appearance anomaly detection test set of the appearance anomaly detection algorithm.
[0095] 5-2. Use self-supervised learning to preprocess the appearance anomaly detection training set images obtained in 5-1 to enhance the algorithm's ability to fit normal aircraft features.
[0096] Specifically, this algorithm uses three image preprocessing methods for self-supervised learning. For a randomly selected appearance anomaly detection training set image A, the following methods are randomly used to obtain the mask M, which is then superimposed on A to obtain the input image X of the appearance anomaly detection algorithm. The schematic diagrams of the second and third methods are shown in Figure 2 shown.
[0097] The first one is to randomly generate a Gaussian noise mask M with a size of 64×64, a mean μ=0.3, and a standard deviation σ=0.2, and then copy it three times by channel and add it to the 64×64×3 appearance anomaly detection training set image A.
[0098] The second method is to randomly generate k masks M with a size of n×n and a pixel value of 0 in a template with a size of 64×64 and all pixel values are 1, and then multiply the mask by the appearance anomaly detection training set image A pixel by pixel. Here, k=5 and n=8 are set.
[0099] The third method is to randomly select an image from the appearance anomaly detection training set and cut j image blocks of size n×n, multiply them by the weight coefficient α, and randomly superimpose them on the appearance anomaly detection training set image A as the mask M. Here, j=5, n=8, and α are set to a random value between 0.2 and 0.8.
[0100] By randomly applying one of the above three methods to the appearance anomaly detection training set image, the processed input image X of the subsequent appearance anomaly detection algorithm is obtained.
[0101] 5-3. Image decoupling network construction
[0102] The image decoupling network detects abnormal areas by decomposing and reconstructing the image. The network input is the input image X processed in step 5-2, and after Enc, DecY, and DecM, the output is a reconstructed image Y of 64×64×3. out and reconstruct the mask noise M out .
[0103] Its network structure is as follows Figure 3 The image decoupling network is divided into encoder Enc, decoder DecY and DecM, where Enc encodes the input image X into a vector F of length 4096, the input of DecY is vector F, and the output is the reconstructed image Y out , whose training goal is to promote DecY decoding Y out Try to be equal to the appearance anomaly detection training set image A in step 5-2; DecM decodes the vector F into the mask noise M added to the appearance anomaly detection training set image in step 5-2 out , whose training goal is to reconstruct the mask noise M that promotes DecM decoding out Try to equal the mask M added in step 5-2. The dotted arrow between DecY and DecM indicates weight sharing, and the same network layer can be used in actual code implementation.
[0104] 5-4. Reconstructed image optimization
[0105] Construct a generative adversarial network Dis to improve the model's reconstruction effect on the appearance anomaly detection training set image A. The input D of the designed generative adversarial network Dis is the reconstructed image Y output by DecY in step 5-3 out , or with the reconstructed image Y outThe corresponding appearance anomaly detection training set image A, the output is the generated adversarial network Dis for the input D is the appearance anomaly detection training set image A or the reconstructed image Y out The authenticity judgment of the reconstructed image Y out The corresponding label is 0, and the corresponding label of the appearance anomaly detection training set image A is 1. Its structure is as follows Figure 4 As shown. A batch of appearance anomaly detection training set images are randomly selected and input into the image decoupling network described in 5-3 to generate corresponding reconstructed images. Then, the batch of appearance anomaly detection training set images and the corresponding reconstructed images are shuffled to form the input of the generative adversarial network. As the input image of the generative adversarial network Dis, after conv(3,2,32), conv(3,2,64), conv(3,2,128), conv(3,2,256), they are expanded and connected to a fully connected layer with a length of 2048, and finally connected to the two nodes of true / false.
[0106] Use binary classification loss to optimize the authenticity discrimination of the generated adversarial network:
[0107] (2)
[0108] Where N is the batch size, which is the number of images used in one training iteration. i y is the i-th image in the input D of the generative adversarial network, which can be an image from the appearance anomaly detection training set or an image reconstructed by DecY decoding. i is x i The label of the source, which is 1 for images from the appearance anomaly detection training set and 0 for images reconstructed by DecY decoding. i ) is the output of the discriminator for the i-th image, that is, the degree to which the discriminator believes that the image is from the appearance anomaly detection training set.
[0109] 5-5. Decoupling reconstruction loss function optimization
[0110] For the image decoupling network constructed in step 5-3, a loss function is designed to optimize the network parameters. The common loss function is the MSE loss function, which is calculated as follows:
[0111] (3)
[0112] in, Represents the appearance anomaly detection training set image A and the reconstructed image Y out The coordinates of each pixel in. i,j=1,...,64,k=1,2,3.
[0113] MSE loss is difficult to optimize difficult pixels such as boundary areas. For this reason, the literature (Focal Loss for Dense Object Detection, ICCV 2017) proposed the use of Focal loss. This loss function is used in image segmentation tasks, and its true label is a 0-1 mask. The loss calculation formula is as follows:
[0114] (4)
[0115] in, is the predicted value output by the DecM branch in the model for the appearance anomaly detection training set image A, that is, the reconstructed mask noise M out The pixel points in M, i, j, k are out The coordinate index of the pixel point in Represents the reconstruction mask noise M out The probability that the coordinates of each pixel in the image match the true label mask M. If the true label of a pixel is 1, that is, the true label mask =1, then , if the true label is 0, then α is a hyperparameter for balancing class imbalance. For pixels with a true label of 1, α is set to 0.25, otherwise it is set to α=0.75. γ is a hyperparameter that needs to be set manually. It is used to adjust the model's attention to pixels with large reconstruction errors and is set to 2.
[0116] Since Focal loss is designed for image segmentation tasks, in image segmentation tasks, the output is a 0-1 mask image used to mark the location of the segmented target. The labels predicted by this method are normal images and noise, and the reconstructed image Y out and reconstruct the mask noise M out , Focal loss cannot be applied to this method to measure the loss of network prediction. Therefore, the Focalloss is improved so that it can adapt to a wider range of image reconstruction problems in addition to predicting 0-1 mask scenarios. Specifically, the designed extended Focal loss loss function L EF as follows:
[0117] (5)
[0118] in is the true value of each pixel; for the DecY branch, the true value is the appearance anomaly detection training set image A, and for the DecM branch, the true value is the mask M generated according to step 5-2. is the predicted value. For the DecY branch, the predicted value is the reconstructed output Y of DecY in 5-3 outFor the DecM branch, the predicted value is the output of DecM in step 5-3 to reconstruct the mask noise M out .
[0119] That is, using the predicted value of each pixel With the true value The difference in measures the difficulty of predicting the pixel. If the difference is larger, it means that the prediction accuracy is lower and the learning of the pixel is more difficult. At this time, the pixel can get higher attention through the above formula.
[0120] 5-6. EDAD model training
[0121] Set the learning rate to 0.0002, the number of training times to 500, the batch size to e=64, and train the EDAD model in the following order.
[0122] ① Take e aircraft target images A from the appearance anomaly detection training set constructed in 5-1 in , according to the 5-2 method, randomly select a noise addition method to generate the mask M in , and then randomly added to the aircraft target image A in , and obtain a corresponding batch of e input images X in ;
[0123] ② Take a batch of e input images X in Input Enc, DecY and DecM in the image decoupling network constructed by the method in step 5-3, and obtain e reconstructed images from DecY output , obtain e reconstruction mask noise from DecM output ; Calculate according to formula (5) With A in , With M in The loss is then fed back to the optimized network DecY, DecM and Enc.
[0124] ③The reconstructed image output from step ② The original aircraft target image X selected in step ① in After obfuscation, the generative adversarial network Dis constructed by the method in step 5-4 is input, and the authenticity identification loss is calculated according to formula (2) and the network weights of Enc and DecY are updated.
[0125] ④ Repeat ①~③ 500 times to finally obtain the trained EDAD model.
[0126] 5-7. Threshold calculation.
[0127] This article uses the reconstruction error of DecY for the appearance anomaly detection validation set image (denoted as Xv) to calculate the threshold of the degree of abnormality. Since DecY is trained using the training set images in steps 5-2 to 5-6, its function is to reconstruct the input image without adding noise. Therefore, if a test image contains an abnormal area, its reconstruction loss will be larger than that of a normal image without abnormalities. Therefore, the reconstruction loss can be calculated as a measure of the degree of abnormality.
[0128] Specifically, after completing the model training in 5-6, retain the Enc and DecY parts and embed them into the designed abnormal warning module as the application model of appearance abnormality detection. Input the appearance abnormality detection verification set image Xv constructed in 5-1 into the above application model, obtain the reconstructed image Yv through DecY, and then calculate the average reconstruction error μ of the image according to formula (6): Y .
[0129] (6)
[0130] Repeat this for all validation set images and then calculate μ Y The mean and standard deviation σ Y , set θ=μ Y +σ Y As the threshold for appearance anomaly detection.
[0131] 5-8 Model Testing
[0132] For the appearance anomaly detection test set image constructed in 5-1, input it into the application model of appearance anomaly detection described in 5-7 to obtain the reconstructed image output by DecY, and then calculate the reconstruction error μ according to formula (6): Y If the reconstruction error μ Y If the value is greater than θ, the aircraft is marked with a red frame at the corresponding position in the video collected in step 1 in the display module, and a warning of abnormal appearance is provided.
[0133] Step 6: Results display
[0134] The images collected by each gun-type camera are stitched according to their positions and displayed on the screen. The aircraft target tracking results are displayed according to step 2, and the aircraft target is marked with a green frame. The behavior anomaly detection method constructed in steps 3 and 4 and the appearance anomaly detection method constructed in step 5 are run in the background. The targets detected to be abnormal are marked with a red frame and a warning is provided.
[0135] It should be understood that the parts not elaborated in detail in this specification belong to the prior art. The above embodiments are only descriptions of the preferred implementation methods of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made by ordinary engineers and technicians in this field to the technical solution of the present invention should fall within the protection scope determined by the claims of the present invention.
Claims
1. An aircraft intelligent detection, tracking and abnormality analysis method, characterized in that: The specific steps include: Step 1: Data collection and preprocessing Use multiple gun-type cameras to collect airport video data of take-off and landing areas, and clean and normalize the video data; organize each image frame in the video data and mark the flight status of the aircraft target; Step 2: Target tracking Detect and track aircraft targets; Step 3: Warning of abnormal behavior Design a behavior anomaly analysis algorithm to analyze the flight status of the aircraft target and detect flight status behavior anomalies caused by local airflow on the ground, pilot operation, etc. Step 4: Abnormal behavior monitoring and warning Display target location information and whether there are behavioral abnormalities; Step 5: Construction of appearance anomaly detection algorithm A self-supervised anomaly detection method based on image element decoupling is designed. By decoupling the normal image and the abnormal noise part, the model is enabled to better extract the features of the normal and abnormal areas in the image.
2. Step 6, result display The acquired images are stitched according to their position arrangement and displayed on the screen. The aircraft target tracking results are displayed according to step 2, and the aircraft target is marked with a green frame. The behavior anomaly detection method constructed in steps 3 and 4 and the appearance anomaly detection method constructed in step 5 are run in the background. The targets detected to have abnormalities are marked with red frames and warnings are provided.
3. The method for intelligent detection, tracking and abnormal analysis of aircraft according to claim 1, characterized in that: In the data collection and preprocessing of step 1, each image frame in the video data is sorted, and the position of the aircraft target (x1, y1, x2, y2) is marked with a vertical frame for all images, where x1, y1 is the coordinate point of the upper left corner of the marked frame, and x2, y2 is the coordinate point of the lower right corner of the marked frame; obtain an aircraft target detection and tracking data set; The flight status of the aircraft target is annotated frame by frame for each image frame in the video data of the aircraft target detection and tracking dataset; for each image frame in the video data, if the flight status of a certain aircraft in a certain image frame is normal, it is marked as 0, if there is an abnormal behavior, it is marked as 1, and if there is an abnormal appearance, it is marked as 2; The image frames in the aircraft target detection and tracking dataset are divided into a detection and tracking training set, a detection and tracking verification set, and a detection and tracking test set in a ratio of 7:1:2; wherein, the flight status of all aircraft targets in the detection and tracking training set and the detection and tracking verification set are normal, and the video data of aircraft targets with abnormal behavior and appearance are all in the detection and tracking test set; wherein, the frame-by-frame images, location information, and flight status information of the manually labeled aircraft targets are stored in the data storage module.
4. The method for intelligent detection, tracking and abnormal analysis of aircraft according to claim 1, characterized in that: In the target tracking of step 2, the detection and tracking training set of the aircraft target detection and tracking data set marked in step 1 is used to train JDE, whose input is the image frame of the detection and tracking training set, and the output is the position (x1, y1, x2, y2) of each aircraft target in the image frame.
5. The method for intelligent detection, tracking and abnormal analysis of aircraft according to claim 1, characterized in that: In the step 3 behavior abnormality warning, the tracking result of the aircraft target in the video in the detection and tracking training set is obtained through step 2. Assuming that the aircraft appears in n image frames, each frame image number is i=1,...,n, and the aircraft target is obtained in step 2. The position in the frame image is ; The center point of the tracking box in each image frame is ,in, , , the flight trajectory of the aircraft target is expressed as T=[ , ,…, ]; For the above aircraft target motion trajectory, the sliding window method is used to divide the motion trajectory, the window size is z, and a total of n-z+1 track segments are obtained; for the t-th track segment, its starting frame is the t-th frame image, and the ending frame is the t+z-th frame image, then the stability s of the aircraft target in the [t, t+z] frame can be calculated according to the following formula: s=var([T t+1 -T t ,T t+2 -T t+1 ,...,T t+z -T t+z-1 ]) var is the variance.
6. The method for intelligent detection, tracking and abnormal analysis of aircraft according to claim 1, characterized in that: In the step 4 of abnormal behavior monitoring and warning, the input is the image frame in the detection and tracking test set in step 1, the stability degree s is calculated using the method in step 3, and then compared with the threshold In comparison, the output is whether there is any abnormal behavior; Threshold The calculation method is as follows: For all normal flights in the detection and tracking verification set, use the target tracking algorithm described in step 2 to detect and track the aircraft targets in the verification set in real time, obtain their flight trajectory T, and then divide the track segments into sliding window segments, and calculate the stability s for each track segment, and then calculate the average value of s and standard deviation σ, we get ,by as a threshold for distinguishing behavioral abnormalities; The test method is as follows: Calculate the stability s of the aircraft target according to step 3. If s> , the detection frame of the aircraft target and the trajectory section are displayed in red, and a warning of abnormal status is provided.
7. The method for intelligent detection, tracking and abnormality analysis of aircraft according to claim 1, characterized in that: The step 5 of constructing the appearance anomaly detection algorithm specifically includes the following steps: 5-1. Crop the image to obtain the aircraft target image; Crop the image: For the image frame containing the aircraft target in the aircraft target detection and tracking dataset in step 1, crop the vertical frame area marked by the position coordinates according to the position information (x1, y1, x2, y2) marked in step 1 to obtain the aircraft target slice with a length and width size of x2-x1, y2-y1, and uniformly adjust the size to 64×64×3 to obtain the aircraft target image; According to the above-mentioned image cropping method, the image frames of the detection and tracking training set, the detection and tracking verification set, and the detection and tracking test set in the aircraft target detection and tracking data set constructed in step 1 are respectively cut to obtain the appearance anomaly detection training set, the appearance anomaly detection verification set, and the appearance anomaly detection test set of the appearance anomaly detection algorithm; 5-2. For the appearance anomaly detection training set image A, randomly use one of the following three methods to obtain the input image X of the appearance anomaly detection algorithm; The first one is to randomly generate a Gaussian noise mask M with a size of 64×64, a mean μ=0.3, and a standard deviation σ=0.2, and then copy it three times by channel and add it to the 64×64×3 appearance anomaly detection training set image A; The second method is to randomly generate k masks M with a size of n×n and a pixel value of 0 in a template with a size of 64×64 and all pixel values are 1, and then multiply the mask by the appearance anomaly detection training set image A pixel by pixel. Here, k=5 and n=8 are set; The third method is to randomly select an image from the appearance anomaly detection training set and cut j image blocks of size n×n, multiply them by the weight coefficient α and randomly superimpose them on the appearance anomaly detection training set image A as the mask M. Here, j=5, n=8, and α are set to a random value between 0.2 and 0.8; 5-3. Image decoupling network construction The image decoupling network detects abnormal areas by decomposing and reconstructing images. The network input is the input image X processed in step 5-2, and after Enc, DecY, and DecM, the output is a reconstructed image Y of 64×64×3. out and reconstruct the mask noise M out ; The image decoupling network is divided into encoder Enc, decoder DecY and DecM, where Enc encodes the input image X into a vector F of length 4096, the input of DecY is vector F, and the output is the reconstructed image Y out , whose training goal is to promote DecY decoding Y out Try to be equal to the appearance anomaly detection training set image A in step 5-2; DecM decodes the vector F into the mask noise M added to the appearance anomaly detection training set image in step 5-2 out , whose training goal is to reconstruct the mask noise M that promotes DecM decoding out Try to be equal to the mask M added in step 5-2; 5-4. Reconstructed image optimization Construct a generative adversarial network Dis to improve the model's reconstruction effect on the appearance anomaly detection training set image A; the input D of the designed generative adversarial network Dis is the reconstructed image Y output by DecY in step 5-3 out , or with the reconstructed image Y out The corresponding appearance anomaly detection training set image A, the output is the generated adversarial network Dis, whether the input D is the appearance anomaly detection training set image A or the reconstructed image Y out The authenticity judgment of out The corresponding label is 0, and the corresponding label of the appearance anomaly detection training set image A is 1; Randomly select a batch of appearance anomaly detection training set images, input them into the image decoupling network described in 5-3, and generate corresponding reconstructed images. Then, shuffle the order of the batch of appearance anomaly detection training set images and the corresponding reconstructed images to form the input of the generative adversarial network. As the input image of the generative adversarial network Dis, after conv(3,2,32),conv(3,2,64),conv(3,2,128),conv(3,2,256), expand and connect to the full connection layer with a length of 2048, and finally connect to the two nodes of true / false; Use binary classification loss to optimize the authenticity discrimination of the generated adversarial network: (2) Where N is the batch size, i.e. the number of images used in one training iteration; x i is the i-th image in the input D of the generative adversarial network, which can be an image from the appearance anomaly detection training set or an image reconstructed by DecY decoding; i is x i The source label is 1 for images from the appearance anomaly detection training set and 0 for images reconstructed by DecY decoding; D(x i ) is the output of the discriminator for the i-th image, that is, the degree to which the discriminator considers that the image is from the appearance anomaly detection training set; 5-5. Decoupling reconstruction loss function optimization Design and extend Focal loss function L EF as follows: (5) in is the true value of each pixel; for the DecY branch, the true value is the appearance anomaly detection training set image A, and for the DecM branch, the true value is the mask M generated according to step 5-2; is the predicted value. For the DecY branch, the predicted value is the reconstructed output Y of DecY in 5-3 out For the DecM branch, the predicted value is the output of DecM in step 5-3 to reconstruct the mask noise M out ; 5-6. EDAD model training ① Take e aircraft target images A from the appearance anomaly detection training set constructed in 5-1 in , according to the 5-2 method, randomly select a noise addition method to generate the mask M in , and then randomly added to the aircraft target image A in , and obtain a corresponding batch of e input images X in ; ② Take a batch of e input images X in Input Enc, DecY and DecM in the image decoupling network constructed by the method in step 5-3, and obtain e reconstructed images from DecY output , obtain e reconstruction mask noise from DecM output ; Calculate according to formula (5) With A in , With M in The loss is then fed back to the optimized network DecY, DecM and Enc; ③The reconstructed image output from step ② The original aircraft target image X selected in step ① in After obfuscation, input the generative adversarial network Dis constructed by the method in step 5-4, calculate the authenticity identification loss according to formula (2) and update the network weights of Enc and DecY; ④ Repeat ①~③ 500 times to finally obtain the trained EDAD model; 5-7. Threshold calculation; After completing the model training in 5-6, retain the Enc and DecY parts and embed them into the designed abnormal warning module as the application model of appearance abnormality detection; input the appearance abnormality detection verification set image Xv constructed in 5-1 into the above application model, obtain the reconstructed image Yv through DecY, and then calculate the average reconstruction error μ of the image according to formula (6): Y ; (6) Repeat this for all validation set images and then calculate μ Y The mean and standard deviation σ Y , set θ=μ Y +σ Y As a threshold for appearance anomaly detection; 5-8 Model Testing For the appearance anomaly detection test set image constructed in 5-1, input it into the application model of appearance anomaly detection described in 5-7 to obtain the reconstructed image output by DecY, and then calculate the reconstruction error μ according to formula (6): Y ; If the reconstruction error μ Y If the value is greater than θ, the aircraft is marked with a red frame at the corresponding position in the video collected in step 1 in the display module, and a warning of abnormal appearance is provided.
Citation Information
Patent Citations
Abnormal image detection method and device based on mutual adversarial training, and medium
CN114581679A
Special target abnormal state detection and tracking method based on improved YOLOv5 network
CN114821032A
Abnormal image detection method and device, model training method and device, equipment and medium
CN116958020A
Industrial visual anomaly detection system based on simplex diffusion model
CN117095199A
Airplane runway foreign matter detection method based on self-supervised learning
CN117496481A
Cited By
Airport PAPI light anomaly identification and detection method based on aerial video processing and analysis
CN120107852A
