Unmanned aerial vehicle inertial stabilization platform servo parameter online monitoring method and system based on lightweight neural network

By extracting and optimizing key pixels in the image through a lightweight neural network model, the problem of accuracy and processor burden of UAV servo parameter monitoring is solved, and online monitoring of the UAV load servo system is realized.

CN118778667APending Publication Date: 2024-10-15CHONGQING GOD ARROW INERTIAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410757344.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult to quickly and accurately monitor UAV servo parameters through airborne cameras with existing technology, and traditional methods have high processor requirements and cannot be implemented on UAVs.

Method used

A lightweight neural network model is used to obtain the motion characteristics of the servo during image analysis, extract key pixels and optimize their matching, establish corresponding relationships, and calculate the basic matrix to infer the servo angular displacement parameters to reduce the processor burden.

Benefits of technology

It improves the calculation accuracy and matching accuracy of servo angular displacement parameters, reduces the processor burden, and enables online monitoring of the UAV load servo system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure BDA0004889879440000021
    Figure BDA0004889879440000021
  • Figure BDA0004889879440000023
    Figure BDA0004889879440000023
  • Figure BDA0004889879440000024
    Figure BDA0004889879440000024
Patent Text Reader

Abstract

The invention provides an unmanned aerial vehicle servo parameter online monitoring method and system based on a lightweight neural network. The system comprises an airborne camera and an airborne processor. According to the method, motion characteristics generated in an image space during servo operation are obtained through key pixel obtaining and based on an algorithm of lightweight neural network optimization and pixel matching, then servo angular displacement parameters are reversely deduced, and the whole method is small in algorithm burden, high in monitoring precision and suitable for achieving on-line monitoring of a servo system in an unmanned aerial vehicle airborne processor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of unmanned aerial vehicle attitude monitoring, and in particular, relates to a method for online monitoring of servo parameters through an image neural network model. Background Art

[0002] The UAV servo system is a key component to achieve the angular stability and controllability of the airborne payload attitude relative to the inertial coordinate system under the environment of UAV movement, attitude change and self-vibration. The servo system is usually 2-axis or 3-axis control, and angular displacement is one of its key parameters. By monitoring and measuring the angular displacement parameters, the pitch angle, yaw angle and roll angle are adjusted to maintain the attitude of the airborne payload.

[0003] There are many ways to measure the angular displacement of the servo. The traditional method is through the shaft angle encoder. The shaft angle encoder has good stability and high measurement accuracy, but as a physical accessory, it needs to be installed on the servo system, which increases the volume and weight of the servo system. For products such as drones that have high load requirements, it is necessary to balance other accessories, which increases the difficulty of product design. With the development of signal processing and artificial intelligence technology, the visual servo control system based on image sensors has been put into use and achieved good results. The visual servo control system uses the image taken by the camera to infer the position parameters and motion parameters of the servo system. Since the camera is now usually used as a standard load in the drone system, the use of visual measurement solutions will not cause physical effects on the load, which reduces the difficulty of product design and has a wide range of needs. However, most of the current technologies for judging the camera posture through images use traditional image processing methods, but this method is not suitable for recording the judgment of the camera posture. This is because it is difficult for the airborne camera to be fixed in a fixed position when taking pictures, so the photos taken cannot be quickly and accurately calculated using traditional methods. Although some people have tried to use neural networks for posture judgment, no dedicated network structure has been designed. Therefore, using airborne cameras in drones to monitor the servo parameters of the pod / camera cannot achieve fast and accurate monitoring. In addition, the current algorithm for monitoring servo parameters through airborne cameras has high requirements for processors and cannot be implemented on drone onboard processors. Summary of the invention

[0004] The present invention proposes a servo parameter online monitoring method and system, which implements online monitoring of the UAV payload servo system, uses image analysis methods to obtain the motion characteristics generated in the image space during servo operation, and then reversely infers the servo angular displacement parameters to achieve online monitoring of the servo system.

[0005] A method for online monitoring of UAV servo parameters based on lightweight neural network.

[0006] Step 1: The drone’s onboard camera takes images I at different times;

[0007] Step 2: Extract key pixels from the image: Let I(x, y) represent a pixel in image I, where x and y represent the position coordinates. The neighborhood centered at x and y, and the pixels in it are represented as: I(x ′ , y′): x - B < x ′ < x + B, y - B < y′ < y + B, where B is the distance from the boundary of the neighborhood to the reference center; According to the pixel values in the above neighborhood, encode the pixel I(x, y), and τ mr represents the average value of the pixels in the r-th cluster of the m-th group. Then the encoding of the m-th group is:

[0008]

[0009] where represents the number of the cluster with the largest average value in the r-th cluster of the m-th group;

[0010]

[0011] where υ m represents the pixel value of the m-th group; μ represents the mean value; Set a threshold Θ. When σ > Θ, the pixel is used as a key pixel;

[0012] Step 3: Optimize the key pixels using a lightweight neural network model; The first layer of the lightweight neural network model is:

[0013] where M is the neural network input sample, which is an inlier or outlier neighborhood image with a size of 2B * 2B, is a shared-weight linear template, and u, v define the position offsets of the linear template. l = 1, 2, 3, 4, and the sizes of the linear templates are 2B * 2B, B * B, ξ 1l is the corresponding linear intercept. The shared-weight linear template satisfies the following constraints:

[0014]

[0015] The second layer is: is a shared-weight linear template, and ξ 2l is the corresponding linear intercept. The shared-weight linear template satisfies the following constraints:

[0016]

[0017] Step 4: Match the pixel encodings in the images taken by the drone at two different times after shifting, and establish pixel pairs with corresponding relationships;

[0018] Step 5: Utilize the pixel pairs with corresponding relationships established above to calculate the basic matrix, thereby obtaining the servo parameters.

[0019] The third layer of the lightweight neural network model is the fully connected layer.

[0020] When training the neural network model, the corresponding key pixels are obtained, and the correctly matched pixels are manually marked as internal points and the incorrectly matched pixels are marked as external points to generate training samples for the neural network model.

[0021] The above training samples are input into the neural network model, training is carried out, and the cost function is solved.

[0022] An online monitoring system for servo parameters of unmanned aerial vehicles based on lightweight neural networks comprises a remote control platform and a unmanned aerial vehicle, wherein the unmanned aerial vehicle is used to implement the above method.

[0023] The drone includes an onboard camera and an onboard processor.

[0024] The remote control platform is used to send servo parameter monitoring signals to the drone and receive the servo parameters returned by the drone.

[0025] The drone is used to carry an onboard camera and an onboard processor, and fly to the destination area according to the flight control signal of the remote control platform.

[0026] The drone's onboard camera is used to capture at least two images at different times and locations, and transmit the images to an onboard processor.

[0027] The drone's onboard processor is used to receive images sent by the onboard camera, calculate servo parameters, and send the calculation results to the remote control platform.

[0028] The invention and technical effects of the present invention are as follows:

[0029] 1. The inventive point of the present invention is to propose a method for extracting key pixels from an image. Compared with classic image feature extraction methods such as Harris and SIFT, this method has higher matching accuracy when the drone itself only undergoes translational motion, which helps to improve the calculation accuracy of the servo angular displacement parameters.

[0030] 2. The inventive point of the present invention is to propose a method for matching image pixels, utilize pixel coding, and optimize the matching algorithm, establish a corresponding relationship between pixels in images taken by a drone at two different times, and construct image feature invariance to the angular displacement of the gimbal through circular shift. Corresponding to the proposed feature extraction method, compared with classic pixel feature matching methods such as SIFT and ORB, the method proposed by the present invention has higher accuracy in pixel matching.

[0031] 3. The invention of the present invention is to propose a lightweight deep neural network model. By establishing a linear template with shared weights within the layer and orthogonalization between layers, it can achieve the classification of local / external point images with fewer layers and lower parameters, improve the classification performance, and thus improve the optimization effect of key pixels of the image. In particular, a lightweight dedicated network is specially designed based on the specific algorithms for key pixel extraction, optimization, and matching. The algorithm and the network cooperate with each other to reduce the processor burden, so that the overall calculation process can be implemented in the onboard processor. DETAILED DESCRIPTION

[0032] The data acquisition method for online monitoring of servo parameters uses a camera component installed on a UAV servo platform to capture environmental images as a data source for parameter monitoring.

[0033] The same camera component takes environmental images at different time points, and the images are post-processed according to the camera imaging model. The processing results are used as the basis for parameter monitoring.

[0034] The imaging model of the camera assembly, that is, the homogeneous coordinates of any position in space can be represented by a vector X = (X, Y, Z, 1) T , scalars X, Y, and Z are coordinate values ​​in the three-dimensional world coordinate system. The fourth dimension 1 represents the normalized homogeneous coordinates. The camera lens projects the image onto a point on the image plane. The homogeneous coordinates are represented by the vector x = (x, y, 1) T express.

[0035] When the camera assembly moves with the drone, at time 1, an image is formed at a point on the corresponding image plane (image 1), recorded as x1; at time 2, an image is formed at a point on the corresponding image plane (image 2), recorded as x2, and so on.

[0036] According to the camera imaging model, taking the imaging at time 1 and time 2 as an example, it can be deduced that the two imaging coordinates x1 and x2 satisfy the relationship:

[0037]

[0038] F is a 3x3 matrix called the fundamental matrix, which describes the mapping relationship between two imaging points.

[0039] According to the basic matrix F, the relative position relationship between the cameras at time 1 and time 2 can be solved, that is, the conversion relationship between R1 and R2, t1 and t2. R1 and t1 are the rotation matrix and translation vector of the camera at time 1 relative to the world coordinate system, and R2 and t2 are the rotation matrix and translation vector of the camera at time 2 relative to the world coordinate system.

[0040] When the drone itself only undergoes translational motion, the servo angular displacement can be calculated using the rotation matrix.

[0041]

[0042] R is the relative rotation relationship between R1 and R2, and α, β, and γ are the rotation angular displacements with the three coordinate axes as the rotation axes.

[0043] Several corresponding pixels are obtained from the imaging images at time 1 and time 2. According to formula 1, F can be solved, and the rotation angle displacements α, β, and γ can be further solved, so that the servo parameter calculation can be realized according to the existing method.

[0044] The size, direction, resolution, etc. of the images taken by drone cameras vary greatly, and the content of the images taken by drones when performing tasks is very random. Therefore, how to quickly, accurately, and in real time find the corresponding pixels in the images at time 1 and time 2 becomes the key to the entire algorithm. Specifically:

[0045] Step 1: Send a servo parameter monitoring signal to the drone on the remote control platform. After receiving the signal, the drone drives the onboard camera to take images at different times and sends the captured images to the onboard processor of the drone.

[0046] Step 2 extracts key pixels from the image.

[0047] Let I(x,y) represent a pixel and its position in image I, and x,y represent the position coordinates. The pixel in the neighborhood with x,y as the reference center is represented as:

[0048] I(x′,y′):xB <x′<x+B,y-B<y′<y+B

[0049] B defines the distance from the boundary of the above neighborhood to the reference center.

[0050] According to the pixel value in the above neighborhood, the pixel I(x,y) is encoded, and the encoding method is as follows.

[0051] S1. Group the pixels in the neighborhood with x,y as the reference center, and record

[0052] m=max(|x′-x|,|y′-y|)

[0053] It represents the larger value of the projection of the distance from the pixel in the neighborhood to the reference center in the x and y directions. The pixels with equal m values ​​in the neighborhood are divided into a group, 1≤m≤B, with a total of B groups.

[0054] For the pixels in the mth group, according to the deflection angle θ relative to the reference center, As a unit, it is further divided into 8 clusters, namely:

[0055]

[0056] when When , the pixel is divided into the mth group and the first cluster. When , the pixel is divided into the mth group and the second cluster, and so on, until , the pixel is divided into the 8th cluster of the mth group.

[0057] Note τ mr represents the average value of the pixels in the rth cluster of the mth group, then the encoding of the mth group is:

[0058]

[0059] in Indicates the number of the cluster with the largest average value in the rth cluster of the mth group.

[0060] The m groups are encoded in sequence and combined as the encoding of the pixel I(x,y). It can be seen that the encoding has 3B dimensions in total.

[0061] calculate:

[0062]

[0063] in Represents the pixel value of the mth group; Represents the mean.

[0064] Set a threshold value Θ, when y>Θ, the pixel is regarded as a key pixel. The above threshold value can be obtained by experimental calibration.

[0065] Step 3: Optimization of key pixels

[0066] The pixels obtained in step 2 are further optimized so that the obtained key pixels have higher matching accuracy and improve the accuracy of recovering angular displacement from matching pixels.

[0067] By obtaining the key pixels corresponding to the two images, the basic matrix can be solved according to Formula 1, and the angular displacement can be further calculated. A classic method for solving the basic matrix is ​​the RANSAC method, which uses random sampling to test and obtain a number of inliers and outliers, and calculates the basic matrix based on the inliers.

[0068] In the RANSAC method, too many outliers will affect the calculation accuracy. Therefore, how to remove outliers becomes a factor affecting the calculation of angular displacement. The present invention innovatively proposes a lightweight deep neural network model to optimize the selection of key pixels to reduce the impact of outliers and improve the estimation performance of the basic matrix.

[0069] The current common deep neural network model adopts a convolutional network structure, which is used to extract the underlying features of the image and further implement high-level classification of the image. Deeper network layers help improve classification performance, but increase network computing overhead. The present invention uses a deep neural network model to implement outlier optimization, which is different from the conventional classification application goals, but is essentially an image classification problem, that is, dividing the local image into inliers and outliers, and is feasible. In view of this classification goal, the present invention proposes a lightweight deep neural network model, which is less complex than the current popular image classification convolutional network in the industry.

[0070] The lightweight deep neural network model proposed in the present invention is defined as follows.

[0071] The first layer of the network is represented as:

[0072]

[0073] Where M is the neural network input sample, which is a 2B*2B size in-point or out-point neighborhood image, x, y are the position coordinates of the input pixel, is a shared weight linear template, u,v define the position offset of the linear template, and round up when the coordinate position is not divisible, l = 1, 2, 3, 4, and the linear template size is 2B*2B, B*B, ξ 1l is the corresponding linear intercept. The shared weight linear template satisfies the following constraints:

[0074]

[0075] The activation function δ is expressed as:

[0076]

[0077] Compared with classic sigmoid, ReLU and other activation functions, the activation function defined in Formula 5 improves the classification performance of the network for samples in the neighborhood of in-game / out-game points.

[0078] The second layer of the network is represented as:

[0079]

[0080] x,y are the position coordinates of the input (first layer output), is a shared weight linear template, u,v define the position offset of the linear template, and round up when the coordinate position is not divisible, l = 1, 2, 3, 4, and the linear template size is 2B*2B, B*B, ξ 2l is the corresponding linear intercept. Shared weight linear template The following constraints are met:

[0081]

[0082] δ is the same as formula 5.

[0083] In the classic deep convolutional network structure, local features of different scales are extracted through multi-layer pooling and convolution, resulting in an increase in the number of network layers. The present invention sets linear templates with shared weights in the first and second layers, and reduces the correlation of template extraction features in different layers by orthogonalizing the template parameters at corresponding positions between the two layers. It can achieve classification of local / external point images with fewer layers and lower parameters, thereby improving classification performance.

[0084] The third layer of the network is represented as:

[0085]

[0086] ω3 is the linear full connection coefficient, ξ3 is the linear intercept. δ is the same as in formula 5.

[0087] The present invention defines the output of the lightweight deep neural network model as:

[0088]

[0089] ω4 is the linear full connection coefficient, ξ4 is the linear intercept. δ is the same as in formula 5. Output When it is 1, it means that the input is an internal point image sample, and when the output is 0, it means that the input is an external point image sample.

[0090] Step 4: Matching of image pixels: Establish corresponding relationships between pixels in images taken by the drone at two different times.

[0091] According to the pixel encoding method in step 2, let the two images be I and J. i ,y i ) and (x j ,y j ) are I(x i ,y i ) and J(x j ,y j ), the corresponding encoding is represented by vector C i and C j .

[0092] The definition symbol >> means to shift the dimensions of the vector from high to low in a circular manner to the right, for example:

[0093] C>>1

[0094] It means to circularly shift each dimension of the vector to the right by 1 bit. In particular, the definition

[0095] C>>0=C

[0096] Definition C i and C j The distance between them is calculated as:

[0097]

[0098] The double vertical bars represent the one-norm of a vector. argmax means that |C i -(C j >>k)|The value of k when the maximum value is obtained.

[0099] According to the distance defined in Formula 2, one of the images I is used as the reference image, and the pixel I(x i ,y i )The corresponding pixel in image J is the pixel in J that minimizes the distance.

[0100] When the drone itself only undergoes translational motion, the matching method after the above-mentioned encoding shift has good invariance to the image mapping caused by the angular displacement of the gimbal. Compared with the classic pixel feature extraction and matching methods such as SIFT and ORB, the method proposed in the present invention has higher accuracy in pixel matching.

[0101] Neural network training method:

[0102] (1) Using steps 2 and 4, key pixels in the images are detected and matched to obtain a number of corresponding key pixels and their neighborhoods in the two images.

[0103] (2) For the corresponding key pixels obtained above, the pixels that match correctly are manually marked as in-points, and the pixels that match incorrectly are marked as out-points. The key pixels and their neighborhoods are combined to generate training samples for the neural network model.

[0104] (3) Input the above training samples into the neural network model described in step 4 and implement training. Solve the cost function

[0105]

[0106] The values ​​of the linear coefficients of the model at convergence. Indicates the label value of the training sample, that is, the in-game point is labeled 1 and the out-game point is labeled 0.

[0107] How to use neural network:

[0108] (1) Use the trained model to re-detect the key pixels and their neighborhoods obtained in step 2, retain the key pixels whose detection results are close to 1, and use step 4 to obtain the corresponding pixels.

[0109] (2) Using the pixel pairs obtained in the above steps, the RANSAC algorithm is used to calculate the basic matrix and further obtain the servo parameters.

[0110] The present invention proposes an online monitoring method for servo parameters, innovatively proposes a method for acquiring and matching key image pixels, establishes a pixel optimization method based on a lightweight deep neural network model, and realizes online monitoring of the UAV payload servo system based on an image analysis method. According to the experimental results in Table 1, compared with the classic related methods based on the neural network model, the method of the present invention has better calculation accuracy and performance.

[0111] Table 1

[0112] Network Model Measurement error Response time AlexNet 9.1% 1.3 seconds RCNN 8.7% 0.7 seconds Method of the present invention 6.5% 0.3 seconds

[0113] System for implementing the above method

[0114] The system of the present invention includes a remote control platform and a drone; wherein the drone includes an onboard camera and an onboard processor. The remote control platform is used to send a servo parameter monitoring signal to the drone and receive the servo parameters returned by the drone. The drone is used to carry the onboard camera and the onboard processor and fly to the target area according to the flight control signal of the remote control platform.

[0115] The drone's onboard camera is used to capture at least two images at different times and locations, and transmit the images to an onboard processor. The drone's onboard processor is used to receive images sent by the onboard camera, calculate servo parameters according to the above method, and send the calculated results to the remote control platform. In addition, the onboard processor can also directly use the servo parameters to further process the target image captured by the onboard camera, and can also control the posture of the onboard camera. The drone's onboard processing and remote control platform communicate via 4G, 5G or satellite signals.

[0116] It should be noted that the onboard camera should capture at least 2 images, and each image should include at least the same part of the scene. In particular, the captured images should be greater than 5 to ensure accurate calculation of the servo parameters.

[0117] It is understood that the above embodiments are merely examples proposed under the concept of the present invention and do not have a smaller limiting effect on the concept of the present invention. The protection scope of the present invention is defined by the claims and includes possible solutions that may be anticipated on this basis.

Claims

1. A method for online monitoring of UAV servo parameters based on lightweight neural network, characterized in that: Step 1: The drone’s onboard camera takes images I at different times; Step 2: Extract key pixels from the image: Let I(x, y) represent a pixel in image I, where x and y represent the position coordinates. The neighborhood centered at x and y has pixels represented as: I(x ′ , y′): x - B < x ′ < x + B, y - B < y′ < y + B, where B is the distance from the boundary of the neighborhood to the reference center; Encode the pixel I(x, y) according to the pixel values in the above neighborhood, and τ mr represents the average value of the pixels in the r-th cluster of the m-th group. Then the encoding of the m-th group is: in It represents the number of the cluster with the largest average value in the rth cluster of the mth group; where υ m represents the pixel value of the mth group; μ represents the mean value; set the threshold Θ, when σ>Θ, the pixel is used as the key pixel; Step 3: Use a lightweight neural network model to optimize key pixels; the first layer of the lightweight neural network model is: Where M is the neural network input sample, which is a 2B*2B size in-point or out-point neighborhood image. is a shared weight linear template, u,v defines the position offset of the linear template, l = 1, 2, 3, 4, and the size of the linear template is 2B*2B, B*B, ξ 1l is the corresponding linear intercept, and the shared weight linear template satisfies the following constraints: The second layer is: is a shared weight linear template, ξ 2l is the corresponding linear intercept, shared weight linear template The following constraints are met: Step 4: Shift the pixel codes in the images taken by the drone at two different times and then match them to establish corresponding pixel pairs; Step 5: Utilize the pixel pairs with corresponding relationships established above to calculate the basic matrix, thereby obtaining the servo parameters.

2. The method according to claim 1, characterized in that: The third layer of the lightweight neural network model is the fully connected layer.

3. The method according to claim 1, characterized in that: When training the neural network model, the corresponding key pixels are obtained, and the correctly matched pixels are manually marked as internal points and the incorrectly matched pixels are marked as external points to generate training samples for the neural network model.

4. The method according to claim 3, characterized in that: The above training samples are input into the neural network model, training is carried out, and the cost function is solved.

5. An online monitoring system for drone servo parameters based on lightweight neural network, characterized by: It comprises a remote control platform and a drone, wherein the drone is used to implement the method described in any one of claims 1 to 4.

6. The system according to claim 5, characterized in that: The drone includes an onboard camera and an onboard processor.

7. The system according to claim 5, characterized in that: The remote control platform is used to send servo parameter monitoring signals to the drone and receive the servo parameters returned by the drone.

8. The system according to claim 6, characterized in that: The drone is used to carry an onboard camera and an onboard processor, and fly to the destination area according to the flight control signal of the remote control platform.

9. The system according to claim 6, characterized in that: The drone's onboard camera is used to capture at least two images at different times and locations, and transmit the images to an onboard processor.

10. The system according to claim 6, characterized in that: The drone's onboard processor is used to receive images sent by the onboard camera, calculate servo parameters, and send the calculation results to the remote control platform.