Unmanned aerial vehicle power grid remote sensing image classification method, equipment and medium

By improving Res2Net and transfer learning, combined with the multi-scale attention mechanism and meta-ACON activation function, the problem of difficult feature extraction in the classification of UAV power grid remote sensing images is solved, the classification accuracy and robustness are improved, and it provides smart power technical support.

CN118644739APending Publication Date: 2024-09-13HUNAN INSTITUTE OF ENGINEERING
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411102619.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing UAV power grid remote sensing image classification methods are difficult to extract deep features, and under the influence of external factors such as light, shadow, blur, etc., feature extraction is difficult, affecting the classification accuracy.

Method used

Using the multi-scale backbone network structure and dynamic multi-scale hybrid attention mechanism based on improved Res2Net, combined with meta-ACON activation function and transfer learning, the target domain network model is constructed, the convolution kernel is dynamically generated and the receptive field is adaptively adjusted to improve image classification. performance.

Benefits of technology

It improves the accuracy and robustness of UAV power grid remote sensing image classification, enhances the recognition ability of power grid remote sensing images, and provides technical support for smart power construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118644739A
    Figure CN118644739A
Patent Text Reader

Abstract

The invention relates to the technical field of remote sensing image processing, and particularly discloses an unmanned aerial vehicle power grid remote sensing image classification method and device and a medium, and the method comprises the steps: constructing a training set and a verification set based on an unmanned aerial vehicle power grid remote sensing image; constructing a multi-scale backbone network structure, and pre-training the multi-scale backbone network structure to obtain migration parameters; constructing a target domain network model, wherein the target domain network model comprises a multi-scale backbone network structure, an adaptive activation function, a multi-scale attention module and a classifier; carrying out transfer learning on the target domain network model based on the training set, the verification set and the transfer parameters to obtain an image classification model; and calling the image classification model to perform classification processing on the unmanned aerial vehicle power grid remote sensing image. Through a multi-scale backbone network structure, an adaptive activation function and a multi-scale attention module, a receptive field is adaptively adjusted, convolution kernels are dynamically generated for images of different scales, and key features of the images are extracted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of remote sensing image processing, and in particular to a method, device and medium for classifying remote sensing images of unmanned aerial vehicle power grids. Background Art

[0002] UAV power grid remote sensing classification technology can achieve high-precision positioning of power facilities, environmental monitoring, load forecasting and other functions, providing strong support for the construction of smart power. However, in actual application scenarios, external factors such as lighting, shadows, and blur will affect the quality of the image and bring difficulties to feature extraction. Therefore, how to extract more effective and representative features is of great significance for power grid remote sensing image classification.

[0003] Existing power grid remote sensing image classification mainly includes traditional remote sensing image classification methods based on manually extracted features and modern remote sensing image classification methods based on deep learning and transfer learning technology. Traditional remote sensing image classification methods can only extract shallow features of images, but cannot extract deeper features. At present, deep learning models have shown excellent classification performance in the field of computer vision by relying on their hierarchical extraction characteristics. Recently, a large number of remote sensing image classification methods use deep convolutional neural networks to design experiments. Compared with traditional manual feature extraction methods that require a lot of expert experience and domain expertise, deep convolutional neural network models extract features by stacking multiple layers. The built network model can learn the deep feature representation of the image through the back propagation algorithm. In recent years, attention mechanisms have been widely used in computer vision, such as the multi-attention transfer method based on ResNet and the hybrid attention mechanism using DenseNet to improve the accuracy of power grid remote sensing classification. For power grid remote sensing images of different scales, the multi-scale fusion attention mechanism (SKNet) dynamically generates convolution kernels to improve processing capabilities. In terms of activation functions, the meta-ACON activation function solves the "neuron death" problem of ReLU and improves classification capabilities. Transfer learning strategies such as Net2Net and methods based on MobileNetV2 and ResNet effectively improved the classification efficiency and accuracy. It can be seen that improving the network structure and training method is a method that needs to be explored to improve the classification performance of UAV power grid remote sensing images.

[0004] In summary, there is an urgent need for a UAV power grid remote sensing image classification method, equipment and medium to solve the problems in the existing technology. Summary of the invention

[0005] The purpose of the present invention is to provide a method, device and medium for classifying remote sensing images of unmanned aerial vehicle power grids. The specific technical scheme is as follows: A method for classifying UAV power grid remote sensing images comprises the following steps: Construct training and validation sets based on UAV power grid remote sensing images; Construct a multi-scale backbone network structure, pre-train the multi-scale backbone network structure, and obtain migration parameters; Constructing a target domain network model, wherein the target domain network model includes a multi-scale backbone network structure, an adaptive activation function, a multi-scale attention module and a classifier; Perform transfer learning on the target domain network model based on the training set, validation set and transfer parameters to obtain an image classification model; Call the image classification model to classify the UAV power grid remote sensing images; The multi-scale backbone network structure includes a first convolutional layer, a maximum pooling layer and a second convolutional layer arranged in sequence; The multi-scale attention module includes a third convolutional layer and a dynamic multi-scale hybrid attention mechanism arranged in sequence; The dynamic multi-scale hybrid attention mechanism includes the fourth convolution layer, grouped convolution, grouped attention fusion and the fifth convolution layer, which are arranged in sequence; The grouped convolution includes a sixth convolution layer and a seventh convolution layer arranged in parallel, and the sixth convolution layer and the seventh convolution layer are respectively connected in parallel to an eighth convolution layer; The loss function in transfer learning is the difference loss function, and the expression of the difference loss function is as follows: ; ; in, represents the difference loss function, represents the number of training samples, For the The true label of the class, For the model The predicted probability of the class, represents the difference penalty term.

[0006] Preferably, the adaptive activation function is a meta-ACON activation function.

[0007] Preferably, a maximum pooling layer is provided between the multi-scale backbone network structure and the multi-scale attention module.

[0008] Preferably, the classifier comprises a global average pooling layer and a normalized exponential function connected in sequence.

[0009] In addition, the present invention also includes a computer device, including a memory and a processor; The memory is used to store a computer program executable on the processor; The processor is used to implement the steps of the above-mentioned UAV power grid remote sensing image classification method when executing the computer program.

[0010] In addition, the present invention also includes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned UAV power grid remote sensing image classification method are implemented.

[0011] The application of the technical solution of the present invention has the following beneficial effects: In view of the problem of feature extraction difficulties and other problems existing in the classification process of UAV power grid remote sensing images, the present invention proposes a UAV power grid remote sensing image classification method based on improved Res2Net and transfer learning. First, with regard to the network structure, a multi-scale backbone network structure is proposed, and a multi-scale attention module is constructed at the same time to adaptively adjust its own receptive field, dynamically generate convolution kernels for images of different scales, and extract key image features. Secondly, the meta-ACON activation function is used instead of the ReLU activation function, and the linearity and nonlinearity of the activation function are dynamically learned to adaptively choose whether to activate neurons. Finally, the training method of transfer learning is used to further improve the efficiency and robustness of classification, improve the performance of UAV power grid remote sensing image classification, and provide strong support for the construction of smart power.

[0012] In addition to the above-described purposes, features and advantages, the present invention has other purposes, features and advantages. The present invention will be further described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0014] Figure 1 is a flowchart of the steps of the UAV power grid remote sensing image classification method in the preferred embodiment of the present invention; Figure 2 It is a model framework diagram of a power grid remote sensing image classification model in a preferred embodiment of the present invention; Figure 3 is a unit structure diagram of a dynamic multi-scale hybrid attention mechanism in a preferred embodiment of the present invention; Figure 4 is a mechanism structure diagram of a dynamic multi-scale hybrid attention mechanism in a preferred embodiment of the present invention; Figure 5 is a sample picture of a power grid remote sensing picture in a preferred embodiment of the present invention; Figure 6 is a sample diagram of an AID data set in a preferred embodiment of the present invention; Figure 7 is a training set error curve diagram of four activation functions in a preferred embodiment of the present invention; Figure 8 is a comparison chart of training accuracy and loss curves of different training methods in a preferred embodiment of the present invention; Fig. 9 is a confusion matrix diagram of a validation set of a power grid remote sensing image in a preferred embodiment of the present invention; Fig.10 is a visualization comparison diagram of different methods on a power grid remote sensing data set in a preferred embodiment of the present invention; Fig.11 It is a visual comparison diagram of different methods on the AID data set in the preferred embodiment of the present invention. DETAILED DESCRIPTION

[0015] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0016] like Figure 1 As shown, this embodiment discloses a method for classifying UAV power grid remote sensing images, specifically a method for classifying UAV power grid remote sensing images based on improved Res2Net and transfer learning. The method of this embodiment includes the following steps: S1: Construct training and validation sets based on UAV power grid remote sensing images; S2: Construct a multi-scale backbone network structure, pre-train the multi-scale backbone network structure, and obtain migration parameters; S3: constructing a target domain network model, wherein the target domain network model includes a multi-scale backbone network structure, an adaptive activation function, a multi-scale attention module and a classifier; S4: Perform transfer learning on the target domain network model based on the training set, validation set and transfer parameters to obtain an image classification model; S5: Call the image classification model to classify the UAV power grid remote sensing image.

[0017] It should be noted that the multi-scale backbone network structure in this embodiment is a Res2Net module.

[0018] In this embodiment, the adaptive activation function is a meta-ACON activation function, which is expressed as follows: ; in, represents the connection coefficient, represents the meta-ACON activation function, when When it approaches infinity, the activation function value is tends to the maximum value when When it approaches zero, we have tends to the mean, Represents the input of the neural network. This embodiment uses the meta-ACON activation function to replace the commonly used ReLU activation function. Compared with the ReLU activation function, meta-ACON has stronger nonlinear ability and can reduce the sparsity of ReLU.

[0019] In this embodiment, the present invention studies the problem of power grid remote sensing image classification based on the Res2Net50 model and proposes a new power grid remote sensing image classification model. The improved model block diagram is shown in FIG. Figure 2 As shown, the target domain network model and the image classification model in this embodiment both adopt the framework of the power grid remote sensing image classification model. Stage represents a large module inside the model, which is composed of multiple basic units.

[0020] In this embodiment, the multi-scale backbone network structure includes a first convolutional layer, a maximum pooling layer, and a second convolutional layer arranged in sequence, and the activation function of the Res2Net module is a ReLU activation function.

[0021] In this embodiment, the multi-scale attention module includes a third convolutional layer and a dynamic multi-scale hybrid attention mechanism arranged in sequence. The dynamic multi-scale hybrid attention mechanism in this embodiment is specifically improved by using the SK unit in the SKNet network so that the neuron automatically adjusts its receptive field size. This embodiment uses two convolution kernels of different sizes to produce different effects on targets of different scales. The improvement of the SK unit in this embodiment further improves the ability to dynamically generate convolution kernels to extract features.

[0022] like Figure 3As shown, F(x) represents the residual connection, and the dynamic multi-scale hybrid attention mechanism includes a fourth convolutional layer, a grouped convolution, a grouped attention fusion, and a fifth convolutional layer arranged in sequence; the grouped convolution includes a sixth convolutional layer and a seventh convolutional layer arranged in parallel, and the sixth convolutional layer and the seventh convolutional layer are respectively connected in parallel to an eighth convolutional layer. In this embodiment, meta-ACON has a stronger nonlinear ability, which will lead to more feature redundancy in the feature map. Therefore, this implementation uses grouped convolution to reduce some feature redundancy. Although grouped convolution can reduce some redundancy, this situation will cause the loss of fine-grained information of the power grid remote sensing image features. Therefore, in order to compensate for this part of the information loss and establish the relationship between the channels, the convolution and the grouped convolution are connected in parallel, which is called a dynamic grouped attention unit in the present invention.

[0023] In a more specific embodiment, the first convolutional layer is a Convolutional layer, the maximum pooling layer is a The maximum pooling layer, the second convolutional layer is two sequentially arranged Convolution layer, the third convolution layer is a Convolution layer, the fourth convolution layer, the fifth convolution layer and the eighth convolution layer are all one Convolutional layer, the sixth convolutional layer is a Convolutional layer, the seventh convolutional layer is a Convolutional layer.

[0024] In this embodiment, there is also a Max pooling layer.

[0025] In general, the dynamic multi-scale hybrid attention mechanism is implemented by three operations, namely segmentation, fusion and selection, as Figure 4 As shown, represents the input of the dynamic multi-scale hybrid attention mechanism, and represents two grouped inputs of grouped convolution, Represents the output of the dynamic multi-scale hybrid attention mechanism. Multi-scale fusion attention can adaptively select appropriate weights to process features of different scales, improving the model's learning and expression capabilities for fine-grained and multi-scale information. Among them, multi-scale fusion attention first extracts features of multiple scales from the input data, which can be generated by convolution kernels of different sizes or at network layers of different depths. Then, these features are weighted by the attention mechanism, so that the model can automatically determine the importance of features of different scales. Finally, these weighted multi-scale features are fused together to form a comprehensive feature representation.

[0026] Preferably, the classifier comprises sequentially connected Global average pooling layer and normalized exponential function. The normalized exponential function is a softmax function, which is a conventional technology in the art and will not be described in detail here.

[0027] It should be noted that the group attention includes the fusion function , used to fuse labels of different scales, the expression of the fusion function is as follows: ; ; in, and Represents different scale features, represents the features obtained after fusion, represents the fully connected layer, Represents the features after the fully connected layer.

[0028] Preferably, the expression of the difference loss function is as follows: ; ; in, represents the difference loss function, represents the number of training samples, For the The true label of the class, For the model The predicted probability of the class, Represents a difference penalty term. The difference loss function in this embodiment specifically adds a difference penalty term to the cross entropy loss function to increase the loss optimization of misclassified images, enhance the model's recognition ability for power grid remote sensing images, and improve the model's focusing ability by creating a connection between two classes in the loss function.

[0029] Preferably, the process of obtaining migration parameters and performing migration learning includes a source domain training stage, a parameter migration stage, and a parameter fine-tuning stage: Source domain training phase: The AID dataset is used to train the multi-scale backbone network structure (pre-training), so that the parameters of the multi-scale backbone network structure are continuously optimized through training until the classification effect of the multi-scale backbone network structure reaches the optimal level, and the migration parameters are obtained; Parameter migration phase: Migrate the migration parameters to the target domain network model and initialize the parameters of the target domain network model; Parameter fine-tuning stage: The power grid remote sensing dataset is used to fine-tune the parameters of the target domain network model to obtain an image classification model; In the parameter fine-tuning stage, the feature extraction part of the target domain network model is first frozen, and the classification part is trained with the data in the power grid remote sensing dataset until the accuracy and loss function of the training set and the validation set basically converge; then the front-end network of the feature extraction part is frozen, and the unfrozen network layer is trained with the data in the power grid remote sensing dataset, finally achieving model convergence and completing parameter fine-tuning.

[0030] It should be noted that this embodiment also includes model testing after transfer learning. In transfer learning, by setting the initial learning rate, weight decay, batch size, and number of training rounds, the learning rate is appropriately adjusted according to the verification loss, and the best training model is obtained according to the verification loss. In the model test, the performance of the trained model is tested using the test set data, and the comprehensive performance is better than other algorithms, and the algorithm convergence speed is accelerated.

[0031] The following is a simulation experiment analysis of the method of the present invention: 1. Simulation experiment analysis To verify the effectiveness of the algorithm of the present invention, in this simulation experiment, the training and testing processes of the model of the algorithm of the present invention and other models are carried out under the Microsoft Windows 11 operating system, the CPU model is 13th GenIntel (R) Core (TM) i9-13900KF, the GPU model is GeForce RTX 4090, and the GPU available video memory is 24G.

[0032] 1.1 Hyperparameter settings and evaluation indicators In order to compare the performance of different models, the hyperparameters during model training were set. By analyzing the training process and classification results, it was found that the factors affecting the classification performance of the algorithm mainly include learning rate, gradient optimization algorithm and loss function, and the hyperparameter settings are shown in Table 1.

[0033] Table 1 Hyperparameter settings

[0034] In the image classification task, evaluation indicators include accuracy, precision, recall, F1 score and confusion matrix during training, and the accuracy and loss curve of the model in the test set can be used to measure the classification performance of the model. The calculation formula is: ; ; ; ; Among them, Acc represents accuracy, that is, the ratio of the number of samples correctly judged as positive examples to all samples; Precision represents accuracy, that is, the ratio of the number of detected positive examples that are truly positive examples to all detected positive examples; Recall represents recall, that is, the ratio of all samples judged as positive examples to all positive examples; F1 value represents the harmonic mean of Precision and Recall; TP represents the number of accurate positive predictions; TN represents the number of accurate negative predictions; FP represents the number of negative prediction errors; FN represents the number of positive prediction errors.

[0035] 1.2 Dataset The power grid remote sensing dataset is a small dataset for identifying power grid remote sensing. The dataset contains 1,500 RGB color images of 4 categories (power towers, thermal power plant chimneys, photovoltaic panels, and power plant oil tanks). Figure 5 shown.

[0036] In this simulation experiment, the initial sample set was expanded using data enhancement techniques such as rotation, translation, Gaussian blur and contrast transformation in the digital image processing algorithm. The expanded images blurred the remote sensing images of the power grid under different weather conditions, shooting angles, relative positions, and light intensities. Using the expanded data to train the convolutional neural network can effectively prevent overfitting and improve the anti-interference performance of the model under complex conditions. The AID dataset is a large-scale dataset for remote sensing image scene classification. It consists of 30 scene types such as airports, bare land, baseball fields, beaches, bridges, centers, churches, businesses, densely populated residential areas, deserts, and farmlands. All images are annotated by remote sensing image experts. The AID dataset has a total of 10,000 images. Some samples of each category are as follows: Figure 6 shown.

[0037] 1.3 Quantitative analysis 1.3.1 Classification Performance Comparison In order to verify the effectiveness of the algorithm of the present invention, the performance of the algorithm of the present invention is compared with several other representative image classification algorithms, and the experimental results are analyzed by classification accuracy, precision, recall rate and F1 score. Table 2 and Table 3 show the quantitative experimental results of different algorithms on the power grid remote sensing dataset and AID dataset, respectively, in which the best results are displayed in bold. Observing the results in Table 2 and Table 3, it can be found that the algorithm proposed in the present invention has achieved the best classification accuracy in both the power grid remote sensing dataset and the AID dataset, exceeding the suboptimal results by 1.2% and 1% respectively; the training accuracy exceeds the suboptimal model by 0.99% and 0.38% respectively; the recall rate exceeds the suboptimal result by 1.13% and 0.89% respectively; the F1 score leads the suboptimal model by 1.03% and 1.99%. The classification effect has been improved to a certain extent, verifying the effectiveness of the algorithm proposed in the present invention in the classification of power grid remote sensing images.

[0038] Table 2 Comparison of experimental results of different algorithms on power grid remote sensing dataset

[0039] Table 3 Comparison of experimental results of different algorithms on AID dataset

[0040] 1.3.2 Comparative Experiments on Different Activation Functions In order to verify the influence of different activation functions on the algorithm proposed in the present invention, the present invention conducted a comparative experiment on the verification set. Figure 7 The error curves of the training set obtained by the four activation functions in the power grid remote sensing data set and the AID data set. It can be seen from the figure that the meta-ACON activation function has the smallest error rate, and the loss function convergence curve is more stable after it decreases. In the first 10 iterations, the loss curves of all activation functions are not much different, but as the number of iterations increases, the training set loss value gradually decreases to the minimum and tends to be stable. Therefore, the meta-ACON function has a smaller error value, more stable training performance, and has a higher relative accuracy in power grid remote sensing image classification. 1.3.3 Comparative Experiments on Different Training Methods In order to verify the effectiveness of the improved training method of the present invention, a comparison experiment was conducted on the validation set. The network designed by the present invention adopts the transfer learning training method during training. Unlike the previous method of training the network from scratch, this training method gets rid of the time-consuming problem caused by the large number of parameters during deep learning training, can shorten the network convergence time, and improve the training efficiency. Figure 8 The training accuracy and loss curves are shown in Figure 2. The accuracy of the training method using transfer learning in the present invention reaches about 98% when the training converges, and the accuracy of the training method using deep learning reaches about 95% when the training converges. Figure 8It can be seen that in the first 20 iterations, the effects of transfer learning and deep learning are not much different, but as the number of iterations increases, through transfer learning, the method of the present invention can fine-tune the model parameters according to the data of the target task, so that the model can adapt to the characteristic distribution of the target task. When the training converges, the loss drops to about 0.05, and when the deep learning method is used, the loss drops to about 0.1 when the training converges. This shows that transfer learning can train a model with good generalization ability.

[0041] 1.3.4 Ablation Experiment In order to verify the effectiveness of the algorithm proposed in the present invention for power grid remote sensing classification, it is necessary to conduct an ablation experiment on the model. In the experiment, Res2Net50, dynamic multi-scale fusion attention and difference loss function were used for training on the power grid remote sensing dataset and AID dataset, and the accuracy and training parameter quantity were used as evaluation indicators. The results are shown in Table 4. It can be seen from Table 4 that several parts of the method of the present invention contribute to the final result. Adding dynamic multi-scale fusion attention to the basic model can increase the accuracy by 0.34% and 0.09% respectively, and using the difference loss function on the basic model can increase the accuracy by 0.84% ​​and 0.44% respectively. Adding dynamic multi-scale fusion attention and using the difference loss function on the basic model can increase the accuracy by 1.13% and 0.6% respectively. This also proves the necessity of each part in the improved network structure of the present invention.

[0042] Table 4 Ablation experiments of the proposed algorithm on power grid remote sensing dataset and AID dataset

[0043] 1.4 Qualitative analysis 1.4.1 Confusion Matrix Analysis In order to further verify the classification performance of the proposed model on the power grid remote sensing dataset and the AID dataset, four different categories were compared on the power grid remote sensing dataset and 15 different scene images were selected on the AID dataset for comparison. The results are shown in Figure 2. Fig. 9 As shown in the figure, the capital letters on the horizontal and vertical axes represent different categories of power grid remote sensing images. From the confusion matrix, it can be seen that the method of the present invention has a good recognition effect on the categories of power towers, thermal power plant chimneys, photovoltaic panels and power plant oil tanks, with only a few misidentification phenomena. The method of the present invention overcomes background noise and achieves a high recognition accuracy rate on multiple types of remote sensing images, with only a few misidentification phenomena, which verifies the effectiveness of the algorithm of the present invention.

[0044] 1.4.2 Visual Analysis In order to more intuitively verify the effectiveness of the algorithm proposed in this invention for power grid remote sensing image classification, this invention selects images of power grid remote sensing dataset and AID dataset to correspond to the feature map of convolution layer in spatial position, and visualizes the model convolution result in the form of CAM heat map. Fig.10 As shown, the higher the temperature, the more attention the model pays. Taking the image of the power grid remote sensing dataset as an example, the traditional CNN network feature activation area is large, resulting in some irrelevant background information in the image interfering with subsequent classification. However, the model after attention used in the present invention is more accurate in identifying the discriminative area of ​​power grid remote sensing, does not pay too much attention to background information, reduces background noise interference, and has a stronger representation ability of the model. Fig.11 For images in the AID dataset, the method of the present invention can also more accurately identify more discriminative features compared to traditional CNN.

[0045] The present invention proposes an image classification algorithm based on improved Res2Net and transfer learning. In terms of feature extraction network design, a new dynamic multi-scale fusion attention mechanism is proposed. On the basis of Res2Net, the attention mechanism is introduced to dynamically generate convolution kernels to improve the image fine-grained feature information expression ability and strengthen the extraction of key features of the image; the ReLU activation function is optimized by the meta-ACON activation function, and the linearity and nonlinearity of the activation function are dynamically learned to improve the nonlinear expression ability of the model. Secondly, in terms of training methods, the present invention adopts a network training method based on model migration, which can transfer the knowledge learned from the source domain to the target domain, assist in the optimization of target domain tasks, and alleviate the problem of insufficient data samples on small data sets. Through experiments on power grid remote sensing data sets and AID data sets, the test accuracy of the algorithm proposed in the present invention reached 98.32% and 97.14% respectively, which achieved better results than other algorithms.

[0046] In addition, this embodiment also discloses a computer device, including a memory and a processor; The memory is used to store a computer program executable on the processor; The processor is used to implement the steps of the above-mentioned UAV power grid remote sensing image classification method when executing the computer program.

[0047] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the computer device.

[0048] The computer device may be a computing device such as a mobile phone, a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may include, but is not limited to, a processor and a memory. For example, the computer device may also include an input / output device, a network access device, a bus, etc.

[0049] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

[0050] The memory can be used to store the computer program and / or module, and the processor implements the computer program by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0051] Wherein, if the module / unit integrated in the computer device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0052] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned UAV power grid remote sensing image classification method are implemented.

[0053] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0054] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A UAV power grid remote sensing image classification method, characterized in that: The steps include: Construct training and validation sets based on UAV power grid remote sensing images; Construct a multi-scale backbone network structure, pre-train the multi-scale backbone network structure, and obtain migration parameters; Constructing a target domain network model, wherein the target domain network model includes a multi-scale backbone network structure, an adaptive activation function, a multi-scale attention module and a classifier; Perform transfer learning on the target domain network model based on the training set, validation set and transfer parameters to obtain an image classification model; Call the image classification model to classify the UAV power grid remote sensing images; The multi-scale backbone network structure includes a first convolutional layer, a maximum pooling layer and a second convolutional layer arranged in sequence; The multi-scale attention module includes a third convolutional layer and a dynamic multi-scale hybrid attention mechanism arranged in sequence; The dynamic multi-scale hybrid attention mechanism includes the fourth convolution layer, grouped convolution, grouped attention fusion and the fifth convolution layer, which are arranged in sequence; The grouped convolution includes a sixth convolution layer and a seventh convolution layer arranged in parallel, and the sixth convolution layer and the seventh convolution layer are respectively connected in parallel to an eighth convolution layer; The loss function in transfer learning is the difference loss function, and the expression of the difference loss function is as follows: ; ; in, represents the difference loss function, represents the number of training samples, For the The true label of the class, For the model The predicted probability of the class, represents the difference penalty term.

2. The UAV power grid remote sensing image classification method according to claim 1 is characterized in that: The adaptive activation function is a meta-ACON activation function.

3. The UAV power grid remote sensing image classification method according to claim 2 is characterized in that: A maximum pooling layer is provided between the multi-scale backbone network structure and the multi-scale attention module.

4. The UAV power grid remote sensing image classification method according to claim 3 is characterized in that: The classifier includes a global average pooling layer and a normalized exponential function connected in sequence.

5. A computer device, characterized in that: including memory and processor; The memory is used to store a computer program executable on the processor; The processor is used to implement the steps of the UAV power grid remote sensing image classification method as described in any one of claims 1 to 4 when executing the computer program.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the UAV power grid remote sensing image classification method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Remote sensing image scene classification method based on multi-scale depth feature fusion and transfer learning

    CN110555446A

  • Retina OCT image classification method and system based on multi-scale residual network, computer equipment and storage medium

    CN115512153A

  • Small sample target detection system and detection method based on transfer learning

    CN116452888A

  • Alzheimer disease classification method based on transfer learning

    CN116746882A

  • Accurate crop classification of sky-ground integrated large-scene hyperspectral remote sensing image

    CN117611908A