A method for detecting endangered animals based on class relationship reasoning

By introducing the class relationship reasoning method in endangered animal target detection, using graph convolution networks to transfer inter-class relationships and aggregating features for detection, the problem of detection performance decline in small-sample scenarios is solved, and detection accuracy is significantly improved.

CN115019342BActive Publication Date: 2024-09-13CHONGQING UNIV OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210620546.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-13
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In the field of endangered animal target detection, the detection performance of existing technologies drops sharply in small-sample scenarios, making it difficult to effectively utilize class feature prototypes, resulting in low detection accuracy.

Method used

Using a method based on class relationship reasoning, the meta-learner and basic detector share the backbone network, and the graph convolution network is used to construct the prototype graph, transfer inter-class relationship information, aggregate class prototype and candidate area features, and perform feature adjustment and prediction.

Benefits of technology

It improves the target detection performance in small-sample scenarios, effectively alleviates the problem of detection performance declining with the reduction of samples, and significantly improves the accuracy of endangered animal detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115019342B
    Figure CN115019342B
Patent Text Reader

Abstract

The present invention relates to the field of target detection technology, and in particular to a method for detecting endangered animals based on class relationship reasoning. The method establishes a meta-learner and a basic detector; the meta-learner takes a supporting image as input, passes through a backbone network and a pooling layer, and then obtains a category prototype through a class relationship reasoning module; extracts features from a query image to obtain a feature map; predicts candidate regions where target objects may exist in the feature map through a region proposal network RPN, and samples the feature vectors of the candidate regions using ROIAlign, inputs the features of the candidate regions and the category prototype into a feature aggregation module for feature adjustment aggregation, and performs prediction of the region category and correction regression of the bounding box through a prediction module. The present invention introduces class relationship reasoning, and aggregates the category prototype and the candidate region features through an aggregation module before category judgment and bounding box regression, so as to effectively perform target detection in scenarios where endangered animal samples are scarce.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of target detection, and in particular to an endangered animal target detection method based on class relationship reasoning. Background Art

[0002] Given a set of classes, the main task of object detection is to select and mark the instance objects in the image to be detected that belong to the given class set. As one of the three basic tasks in the field of computer vision, object detection has received widespread attention from all walks of life and has been applied to many real-world applications, such as intelligent monitoring, augmented reality, and autonomous driving. With the rapid advancement of artificial intelligence technology, the success of deep learning algorithms in the field of object detection is attributed to large-scale data sets. When data is relatively scarce, convolutional networks will weaken their generalization ability due to serious overfitting problems, causing the detector's ability to reach a bottleneck. In contrast, an impressive feature of human intelligence is the ability to quickly build an understanding of new things from one or a few examples. In real life, humans can learn to recognize unseen target objects with very few images, and even children can remember a new word after seeing it once.

[0003] From the perspective of practical application, the target detection method under few-sample conditions has three important significances. First, the target detection method under few-sample conditions does not rely on large-scale training samples, thus avoiding the high cost of obtaining data in the early research preparation stage. Second, the algorithm research under few-sample conditions can shorten the large gap between human intelligence and artificial intelligence in learning ability, and is the only way for artificial intelligence algorithms to develop towards higher intelligence in the future. Third, the target detection algorithm research under few-sample conditions can achieve low-cost and fast model implementation of a new field task, and this task may have only a few available sample data, which is also helpful for the exploration of potential laws in the early stage of the task. Therefore, it is very suitable to use the target detection method under few-sample conditions in the field of endangered animal target detection, because on the one hand, it is difficult to obtain large-scale data with precise labels in this field, and on the other hand, it is also very resource-consuming to label such data.

[0004] Current research on target detection in endangered animal scenarios extracts highly generalized class feature prototypes of each class based on a small amount of data provided for each category, and uses class prototypes to provide more available information for classification and regression subtasks. How to fully mine prototypes that can highly generalize class features and how to efficiently use the extracted class prototype features have always been unresolved issues in current research. Based on this issue, the present invention proposes an endangered animal target detection method based on class relationship reasoning. Based on a two-stage target detection framework, this method fully mines and explores the relationship between classes and provides inter-class information for classification and regression subtasks.

[0005] Although some work has been done on the situation of scarce samples such as endangered animals, data scarcity is still a bottleneck that affects the generalization of detectors from scarce samples. When data becomes scarce, the detection performance of the target object deteriorates severely, and the performance of mainstream methods with 1 training sample is less than half of that with 5 or 10 training samples. How to improve the detection performance of the model in the few-sample scenario and alleviate the problem of the sharp decline in detectability as the number of samples decreases has become a major problem in the field of few-sample research.

[0006] In summary, learning to detect endangered animal targets in scenarios where data is scarce is exactly what is needed for the future development of this field. At the same time, the current target detection algorithms in endangered animal scenarios still have a lot of room for improvement in detection accuracy, and target detection in the endangered animal field is of great significance. Summary of the invention

[0007] The purpose of the present invention is to provide an endangered animal target detection method based on class relationship reasoning, which is used to improve the detection performance of the model in a small number of sample scenarios and solve the problem that the detectability of endangered animal target detection decreases sharply as the number of samples decreases.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] The present invention provides an endangered animal target detection method based on class relationship reasoning, comprising the following steps:

[0010] The method establishes a meta-learner and a basic detector, and the meta-learner and the basic detector share the same backbone network;

[0011] The meta-learner takes the support image as input, extracts features from the backbone network, and performs pooling in the pooling layer, and then obtains the category prototype through the category relationship reasoning module;

[0012] The query image is input into the backbone network to extract features and obtain a feature map. The region proposal network (RPN) is used to predict candidate regions where target objects may exist in the feature map, and ROI Align is used to sample the feature vectors of the candidate regions. The candidate region features and category prototypes are input into the feature aggregation module for feature adjustment aggregation. The prediction module of the basic detector predicts the region category and corrects the regression of the bounding box on the aggregation results.

[0013] Furthermore, the base detector adopts the FasterR-CNN detector architecture, and the meta-learner adopts the meta-learning architecture.

[0014] Furthermore, the class relationship reasoning process is as follows:

[0015] Construct a prototype graph G = {V, E, A} on the branch of the support image, where V and E are a set of nodes and edges, and A is an adjacency matrix representing the relationship between nodes; V is composed of the support features obtained by the convolutional network of the support image;

[0016] Use dynamic graph convolution to learn dynamic correlations between changing nodes;

[0017] The cosine similarity between the word vectors corresponding to each category name is calculated from the pre-trained text model. If the two word vector embeddings are similar, they show a high cosine similarity; if w i and w j Representing the word vector embedding representations of categories i and j respectively, the semantic relevance between two word categories is calculated as follows:

[0018]

[0019] Where A is an NxN matrix, s ij is the semantic relevance between i and j, the value of which is the corresponding element of the adjacency matrix i row and j column, and T is the transpose of the matrix;

[0020] By constructing a prototype graph G, all node features are aggregated to each neighborhood node using a graph convolutional network;

[0021] Use the following method to define the graph convolution process:

[0022] H (l+1) =σ(AH (l) W (l) )

[0023] Where l = 1, 2, 3, ... is the index of the number of layers in the graph convolution, H(l) represents the output of the lth layer, W(l) is the learnable matrix of the lth layer, and for the first layer, H (0) =f, σ(·) is a nonlinear activation function; A is represented as the adjacency matrix between nodes.

[0024] Residual-like structures using graph convolutions.

[0025] Furthermore, the feature aggregation is to perform feature aggregation adjustment from three different dimensions, and the aggregation method is expressed as follows:

[0026]

[0027] where [·,·,·] represents channel cascade, f qry represents the feature output of the query image; f cls Represents the class relationship reasoning module.

[0028] Furthermore, the meta-learner takes the support image as input, and after feature extraction in the backbone network and pooling in the pooling layer, it obtains the category prototype through the class relationship reasoning module. This training process includes two stages: meta-training and meta-fine-tuning.

[0029] In the meta-training phase, features are extracted through feature extractors, class relationship reasoning, and feature aggregation, using a large amount of annotated data from the base class;

[0030] In the meta-fine-tuning stage, the model is trained on the base class and the rare animal class that needs to be detected;

[0031] During the meta-fine-tuning training process, K samples are sampled for each base class and the class to be detected.

[0032] Furthermore, in the meta-training and meta-fine-tuning stages, the same loss function is used, which is defined as follows:

[0033] L=L rpn +L cls +L box +L meta

[0034] Among them, Lrpn is used to train the region proposal network to generate higher quality candidate regions, L cls is the classification loss function, L box is the box regression loss function, L meta is the meta-loss function;

[0035] Meta-loss is used to constrain and avoid fuzzy prediction after the candidate region is aggregated with the class prototype, which is defined as follows:

[0036]

[0037] in, Respectively represent the class features before graph convolution Class prototype f after graph convolution cls The predicted value and the true label value obtained; x i Represents the prediction result of the support set image.

[0038] The present invention has at least the following beneficial effects:

[0039] The present invention aims at the problem of target detection in the current scenario where endangered animal samples are scarce. It introduces class relationship reasoning, uses graph convolution to transfer relationship information between classes, guides knowledge mining from base classes, and helps learn prototypes of new categories. Predicting prototypes in this way helps detect target objects in the image that are consistent with the prototype representation. In addition, before category judgment and bounding box regression, the category prototype and candidate region features are aggregated through an aggregation module, and the aggregated features are used to help learn the classification and regression subtasks. The present invention has been proven to be very effective in target detection in the scenario where endangered animal samples are scarce. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] Figure 1 It is an overall schematic diagram of the method of the present invention;

[0042] Figure 2 Schematic diagram of the class relationship reasoning module based on graph convolution;

[0043] Figure 3 Schematic diagram of three different types of residual structures for graph convolution;

[0044] Figure 4 It is a schematic diagram of the feature aggregation module;

[0045] Figure 5 Schematic diagram of learning strategy;

[0046] Figure 6 The following is a schematic diagram for visualizing the results and comparing them. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0048] In order to solve the problem that existing scarce sample target detection methods independently predict category prototypes for each category and lack information interaction between categories, the present invention integrates category correlation into a deep neural network to guide the use of other category information to learn new category concepts.

[0049] The present invention proposes an endangered animal target detection method based on class relationship reasoning. Based on the two-stage target detection framework, it is embedded in the supporting branch, fully explores the relationship between the classes, and provides more discriminant information. This method is comprehensively compared with the mainstream method under different data, different category divisions, and different sample numbers, verifying the effectiveness of the algorithm in detecting endangered animals in sample-scarce scenarios. The method proposed in the present invention is fully experimented under multiple experimental settings to verify that the proposed network structure can achieve the expected effect. At the same time, it is compared with the most advanced methods to prove that the proposed method can effectively detect endangered animals.

[0050] 1 Overall network structure

[0051] See also Figure 1 The algorithm network architecture proposed in this paper connects a meta-learner to FasterRCNN. The meta-learner and FasterRCNN share a backbone network. This approach can effectively extract supporting class prototypes and capture inter-class relationships. The network structure is as follows Figure 1 shown.

[0052] The present invention adopts FasterR-CNN as the basic detector, which consists of a feature extractor, a region proposal network RPN and a prediction module. Generally, each target object in the image is classified and located in two stages. In the first stage, the region proposal network predicts the candidate regions where the target object may exist in the feature map obtained by the backbone network, and samples the feature vectors of the candidate regions using ROIAlign. The region proposal network can capture the target region features that are not related to the category in the image; in the second stage, the candidate regions are respectively predicted for the region category and the bounding box is corrected and regressed.

[0053] The overall method steps are:

[0054] Establishing a meta-learner and a basic detector, wherein the meta-learner and the basic detector share a backbone network;

[0055] The meta-learner takes the support image as input, extracts features from the backbone network, and performs pooling in the pooling layer, and then obtains the category prototype through the category relationship reasoning module;

[0056] The query image is input into the backbone network to extract features and obtain a feature map. The region proposal network (RPN) is used to predict candidate regions where target objects may exist in the feature map, and ROI Align is used to sample the feature vectors of the candidate regions. The candidate region features and category prototypes are input into the feature aggregation module for feature adjustment aggregation. The prediction module of the basic detector predicts the region category and corrects the regression of the bounding box on the aggregation results.

[0057] Design of 2-category relational reasoning module

[0058] When a basic detector pre-trained on sufficient samples is transferred to a situation with limited samples, its performance often drops significantly. The reason is that the lack of samples makes it difficult for the model to learn ideal feature representations.

[0059] In order to further explore the relationship between class prototype features, the present invention proposes a class relationship reasoning module based on graph convolution, so that correlation connections can be established between different categories. Specifically, a graph convolution network is designed to predict class prototypes and implicitly guide the learning process of feature representation. Each node embedded in the graph convolution will be updated according to the nodes connected to it.

[0060] Meta-learner f(·;θ) to support image For input and predict prototype To represent each class, the class prototype and the candidate region are then used for feature aggregation, where θ and C represent the parameters of the meta-learner and the number of categories.

[0061] The introduction of the class relationship reasoning module aims to predict the class prototype by considering the correlation of each endangered animal category through the graph convolutional network. The reasoning process is as follows Figure 2 As shown in the figure, the category prototypes in the proposed method are not independently predicted. In order to transfer the prototype information in the graph structure, we first construct a prototype graph G = {V, E, A} on the support branch, where V and E are a set of nodes and edges, and A is an adjacency matrix representing the relationship between nodes. The initial nodes It is defined by the meta-learner backbone network after global average pooling output features and each category label, where each node represents a different category feature and D represents the dimension of the initial feature of each node.

[0062] The semantic association matrix S between the classes corresponding to the supporting images (limited labeled ones) is used as the adjacency matrix in the graph G. In order to construct the semantic correlation between the categories, the cosine similarity between the word vectors corresponding to each category name is calculated from the pre-trained text model. If the two word vectors are embedded similarly, they show a high cosine similarity. More specifically, if w i and w j Represent the word embedding representation of category i and j respectively. The semantic correlation between two categories is calculated by formula (1). ijis the element in the correlation matrix S, and S is used as the critical matrix A in the graph convolution process. It is worth noting that in traditional graph convolution networks, the graph is determined before the training phase, and this graph structure does not change throughout the training process. However, the supporting image changes at each training iteration. In other words, the nodes in the graph keep changing during the training process. Therefore, there is no need to pre-build a static graph before class relationship reasoning, but to use dynamic graph convolution to learn the dynamic correlation between changing nodes.

[0063]

[0064] By constructing a prototype graph, the graph convolution network is used to aggregate all node features to each neighborhood node. In order to make the graph convolution process smoother, the graph convolution process is defined using the method shown in formula (2), where l = 1, 2, 3, ... is the index of the number of layers in the graph convolution, H (l) represents the output of the lth layer, W (l) is the learnable matrix of the lth layer. For the first layer, H (0) =f, σ(·) is a nonlinear activation function, and Tanh is used in the method of the present invention.

[0065] H (l+1) =σ(AH (l) W (l) ) (2)

[0066] In the process of graph convolution, some categories may contain noise information, which affects the propagation of messages. On the other hand, in order to consider the over-smoothing problem in the process of graph convolution, a residual structure of graph convolution is proposed, such as Figure 3 As shown in the figure, the effects of the three different structures will be compared through experiments. Figure 3 In the structure (c), the output of the lth layer is not directly used as the input of the next layer, but is obtained by combining it with the input of the lth layer, as shown in formula (3).

[0067]

[0068] This graphical message propagation provides additional information to predict the prototype of new categories and highly summarize each class. On the other hand, some categories may have noise information to obtain the propagation of information and eliminate the influence of noise information through the class residual structure. In addition, in order to prevent the loss of class-independent features during the aggregation process, a loss function is used to constrain the class prototype.

[0069] 3. Feature Aggregation Module Design

[0070] In the existing target detection methods with limited samples, such as FSRW and MetaRCNN, they use the output f of the class relationship reasoning module cls, by re-weighting the query feature f qry To achieve feature aggregation, as shown in formula (4), the aggregated features are used to obtain the final prediction result, where represents channel-level multiplication, f qry With f cls have the same number of channels. By using this reweighting module to jointly train the query encoder F qry and class relationship reasoning modules, which can learn to generate more meaningful reweighted vectors f cls

[0071]

[0072]

[0073] Different from the previous methods, the feature aggregation module in the method of the present invention chooses to rely on a slightly more complex aggregation scheme to perform feature aggregation adjustment from three different dimensions, such as Figure 4 As shown. In fact, feature subtraction is a different but also effective way to measure the similarity between image features. The feature representation of the image f qry Itself, also contains relevant information without any weight adjustment. Therefore, the three forms of aggregation connection query features can complement each other and use the joint form of multiple dimensions to make the predictor produce higher performance. The aggregation method is shown in formula (5), where [·,·,·] represents channel cascade, and the last part of the aggregated feature is independent of the class prototype.

[0074] 4 Learning Strategies

[0075] During the training process, the Figure 5 The learning strategy shown in the figure includes two stages: meta-training and meta-fine-tuning. In the meta-training stage, a large amount of annotated data from the base class is provided to jointly train the basic components of the detection model, such as the feature extractor, class relationship reasoning, and feature aggregation module. In the meta-fine-tuning stage, the model is trained on the base class and the new class (the rare animal category that needs to be detected). Since only K samples with bounding box annotation labels are available for the new class, in order to balance the samples of the base class and the new class, the same K samples are sampled for each base class. The training process is the same as the meta-training stage, but the number of iterations for model convergence is less.

[0076] The same loss function is used in two different training stages, defined as in formula (6), where Lrpn is proposed in FasterRCNN and is used to train the region proposal network to generate higher quality candidate regions.

[0077] L=L rpn +L cls +L box +L meta(6)

[0078] In order to avoid the fuzzy prediction after the candidate region is aggregated with the class prototype, it is proposed to use meta-loss to constrain. The meta-loss adopts a relatively simple form. The meta-loss is defined in the form of cross entropy, as shown in formula (7), where Respectively represent the class features before graph convolution Class prototype f after graph convolution cls The predicted value and the true label value are obtained. The meta-learner predicts the label information corresponding to the support image xi while predicting the prototype with the category. The meta-loss encourages each prototype to retain the discriminative information unique to each category.

[0079]

[0080] 5 Experimental results and analysis

[0081] 5.1 Dataset and Experimental Setup

[0082] Referring to the experimental settings of previous research works, three new class classification settings are used for evaluation on a dataset covering 20 target categories. In addition, in order to obtain more stable detection results, 10 random samplings are performed on scenes with different numbers of samples during the experiment. Therefore, all results in the experiment are the average of 10 random runs. In the meta-training stage, the base class data used contains a large amount of labeled data, and in the fine-tuning stage, the new class data used contains very little labeled endangered animal data.

[0083] Since the method of the present invention uses FasterRCNN as the basic detector, Meta RCNN is selected as the baseline method. During the implementation, the shorter side of the query image is adjusted to 800 pixels and the longer side is less than or equal to 1333 pixels, while maintaining a fixed aspect ratio. The support image is adjusted to a fixed size of 256×256, ResNet-101 is used as the feature extractor, ROIAlign is used as the candidate region feature extractor, and the weights of the backbone network are pre-trained on ImageNet.

[0084] After base class training, only the last fully connected layer for classification is removed and replaced by a new layer that is randomly initialized. It is worth noting that in the second fine-tuning stage, all parts of the model participate in the learning process without any freezing operation. The proposed models are trained using 4 mini-batches on a single GPU. All models are trained using the SGD optimizer with an initial learning rate of 10 -3 In the first training phase, 20 epochs were trained. After every 5 epochs, the learning rate was divided by 10. In the second phase, the learning rate was divided by 10. -3The learning rate was used for training 5 epochs, and the learning rate was 10 for the other 4 epochs. -4 .

[0085] 5.2 Comparison and analysis of experimental results

[0086] In order to verify the effectiveness of the proposed method, a verification experiment was carried out on the data set. Compared with the baseline method (Table 1), the method proposed in the present invention has achieved improved results in all category divisions and different sample numbers. This proves that the endangered animal method based on class relationship reasoning proposed in the present invention can effectively transmit inter-class information, and the aggregation module can integrate different features to model inter-class relationships.

[0087] Table 1 Comparison results with baseline methods on the dataset

[0088]

[0089] 5.3 Comparison and analysis of visualization results

[0090] In order to more intuitively demonstrate the superiority of the proposed method, the detection results of the category division on the dataset are visualized, as shown in Figure 6 As shown in the figure. In the first picture, the animal target is small and very similar to the background, so the baseline method mistakenly classifies it as the background. The proposed method uses the supporting features as a reference to adjust the sample features so that the distance between the background and the target features of the candidate area is larger, thereby obtaining better results. It can be seen that the baseline method often has problems such as category judgment errors, missing target boxes, and background being mistakenly classified as foreground targets. In contrast, the method proposed in the present invention can effectively alleviate this series of problems.

[0091] A common problem in the baseline method is that for two similar categories, when samples are scarce, the model will have uncertainty in category judgment and surround an object with two target boxes of different categories at the same time. This situation cannot be eliminated by post-processing operations such as NMS. Figure 6 As shown in (a) in the figure, by comparing the visual results, the proposed method can alleviate the problem, because the generated category prototype fully considers the relationship between different categories, and information is transferred between different categories.

[0092] 6 Conclusion

[0093] In view of the problem of target detection in the current scenario where endangered animal samples are scarce, the present invention proposes a method for endangered animal target detection based on class relationship reasoning in a few-sample scenario. The method introduces class relationship reasoning, uses graph convolution to transfer relationship information between classes, guides knowledge mining from base classes, and helps learn prototypes of new categories. Predicting prototypes in this way helps detect target objects in the image that are consistent with the prototype representation. In addition, before category judgment and bounding box regression, the category prototype and candidate region features are aggregated through an aggregation module, and the aggregated features are used to help learn the classification and regression subtasks. A large number of experiments on the data set have proved that the proposed method is very effective.

[0094] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for detecting endangered animals based on class relationship reasoning, characterized in that: The following steps are involved: The method establishes a meta-learner and a basic detector, and the meta-learner and the basic detector share the same backbone network; The meta-learner takes the support image as input, extracts features from the backbone network, and performs pooling in the pooling layer, and then obtains the category prototype through the category relationship reasoning module; The query image is input into the backbone network to extract features and obtain a feature map. The region proposal network (RPN) is used to predict the candidate regions where the target object may exist in the feature map, and the feature vectors of the candidate regions are sampled using ROI Align. The candidate region features and category prototypes are input into the feature aggregation module for feature adjustment aggregation. The prediction module of the basic detector predicts the region category and corrects the regression of the bounding box on the aggregation results. The class relationship reasoning process is as follows: Construct a prototype graph G = {V, E, A} on the branch of the support image, where V and E are a set of nodes and edges, and A is an adjacency matrix representing the relationship between nodes; V is composed of the support features obtained by the convolutional network of the support image; Use dynamic graph convolution to learn dynamic correlations between changing nodes; The cosine similarity between the word vectors corresponding to each category name is calculated from the pre-trained text model. If the two word vector embeddings are similar, they show a high cosine similarity; if w i and w j Representing the word vector embedding representations of categories i and j respectively, the semantic relevance between two word categories is calculated as follows: Where A is an NxN matrix, s ij is the semantic relevance between i and j, the value of which is the corresponding element of the adjacency matrix i row and j column, and T is the transpose of the matrix; By constructing a prototype graph G, all node features are aggregated to each neighborhood node using a graph convolutional network; Use the following method to define the graph convolution process: H (l+1) =σ(AH (l) W (l) ) Where l = 1, 2, 3, ... is the index of the number of layers in the graph convolution, H(l) represents the output of the lth layer, W(l) is the learnable matrix of the lth layer, and for the first layer, H (0) =f, σ(·) is a nonlinear activation function; A represents the adjacency matrix between nodes; Residual-like structures using graph convolutions; The feature aggregation is to perform feature aggregation adjustment from three different dimensions, and the aggregation method is as follows: where [·,·,·] represents channel cascade, f qry represents the feature output of the query image; f cls Represents the class relationship reasoning module.

2. The endangered animal target detection method based on class relationship reasoning according to claim 1 is characterized in that: The basic detector adopts the structure of FasterR-CNN detector; the meta-learner adopts the architecture of meta-learning.

3. The endangered animal target detection method based on class relationship reasoning according to claim 1 is characterized in that: The meta-learner takes the support image as input, and after feature extraction in the backbone network and pooling in the pooling layer, it obtains the category prototype through the class relationship reasoning module. This training process includes two stages: meta-training and meta-fine-tuning. In the meta-training phase, features are extracted through feature extractors, class relationship reasoning, and feature aggregation, using a large amount of annotated data from the base class; In the meta-fine-tuning stage, the model is trained on the base class and the rare animal class that needs to be detected; During the meta-fine-tuning training process, K samples are sampled for each base class and the class to be detected.

4. The endangered animal target detection method based on class relationship reasoning according to claim 3 is characterized in that: In the meta-training and meta-fine-tuning stages, the same loss function is used, which is defined as follows: L=L rpn +L cls +L box +L meta Among them, Lrpn is used to train the region proposal network to generate higher quality candidate regions, L cls is the classification loss function, L box is the box regression loss function, L meta is the meta-loss function; Meta-loss is used to constrain and avoid fuzzy prediction after the candidate region is aggregated with the class prototype, which is defined as follows: in, y i , Respectively represent the class features before graph convolution Class prototype f after graph convolution cls The predicted value and the true label value obtained; x i Represents the prediction result of the support set image.

Citation Information

Patent Citations

  • Histocyte pathology image diagnosis system based on graph neural network

    CN113674252A

  • Multi-target endangered animal tracking method based on small sample learning

    CN114283355A

  • Convolutional neural network framework using reverse connections and objectness priors for object detection

    US20200143205A1

  • Scene text detection method and system based on sequential deformation

    US20220058420A1