Aerial data target positioning method and system based on deep learning
Through the aerial photography data target positioning method based on deep learning, the target positioning is calculated based on the body and image information, and large-scale image segmentation and data enhancement technology are used to solve the problem of low target detection efficiency in high-altitude environments and achieve high accuracy and efficiency. target positioning.
Patent Information
- Application Number
- CN202111244030.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-25
AI Technical Summary
Existing aerial target detection and positioning methods have low automatic detection rate and accuracy in high-altitude environments, weak robustness, and high algorithm time complexity, resulting in low target recognition and positioning efficiency.
The aerial data target positioning method based on deep learning is used to preprocess the aerial data and input the pre-trained neural network to output the target type and location. The target positioning information is calculated based on the body orientation information and image shooting information, using large-scale Image segmentation and data enhancement technologies improve recognition efficiency.
It improves the accuracy and speed of detecting small and unobvious targets in high-altitude environments, improves target positioning accuracy, solves the problem of insufficient samples, and improves target recognition efficiency through large-scale image segmentation.
Smart Images

Figure BDA0003320185140000021 
Figure BDA0003320185140000022 
Figure BDA0003320185140000023
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aviation system image processing and target detection, and in particular to a target positioning method and system based on deep learning. Background Art
[0002] With the development of drone image reconnaissance technology, a large amount of ground optical images, optoelectronic videos and other information taken from high-altitude aerial photography can be obtained using reconnaissance equipment. Through precise aerial target detection algorithms, ground targets can be accurately identified and located. This technology has great application value in many fields, such as marine oil spill detection, post-disaster search and rescue, and crop pest and disease detection.
[0003] In high-altitude detection environments, affected by the angle and intensity of light, shooting hardware, cloud and fog occlusion, and the flight speed of airborne platforms, ships, vehicles, or other targets of interest often have small, inconspicuous, and easily confused characteristics in the captured images, and image preprocessing methods such as denoising, segmentation, and feature extraction are not suitable. Existing target detection and positioning methods have some drawbacks in terms of automatic detection rate and accuracy, their robustness is weak, the algorithm has high time complexity, and the efficiency of target recognition and positioning is low. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for aerial photography data target positioning based on deep learning to solve the problem that the automatic detection rate and accuracy of traditional target detection and positioning methods in the prior art are low.
[0005] A first aspect of the present invention provides a method for locating an aerial data target based on deep learning, comprising the following steps:
[0006] S1. Acquire aerial photography data and pre-process the aerial photography data;
[0007] S2. Input the aerial photography data into the pre-trained neural network; output the target type and target location;
[0008] S3. Obtaining aircraft orientation information, image shooting information and target position; and calculating target positioning information through the aircraft orientation information, image shooting information and target position.
[0009] The body orientation information is used to characterize the posture and position of the drone when it shoots the current aerial data, and can be directly obtained from the drone's inertial navigation system; the image shooting information is used to characterize the posture and position of the shooting device when the drone shoots the current aerial data, and can be directly obtained from the shooting device.
[0010] Furthermore, the body orientation information includes: the angle a between the body axis and the centerline, the angle b between the centerline and the vertical direction, the UAV flight altitude H, and the angle ψ between the body axis and the true north direction;
[0011] The image shooting information includes: the image center point is offset by a distance L in the direction of the aircraft nose. θ , the image center point is offset by a distance L along the direction of the aircraft wing φ ;
[0012] When the target is in the first / fourth quadrant of the image, by:
[0013]
[0014]
[0015] Calculate the target location information. When the target is located in the second or third quadrant of the image, use:
[0016]
[0017]
[0018] Calculate and obtain target positioning information;
[0019]
[0020] in, The horizontal angle between the target center and the shooting center;
[0021] X ox is the longitude coordinate of the center point of the original image, X oy is the latitude coordinate of the center point of the original image; X' ox is the longitude coordinate of the center point of the image under the influence of the aircraft attitude, X' oy is the latitude coordinate of the center point of the image under the influence of the aircraft attitude;
[0022] X" ox is the target longitude coordinate, X" oy is the target latitude coordinate; the meaning of the operator “ ̄” is: after calculating the distance along the longitude and latitude lines, use the relationship between longitude and latitude and the ground distance to find the longitude and latitude difference at that distance.
[0023] Furthermore, the preprocessing includes: using a large-scale image segmentation method to segment the original image into a plurality of sub-images.
[0024] Furthermore, the neural network includes: a CSP feature extraction module, a spatial pyramid pooling module, a feature pyramid fusion module and a detection output module.
[0025] Furthermore, the training step of the neural network includes:
[0026] S51. Obtaining aerial photography data;
[0027] S52. Use a rectangular box to mark the target in the aerial photography data, use a document to mark the target type and the relative coordinates of the upper left corner and the lower right corner of the target, and obtain a training sample;
[0028] S53. Input the training sample into the neural network to train the neural network. When the result of the loss function of the neural network converges, the training of the neural network is completed.
[0029] Furthermore, when the number of training samples is insufficient, the number of training samples is increased by a data enhancement and expansion method; the data enhancement and expansion method includes: a random embedding algorithm, a random scale scaling algorithm or a mosaic training algorithm.
[0030] A second aspect of the present invention provides an aerial data target positioning system based on deep learning, comprising at least one processor and a memory communicatively connected to the at least one processor: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned aerial data target positioning method based on deep learning.
[0031] A third aspect of the present invention provides a readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the above-mentioned aerial photography data target positioning method based on deep learning.
[0032] A fourth aspect of the present invention provides an unmanned aerial vehicle, comprising the above-mentioned aerial photography data target positioning system based on deep learning.
[0033] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0034] 1. The method proposed by the present invention has good robust performance; at the same time, it has high detection accuracy and fast detection speed for micro, weak, small and inconspicuous targets in high-altitude aerial photography environment;
[0035] 2. The method proposed by the present invention takes into account the influence of different postures of the UAV on the positioning of aerial photography, so its target positioning accuracy is high;
[0036] 3. The method proposed in the present invention can generate training samples for the neural network by means of data expansion and enhancement; in actual use, it can effectively solve the problem of less aerial photography materials and insufficient neural network training samples;
[0037] 4. The method proposed in the present invention divides the large-scale images taken by drones into several sub-images, which can further improve the efficiency of target recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is an overall flow chart of a method for aerial photography data target positioning based on deep learning proposed in an exemplary embodiment of the present invention;
[0039] Figure 2 is a schematic diagram of the structure of a neural network provided by an exemplary embodiment of the present invention;
[0040] Figure 3a This is a vertical projection diagram of the drone during aerial photography;
[0041] Figure 3b This is a schematic diagram of an angle of a drone during aerial photography;
[0042] Figure 3c This is a schematic diagram of another angle of the drone during aerial photography;
[0043] Figure 4 is a schematic diagram of the aircraft position in an exemplary embodiment of the present invention;
[0044] Figure 5 This is a data diagram obtained by using the method proposed in the present invention in an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0045] The present invention will be described in detail below in conjunction with the accompanying drawings.
[0046] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0047] Example 1
[0048] like Figure 1 As shown, a method for aerial photography data target positioning based on deep learning includes the following steps:
[0049] S1. Acquire aerial photography data and pre-process the aerial photography data;
[0050] S2. Input the aerial photography data into the pre-trained neural network; output the target type and target location;
[0051] S3. Obtaining aircraft orientation information, image shooting information and target position; and calculating target positioning information through the aircraft orientation information, image shooting information and target position.
[0052] Furthermore, the aerial photography data may be image data and / or video data.
[0053] The body orientation information is used to characterize the posture and position of the body when the drone is shooting the current aerial photography data, and can be directly obtained from the body's inertial navigation system; the image shooting information is used to characterize the posture and position of the shooting device when the body is shooting the current aerial photography data, and can be directly obtained from the shooting device; directly obtaining the body orientation information from the body's inertial navigation system and directly obtaining the image shooting information from the shooting device are both existing technologies and will not be elaborated here.
[0054] In actual use, because the cruising altitude of the drone is usually high, the scale of the aerial photography data it captures is usually large. Therefore, the preprocessing of the present invention adopts a large-scale image segmentation method and a block detection merging strategy to construct an N×N image window (such as 800×800 pixels), and the original image captured by the drone is segmented into several sub-images for model training and target detection. In the detection stage, the detection results of several sub-images are mapped back to the original image, so that rapid detection and recognition of large-scale images can be achieved; when segmenting the image, in order to prevent the target from being segmented and thus affecting the accuracy of subsequent target recognition; this embodiment uses a 20% overlapping area to segment the large-scale image.
[0055] Specifically, Figure 2 As shown, the neural network structure used in this implementation is the YOLOv4 network of CSPdarknet53, including: CSP feature extraction module, spatial pyramid pooling module, feature pyramid fusion module and detection output module. In use, by modifying the .cfg file of the neural adversarial network, the network parameters can be adjusted, and the number of training iterations, learning rate and batch parameters can be adjusted.
[0056] First, the image is passed into the neural network model, and the initial high-dimensional features of the image are extracted through the CSP module; secondly, the initial high-dimensional features are input into the spatial pyramid pooling model to generate pooled high-dimensional features, thereby improving the neural network's ability to extract spatial features of the image; then, the feature pyramid fusion module of the path aggregation network is used to fuse the pooled high-dimensional features with the initial high-dimensional features, and the upsampling method is used to unify the feature dimensions to generate fused features; finally, the fused features of different scales are input into the detection output module to generate the target's positioning and classification information.
[0057] like Figure 3a ,like Figure 3b ,like Figure 3cAs shown, in actual flight, the flight attitude and flight altitude of the drone will affect the aerial photography data taken by the drone, thereby affecting the positioning of the target; therefore, it is necessary to correct the target position through the body orientation information and image shooting information to obtain the real target positioning information (latitude and longitude).
[0058] The body orientation information includes: the angle a between the body axis and the center line, the angle b between the center line and the vertical direction, the UAV flight altitude H, and the angle ψ between the body axis and the true north direction;
[0059] The image shooting information includes: the image center point is offset by a distance L in the direction of the aircraft nose. θ , the image center point is offset by a distance L along the direction of the aircraft wing φ ;
[0060] exist Figure 3a In the figure, the black arrow is the axis of the fuselage. When the drone is scanning, the scanned image is perpendicular to the axis of the fuselage. Therefore, the image actually scanned is the dotted line perpendicular to the fuselage axis in the figure (because the aircraft has a pitch angle and a roll angle, the two are not perpendicular in the vertical projection diagram).
[0061] See also Figure 3b and Figure 3c , can be obtained
[0062] When the target is in the first / fourth quadrant of the image, by:
[0063]
[0064]
[0065] Calculate the target location information. When the target is located in the second or third quadrant of the image, use:
[0066]
[0067]
[0068] Calculate and obtain target positioning information;
[0069]
[0070] in, e is the horizontal angle between the target center and the shooting center;
[0071] X ox is the longitude coordinate of the center point of the original image, X oy is the latitude coordinate of the center point of the original image; X' ox is the longitude coordinate of the center point of the image under the influence of the aircraft attitude, X' oyis the latitude coordinate of the center point of the image under the influence of the aircraft attitude;
[0072] X" ox is the target longitude coordinate, X" oy is the target latitude coordinate; the meaning of the operator “ ̄” is: after calculating the distance along the longitude and latitude lines, use the relationship between longitude and latitude and the ground distance to find the longitude and latitude difference at that distance.
[0073] In actual use, the center point of the picture can be used as the origin of the coordinate axis, the geographical east direction in the picture is the positive direction of the x-axis, and the geographical north direction in the picture is the positive direction of the y-axis. A coordinate system can be established to determine the first, second, third, and fourth quadrants in a counterclockwise order. The geographical east direction and the geographical north direction in the picture can be determined by the inertial navigation system on the drone when the picture is taken, which is an existing technology and will not be repeated here.
[0074] Furthermore, the training step of the neural network includes:
[0075] S51. Obtaining aerial photography data;
[0076] S52. Use a rectangular box to mark the target in the aerial photography data, use the document to mark the target type and the relative coordinates of the upper left corner and the lower right corner of the target in the image, and obtain a training sample;
[0077] S53. Input the training sample into the neural network to train the neural network. When the result of the loss function of the neural network converges, the training of the neural network is completed.
[0078] Specifically, in this embodiment, the labelImg software can be used to mark the rectangular frame and the target type on the aerial photography data, and the relative coordinates P (x1, y1, x2, y2) of the upper left corner and the lower right corner of the target can be extracted.
[0079] In actual use, when the number of training samples is insufficient, the number of training samples can be increased by data enhancement and expansion methods; the data enhancement and expansion methods include: random embedding algorithm, random scale scaling algorithm or mosaic training algorithm. At the same time, the aerial photography data used for neural network training can be ground or sea surface images, video and other data including different target objects, which cover different geographical environments, climates and time periods.
[0080] Among them, the random embedding algorithm can randomly embed the generated target data into the original background image to construct a new data training set; random scale scaling and scale clustering can improve the scale adaptability of the neural network, the training efficiency and generalization performance of the model.
[0081] A second aspect of this embodiment provides an aerial data target positioning system based on deep learning, comprising at least one processor, and a memory communicatively connected to the at least one processor: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned aerial data target positioning method based on deep learning.
[0082] A third aspect of this embodiment provides a readable storage medium having a computer program stored thereon, wherein the program is executed by a processor to implement the above-mentioned aerial photography data target positioning method based on deep learning.
[0083] A fourth aspect of this embodiment provides a drone, comprising the above-mentioned aerial photography data target positioning system based on deep learning.
[0084] Specifically, the targets detected by the present invention include but are not limited to: stadiums, parks, ships, factories, stations, farms, toll booths, airports, landmark buildings, vehicles and other civil fields, and are also applicable to military fields such as tanks, armored vehicles, ships, and military buildings; specific target detection requirements can be adjusted according to actual usage requirements and usage scenarios; by adjusting the training samples and the corresponding neural network structure parameters, the adjustment of the detected targets can be achieved. For example, when used in forest firefighting operations, the training samples can be adjusted, and the neural network structure can be adjusted accordingly, so that forest fire points can be detected to guide forest firefighting operations.
[0085] Example 2
[0086] The present embodiment provides an aerial photography and positioning system based on deep learning, which may include: a raw data management module: used to collect and manage aerial photography data such as images and videos used for model training, to realize storage, query, access, and extraction functions, and to support files in formats such as .jpg, .png, .tif, .avi, .mp4, .tfw, and .xml; a data enhancement and expansion module: used to enhance and expand aerial photography data such as images and videos; a data processing and feature extraction module: used for data analysis and preprocessing, and to assist network training to realize feature extraction; a feature data management module: used to store and manage feature model data for model training; a model training module: used to construct a network layer for deep learning and training optimization; a target recognition and detection module: used for feature data and a deep convolutional neural network to complete target recognition and positioning and visualization.
[0087] Example 3
[0088] In order to test the actual effect of the present invention, the test was carried out using Google Maps simulation software. Figure 4 As shown; the parameter information of the drone is as follows Figure 5As shown. Set the drone latitude: 30.63080924, the drone longitude: 104.08204021, the heading is 10° north by east, the pitch angle is 5° vertical, the roll angle is 0°, and the cruising altitude is 3000 meters; select a university track and field stadium as the detection target, and use relevant tools to export aerial images and body orientation information and image shooting information; the pixels of the exported aerial images are 1280*720, the target center pixel is (649,463), and the width and height are 44*71 pixels; the method proposed by the present invention is used to calculate that the longitude and latitude of the center point are: latitude 30.63013788, longitude 104.08251741, according to the target position judgment, determine that the target is the fourth quadrant of the quadrant division, and the target longitude and latitude calculation results are: latitude 30.63013761, longitude 104.08251731. According to the actual measurement results of Google Maps, the real latitude and longitude information of the target is: latitude 30.63063889, longitude 104.08231111. In the corresponding real-world error range, the straight-line distance is about 59m.
[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for aerial data target localization based on deep learning, It is characterized in that The steps include: S1. Acquire aerial photography data and pre-process the aerial photography data; S2. Input the aerial photography data into the pre-trained neural network; output the target type and target location; S3 obtains body position information, image capture information; obtains target positioning information by calculating the body position information, image capture information and target position; The body orientation information includes: the angle a between the body axis and the center line, the angle b between the center line and the vertical direction, the UAV flight altitude H, and the angle ψ between the body axis and the true north direction; The image shooting information includes: the image center point is offset by a distance L in the direction of the aircraft nose. θ , the image center point is offset along the aircraft wing direction The neural network is CSP darknet53 YOLOv4 network of structure; When the target is located in the first or fourth quadrant of the image, the target location information is calculated using the following formula: When the target is located in the second or third quadrant of the image, the target location information is calculated using the following formula: in, e is the horizontal angle between the target center and the shooting center; X ox is the longitude coordinate of the center point of the original image, X oy is the latitude coordinate of the center point of the original image; X' ox is the longitude coordinate of the center point of the image under the influence of the aircraft attitude, X' oy is the latitude coordinate of the center point of the image under the influence of the aircraft attitude; X" ox is the target longitude coordinate, X" oy is the target latitude coordinate; the meaning of the operator "ˉ" is: after calculating the distance along the longitude and latitude lines, use the relationship between longitude and latitude and the ground distance to find the longitude and latitude difference at that distance.
2. According to claim 1, a method for aerial data target positioning based on deep learning, It is characterized in that The preprocessing includes: using a large-scale image segmentation method to segment the original image in the aerial photography data into a plurality of sub-images.
3. The method for aerial photography data target positioning based on deep learning according to claim 1, It is characterized in that The neural network includes: a CSP feature extraction module, a spatial pyramid pooling module, a feature pyramid fusion module and a detection output module; The CSP feature extraction module is used to extract the initial high-dimensional features of the image, and input the initial high-dimensional features into the spatial pyramid pooling module; the spatial pyramid pooling module is used to generate pooled high-dimensional features, and at the same time improve the spatial feature extraction ability of the neural network for the image; the feature pyramid fusion module is composed of a path aggregation network, which is used to fuse the pooled high-dimensional features with the initial high-dimensional features, unify the feature dimensions by upsampling, generate fused features of different scales, and input the fused features of different scales into the detection output module; the detection output module is used to generate the positioning and classification information of the target through the fused features of different scales.
4. A method for aerial photography data target positioning based on deep learning according to any one of claims 1 to 3, It is characterized in that The training steps of the neural network include: S51. Obtaining aerial photography data; S52. Use a rectangular box to mark the target in the aerial photography data, use a document to mark the target type and the relative coordinates of the upper left corner and the lower right corner of the target, and obtain a training sample; S53. Input the training sample into the neural network to train the neural network. When the result of the loss function of the neural network converges, the training of the neural network is completed.
5. The method for aerial photography data target positioning based on deep learning according to claim 4, It is characterized in that When the number of training samples is insufficient, increasing the number of training samples by using a data enhancement method; The data enhancement and expansion method includes: a random embedding algorithm, a random scale scaling algorithm or a mosaic training algorithm.
6. A deep learning-based aerial data target positioning system, It is characterized in that It includes at least one processor and a memory communicatively connected to the at least one processor: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1 to 5.
7. A readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement the aerial data target positioning method based on deep learning as described in any one of claims 1-5.
8. A drone, It is characterized in that Including the aerial data target positioning system based on deep learning as described in claim 6.
