A drone illegal intrusion detection system, method and computer equipment

By combining the RGBD depth camera and edge computer gateway with the Yolov5 algorithm, the problem of low accuracy and high cost of UAV monitoring is solved, and intelligent, real-time monitoring and high-precision detection of UAVs are realized.

CN118470652BActive Publication Date: 2024-09-17SHENZHEN URBAN TRANSPORT PLANNING CENT CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410923849.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-17
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing technology makes it difficult to accurately monitor drones. Traditional manual inspections are time-consuming and laborious. Radio detection methods are costly and have poor accuracy, making it difficult to provide full coverage of key areas.

Method used

An RGBD depth camera is used combined with an edge computer gateway to perform drone detection, tracking, trajectory collection and trajectory prediction through the Yolov5 algorithm and depth image binding information to achieve position prediction and illegal intrusion detection for drones.

Benefits of technology

It realizes intelligent and real-time monitoring of the target monitoring area, improves detection accuracy, provides management with a basis for decision-making, and reduces construction and deployment costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118470652B
    Figure CN118470652B
Patent Text Reader

Abstract

The present invention provides a system, method and computer equipment for detecting illegal intrusion of unmanned aerial vehicles. The system of the present invention can use an edge computer gateway to convert the initial color video and the initial depth video into corresponding video stream information in the target monitoring area, and then use an acquisition module to decode, preprocess and match the above video stream information in sequence to obtain deep image binding information, and then use the detection module for deep training to track, collect trajectories and predict trajectories of the unmanned aerial vehicle related data in the deep image binding information, so as to obtain the position prediction information of the unmanned aerial vehicle, and then use the analysis module to analyze the position information of the unmanned aerial vehicle, and send a corresponding notification signal to the data transmission module, so that the monitoring end can predict whether the unmanned aerial vehicle has illegally intruded into the restricted or prohibited flying area. Compared with the prior art, the system of the present invention solves the problems of time-consuming and labor-intensive traditional manual inspection, high cost and poor accuracy of radio detection methods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of video surveillance, and in particular relates to a system and method for detecting illegal intrusion of unmanned aerial vehicles and computer equipment. Background Art

[0002] A drone is an unmanned aerial vehicle that is controlled by a radio remote control device or a self-contained program control device. It has the characteristics of complex maneuverability, poor coordination, slow speed, and small radar cross-sectional area. It is a typical "low, small, and slow" target.

[0003] In the prior art, it is difficult to accurately monitor drones using monitoring facilities or methods corresponding to drones. The main reasons are as follows:

[0004] 1. Traditional manual inspection methods are time-consuming, labor-intensive and inefficient. A relevant person can often only monitor a fixed direction of the target area to see if there is illegal intrusion by drones, making it difficult to fully cover key areas.

[0005] 2. The existing radio detection method requires the deployment of three or more radio detection devices around the target area, and the use of radio detection technology to link multiple devices to monitor whether there are drones in the defense target area. This method requires the linkage of multiple radio detection devices, has high construction costs, and complex deployment and debugging work, especially in urban environments where there are many interference factors that affect the reception of radio signals, and the detection accuracy is average. Summary of the invention

[0006] The present invention provides a drone illegal intrusion detection system, method and computer equipment, which are used to solve the problems existing in the prior art.

[0007] In the first aspect, the purpose of the present invention is achieved by the following technical solutions:

[0008] A drone illegal intrusion detection system, comprising:

[0009] RGBD depth camera, which has a built-in color camera and depth camera. The color camera is used to shoot the initial color video in the target monitoring area, and the depth camera is used to shoot the initial depth video in the target monitoring area;

[0010] An edge computer gateway, communicatively connected to the RGBD depth camera, the edge computer gateway being used to convert an initial color video and an initial depth video into first video stream information and second video stream information, respectively;

[0011] An acquisition module is communicatively connected to the edge computer gateway, and is used to sequentially decode, pre-process and match the first video stream information and the second video stream information to obtain deep image binding information;

[0012] The detection module is connected to the acquisition module in communication. The detection module is used to detect, track, collect trajectories and predict trajectories of drones entering the target monitoring area according to the Yolov5 algorithm and the deep image binding information, and obtain the location prediction information of the drones;

[0013] An analysis module, communicatively connected to the detection module, and configured to analyze and obtain a corresponding notification signal according to preset detection area and position prediction information;

[0014] The data transmission module is communicatively connected to the analysis module, and is used for converting the notification signal into corresponding message information and transmitting the corresponding message information to the monitoring end.

[0015] Through the above technical scheme, the system of the present invention can convert the initial color video and the initial depth video into the first video stream information and the second video stream information respectively by edge computing using the edge computer gateway in the target monitoring area, and then use the acquisition module to decode, preprocess and match the first video stream information and the second video stream information in turn to obtain the deep image binding information, and then use the Yolov5 algorithm built into the detection module to perform deep training on the deep image binding information to detect the drone in the target monitoring area, and then track, collect and predict the trajectory of the drone-related data in the deep image binding information to obtain the location prediction information of the drone, and then analyze the location information of the drone through the analysis module, and send a corresponding notification signal to the data transmission module, so that the monitoring end can predict whether the drone illegally enters the restricted or prohibited flight area. Compared with the prior art, the system of the present invention solves the problems of time-consuming and labor-intensive traditional manual inspection, high cost and poor accuracy of radio detection methods. The system of the present invention also realizes intelligent and real-time effective monitoring of the target monitoring area, and provides an effective decision-making basis for the management.

[0016] Preferably, the acquisition module includes:

[0017] A collection unit is connected to a network interface of an edge computer gateway via an RJ45 Ethernet cable, and the collection unit is used to collect the first video stream information and the second video stream information in a video stream manner;

[0018] A video decoding unit, configured to decode the first video stream information and the second video stream information and cut them into RGB single-frame images and depth images corresponding to each frame in a time sequence;

[0019] A preprocessing unit, used to perform image filtering, denoising and distortion removal on RGB single-frame images, and depth value correction and distortion removal on depth images;

[0020] The information matching unit is used to calibrate the external parameters of the color camera and the depth camera together until the coordinate systems of the color camera and the depth camera are consistent; the information matching unit also aligns the RGB single-frame image processed by the preprocessing unit and the corresponding depth image to obtain the depth image binding information.

[0021] Preferably, the detection module includes:

[0022] The target detection unit is used to detect drones in the target monitoring area based on the Yolov5 algorithm and the deep image binding information;

[0023] A target tracking unit is used to assign a unique identifier to the drone and match and record the pixel position of the target area in the depth image binding information and the corresponding depth information;

[0024] The target trajectory acquisition unit is used to construct a trajectory coordinate system with the camera of the RGBD depth camera as the coordinate origin, and calculate the three-dimensional coordinate information of the drone based on the coordinate conversion algorithm, and generate the drone trajectory information based on the three-dimensional coordinate information;

[0025] The target trajectory prediction unit is used to predict the position prediction information based on the LSTM algorithm and the drone trajectory information.

[0026] Preferably, the detection area includes a safe area, a warning area and a defense area, the defense area covers the defense target, the safe area is located outside the defense area, and the warning area is located between the safe area and the defense area. The analysis module includes:

[0027] The distance detection unit is used to set the corresponding safety area, warning area and defense area according to the built-in safety area parameters, warning area parameters and defense area parameters; the distance detection unit is also used to determine the current area where the drone is located according to the position prediction information, the safety area, the warning area and the defense area;

[0028] The intrusion detection unit is used to determine whether to trigger the corresponding notification signal and send it to the data transmission module based on the current area, location prediction information, safe area, warning area and defense area.

[0029] In the second aspect, the purpose of the present invention is achieved by the following technical solutions:

[0030] A method for detecting illegal intrusion of a drone is applied to the above-mentioned illegal intrusion detection system of a drone, and the method comprises:

[0031] S1: Use the color camera of the RGBD depth camera to shoot the initial color video in the target monitoring area, and use the depth camera of the RGBD depth camera to shoot the initial depth video of the ground in the target monitoring area;

[0032] S2: using an edge computer gateway to convert the initial color video into a first video stream information, and using a computer gateway to convert the initial depth video into a second video stream information;

[0033] S3: using the acquisition module to sequentially decode, pre-process and match the first video stream information and the second video stream information to obtain deep image binding information;

[0034] S4: Based on the Yolov5 algorithm and the deep image binding information, the detection module is used to detect, track, collect trajectories and predict trajectories of the drones entering the target monitoring area to obtain the location prediction information of the drones;

[0035] S5: according to the preset detection area and location prediction information, an analysis module is used to analyze and obtain a corresponding notification signal;

[0036] S6: Use the data transmission module to convert the notification signal into corresponding message information, and transmit the corresponding message information to the monitoring end.

[0037] Preferably, step S4 comprises:

[0038] S41: Detect drones in the target monitoring area based on the Yolov5 algorithm and deep image binding information;

[0039] S42: assigning a unique identifier to the drone, and matching and recording the pixel position of the target area in the depth image binding information and the corresponding depth information;

[0040] S43: Using the camera of the RGBD depth camera as the coordinate origin, constructing a trajectory coordinate system, and calculating the three-dimensional coordinate information of the drone based on a coordinate conversion algorithm, and then generating the drone trajectory information based on multiple three-dimensional coordinate information;

[0041] S44: According to the LSTM algorithm and the drone trajectory information, the position prediction information is obtained.

[0042] Preferably, step S41 includes:

[0043] A real dataset for extracting deep image binding information;

[0044] Labeling drones in real datasets;

[0045] The annotated real data set is sent to the DCGAN network for training to obtain an adversarial data set;

[0046] The adversarial data set is fed into the YOLOv5 network for training, and the drone is automatically detected.

[0047] Preferably, step S43 includes:

[0048] The camera of the RGBD depth camera is used as the coordinate origin, the two mutually perpendicular directions in the horizontal field of view of the camera are used as the positive directions of the X-axis and the Y-axis respectively, and the direction parallel to the imaging plane of the RGBD depth camera and away from the center of the earth is used as the positive direction of the Z-axis to construct the trajectory coordinate system;

[0049] Based on the coordinate conversion algorithm and the trajectory coordinate system, the three-dimensional coordinate information of the UAV is calculated, and the trajectory information of the UAV is generated based on multiple three-dimensional coordinate information;

[0050] The coordinate transformation algorithm is:

[0051] (1)

[0052] (2)

[0053] in, 1 is the X-axis coordinate of the pixel center point of the drone in the imaging plane, 1 is the Y-axis coordinate of the pixel center point of the drone in the imaging plane, 2 is the X-axis coordinate of the center point of the pixel in the imaging plane, 2 is the Y-axis coordinate of the center point of the pixel in the imaging plane, r is the depth information of the drone, L is the scale factor, is the distance from the camera to the plane where the drone is located; , and is the three-dimensional coordinate of the UAV in the trajectory coordinate system; a is the pixel width of the imaging plane on the X-axis.

[0054] Preferably, the detection area includes a safe area, a warning area and a defense area, the defense area covers the defense target, the safe area is outside the defense area, the warning area is between the safe area and the defense area, the notification signal includes an early warning signal and an alarm signal, and step S5 includes:

[0055] S51: If the location prediction information is located in a safe area, no notification signal is sent to the data transmission module;

[0056] S52: If the location prediction information is located in the warning area, an analysis module is used to analyze and obtain a warning signal, and the warning signal is sent to a data transmission module;

[0057] S53: If the location prediction information is located in the defense area, an analysis module is used to analyze and obtain an alarm signal, and the alarm signal is sent to the data transmission module.

[0058] In a third aspect, the purpose of the present invention is achieved by the following technical solutions:

[0059] A computer device comprises an internal memory, a processor, a non-volatile storage medium and a computer program stored in the non-volatile storage medium and executable on the processor. When the processor executes the computer program, the above-mentioned unmanned aerial vehicle illegal intrusion detection method is implemented.

[0060] The present invention has at least the following advantages:

[0061] 1) Compared with the existing technology, the system of the present invention solves the problems of time-consuming and labor-intensive traditional manual inspection, high cost and poor accuracy of radio detection methods. The system of the present invention also realizes intelligent and real-time effective monitoring of the target monitoring area, and provides effective decision-making basis for the management.

[0062] 2) Compared with the existing technology, the automatic detection of drones in the method of the present invention needs to be obtained based on the deep training of DCGAN network and Yolov5 algorithm, and has higher detection accuracy.

[0063] 3) Compared with the prior art, the method of the present invention can predict the future flight trajectory of the UAV and determine whether the UAV has intruded into the protection area of ​​the defense target based on the distance between the UAV and the camera of the RGBD depth camera. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 This is a schematic diagram of the structure of a drone illegal intrusion detection system in Embodiment 1 of the present invention;

[0066] Figure 2 This is a flow chart of a method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0067] Figure 3 This is a flow chart of step S3 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0068] Figure 4 This is a flow chart of step S4 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0069] Figure 5 This is a flow chart of step S41 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0070] Figure 6 Schematic diagram of a coordinate system constructed with the RGBD depth camera as the origin in step S43 of the method for detecting illegal intrusion of a drone in the second embodiment of the present invention;

[0071] Figure 7 A diagram showing the relationship between the positions of the RGBD depth camera and the drone in step S43 of the method for detecting illegal intrusion of a drone in the second embodiment of the present invention;

[0072] Figure 8 A three-dimensional graph of the drone trajectory generated in step S43 of the drone illegal intrusion detection method in the second embodiment of the present invention;

[0073] Fig. 9 This is a flow chart of step S44 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0074] Fig.10 This is a flow chart of step S5 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0075] Fig.11 Schematic diagram of the detection area division of the method for detecting illegal intrusion of a drone in the second embodiment of the present invention;

[0076] Fig.12 This is a flow chart of step S6 of the method for detecting illegal intrusion of a drone in Embodiment 2 of the present invention;

[0077] Fig.13 It is a schematic diagram of the structure of the computer device in the third embodiment of the present invention. DETAILED DESCRIPTION

[0078] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction. Therefore, they cannot be understood as limitations on the present invention.

[0080] This embodiment discloses a drone illegal intrusion detection system, method and computer equipment, which are used to solve the problems existing in the prior art.

[0081] Embodiment 1

[0082] like Figure 1 As shown, this embodiment discloses a drone illegal intrusion detection system, which includes an RGBD depth camera, an edge computer gateway, a collection module, a detection module, an analysis module and a data transmission module.

[0083] Among them, the RGBD depth camera is an integrated camera with a built-in color camera and a depth camera. Each camera is configured with a corresponding camera. The color camera is used to shoot the initial color video in the target monitoring area, and the depth camera is used to shoot the initial depth video in the target monitoring area.

[0084] In this embodiment, the edge computer gateway is an IoT device with edge computing capabilities, and the RGBD depth camera is connected to the network interface of the edge computer gateway via an RJ45 Ethernet cable. The computer gateway accesses the real-time video stream information collected by the RGBD depth camera through video streaming within its own system (the real-time video stream information includes the initial color video and the initial depth video), and then the edge computer gateway converts the initial color video and the initial depth video into the first video stream information and the second video stream information respectively.

[0085] The acquisition module is connected to the network interface of the edge computer gateway through an RJ45 Ethernet cable, and is mainly used to decode, preprocess and match the first video stream information and the second video stream information in sequence to obtain deep image binding information.

[0086] Specifically, the acquisition module includes an acquisition unit, a video decoding unit, a preprocessing unit and an information matching unit. The specific working principle of the acquisition module is: first, the acquisition unit acquires the first video stream information and the second video stream information by means of a video stream. Then, the video decoding unit decodes the first video stream information and the second video stream information, and cuts them into RGB single-frame images and depth images corresponding to each frame in the time series. Then, the preprocessing unit performs image filtering, denoising and dedistortion processing on the RGB single-frame image, and performs depth value correction and dedistortion processing on the depth image. Finally, the information matching unit performs joint external parameter calibrating on the color camera and the depth camera until the coordinate systems of the color camera and the depth camera are consistent, and the information matching unit also aligns the RGB single-frame image processed by the preprocessing unit with the corresponding depth image to finally obtain the depth image binding information.

[0087] Compared with the prior art, the acquisition module of the present invention can match the RGB single-frame image and the corresponding depth image to the greatest extent, and perform depth value correction and dedistortion processing, with higher image processing accuracy.

[0088] The detection module is communicatively connected to the above-mentioned acquisition module. The detection module is used to detect, track, collect trajectories and predict trajectories of drones entering the target monitoring area to obtain the location prediction information of the drones. The deep learning Yolov5 algorithm is used in the above-mentioned drone detection process.

[0089] Specifically, the detection module includes a target detection unit, a target tracking unit, a target trajectory acquisition unit and a target trajectory prediction unit. The working principle of the detection module is as follows: the target detection unit first detects the drone in the target monitoring area according to the Yolov5 algorithm and the depth image binding information. Next, the target tracking unit assigns a unique identifier to the drone, and matches and records the pixel position of the target area in the depth image binding information and the corresponding depth information. Then, the target trajectory acquisition unit uses the camera of the RGBD depth camera as the coordinate origin to construct a trajectory coordinate system, and based on the coordinate conversion algorithm, calculates the three-dimensional coordinate information of the drone, and generates the drone trajectory information based on multiple three-dimensional coordinate information. Finally, the target trajectory prediction unit predicts the position prediction information based on the LSTM algorithm and the drone trajectory information.

[0090] Compared with the prior art, the detection module of the system of the present invention detects drones in the target monitoring area based on the deep learning Yolov5 algorithm, with higher detection accuracy, and on this basis, it also realizes the tracking, trajectory collection and trajectory prediction of drones.

[0091] The analysis module is communicatively connected to the detection module, and is used to analyze and obtain a corresponding notification signal according to preset detection area and position prediction information.

[0092] Specifically, the above-mentioned preset detection areas include a safe area, a warning area, and a defense area. The following is a detailed description of the above three detection areas:

[0093] Safety zone: Set the safe distance between the drone and the defense target according to the actual application scenario. The area outside the safe distance is the safety zone.

[0094] Warning area: According to the actual application scenario, set the warning distance between the drone and the defense target. The area between the safety distance and the warning distance is the warning area.

[0095] Defense area: the area within the warning distance.

[0096] The above-mentioned analysis module includes a distance detection unit and an intrusion detection unit. The specific working principle of the analysis module is: the distance detection unit first sets the corresponding safety area, warning area and defense area according to the built-in safety area parameters, warning area parameters and defense area parameters, and then judges the current area where the drone is located according to the drone's position prediction information and the above-mentioned three detection areas. Then the intrusion detection unit determines whether to trigger the corresponding notification signal and send it to the data transmission module based on the position prediction information and the above-mentioned three detection areas.

[0097] Compared with the prior art, the system of the present invention realizes the subdivision of the detection area, and the analysis module of the system of the present invention can automatically make judgments based on the current area and position prediction information of the drone, and output corresponding notification signals to the data transmission module, thus solving the problem of time-consuming and labor-intensive manual detection.

[0098] The data transmission module is communicatively connected to the above-mentioned analysis module. The data transmission module converts the notification signal into corresponding message information, and transmits the corresponding message information to the cloud platform through the post function of https, so that the monitoring end (including display, mobile phone or broadcasting equipment, etc.) can broadcast the specific situation of the drone.

[0099] Through the above technical scheme, the system of the present invention solves the problems of time-consuming and labor-intensive traditional manual inspection, high cost and poor accuracy of radio detection methods, and also effectively monitors the target monitoring area intelligently and in real time, while providing effective decision-making basis for management.

[0100] Embodiment 2

[0101] like Figure 2 As shown, this embodiment discloses a method for detecting illegal intrusion of a drone. Based on this method, a corresponding control program can be written. This method is applied to the above-mentioned illegal intrusion detection system of a drone. The method of the present invention includes:

[0102] S1: Use the color camera of the RGBD depth camera to shoot the initial color video in the target monitoring area, and use the depth camera of the RGBD depth camera to shoot the initial depth video of the ground in the target monitoring area.

[0103] S2: Using an edge computer gateway to convert the initial color video into a first video stream information, and using a computer gateway to convert the initial depth video into a second video stream information.

[0104] S3: Using the acquisition module to decode, preprocess and match the first video stream information and the second video stream information in sequence to obtain deep image binding information.

[0105] Among them, Figure 3 As shown, the above step S3 includes:

[0106] S31: using a collection unit to collect first video stream information and second video stream information;

[0107] S32: After decoding the first video stream information and the second video stream information by a video decoding unit, the information is cut into RGB single-frame images and depth images corresponding to each frame in a time sequence;

[0108] S33: using a preprocessing unit to perform image filtering, denoising and dedistortion processing on the RGB single frame image, and performing depth value correction and dedistortion processing on the depth image;

[0109] S34: Use the information matching unit to jointly calibrate the external parameters of the color camera and the depth camera until the coordinate systems of the color camera and the depth camera are consistent, and align the RGB single-frame image processed by the preprocessing unit and the corresponding depth image to obtain depth image binding information.

[0110] Among them, through the above step S33, the quality of the input signal can be improved, which is convenient for the subsequent detection module to perform further image processing. Through the above steps S31-S34, the RGB single-frame image and the corresponding depth image can be matched to the greatest extent, and the depth value correction and de-distortion processing can be performed, with higher image processing accuracy.

[0111] S4: According to the Yolov5 algorithm and the deep image binding information, the detection module is used to detect, track, collect trajectories and predict trajectories of the UAVs entering the target monitoring area to obtain the position prediction information of the UAVs.

[0112] Among them, Figure 4 As shown, the above step S4 includes:

[0113] S41: Detect drones in the target monitoring area based on the Yolov5 algorithm and deep image binding information;

[0114] S42: assigning a unique identifier to the drone, and matching and recording the pixel position of the target area in the depth image binding information and the corresponding depth information;

[0115] S43: Using the camera of the RGBD depth camera as the coordinate origin, constructing a trajectory coordinate system, and calculating the three-dimensional coordinate information of the drone based on a coordinate conversion algorithm, and then generating the drone trajectory information based on multiple three-dimensional coordinate information;

[0116] S44: According to the LSTM algorithm and the drone trajectory information, the position prediction information is obtained.

[0117] Specifically, Figure 5 As shown, the above step S41 includes:

[0118] A real dataset for extracting deep image binding information;

[0119] Labeling drones in real datasets;

[0120] The annotated real data set is sent to the DCGAN network for training to obtain an adversarial data set;

[0121] The adversarial data set is fed into the YOLOv5 network for training, and the drone is automatically detected.

[0122] Through the above step S41 and the refinement step, the acquisition module is first used to obtain the deep image binding information, and the real data set is extracted from the deep image binding information. The real data set needs to contain the image data of the drone. Then, the labelimg tool is used to manually label the drones in the real data set, and then the labeled real data set is sent to the DCGAN network for training. After the training, the DCGAN network can convert the random vector (i.e., the real data set) into a generated adversarial data set. This data set can greatly enrich the number of samples for training YOLOv5 to reduce the cost of collecting data and overcome the high cost of existing radio detection methods. Finally, the entire adversarial data set is input into the YOLOv5 network for training to test the generalization ability of the overall model, so that the overall model of the above step S41 can accurately detect drones. After the overall model of the above step S41 meets the requirements after training and testing, it can be optimized according to the hardware environment of the actual application of the algorithm to obtain the application model.

[0123] It should be noted that, in other embodiments, the drones in the real data set can also be automatically labeled based on the labelimg tool and the built-in program.

[0124] Specifically, the above step S42 includes:

[0125] For each frame of RGB color image of the target monitoring area, the target frame of the drone is obtained using the deep learning-based target detection algorithm YOLOv5, and the four vertex coordinates of the drone target frame are obtained, and a unique identifier is assigned to the non-motor vehicle target frame. The unique identifier is used as the key element to distinguish, and the vertex coordinates, center pixel coordinates and depth information corresponding to the center pixel of the target frame of drones with different identifiers are saved to facilitate subsequent detection and analysis.

[0126] like Figure 6-Figure 8 As shown, the above step S43 is specifically as follows:

[0127] The camera of the RGBD depth camera is used as the coordinate origin, the two mutually perpendicular directions in the horizontal field of view of the camera are used as the positive directions of the X-axis and the Y-axis respectively, and the direction parallel to the imaging plane of the RGBD depth camera and away from the center of the earth is used as the positive direction of the Z-axis to construct the trajectory coordinate system.

[0128] In this embodiment, the viewing angle width of the RGBD depth camera is set to 90°, with the camera field of view as the positive direction of the X and Y axes, and the direction parallel to the camera imaging plane and away from the center of the earth as the positive direction of the Z axis. The final trajectory coordinate system is as follows: Figure 6 shown.

[0129] On the basis of the above trajectory coordinate system, based on the coordinate conversion algorithm, the three-dimensional coordinate information of the UAV is calculated, and the UAV trajectory information is generated based on a plurality of the three-dimensional coordinate information.

[0130] In this embodiment, Figure 7 is the position relationship diagram between the RGBD depth camera and the drone. ABCD is the imaging plane. Point P is the position of the RGBD depth camera, and point U is the pixel center point of the drone. The pixel position information of point U is ( 1, 1). Point H is the projection of point P on plane ABCD (i.e., the center point of the pixel on the imaging plane). The pixel position information of point H is ( 2, 2). r Depth information of the drone.

[0131] It should be noted that the width of a drone when unfolded (including propellers) is usually 80 cm. The scale L of pixels and actual distance can be quickly calculated by the number of pixels occupied by the width of the drone.

[0132] The distance from the RGBD depth camera to the plane where the drone is located (PH) can be quickly calculated using formula (1):

[0133] (1)

[0134] Since the viewing angle of the RGBD depth camera is 90°, the angle between the imaging plane and the X-axis and Y-axis of the trajectory coordinate system is 45°. The width and height of the resolution of the RGBD depth camera correspond to a and b respectively. The representation of point U in the trajectory coordinate system can be expressed by formula (2):

[0135] (2)

[0136] in, 1 is the X-axis coordinate of the pixel center point of the drone in the imaging plane, 1 is the Y-axis coordinate of the pixel center point of the drone in the imaging plane, 2 is the X-axis coordinate of the center point of the pixel in the imaging plane, 2 is the Y-axis coordinate of the center point of the pixel in the imaging plane, r is the depth information of the drone, L is the scale factor, is the distance from the camera to the plane where the drone is located; , and is the three-dimensional coordinate of the UAV in the trajectory coordinate system; a is the pixel width of the imaging plane on the X-axis.

[0137] Through the above step S43, the following can be obtained: Figure 8 The three-dimensional graph of the UAV trajectory is shown. The position of the UAV at time T1 in the trajectory coordinate system is ( T1 , T1 , z T1 ), the position at time T2 is ( T2 , T2 , z T2 ). The position information of the UAV in the trajectory coordinate system is recorded at a frequency of 10 Hz to form a continuous trajectory information and bind it to the unique identifier of the UAV target.

[0138] like Fig. 9 As shown, the above step S44 is specifically as follows:

[0139] The drone trajectory information corresponding to each drone target is obtained through the target trajectory acquisition unit, and the drone trajectory information is used as the input deep learning algorithm Scene-LSTM to predict the drone's trajectory in the next 3s.

[0140] The deep learning algorithm Scene-LSTM consists of three parts: target motion, scene model, and scene data filter (SDF). The specific model training method is as follows:

[0141] 1. Obtain target sequences of about 1,000 drones with no less than 50 coordinates of drone trajectory information through the target detection unit and the target trajectory acquisition unit. The first 40 coordinates of each target sequence are used as the training set, and the last 10 coordinates are used as the test set to feed the deep learning algorithm Scene-LSTM for training.

[0142] 2. After training is completed, the real-time drone trajectory information can be fed into the model for inference to predict its position information in the next 3 seconds.

[0143] S5: According to the preset detection area and location prediction information, an analysis module is used to analyze and obtain a corresponding notification signal.

[0144] In this embodiment, the detection area includes a safe area, a warning area and a defense area. The defense area covers the defense target. The safe area is located outside the defense area. The warning area is located between the safe area and the defense area. The notification signal includes an early warning signal and an alarm signal.

[0145] Specifically, Fig.10 and Fig.11 As shown, step S5 includes:

[0146] S51: If the location prediction information is in a safe area, no notification signal is sent to the data transmission module; S52: If the location prediction information is in a warning area, an analysis module is used to analyze and obtain an early warning signal, and the early warning signal is sent to the data transmission module;

[0147] S53: If the location prediction information is located in the defense area, an analysis module is used to analyze and obtain an alarm signal, and the alarm signal is sent to the data transmission module.

[0148] It should be noted that before the flight trajectory of the drone is predicted, if the drone is already in the above-mentioned warning area or defense area, the corresponding notification signal will also be triggered.

[0149] S6: Use the data transmission module to convert the notification signal into corresponding message information, and transmit the corresponding message information to the monitoring end.

[0150] Specifically, Fig.12 As shown, step S6 includes:

[0151] S61: If the data transmission module receives the warning signal, convert the warning signal into first message information;

[0152] S62: If the data transmission module receives the alarm signal, convert the alarm signal into second message information;

[0153] S63: Send the first message information or the second message information to the cloud through the post function of https.

[0154] It should be noted that step S63 also uses the edge computing gateway as an https client to send data, and the cloud as an https server is responsible for receiving and storing information. If the edge computing gateway fails to send, a cache mechanism will be used to save the failed data locally and resend it at another time.

[0155] In this embodiment, the above two types of message information include at least drone screenshot, drone unique identifier, drone distance, date, specific time, RGBD depth camera code, RGBD depth camera code location information, edge computing gateway device code and edge computing gateway location information.

[0156] Through the above steps S1-S6, the method of the present invention uses the deep learning DCGAN adversarial generative network and the YOLOv5 target detection algorithm to train a high-precision drone recognition model, and then establishes a trajectory coordinate system based on the RGBD depth camera to represent the real-time position information of the drone and record and generate its corresponding trajectory sequence. Then, the LSTM algorithm is used to input the drone trajectory sequence, predict its future trajectory, and then determine whether there is an intrusion into the defense target protection area by calculating its distance from the RGBD depth camera. Finally, the corresponding message information is transmitted to the monitoring end using the https communication method, thereby solving the problem of difficulty in accurately monitoring drones in the prior art.

[0157] Embodiment 3

[0158] like Fig.13 As shown, this embodiment discloses a computer device, including an internal memory, a processor, a non-volatile storage medium, and a computer program stored in the non-volatile storage medium and executable on the processor. When the processor executes the computer program, the above-mentioned drone illegal intrusion detection method is implemented.

[0159] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0160] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A method for detecting illegal intrusion of a drone, characterized in that: include: S1: Use the color camera of the RGBD depth camera to shoot the initial color video in the target monitoring area, and use the depth camera of the RGBD depth camera to shoot the initial depth video in the target monitoring area; S2: using an edge computer gateway to convert the initial color video into first video stream information, and using a computer gateway to convert the initial depth video into second video stream information; S3: using a collection module to sequentially decode, preprocess and match the first video stream information and the second video stream information to obtain deep image binding information; S4: According to the Yolov5 algorithm and the depth image binding information, a detection module is used to detect, track, collect trajectories and predict trajectories of the UAVs entering the target monitoring area to obtain the position prediction information of the UAVs; S5: according to the preset detection area and the position prediction information, using an analysis module to analyze and obtain a corresponding notification signal; S6: using a data transmission module to convert the notification signal into corresponding message information, and transmitting the corresponding message information to the monitoring end; Wherein, the step S4 comprises: S41: Detecting the drone in the target monitoring area according to the Yolov5 algorithm and the depth image binding information; S42: assigning a unique identifier to the drone, and matching and recording the pixel position of the target area in the depth image binding information and the corresponding depth information; S43: using the camera of the RGBD depth camera as the coordinate origin, constructing a trajectory coordinate system, and calculating the three-dimensional coordinate information of the drone based on a coordinate conversion algorithm, and then generating the drone trajectory information based on a plurality of the three-dimensional coordinate information; S44: Predicting the position prediction information according to the LSTM algorithm and the drone trajectory information; Wherein, the step S41 includes: Extracting a real dataset of the deep image binding information; Annotating the drones in the real data set; The annotated real data set is sent to the DCGAN network for training to obtain an adversarial data set; The adversarial data set is transmitted to the YOLOv5 network for training, and the drone is automatically detected; Wherein, the step S43 includes: The camera of the RGBD depth camera is used as the coordinate origin, the two mutually perpendicular directions in the horizontal field of view of the camera are used as the positive directions of the X-axis and the Y-axis respectively, and the direction parallel to the imaging plane of the RGBD depth camera and away from the center of the earth is used as the positive direction of the Z-axis to construct a trajectory coordinate system; Based on the coordinate conversion algorithm and the trajectory coordinate system, the three-dimensional coordinate information of the UAV is calculated; Wherein, the coordinate conversion algorithm is: in, 1 is the X-axis coordinate of the pixel center point of the drone in the imaging plane, 1 is the Y-axis coordinate of the pixel center point of the drone in the imaging plane, 2 is the X-axis coordinate of the center point of the pixel in the imaging plane, 2 is the Y-axis coordinate of the center point of the pixel in the imaging plane, r is the depth information of the drone, L is the proportionality coefficient, is the distance from the camera to the plane where the drone is located; , and is the three-dimensional coordinate of the UAV in the trajectory coordinate system; a is the pixel width of the imaging plane on the X-axis.

2. The method for detecting illegal intrusion of a drone according to claim 1, characterized in that: The detection area includes a safe area, a warning area and a defense area, the defense area covers a defense target, the safe area is located outside the defense area, the warning area is located between the safe area and the defense area, the notification signal includes an early warning signal and an alarm signal, and the step S5 includes: S51: If the location prediction information is located in the safe area, no notification signal is sent to the data transmission module; S52: If the location prediction information is located in the warning area, an analysis module is used to analyze to obtain a warning signal, and the warning signal is sent to the data transmission module; S53: If the location prediction information is located in the defense area, an analysis module is used to analyze and obtain an alarm signal, and the alarm signal is sent to the data transmission module.

3. A drone illegal intrusion detection system, using the drone illegal intrusion detection method according to any one of claims 1-2, characterized in that: The system comprises: RGBD depth camera, with a built-in color camera and depth camera, the color camera is used to shoot the initial color video in the target monitoring area, and the depth camera is used to shoot the initial depth video in the target monitoring area; An edge computer gateway, communicatively connected to the RGBD depth camera, the edge computer gateway being used to convert the initial color video and the initial depth video into first video stream information and second video stream information, respectively; An acquisition module, communicatively connected to the edge computer gateway, and configured to sequentially decode, preprocess and match the first video stream information and the second video stream information to obtain deep image binding information; A detection module, which is communicatively connected to the acquisition module, and is used to detect, track, acquire trajectories and predict trajectories of drones entering the target monitoring area according to the Yolov5 algorithm and the depth image binding information, and obtain the location prediction information of the drones; An analysis module, communicatively connected to the detection module, and configured to analyze and obtain a corresponding notification signal according to a preset detection area and the position prediction information; A data transmission module is communicatively connected to the analysis module, and is used to convert the notification signal into corresponding message information and transmit the corresponding message information to the monitoring end.

4. The unmanned aerial vehicle illegal intrusion detection system according to claim 3, characterized in that: The acquisition module comprises: A collection unit, connected to the network interface of the edge computer gateway via an RJ45 Ethernet cable, and the collection unit is used to collect the first video stream information and the second video stream information in a video stream manner; A video decoding unit, configured to decode the first video stream information and the second video stream information and cut them into RGB single-frame images and depth images corresponding to each frame in a time sequence; A preprocessing unit, configured to perform image filtering, denoising and dedistortion processing on the RGB single-frame image, and perform depth value correction and dedistortion processing on the depth image; An information matching unit is used to calibrate the joint external parameters of the color camera and the depth camera until the coordinate systems of the color camera and the depth camera are consistent; the information matching unit also aligns the RGB single-frame image processed by the preprocessing unit and the corresponding depth image to obtain depth image binding information.

5. The unmanned aerial vehicle illegal intrusion detection system according to claim 3, characterized in that: The detection module comprises: A target detection unit, used to detect drones in a target monitoring area according to the Yolov5 algorithm and the depth image binding information; A target tracking unit, configured to assign a unique identifier to the drone, and to match and record the pixel position of the target area in the depth image binding information and the corresponding depth information; A target trajectory acquisition unit is used to construct a trajectory coordinate system using the camera of the RGBD depth camera as the coordinate origin, and calculate the three-dimensional coordinate information of the drone based on a coordinate conversion algorithm, and generate drone trajectory information based on a plurality of the three-dimensional coordinate information; The target trajectory prediction unit is used to predict the position prediction information according to the LSTM algorithm and the drone trajectory information.

6. The unmanned aerial vehicle illegal intrusion detection system according to claim 3, characterized in that: The detection area includes a safe area, a warning area and a defense area, the defense area covers a defense target, the safe area is located outside the defense area, the warning area is located between the safe area and the defense area, and the analysis module includes: A distance detection unit, used to set corresponding safety areas, warning areas and defense areas according to built-in safety area parameters, warning area parameters and defense area parameters; the distance detection unit is also used to determine the current area where the drone is located according to the position prediction information, the safety area, the warning area and the defense area; An intrusion detection unit is used to determine whether to trigger a corresponding notification signal and send it to the data transmission module based on the current area, the location prediction information, the safe area, the warning area and the defense area.

7. A computer device, characterized in that: It includes an internal memory, a processor, a non-volatile storage medium, and a computer program stored in the non-volatile storage medium and executable on the processor. When the processor executes the computer program, the method for detecting illegal intrusion of a drone as described in any one of claims 1 to 2 is implemented.