A target recognition method based on unmanned platform

By expanding data through text matching and generative adversarial networks, a high-precision recognition model is constructed, which solves the problems of low recognition efficiency and storage limitations in unmanned platforms, and achieves efficient and accurate target recognition.

CN117934930BActive Publication Date: 2024-09-10SOUTHWEST COMP
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410049088.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2024-09-10
Estimated Expiration
2044-01-12

AI Technical Summary

Technical Problem

In the unmanned platform, users cannot provide target image information, resulting in low recognition efficiency. Moreover, the storage resources of the cloud platform are limited, and large-scale storage of each type of recognition target image data cannot be achieved, which affects the recognition accuracy.

Method used

Input the recognition task through text, use the text matching algorithm to match the recognition target database, and use the generative adversarial network to expand the pre-stored small sample data to build a recognition model with high accuracy, and combine it with the BERT network model for feature extraction and matching. Construct a target image training sample data set and train the neural network to generate a target recognition model.

Benefits of technology

It implements support for inputting recognition targets in text mode, improves recognition efficiency and accuracy, and meets the needs of target recognition. Especially when the cloud platform does not store the current recognition target image data, the model is trained through hierarchical division and image overlapping features to improve the accuracy of the recognition model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117934930B
    Figure CN117934930B
Patent Text Reader

Abstract

The present invention discloses a target recognition method based on an unmanned platform, and the steps include: 1) building an unmanned platform control system; 2) inputting a recognition task in text mode, processing the recognition task, and obtaining a tracking area feature text and a recognition target feature text; 3) matching the recognition target feature text with the recognition target name in the recognition target database G, and if the match is successful, obtaining the corresponding recognition target image small sample data set; 4) using a recognition target image enhancement model based on a generative adversarial network to expand the obtained recognition target image small sample data set to obtain a recognition target image training sample data set; 5) using the recognition target image training sample data set to train a neural network to obtain a target recognition model; 6) the central node inputs the captured image of the array into the target recognition model to perform target recognition and determine whether there is a recognition target in the captured image; the present invention supports inputting the recognition target in text mode. The present invention matches the input text with the recognition target database through a text matching algorithm, and uses a generative adversarial network to expand the pre-stored small sample data, thereby constructing a recognition model with high accuracy to meet the needs of target recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of target recognition, and in particular to a target recognition method based on an unmanned platform. Background Art

[0002] With the development and improvement of sensor technology, network technology, communication technology, control technology and computing power, a large number of unmanned platforms have replaced manual work to complete the inspection, collection and transportation of dangerous goods, and to detect and monitor in dangerous or complex environments such as underwater and space, which can ensure the safety of personnel. To this end, unmanned platforms are usually equipped with cameras to identify targets.

[0003] On the one hand, there are many types of targets to be identified. When unmanned platforms detect targets, they usually detect specific targets according to user needs. However, users may not be able to provide image information for identifying targets and can only select targets in text form. Even if the cloud platform database has pre-stored target images, it takes a long time for users to select the required images from the database, which is inefficient.

[0004] On the other hand, the cloud platform has limited storage resources and cannot store large quantities of image data for each recognition target. The accuracy of unmanned platform recognition of targets must rely on the training of a large amount of image data. Therefore, it is crucial to obtain an accurate recognition model based on small sample image data. Summary of the invention

[0005] The purpose of the present invention is to provide a target recognition method based on an unmanned platform, comprising the following steps:

[0006] 1) Build an unmanned platform control system, including a cloud platform and an unmanned platform cluster;

[0007] The unmanned platform cluster is denoted as A={A1, A2, ..., A N};

[0008] Among them, the nth unmanned platform array A n As shown below:

[0009]

[0010] In the formula, a n,SR Represents an unmanned platform as a central node; a n,sr represents the unmanned platform as an edge node; s = 1, 2, ..., S-1; r = 1, 2, ..., R-1; S×R is the number of unmanned platforms in the nth unmanned platform array; n = 1, 2, ..., N;

[0011] The cloud platform stores a tracking area database D, an identification target database G, and a constructed identification model database; the constructed identification model database stores the constructed target identification model and the corresponding identification target name;

[0012] The tracking area database D is as follows:

[0013]

[0014] In the formula, the matrix D bc ={D bc1 ,D bc2}; D bc1 is the name of the tracking area; b = 1, 2, ..., B; c = 1, 2, ..., C; B × C is the number of elements in the tracking area database;

[0015] Tracking area boundary coordinate matrix D bc2 As shown below:

[0016]

[0017] Where D bc2,ef Indicates tracking area D bc1 The coordinates of the fth sampling point on the eth boundary line in; e = 1, 2, ..., E; f = 1, 2, ..., F; E is the tracking area D bc1 is the number of boundary lines; F is the number of sampling points on each boundary line;

[0018] The identification target database G is as follows:

[0019]

[0020] Where H×K is the size of the recognition target database; g k is the number of zero-fillings, used to make the number of elements in each row of the recognition target database G equal; k = 1, 2, ..., K; vector The target name is the target name. and the kth category hth k Subclassification identifies a combination of target names; To identify the target name The corresponding small sample dataset of recognition target images;

[0021] 2) Input the recognition task in text form, process the recognition task, and obtain the tracking area feature text and the recognition target feature text;

[0022] 3) Match the recognition target feature text with the recognition target name in the established recognition model database. If the match is successful, retrieve the corresponding target recognition model and proceed to step 9), otherwise proceed to step 4);

[0023] 4) Match the recognition target feature text with the recognition target name in the recognition target database G. If the match is successful, obtain the corresponding recognition target image small sample data set and proceed to step 7). If the match fails, proceed to step 5);

[0024] 5) Segmenting the recognition target feature text to obtain multiple recognition target feature segmentations;

[0025] Match the t-th recognition target feature segmentation with the recognition target name in the recognition target database G, and set the reward value of the successfully matched recognition target name re=re+1; the initial value of re is 0; the initial value of t is 1;

[0026] 6) Let t=t+1, and return to step 5), until all the recognition target feature segmentations are matched with the recognition target names in the recognition target database G;

[0027] Read the name of the recognized target with the largest reward value re, recorded as Get the name of the identified target Identify the target name The corresponding small sample dataset of the recognition target image;

[0028] Perform feature extraction on all small sample data sets of recognition target images to obtain recognition target image feature data corresponding to each recognition target name;

[0029] Integrate these recognition target image feature data, retain the recognition target image feature data that have at least Num recognition target names, and use them as a small sample data set of recognition target images;

[0030] 7) Using a target recognition image enhancement model based on a generative adversarial network to expand the acquired target recognition image small sample data set to obtain a target recognition image training sample data set, the steps comprising:

[0031] 7.1) Training a target image enhancement model based on a generative adversarial network, the steps include:

[0032] 7.1.1) Take p recognition target images from the recognition target image small sample data set, denoted as {(y 1 ,x 1 ),(y 2 ,x 2 ),…,(y p ,x p )}; xp Represents the target image to be recognized, y p Indicates the name of the recognition target corresponding to the recognition target image;

[0033] 7.1.2) Generate Gaussian random noise data z = {z 1 ,z 2 ,…,z p};

[0034] 7.1.3) Input the noise dataset z and p recognition target images into the recognition target image enhancement model to obtain the generated dataset The i-th generated data G(y i ,z i ) is the output data of the recognition target image enhancement model generator; i = 1, 2, ..., p; y i To identify the target name; i To identify the target image;

[0035] 7.1.4) With the goal of maximizing function V1, update the discriminator parameters θ of the target image enhancement model d : η is the learning rate; is the function V1 for the discriminator parameter θ d The partial derivative of

[0036] The function V1 is as follows:

[0037]

[0038] In the formula, is the updated generated data; Dis() is the discriminant value;

[0039] 7.1.5) With the goal of maximizing function V2, update the parameters θ of the generator of the recognition target image enhancement model g : η is the learning rate; For the function V2, the generator parameter θ g The partial derivative of

[0040] The function V2 is as follows:

[0041]

[0042] 7.2) Generate Gaussian random noise data and input it into the generator to generate an augmented image;

[0043] 7.3) Inputting the augmented image and the small sample data set of the recognition target image into the discriminator, the discriminator uses the Wasserstein distance algorithm to calculate the similarity between the augmented image and the recognition target image;

[0044] If the similarity between the expanded image and at least one recognition target image is greater than or equal to a threshold, the expanded image is written into the recognition target image training sample data set, and the process returns to step 7.2) until the number of elements in the recognition target image training sample data set is greater than or equal to a preset number threshold; the recognition target image training sample data set includes the expanded image and the recognition target image small sample data set;

[0045] 8) Using the target recognition image training sample data set to train the neural network to obtain a target recognition model;

[0046] The recognition target feature text is used as the recognition target name corresponding to the target recognition model, and is stored in the constructed recognition model database, and the augmented image is deleted;

[0047] 9) Match the tracking area feature text with the tracking area database to obtain the tracking area boundary coordinates;

[0048] The cloud platform transmits the target recognition model to the central node located in the tracking area according to the boundary coordinates of the tracking area;

[0049] 10) After receiving the target recognition model, the central node periodically captures images during the cruise process and controls the edge nodes of the array to periodically capture images;

[0050] After the edge node captures the image, it uploads the captured image, its own coordinates and code to the central node;

[0051] 11) The central node inputs the captured image of the array into the target recognition model to perform target recognition and determine whether there is a recognized target in the captured image;

[0052] If there is an identification target, obtain the current coordinates Coord = {Coord1, Coord2, ..., CoordM} and the unmanned platform number num = {num1, num2, ..., numM} of the unmanned platform corresponding to the captured image of the identification target, and upload the current coordinates Coord and the unmanned platform number num to the cloud platform, and then return to step 10); M is the number of unmanned platforms that have captured the identification target;

[0053] If there is no identification target, directly return to step 10).

[0054] Furthermore, the constructed recognition model database is empty in the initial state.

[0055] Furthermore, one or more unmanned platform arrays are deployed in a tracking area.

[0056] Furthermore, the working modes of the unmanned platform array include a cruise mode and a cloud platform control mode;

[0057] When the unmanned platform array works in the cruise mode, the central node controls the edge nodes of the array to cruise in the corresponding tracking area in array formation;

[0058] When the unmanned platform array works in the cloud platform control mode, the central node controls its own movement and image capture as well as the edge nodes of the array according to the control signals sent by the cloud platform.

[0059] Further, the method of inputting the recognition task in textual form includes inputting in a fixed format and / or inputting in an unfixed format;

[0060] When inputting a recognition task in a fixed format, the user enters the tracking area feature text after the tracking area identifier and the recognition target feature text after the recognition target identifier;

[0061] When inputting in an unfixed format, the user inputs the recognition task text, and the cloud platform performs word segmentation and semantic recognition on the recognition task text to obtain the tracking area feature text and the recognition target feature text.

[0062] Furthermore, the recognition target feature text and the recognition target name are matched through the BERT network model;

[0063] The BERT network model includes an embedding input layer, a multi-head attention layer, a forward propagation layer, and an output layer.

[0064] Further, the step of matching the recognition target feature text with the recognition target name includes:

[0065] 4.1) Extracting features from the recognition target feature text and any recognition target name, and obtaining the text word features of each text to be matched;

[0066] Use the embedding input layer to process the text word features to obtain the embedding input X, and convert the embedding input X into feature components Q = XW Q , characteristic component K = XW K , characteristic component V = XW V ; W Q , W K , W V are the weights corresponding to different feature components;

[0067] 4.2) Use the multi-head attention layer to process the feature components of the embedding input X to obtain the multi-head attention layer processing result MultiHead(Q,K,V), that is:

[0068] MultiHead(Q,K,V)=Concat(head1,...,head h )W O (7)

[0069] Where W O is the weight;

[0070] Among them, the parameter head i As shown below:

[0071] head i =Attention(QW i Q ,KW i k ,VW i v ),i=1,2,...,h (8)

[0072] Attention(QW i Q ,KW i k ,VW i v )=Mask*Attention(Q,K,V) (9)

[0073]

[0074] In the formula, softmax is the activation function; d k represents the dimension of embedding input X; Mask represents mask; Attention (QW i Q ,KW i k ,VW i v ), Attention(Q,K,V) is an intermediate parameter; h is an integer greater than 0;

[0075] 4.3) Use the forward propagation layer to process the multi-head attention layer processing result MultiHead(Q,K,V) to obtain the forward propagation layer processing result x, that is:

[0076] x=norm(X+MultiHead(Q,K,V)) (11)

[0077] 4.4) The output layer is used to process the forward propagation layer processing result x to obtain the matching result FFN(x) between the recognition target feature text and any recognition target name, that is:

[0078] FFN(x)=max(0,xW1+b1)W2+b2 (12)

[0079] Where W1 and W2 are weights; b1 and b2 are biases; and FFN(x) is the output.

[0080] 4.5) Repeat steps 4.1) to 4.4) to obtain the matching result between the recognition target feature text and each recognition target name.

[0081] Furthermore, the target image enhancement model based on the generative adversarial network includes a generator and a discriminator;

[0082] The generator and discriminator are both fully connected neural network models, and the LeakyReLU function is used for parameter transfer between layers.

[0083] Furthermore, the central node inputs the image captured by the array into the target recognition model, and the steps of performing target recognition include:

[0084] 11.1) Divide the image into two parts: foreground and background. The steps include:

[0085] 11.1.1) Set the foreground and background improved adaptive segmentation thresholds of the image to be segmented to T, the ratio of the number of foreground points to the image to w0, the average grayscale of the foreground to u0, the ratio of the number of background points to the image to w1, the average grayscale of the background to u1, and the total average grayscale of the image to u;

[0086] Among them, the total average grayscale u is as follows:

[0087] u=w0×u0+w1×u1; (13)

[0088] Where, w0 is the ratio of the number of foreground points to the image; u0 is the average grayscale of the foreground; w1 is the ratio of the number of background points to the image; u1 is the average grayscale of the background;

[0089] 11.1.2) Calculate the variance g of the foreground and background images, that is:

[0090] g=w0×(u0-u) 2 +w1×(u1-u) 2 ; (14)

[0091] Where u is the total average grayscale of the image;

[0092] 11.1.3) Calculate the weight of the background and moving target area ratio G(t), that is:

[0093]

[0094] In the formula, is the calculation coefficient; The range of is [0,1];

[0095] 11.1.4) Divide the image into foreground and background parts according to the variance g and the proportional weight G(t);

[0096] 11.2) Input the foreground image into the target recognition model to determine whether the foreground image is a recognition target.

[0097] Furthermore, if the recognition target feature text fails to match the recognition target name in the recognition target database G, the cloud platform will manually inspect the recognition target images after receiving the recognition target images taken by the unmanned platform, and use the recognition target image data that have passed the inspection as a small sample data set of recognition target images, retrain the target recognition model, and then send the trained target recognition model to the central node.

[0098] The technical effect of the present invention is unquestionable. The present invention supports inputting recognition targets in text form. The present invention matches the input text with the recognition target database through a text matching algorithm, and uses a generative adversarial network to expand the pre-stored small sample data, thereby constructing a high-precision recognition model to meet the needs of target recognition.

[0099] The present invention divides the recognition target types into levels. When the cloud platform does not store the image data of the current recognition target, the target recognition model is trained according to the recognition target type, using the image highly overlapping features corresponding to the recognition target at the previous level and the recognition targets with a common upper level as training data, so as to recognize the target. After the recognition is successful, the image data is re-tested, and the recognition target image data that has passed the test is used as a small sample data set of the recognition target image, and the target recognition model is re-trained to further improve the accuracy of the recognition model. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] Figure 1 Flowchart for target identification. DETAILED DESCRIPTION

[0101] The present invention is further described below in conjunction with the embodiments, but it should not be understood that the above subject matter of the present invention is limited to the following embodiments. Without departing from the above technical ideas of the present invention, various substitutions and changes are made according to the common technical knowledge and customary means in the art, which should all be included in the protection scope of the present invention.

[0102] Embodiment 1:

[0103] See also Figure 1 , a target recognition method based on an unmanned platform, comprising the following steps:

[0104] 1) Build an unmanned platform control system, including a cloud platform and an unmanned platform cluster;

[0105] The unmanned platform cluster is denoted as A={A1, A2, ..., A N};

[0106] Among them, the nth unmanned platform array A n As shown below:

[0107]

[0108] In the formula, a n,SR Represents an unmanned platform as a central node; a n,sr represents the unmanned platform as an edge node; s = 1, 2, ..., S-1; r = 1, 2, ..., R-1; S×R is the number of unmanned platforms in the nth unmanned platform array; n = 1, 2, ..., N;

[0109] The cloud platform stores a tracking area database D, an identification target database G, and a constructed identification model database; the constructed identification model database stores the constructed target identification model and the corresponding identification target name;

[0110] The tracking area database D is as follows:

[0111]

[0112] In the formula, the matrix D bc ={D bc1 ,D bc2}; D bc1 is the name of the tracking area; b = 1, 2, ..., B; c = 1, 2, ..., C; B × C is the number of elements in the tracking area database;

[0113] Tracking area boundary coordinate matrix D bc2 As shown below:

[0114]

[0115] Where D bc2,ef Indicates tracking area D bc1 The coordinates of the fth sampling point on the eth boundary line in; e = 1, 2, ..., E; f = 1, 2, ..., F; E is the tracking area D bc1 is the number of boundary lines; F is the number of sampling points on each boundary line;

[0116] The identification target database G is as follows:

[0117]

[0118] Where H×K is the size of the recognition target database; g k is the number of zero-fillings, used to make the number of elements in each row of the recognition target database G equal; k = 1, 2, ..., K; vector The target name is the target name. and the kth category hth k Subclassification identifies a combination of target names; To identify the target name The corresponding small sample dataset of recognition target images;

[0119] 2) Input the recognition task in text form, process the recognition task, and obtain the tracking area feature text and the recognition target feature text;

[0120] 3) Match the recognition target feature text with the recognition target name in the established recognition model database. If the match is successful, retrieve the corresponding target recognition model and proceed to step 9), otherwise proceed to step 4);

[0121] 4) Match the recognition target feature text with the recognition target name in the recognition target database G. If the match is successful, obtain the corresponding recognition target image small sample data set and proceed to step 7). If the match fails, proceed to step 5);

[0122] 5) Segmenting the recognition target feature text to obtain multiple recognition target feature segmentations;

[0123] Match the t-th recognition target feature segmentation with the recognition target name in the recognition target database G, and set the reward value of the successfully matched recognition target name re=re+1; the initial value of re is 0; the initial value of t is 1;

[0124] 6) Let t=t+1, and return to step 5), until all the recognition target feature segmentations are matched with the recognition target names in the recognition target database G;

[0125] Read the name of the recognized target with the largest reward value re, recorded as Get the name of the identified target Identify the target name The corresponding small sample dataset of the recognition target image;

[0126] Perform feature extraction on all small sample data sets of recognition target images to obtain recognition target image feature data corresponding to each recognition target name;

[0127] Integrate these recognition target image feature data, retain the recognition target image feature data that have at least Num recognition target names, and use them as a small sample data set of recognition target images;

[0128] 7) Using a target recognition image enhancement model based on a generative adversarial network to expand the acquired target recognition image small sample data set to obtain a target recognition image training sample data set, the steps comprising:

[0129] 7.1) Training a target image enhancement model based on a generative adversarial network, the steps include:

[0130] 7.1.1) Take p recognition target images from the recognition target image small sample data set, denoted as {(y 1 ,x 1 ),(y 2 ,x 2 ),…,(y p ,x p )}; x p Represents the target image to be recognized, y p Indicates the name of the recognition target corresponding to the recognition target image;

[0131] 7.1.2) Generate Gaussian random noise data z = {z 1 ,z 2 ,…,z p};

[0132] 7.1.3) Input the noise dataset z and p recognition target images into the recognition target image enhancement model to obtain the generated dataset The i-th generated data G(y i ,z i ) is the output data of the recognition target image enhancement model generator; i = 1, 2, ..., p; y i To identify the target name; i To identify the target image;

[0133] 7.1.4) With the goal of maximizing function V1, update the discriminator parameters θ of the target image enhancement model d : η is the learning rate; is the function V1 for the discriminator parameter θ d The partial derivative of

[0134] The function V1 is as follows:

[0135]

[0136] In the formula, is the updated generated data; Dis() is the discriminant value;

[0137] 7.1.5) With the goal of maximizing function V2, update the parameters θ of the generator of the recognition target image enhancement model g : η is the learning rate; For the function V2, the generator parameter θ g The partial derivative of

[0138] The function V2 is as follows:

[0139]

[0140] 7.2) Generate Gaussian random noise data and input it into the generator to generate an augmented image;

[0141] 7.3) Inputting the augmented image and the small sample data set of the recognition target image into the discriminator, the discriminator uses the Wasserstein distance algorithm to calculate the similarity between the augmented image and the recognition target image;

[0142] If the similarity between the expanded image and at least one recognition target image is greater than or equal to a threshold value (e.g., 70%-90%), the expanded image is written into the recognition target image training sample data set, and the process returns to step 7.2) until the number of elements in the recognition target image training sample data set is greater than or equal to a preset number threshold value (e.g., greater than 2000, determined according to actual needs); the recognition target image training sample data set includes the expanded image and the recognition target image small sample data set;

[0143] 8) Using the target recognition image training sample data set to train the neural network to obtain a target recognition model;

[0144] The recognition target feature text is used as the recognition target name corresponding to the target recognition model, and is stored in the constructed recognition model database, and the augmented image is deleted;

[0145] 9) Match the tracking area feature text with the tracking area database to obtain the tracking area boundary coordinates;

[0146] The cloud platform transmits the target recognition model to the central node located in the tracking area according to the boundary coordinates of the tracking area;

[0147] 10) After receiving the target recognition model, the central node periodically captures images during the cruise process and controls the edge nodes of the array to periodically capture images;

[0148] After the edge node captures the image, it uploads the captured image, its own coordinates and code to the central node;

[0149] 11) The central node inputs the captured image of the array into the target recognition model to perform target recognition and determine whether there is a recognized target in the captured image;

[0150] If there is an identification target, obtain the current coordinates Coord = {Coord1, Coord2, ..., CoordM} and the unmanned platform number num = {num1, num2, ..., numM} of the unmanned platform corresponding to the captured image of the identification target, and upload the current coordinates Coord and the unmanned platform number num to the cloud platform, then return to step 10), continue to move and capture images until the cloud platform sends a control signal, move according to the control signal sent by the cloud platform, and continue to capture and identify images; M is the number of unmanned platforms that have captured the identification target;

[0151] If there is no identification target, directly return to step 10).

[0152] The constructed recognition model database is initially empty.

[0153] One or more unmanned platform arrays are deployed in a tracking area.

[0154] The working modes of the unmanned platform array include a cruise mode and a cloud platform control mode;

[0155] When the unmanned platform array works in the cruise mode, the central node controls the edge nodes of the array to cruise in the corresponding tracking area in array formation;

[0156] When the unmanned platform array works in the cloud platform control mode, the central node controls its own movement and image capture as well as the edge nodes of the array according to the control signals sent by the cloud platform.

[0157] The method of inputting the recognition task in the form of text includes inputting in a fixed format and / or inputting in an unfixed format;

[0158] When inputting a recognition task in a fixed format, the user enters the tracking area feature text after the tracking area identifier and the recognition target feature text after the recognition target identifier;

[0159] When inputting in an unfixed format, the user inputs the recognition task text, and the cloud platform performs word segmentation and semantic recognition on the recognition task text to obtain the tracking area feature text and the recognition target feature text.

[0160] The recognition target feature text and the recognition target name are matched through the BERT network model;

[0161] The BERT network model includes an embedding input layer, a multi-head attention layer, a forward propagation layer, and an output layer.

[0162] The steps to match the recognition target feature text with the recognition target name include:

[0163] 4.1) Extracting features from the recognition target feature text and any recognition target name, and obtaining the text word features of each text to be matched;

[0164] Use the embedding input layer to process the text word features to obtain the embedding input X, and convert the embedding input X into feature components Q = XW Q , characteristic component K = XW K , characteristic component V = XW V ; W Q , W K , W V are the weights corresponding to different feature components;

[0165] 4.2) Use the multi-head attention layer to process the feature components of the embedding input X to obtain the multi-head attention layer processing result MultiHead(Q,K,V), that is:

[0166] MultiHead(Q,K,V)=Concat(head1,...,head h )W O (7)

[0167] Where W O is the weight;

[0168] Among them, the parameter head i As shown below:

[0169] head i =Attention(QW i Q ,KW i k ,VW i v ),i=1,2,...,h (8)

[0170] Attention(QW i Q ,KW i k ,VW i v )=Mask*Attention(Q,K,V) (9)

[0171]

[0172] In the formula, softmax is the activation function; d k represents the dimension of embedding input X; Mask represents mask; Attention (QW iQ ,KW i k ,VW i v ), Attention(Q,K,V) is an intermediate parameter; h is an integer greater than 0;

[0173] 4.3) Use the forward propagation layer to process the multi-head attention layer processing result MultiHead(Q,K,V) to obtain the forward propagation layer processing result x, that is:

[0174] x=norm(X+MultiHead(Q,K,V)) (11)

[0175] 4.4) The output layer is used to process the forward propagation layer processing result x to obtain the matching result FFN(x) between the recognition target feature text and any recognition target name, that is:

[0176] FFN(x)=max(0,xW1+b1)W2+b2 (12)

[0177] Where W1 and W2 are weights; b1 and b2 are biases; and FFN(x) is the output.

[0178] 4.5) Repeat steps 4.1) to 4.4) to obtain the matching result between the recognition target feature text and each recognition target name.

[0179] The target image enhancement model based on the generative adversarial network includes a generator and a discriminator;

[0180] The generator and discriminator are both fully connected neural network models, and the LeakyReLU function is used for parameter transfer between layers.

[0181] The central node inputs the image captured by the array into the target recognition model, and the steps of performing target recognition include:

[0182] 11.1) Divide the image into two parts: foreground and background. The steps include:

[0183] 11.1.1) Set the foreground and background improved adaptive segmentation thresholds of the image to be segmented to T, the ratio of the number of foreground points to the image to w0, the average grayscale of the foreground to u0, the ratio of the number of background points to the image to w1, the average grayscale of the background to u1, and the total average grayscale of the image to u;

[0184] Among them, the total average grayscale u is as follows:

[0185] u=w0×u0+w1×u1; (13)

[0186] Where, w0 is the ratio of the number of foreground points to the image; u0 is the average grayscale of the foreground; w1 is the ratio of the number of background points to the image; u1 is the average grayscale of the background;

[0187] 11.1.2) Calculate the variance g of the foreground and background images, that is:

[0188] g=w0×(u0-u) 2 +w1×(u1-u) 2 ; (14)

[0189] Where u is the total average grayscale of the image;

[0190] 11.1.3) Calculate the weight of the background and moving target area ratio G(t), that is:

[0191]

[0192] In the formula, is the calculation coefficient; The range of is [0,1];

[0193] 11.1.4) Divide the image into foreground and background parts according to the variance g and the proportional weight G(t);

[0194] 11.2) Input the foreground image into the target recognition model to determine whether the foreground image is a recognition target.

[0195] If continuous d max If the similarity between the expanded images generated by the generative adversarial network (set to 5 times, which can also be determined according to actual needs) and all the recognition target images is less than the threshold, the recognition target image enhancement model based on the generative adversarial network is retrained.

[0196] If the recognition target feature text fails to match the recognition target name in the recognition target database G, the cloud platform will manually inspect the recognition target images after receiving the recognition target images taken by the unmanned platform, and use the recognition target image data that have passed the inspection as a small sample data set of recognition target images to retrain the target recognition model, and then send the trained target recognition model to the central node.

[0197] Embodiment 2:

[0198] A target recognition method based on an unmanned platform comprises the following steps:

[0199] 1) Build an unmanned platform control system, including a cloud platform and an unmanned platform cluster;

[0200] The unmanned platform cluster is denoted as A={A1, A2, ..., A N};

[0201] Among them, the nth unmanned platform array A n As shown below:

[0202]

[0203] In the formula, a n,SR Represents an unmanned platform as a central node; a n,sr represents the unmanned platform as an edge node; s = 1, 2, ..., S-1; r = 1, 2, ..., R-1; S×R is the number of unmanned platforms in the nth unmanned platform array;

[0204] The cloud platform stores a tracking area database D, an identification target database G, and a constructed identification model database; the constructed identification model database stores the constructed target identification model and the corresponding identification target name;

[0205] The tracking area database D is as follows:

[0206]

[0207] In the formula, the matrix D bc ={D bc1 ,D bc2}; D bc1 is the name of the tracking area; b = 1, 2, ..., B; c = 1, 2, ..., C; B × C is the number of elements in the tracking area database;

[0208] Tracking area boundary coordinate matrix D bc2 As shown below:

[0209]

[0210] Where D bc2,ef Indicates tracking area D bc1 The coordinates of the fth sampling point on the eth boundary line in; e = 1, 2, ..., E; f = 1, 2, ..., F; E is the tracking area D bc1 is the number of boundary lines; F is the number of sampling points on each boundary line;

[0211] The identification target database G is as follows:

[0212]

[0213] Where H×K is the size of the recognition target database; g k is the number of zero-fillings, used to make the number of elements in each row of the recognition target database G equal; k = 1, 2, ..., K; vector The target name is the target name. and the kth category hth k Subclassification identifies a combination of target names; To identify the target name The corresponding small sample dataset of recognition target images;

[0214] 2) Input the recognition task in text form, process the recognition task, and obtain the tracking area feature text and the recognition target feature text;

[0215] 3) Match the recognition target feature text with the recognition target name in the established recognition model database. If the match is successful, retrieve the corresponding target recognition model and proceed to step 9), otherwise proceed to step 4);

[0216] 4) Match the recognition target feature text with the recognition target name in the recognition target database G. If the match is successful, obtain the corresponding recognition target image small sample data set and proceed to step 7). If the match fails, proceed to step 5);

[0217] 5) Segmenting the recognition target feature text to obtain multiple recognition target feature segmentations;

[0218] Match the t-th recognition target feature segmentation with the recognition target name in the recognition target database G, and set the reward value of the successfully matched recognition target name re=re+1; the initial value of re is 0; the initial value of t is 1;

[0219] 6) Let t=t+1, and return to step 5), until all the recognition target feature segmentations are matched with the recognition target names in the recognition target database G;

[0220] Read the name of the recognized target with the largest reward value re, recorded as Get the name of the identified target Identify the target name The corresponding small sample dataset of the recognition target image;

[0221] Perform feature extraction on all small sample data sets of recognition target images to obtain recognition target image feature data corresponding to each recognition target name;

[0222] Integrate these recognition target image feature data, retain the recognition target image feature data that have at least Num recognition target names, and use them as a small sample data set of recognition target images;

[0223] 7) Using a target recognition image enhancement model based on a generative adversarial network to expand the acquired target recognition image small sample data set to obtain a target recognition image training sample data set, the steps comprising:

[0224] 7.1) Training a target image enhancement model based on a generative adversarial network, the steps include:

[0225] 7.1.1) Take p recognition target images from the recognition target image small sample data set, denoted as {(y 1 ,x 1 ),(y 2 ,x 2 ),…,(y p ,x p )}; x p Represents the target image to be recognized, y p Indicates the name of the recognition target corresponding to the recognition target image;

[0226] 7.1.2) Generate Gaussian random noise data z = {z 1 ,z 2 ,…,z p};

[0227] 7.1.3) Input the noise dataset z and p recognition target images into the recognition target image enhancement model to obtain the generated dataset The i-th generated data G(y i ,z i ) is the output data of the recognition target image enhancement model generator; i = 1, 2, ..., p; y i To identify the target name; i To identify the target image;

[0228] 7.1.4) With the goal of maximizing function V1, update the discriminator parameters θ of the target image enhancement model d : η is the learning rate; is the function V1 for the discriminator parameter θ d The partial derivative of

[0229] The function V1 is as follows:

[0230]

[0231] In the formula, is the updated generated data; Dis() is the discriminant value;

[0232] 7.1.5) With the goal of maximizing function V2, update the parameters θ of the generator of the recognition target image enhancement model g : η is the learning rate; For the function V2, the generator parameter θ g The partial derivative of

[0233] The function V2 is as follows:

[0234]

[0235] 7.2) Generate Gaussian random noise data and input it into the generator to generate an augmented image;

[0236] 7.3) Inputting the augmented image and the small sample data set of the recognition target image into the discriminator, the discriminator uses the Wasserstein distance algorithm to calculate the similarity between the augmented image and the recognition target image;

[0237] If the similarity between the expanded image and at least one recognition target image is greater than or equal to a threshold, the expanded image is written into the recognition target image training sample data set, and the process returns to step 7.2) until the number of elements in the recognition target image training sample data set is greater than or equal to a preset number threshold; the recognition target image training sample data set includes the expanded image and the recognition target image small sample data set;

[0238] 8) Using the target recognition image training sample data set to train the neural network to obtain a target recognition model;

[0239] The recognition target feature text is used as the recognition target name corresponding to the target recognition model, and is stored in the constructed recognition model database, and the augmented image is deleted;

[0240] 9) Match the tracking area feature text with the tracking area database to obtain the tracking area boundary coordinates;

[0241] The cloud platform transmits the target recognition model to the central node located in the tracking area according to the boundary coordinates of the tracking area;

[0242] 10) After receiving the target recognition model, the central node periodically captures images during the cruise process and controls the edge nodes of the array to periodically capture images;

[0243] After the edge node captures the image, it uploads the captured image, its own coordinates and code to the central node;

[0244] 11) The central node inputs the captured image of the array into the target recognition model to perform target recognition and determine whether there is a recognized target in the captured image;

[0245] If there is an identification target, obtain the current coordinates Coord = {Coord1, Coord2, ..., CoordM} and the unmanned platform number num = {num1, num2, ..., numM} of the unmanned platform corresponding to the captured image of the identification target, and upload the current coordinates Coord and the unmanned platform number num to the cloud platform, then return to step 10), continue to move and capture images until the cloud platform sends a control signal, move according to the control signal sent by the cloud platform, and continue to capture and identify images; M is the number of unmanned platforms that have captured the identification target;

[0246] If there is no identification target, return directly to step 10).

[0247] Embodiment 3:

[0248] A target recognition method based on an unmanned platform, the technical content of which is the same as that of Example 2, and further, the constructed recognition model database is empty in the initial state.

[0249] Embodiment 4:

[0250] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-3, and further, one or more unmanned platform arrays are arranged in a tracking area.

[0251] Embodiment 5:

[0252] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-4, and further, the working modes of the unmanned platform array include a cruise mode and a cloud platform control mode;

[0253] When the unmanned platform array works in the cruise mode, the central node controls the edge nodes of the array to cruise in the corresponding tracking area in array formation;

[0254] When the unmanned platform array works in the cloud platform control mode, the central node controls its own movement and image capture as well as the edge nodes of the array according to the control signals sent by the cloud platform.

[0255] Embodiment 6:

[0256] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-5, and further, the method of inputting the recognition task in text form includes inputting in a fixed format and / or inputting in a non-fixed format;

[0257] When inputting a recognition task in a fixed format, the user enters the tracking area feature text after the tracking area identifier and the recognition target feature text after the recognition target identifier;

[0258] When inputting in an unfixed format, the user inputs the recognition task text, and the cloud platform performs word segmentation and semantic recognition on the recognition task text to obtain the tracking area feature text and the recognition target feature text.

[0259] Embodiment 7:

[0260] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-6, and further, the recognition target feature text and the recognition target name are matched through a BERT network model;

[0261] The BERT network model includes an embedding input layer, a multi-head attention layer, a forward propagation layer, and an output layer.

[0262] Embodiment 8:

[0263] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-7, and further, the step of matching the recognition target feature text with the recognition target name comprises:

[0264] 4.1) Extracting features from the recognition target feature text and any recognition target name, and obtaining the text word features of each text to be matched;

[0265] Use the embedding input layer to process the text word features to obtain the embedding input X, and convert the embedding input X into feature components Q = XW Q , characteristic component K = XW K , characteristic component V = XW V ; W Q , W K , W V are the weights corresponding to different feature components;

[0266] 4.2) Use the multi-head attention layer to process the feature components of the embedding input X to obtain the multi-head attention layer processing result MultiHead(Q,K,V), that is:

[0267] MultiHead(Q,K,V)=Concat(head1,...,head h )W O (7)

[0268] Where W O is the weight;

[0269] Among them, the parameter head i As shown below:

[0270] head i =Attention(QWi Q ,KW i k ,VW i v ),i=1,2,...,h (8)

[0271] Attention(QW i Q ,KW i k ,VW i v )=Mask*Attention(Q,K,V) (9)

[0272]

[0273] In the formula, softmax is the activation function; d k represents the dimension of embedding input X; Mask represents mask; Attention (QW i Q ,KW i k ,VW i v ), Attention(Q,K,V) is an intermediate parameter; h is an integer greater than 0;

[0274] 4.3) Use the forward propagation layer to process the multi-head attention layer processing result MultiHead(Q,K,V) to obtain the forward propagation layer processing result x, that is:

[0275] x=norm(X+MultiHead(Q,K,V))(11)

[0276] 4.4) The output layer is used to process the forward propagation layer processing result x to obtain the matching result FFN(x) between the recognition target feature text and any recognition target name, that is:

[0277] FFN(x)=max(0,xW1+b1)W2+b2 (12)

[0278] Where W1 and W2 are weights; b1 and b2 are biases; and FFN(x) is the output.

[0279] 4.5) Repeat steps 4.1) to 4.4) to obtain the matching result between the recognition target feature text and each recognition target name.

[0280] Embodiment 9:

[0281] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-8, and further, the target recognition image enhancement model based on a generative adversarial network includes a generator and a discriminator;

[0282] The generator and discriminator are both fully connected neural network models, and the LeakyReLU function is used for parameter transfer between layers.

[0283] Embodiment 10:

[0284] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Embodiments 2-9, further, the central node inputs the image captured by the array into the target recognition model, and the step of performing target recognition includes:

[0285] 11.1) Divide the image into two parts: foreground and background. The steps include:

[0286] 11.1.1) Set the foreground and background improved adaptive segmentation thresholds of the image to be segmented to T, the ratio of the number of foreground points to the image to w0, the average grayscale of the foreground to u0, the ratio of the number of background points to the image to w1, the average grayscale of the background to u1, and the total average grayscale of the image to u;

[0287] Among them, the total average grayscale u is as follows:

[0288] u=w0×u0+w1×u1; (13)

[0289] Where, w0 is the ratio of the number of foreground points to the image; u0 is the average grayscale of the foreground; w1 is the ratio of the number of background points to the image; u1 is the average grayscale of the background;

[0290] 11.1.2) Calculate the variance g of the foreground and background images, that is:

[0291] g=w0×(u0-u) 2 +w1×(u1-u) 2 ; (14)

[0292] Where u is the total average grayscale of the image;

[0293] 11.1.3) Calculate the weight of the background and moving target area ratio G(t), that is:

[0294]

[0295] In the formula, is the calculation coefficient; The range of is [0,1];

[0296] 11.1.4) Divide the image into foreground and background parts according to the variance g and the proportional weight G(t);

[0297] 11.2) Input the foreground image into the target recognition model to determine whether the foreground image is a recognition target.

[0298] Embodiment 11:

[0299] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Examples 2-10. Furthermore, the recognition target names stored in the recognition target database G are hierarchical names, and the next level names are obtained by further subdividing the previous level names.

[0300] Embodiment 12:

[0301] A target recognition method based on an unmanned platform, the technical content is the same as any one of embodiments 2-11, further, if the continuous d max If the similarity between the generated augmented image and all the recognition target images is less than the threshold, the recognition target image enhancement model based on the generative adversarial network is retrained.

[0302] Embodiment 13:

[0303] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Examples 2-12. Furthermore, if the recognition target feature text fails to match the recognition target name in the recognition target database G, the cloud platform, after receiving the recognition target images taken by the unmanned platform, also performs manual inspection on these recognition target images, uses the recognition target image data that pass the inspection as a small sample data set of the recognition target images, retrains the target recognition model, and then sends the trained target recognition model to the central node.

[0304] Embodiment 14:

[0305] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Examples 2-13, and further, the target recognition model is a neural network model, including an input layer, a hidden layer and an output layer.

[0306] The number of nodes in the input layer, hidden layer and output layer is determined according to actual conditions.

[0307] Embodiment 15:

[0308] A target recognition method based on an unmanned platform, the technical content is the same as any one of embodiments 2-14, further, the number of elements of the small sample data set of the recognition target image is less than or equal to 50 (it can also be adjusted according to the storage capacity of the cloud platform.)

[0309] Embodiment 16:

[0310] A target recognition method based on an unmanned platform, the technical content of which is the same as any one of Examples 2-15, and further, each tracking area is an irregular or regular closed area surrounded by multiple boundary lines.

Claims

1. A target recognition method based on an unmanned platform, characterized in that: The following steps are involved: 1) Build an unmanned platform control system, including a cloud platform and an unmanned platform cluster; The unmanned platform cluster is denoted as A={A1, A2, ..., A N }; Among them, the nth unmanned platform array A n As shown below: In the formula, a n,SR Represents an unmanned platform as a central node; a n,sr represents the unmanned platform as an edge node; s = 1, 2, ..., S-1; r = 1, 2, ..., R-1; S×R is the number of unmanned platforms in the nth unmanned platform array; n = 1, 2, ..., N; The cloud platform stores a tracking area database D, an identification target database G, and a constructed identification model database; the constructed identification model database stores the constructed target identification model and the corresponding identification target name; The tracking area database D is as follows: In the formula, the matrix D bc ={D bc1 ,D bc2 }; D bc1 is the name of the tracking area; b = 1, 2, ..., B; c = 1, 2, ..., C; B × C is the number of elements in the tracking area database; Tracking area boundary coordinate matrix D bc2 As shown below: Where D bc2,ef Indicates tracking area D bc1 The coordinates of the fth sampling point on the eth boundary line in; e = 1, 2, ..., E; f = 1, 2, ..., F; E is the tracking area D bc1 is the number of boundary lines; F is the number of sampling points on each boundary line; The identification target database G is as follows: Where H×K is the size of the recognition target database; g k is the number of zero-fillings, used to make the number of elements in each row of the recognition target database G equal; k = 1, 2, ..., K; vector The target name is the target name. and the kth category hth k Subclassification identifies a combination of target names; To identify the target name The corresponding small sample dataset of recognition target images; 2) Input the recognition task in text form, process the recognition task, and obtain the tracking area feature text and the recognition target feature text; 3) Match the recognition target feature text with the recognition target name in the established recognition model database. If the match is successful, retrieve the corresponding target recognition model and proceed to step 9), otherwise proceed to step 4); 4) Match the recognition target feature text with the recognition target name in the recognition target database G. If the match is successful, obtain the corresponding recognition target image small sample data set and proceed to step 7). If the match fails, proceed to step 5); 5) Segmenting the recognition target feature text to obtain multiple recognition target feature segmentations; Match the t-th recognition target feature segmentation with the recognition target name in the recognition target database G, and set the reward value of the successfully matched recognition target name re=re+1; the initial value of re is 0; the initial value of t is 1; 6) Let t=t+1, and return to step 5), until all the recognition target feature segmentations are matched with the recognition target names in the recognition target database G; Read the name of the recognized target with the largest reward value re, recorded as Get the name of the identified target Identify the target name The corresponding small sample dataset of the recognition target image; Perform feature extraction on all small sample data sets of recognition target images to obtain recognition target image feature data corresponding to each recognition target name; Integrate these recognition target image feature data, retain the recognition target image feature data that have at least Num recognition target names, and use them as a small sample data set of recognition target images; 7) Using a recognition target image enhancement model based on a generative adversarial network to expand the acquired recognition target image small sample data set to obtain a recognition target image training sample data set, the steps comprising: 7.1) Training a target image enhancement model based on a generative adversarial network, the steps include: 7.1.1) Take p recognition target images from the recognition target image small sample data set, denoted as {(y 1 ,x 1 ),(y 2 ,x 2 ),…,(y p ,x p )}; x p Represents the target image to be recognized, y p Indicates the name of the recognition target corresponding to the recognition target image; 7.1.2) Generate Gaussian random noise data z = {z 1 ,z 2 ,…,z p }; 7.1.3) Input the noise dataset z and p recognition target images into the recognition target image enhancement model to obtain the generated dataset The i-th generated data G(y i ,z i ) is the output data of the recognition target image enhancement model generator; i = 1, 2, ..., p; y i To identify the target name; i To identify the target image; 7.1.4) With the goal of maximizing function V1, update the discriminator parameters of the target image enhancement model η is the learning rate; is the function V1 for the discriminator parameter θ d The partial derivative of The function V1 is as follows: In the formula, is the updated generated data; Dis() is the discriminant value; 7.1.5) With the goal of maximizing function V2, update the parameters θ of the generator of the recognition target image enhancement model g : η is the learning rate; For the function V2, the generator parameter θ g The partial derivative of The function V2 is as follows: 7.2) Generate Gaussian random noise data and input it into the generator to generate an augmented image; 7.3) Inputting the augmented image and the small sample data set of the recognition target image into the discriminator, the discriminator uses the Wasserstein distance algorithm to calculate the similarity between the augmented image and the recognition target image; If the similarity between the expanded image and at least one recognition target image is greater than or equal to a threshold, the expanded image is written into the recognition target image training sample data set, and the process returns to step 7.2) until the number of elements in the recognition target image training sample data set is greater than or equal to a preset number threshold; the recognition target image training sample data set includes the expanded image and the recognition target image small sample data set; 8) Using the target image training sample data set to train the neural network, a target recognition model is obtained; The recognition target feature text is used as the recognition target name corresponding to the target recognition model, and is stored in the constructed recognition model database, and the augmented image is deleted; 9) Match the tracking area feature text with the tracking area database to obtain the tracking area boundary coordinates; The cloud platform transmits the target recognition model to the central node located in the tracking area according to the boundary coordinates of the tracking area; 10) After receiving the target recognition model, the central node periodically captures images during the cruise process and controls the edge nodes of the array to periodically capture images; After the edge node captures the image, it uploads the captured image, its own coordinates and code to the central node; 11) The central node inputs the captured image of the array into the target recognition model to perform target recognition and determine whether there is a recognized target in the captured image; If there is an identification target, obtain the current coordinates Coord = {Coord1, Coord2, ..., CoordM} and the unmanned platform number num = {num1, num2, ..., numM} of the unmanned platform corresponding to the captured image of the identification target, and upload the current coordinates Coord and the unmanned platform number num to the cloud platform, and then return to step 10); M is the number of unmanned platforms that have captured the identification target; If there is no identification target, return directly to step 10).

2. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The constructed recognition model database is initially empty.

3. The target recognition method based on an unmanned platform according to claim 1, characterized in that: One or more unmanned platform arrays are deployed in a tracking area.

4. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The working modes of the unmanned platform array include a cruise mode and a cloud platform control mode; When the unmanned platform array works in the cruise mode, the central node controls the edge nodes of the array to cruise in the corresponding tracking area in array formation; When the unmanned platform array works in the cloud platform control mode, the central node controls its own movement and image capture as well as the edge nodes of the array according to the control signals sent by the cloud platform.

5. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The method of inputting the recognition task in the form of text includes inputting in a fixed format and / or inputting in an unfixed format; When inputting a recognition task in a fixed format, the user enters the tracking area feature text after the tracking area identifier and the recognition target feature text after the recognition target identifier; When inputting in an unfixed format, the user inputs the recognition task text, and the cloud platform performs word segmentation and semantic recognition on the recognition task text to obtain the tracking area feature text and the recognition target feature text.

6. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The recognition target feature text and the recognition target name are matched through the BERT network model; The BERT network model includes an embedding input layer, a multi-head attention layer, a forward propagation layer, and an output layer.

7. The target recognition method based on an unmanned platform according to claim 6, characterized in that: The steps to match the recognition target feature text with the recognition target name include: 4.1) Extracting features from the recognition target feature text and any recognition target name to obtain text word features of each text to be matched; Use the embedding input layer to process the text word features to obtain the embedding input X, and convert the embedding input X into feature components Q = XW Q , characteristic component K = XW K , characteristic component V = XW V ; W Q , W K , W V are the weights corresponding to different feature components; 4.2) Use the multi-head attention layer to process the feature components of the embedding input X to obtain the multi-head attention layer processing result MultiHead(Q,K,V), that is: MultiHead(Q,K,V)=Concat(head1,...,head h )W O (7) Where W O is the weight; Among them, the parameter head i As shown below: head i =Attention(QW i Q ,KW i k ,VW i v ),i=1,2,...,h (8) Attention(QW i Q ,KW i k ,VW i v )=Mask*Attention(Q,K,V) (9) In the formula, softmax is the activation function; d k represents the dimension of embedding input X; Mask represents mask; Attention (QW i Q ,KW i k ,VW i v ), Attention(Q,K,V) is an intermediate parameter; h is an integer greater than 0; 4.3) Use the forward propagation layer to process the multi-head attention layer processing result MultiHead(Q,K,V) to obtain the forward propagation layer processing result x, that is: x=norm(X+MultiHead(Q,K,V)) (11) 4.4) The output layer is used to process the forward propagation layer processing result x to obtain the matching result FFN(x) between the recognition target feature text and any recognition target name, that is: FFN(x)=max(0,xW1+b1)W2+b2 (12) Where W1 and W2 are weights; b1 and b2 are biases; FFN(x) is the output; 4.5) Repeat steps 4.1) to 4.4) to obtain the matching result between the recognition target feature text and each recognition target name.

8. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The target image enhancement model based on the generative adversarial network includes a generator and a discriminator; The generator and discriminator are both fully connected neural network models, and the LeakyReLU function is used for parameter transfer between layers.

9. The target recognition method based on an unmanned platform according to claim 1, characterized in that: The central node inputs the image captured by the array into the target recognition model, and the steps of performing target recognition include: 11.1) Divide the image into two parts: foreground and background. The steps include: 11.1.1) Set the foreground and background improved adaptive segmentation thresholds of the image to be segmented to T, the ratio of the number of foreground points to the image to w0, the average grayscale of the foreground to u0, the ratio of the number of background points to the image to w1, the average grayscale of the background to u1, and the total average grayscale of the image to u; Among them, the total average grayscale u is as follows: u=w0×u0+w1×u1; (13) Where, w0 is the ratio of the number of foreground points to the image; u0 is the average grayscale of the foreground; w1 is the ratio of the number of background points to the image; u1 is the average grayscale of the background; 11.1.2) Calculate the variance g of the foreground and background images, that is: g=w0×(u0-u) 2 +w1×(u1-u) 2 ;(14) Where u is the total average grayscale of the image; 11.1.3) Calculate the weight of the background and moving target area ratio G(t), that is: In the formula, is the calculation coefficient; The range of is [0,1]; 11.1.4) Divide the image into foreground and background parts according to the variance g and the proportional weight G(t); 11.2) Input the foreground image into the target recognition model to determine whether the foreground image is a recognition target.

10. The target recognition method based on an unmanned platform according to claim 1, characterized in that: If the recognition target feature text fails to match the recognition target name in the recognition target database G, the cloud platform will manually inspect the recognition target images after receiving the recognition target images taken by the unmanned platform, and use the recognition target image data that have passed the inspection as a small sample data set of recognition target images to retrain the target recognition model, and then send the trained target recognition model to the central node.

Citation Information

Patent Citations

  • Zero-sample image recognition method and system based on generative adversarial network

    CN111476294A

  • Chinese text intention recognition method based on Bert and full-connection neural network fusion

    CN113239690A

  • Power grid real-time scheduling intelligent voice interaction system based on deep neural network

    CN113792556A

  • Generative adversarial network-based fraudulent website identification method

    CN114756783A

  • Text named entity recognition method for small samples

    CN116629266A