Remote sensing cross-scene classification method and device based on attention alignment distribution adaptation

Through the attention-based dynamic alignment distribution adaptive method, the edges and conditional distributions of the remote sensing source domain and target domain are aligned, which solves the problem of data distribution differences in remote sensing cross-domain scene classification and improves classification accuracy and model generalization ability.

CN114202697BActive Publication Date: 2024-09-06CHINA UNIV OF GEOSCIENCES (WUHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111534409.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-09-06
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively align the data distribution of the source domain and the target domain, resulting in low remote sensing cross-domain scene classification accuracy and poor model generalization ability.

Method used

The attention-based dynamic alignment distribution adaptive method is used to project the source domain and target domain data into the regenerative kernel Hilbert space to align the edge distribution, and align the conditional distribution through the initial adaptive module to dynamically adjust the edge distribution and conditional distribution. The relative importance of spatial and spectral information is mined using the ternary attention mechanism.

Benefits of technology

It improves the generalization performance and classification accuracy of the model, achieves perfect alignment of source domain and target domain data distribution, and improves the accuracy of high-resolution remote sensing cross-domain scene classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114202697B
    Figure CN114202697B
Patent Text Reader

Abstract

The present invention provides a remote sensing cross-scene classification method and device based on attention alignment distribution adaptation, wherein the method comprises: reading a source domain high-resolution remote sensing image into a matrix one; reading a target domain high-resolution remote sensing image into a matrix two; preprocessing the two matrices; inputting the two preprocessed matrices into an attention-based dynamic alignment residual network model respectively to obtain features after edge distribution alignment; inputting the aforementioned features into an initial adaptive module respectively to obtain features after conditional distribution alignment; inputting the features after conditional distribution alignment into a classifier to obtain a prediction result X s and X t , and use the prediction results to calculate the classifier loss #imgabs0# maximum mean difference loss #imgabs1# conditional maximum mean difference loss #imgabs2# calculate the dynamic balance factor α, find the joint loss #imgabs3# and perform backpropagation to update the dynamic alignment residual network model parameters; use the trained dynamic alignment residual network model to test the target domain data to obtain more accurate classification results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of high-resolution remote sensing image processing, and in particular relates to a remote sensing cross-scene classification method and device based on attention alignment distribution adaptation. Background Art

[0002] High-resolution remote sensing images not only have rich spectral, shape and texture features, but also contain clear scene semantic information. Therefore, "scene classification" is an important way to understand remote sensing image information. It is of great significance for the interpretation of images and the understanding of the real world, and is also one of the hot topics in the field of remote sensing research.

[0003] Scene classification refers to understanding the scene contained in a remote sensing image and labeling the image as a specific semantic category [1]. Semantic categories are high-level knowledge abstractions and generalizations of scene content, which are pre-defined by humans. Based on this, remote sensing scene classification methods have been widely studied in many real-world applications, such as urban planning, natural disaster detection, and geospatial target detection. How to quickly and accurately extract semantic information from remote sensing images is a difficult problem in remote sensing scene classification.

[0004] Driven by the update of remote sensing imaging technology, remote sensing scene classification has gained great development opportunities, especially promoting the widespread application of deep learning in remote sensing scene classification. Existing supervised deep learning methods are trained on a large amount of labeled data and tested on data with the same or similar distribution, which significantly improves the accuracy of scene classification. However, obtaining a large amount of labeled training data can be a time-consuming and expensive task for remote sensing scene classification, and the generalization ability of the model is poor. Therefore, in order to alleviate the lack of high-quality labeled data and weak generalization ability of the model, domain adaptation [2] was proposed. This is a transfer learning method that solves these two problems by aligning the distribution of label-rich data (source domain) and the distribution of label-sparse data (target domain). The difference in the distribution of source and target domain data is one of the most important issues affecting the accuracy of remote sensing cross-domain scene classification [3]. How to effectively align the data distribution of the source and target domains and fully mine the semantic information of high-resolution remote sensing images is a difficult problem that needs to be solved in remote sensing cross-domain scene classification.

[0005] In order to solve the problem of high-resolution remote sensing cross-domain scene classification, domestic and foreign scholars have proposed many methods, including the discriminative cross-view subspace alignment algorithm [4], domain adaptation network [5], related subspace dynamic distribution alignment algorithm [6], and attention-based multi-scale residual adaptation network [7]. Among them, the discriminative cross-view subspace alignment algorithm minimizes the Bregman matrix divergence between the source domain subspace and the target domain subspace to align the source domain and target domain data distribution. The domain adaptation network minimizes the edge distribution difference and proposes a mini-batch gradient-based optimization and dynamic sample size to reduce the conditional distribution difference. The related subspace dynamic distribution alignment algorithm avoids mapping the source domain data to irrelevant subspaces and balances the inter-class and intra-class distributions between domains. The attention-based multi-scale residual adaptation network uses the attention mechanism and multi-scale strategy to consider the relative importance of the marginal distribution and conditional distribution, and obtains significant accuracy improvement. Although remote sensing cross-domain scene classification algorithms have been widely studied, researchers usually use the maximum mean difference loss to align the marginal distribution, while ignoring the improvement of the network and not dynamically balancing the relative relationship between the marginal distribution and the conditional distribution.

[0006] Domain adaptation algorithm is a method to reduce the difference in data distribution between source domain and target domain, thereby improving the classification accuracy and generalization performance of the model. Domain adaptation methods have been deeply studied in computer vision fields such as face recognition and pedestrian reclassification. For high-resolution remote sensing cross-scene classification, there are large differences in the marginal distribution and conditional distribution of the source domain and target data, and the relative importance of the conditional distribution and marginal distribution is a factor that cannot be ignored. This makes it difficult for the distribution of the source domain and target data to be perfectly aligned, resulting in poor generalization ability of the model.

[0007] The following references are involved:

[0008] [1] G.Cheng,

[0009] [2]J.Wang,Y.Chen,W.Feng,H.Yu,M.Huang,and Q.Yang,“Transfer learningwith dynamic distribution adaptation,”ACMTransactions on Intelligent Systemsand Technology(TIST),vol.11,no.1,pp.1-25,2020.

[0010] [3]C.Yu,J.Wang,Y.Chen,and M.Huang,“Transfer learning with dynamicadversarial adaptation network,”in 2019 IEEE International Conference on DataMining(ICDM),2019,pp.778-786:IEEE.

[0011] [4]H.Sun,S.Liu,S.Zhou,and H.Zou,“Unsupervised cross-view semantictransfer for remote sensing image classification,”IEEE Geoscience and RemoteSensing Letters,vol.13,no.1,pp.13-17,Nov.2015.

[0012] [5]E.Othman,Y.Bazi,F.Melgani,H.Alhichri,N.Alajlan,and M.Zuair,“Domainadaptation network for cross-scene classification,”IEEE Transactions onGeoscience and Remote Sensing,vol.55,no.8,pp.4441-4456,May.2017.

[0013] [6] J.Zhang, J.Liu, B.Pan, and Z.Shi, "Domain adaptation based on correlation subspace dynamic distribution alignment for remote sensing imagescene classification," IEEE Transactions on Geoscience andRemote Sensing, vol.58, no.11, pp.7920-7930, Apr.2020.

[0014] [7] S. Zhu, B. Du, L. Zhang, and X. Li, "Attention-Based Multiscale ResidualAdaptation Network for Cross-Scene Classification," IEEE Transactions on Geoscience and Remote Sensing, Mar. 2021. https: / / doi.org / 10.1109 / TGRS.2021.3056624 . Summary of the invention

[0015] In view of the shortcomings of the prior art that the source domain and the target domain cannot be effectively aligned and the classification accuracy is not high, the present invention provides a remote sensing cross-domain scene classification method with dynamic alignment distribution adaptation based on attention.

[0016] The present invention adopts the following technical solution:

[0017] A remote sensing cross-domain scene classification method based on attention-based dynamic alignment distribution adaptation. This method reads the source domain high-resolution remote sensing image into a N-th order image. s ×H s ×W s ×C s The matrix In the process, the high-resolution remote sensing image of the target domain is read into a t ×H t ×W t ×C t The matrix Among them, C s and C t are the band numbers of the remote sensing images in the source domain and the target domain, respectively, s ×W s and H t ×W t are the number of pixels of the remote sensing images in the source domain and the target domain, respectively,s and N t are the total number of samples in the source domain and the target domain respectively;

[0018] Based on the first matrix and the second matrix Do the following:

[0019] Step 1, Resample, randomly crop and horizontally flip operations are performed on Perform resampling operation;

[0020] Step 2: and They are respectively input into the attention-based dynamic alignment residual network model to obtain the first feature A after edge distribution alignment. s and the second feature A t ;

[0021] Step 3: A s and A t Input them into the initial adaptive module respectively to obtain the third feature I after conditional distribution alignment s and the fourth feature I t ;

[0022] Step 4: I s and I t Input into the classifier and obtain the first prediction result X s and the second prediction result X t , and use the prediction results to calculate the classifier loss Maximum mean difference loss Conditional Maximum Mean Difference Loss

[0023] Step 5: Calculate the dynamic balance factor α based on the maximum mean difference loss and conditional maximum mean difference loss in step 4 to find the joint loss And perform backpropagation to update the dynamic alignment residual network model parameters.

[0024] Step 6: Use the dynamic alignment residual network model trained in step 5 to test the target domain data to obtain the classification results of the attention-based dynamic alignment distribution adaptation algorithm.

[0025] Furthermore, step 4 is specifically as follows:

[0026] Using formula and The cross entropy loss, maximum mean difference loss and conditional maximum mean difference loss are calculated respectively, where CE(·) is the cross entropy loss, is the label of the source domain, φ(·) represents the entire model mapping, Represents the total number of categories, and represent the i-th sample in the source domain and the target domain respectively, and represents the i-th sample of the c-th category in the source domain and the target domain respectively, represents the reproducing kernel Hilbert space.

[0027] Furthermore, step 5 is specifically as follows:

[0028] Using formula Calculate the dynamic balance factor of the marginal distribution and the conditional distribution, where r is the four branches in the initial adaptive module;

[0029] Then, the joint loss is obtained based on the dynamic balance factor, the classifier loss, the maximum mean difference loss and the conditional maximum mean difference loss. Specifically, the formula is obtained:

[0030]

[0031] is the joint loss function of the network model, where L is the joint loss value and λ is a non-negative trade-off parameter.

[0032] According to another aspect of the present invention, a remote sensing cross-scene classification device based on attention alignment distribution adaptation is also disclosed. The remote sensing cross-domain scene classification device includes a memory, a processor, and a remote sensing cross-domain scene classification program stored in the memory and executable on the processor. When the remote sensing cross-domain scene classification program is executed by the processor, the steps of a remote sensing cross-scene classification device based on attention alignment distribution adaptation as described in any of the preceding items are implemented.

[0033] In the present invention, the remote sensing cross-scene classification method based on attention-based dynamic alignment distribution adaptation takes into account the impact of each sample in the source domain and the target domain on the network, and then uses the ternary attention mechanism to fully mine the information between space and space, and between space and spectrum. Finally, by dynamically adjusting the relative importance between the marginal distribution and the conditional distribution, the distribution of samples in the source domain and the target domain is aligned as much as possible, thereby achieving improved model generalization performance and improved model classification accuracy.

[0034] Compared with the prior art, the present invention has the following specific and significant effects:

[0035] 1. Attention-based dynamic alignment projects the source and target domain data with very different data distributions into the reproducing kernel Hilbert space, in which the marginal distributions of the source and target domain data are aligned.

[0036] 2. Based on the initial adaptive module, the conditional distributions of the source and target domains are aligned in the same reproducing kernel Hilbert space.

[0037] 3. Based on distribution adaptation, the dynamic balance factor of marginal distribution and conditional distribution is obtained, and different weight values ​​are assigned to marginal distribution and conditional distribution to reflect the relative importance of marginal distribution and conditional distribution to the alignment of source domain and target domain data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a specific flow chart of the attention-based dynamic alignment distribution adaptive remote sensing cross-scene classification method in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] Various exemplary embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present invention.

[0040] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.

[0041] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.

[0042] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0043] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.

[0044] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0045] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0046] Embodiment 1, Figure 1This is a specific flow chart of the remote sensing cross-scene classification method based on attention-based dynamic alignment distribution adaptation. This specific implementation method is implemented in Python programming language (specifically using Pytorch deep learning library), and Python remote sensing image reading and writing functions are the implementation basis. Write a remote sensing image reading function, input the remote sensing image file name to be read, read the source domain high-resolution remote sensing image into a file of size N s ×H s ×W s ×C s The matrix X s In the process, the high-resolution remote sensing image of the target domain is read into a t ×H t ×W t ×C t The matrix X t In, C s and C t are the band numbers of the remote sensing images in the source domain and the target domain, respectively, s ×W s and H t ×W t are the number of pixels of the remote sensing images in the source domain and the target domain, respectively, s and N t are the total number of samples in the source domain and the target domain, respectively.

[0047] Matrix-based and To classify the source domain and target domain data, the following steps are respectively and To do this:

[0048] (1) Yes Resample, randomly crop and horizontally flip operations are performed on Perform resampling operation;

[0049] (2) According to the result obtained in step (1), the pre-processed and Input them into the attention-based dynamic alignment residual network model respectively to calculate the feature A after edge distribution alignment s and A t , the unified calculation formula is as follows:

[0050]

[0051] In formula (1), z is the feature obtained by the dynamic alignment module, represents the feature obtained by rotating z along the spatial height axis and the spatial width axis, m = 1, 2, is the maximum pooling and mean pooling along the zeroth dimension and aggregation, ψ nis a convolutional neural map of three branches, i = 1, 2, 3, σ represents the sigmoid function, Represents a 90 degree rotation in the clockwise direction.

[0052] (3) According to the result obtained in step (2), A s and A t Input them into the initial adaptive module respectively to obtain the feature I after conditional distribution alignment s and I t ;

[0053] (4) According to the result obtained in step (3), I s and I t Input into the classifier and obtain the prediction result X s and X t , and use the prediction results to calculate the classifier loss Maximum mean difference loss Conditional Maximum Mean Difference Loss The loss calculation formula is as follows:

[0054]

[0055]

[0056]

[0057] In formula (2), (3), and (4), CE(·) is the cross entropy loss, is the label of the source domain, φ(·) represents the entire model mapping, Represents the total number of categories, and represent the i-th sample in the source domain and the target domain respectively, and represents the i-th sample of the c-th category in the source domain and the target domain respectively, represents the reproducing kernel Hilbert space.

[0058] (5) Calculate the dynamic balance factor α based on the maximum mean difference loss and the conditional maximum mean difference loss in step 5;

[0059] The joint loss is obtained based on the dynamic balance factor, the classifier loss, the maximum mean difference loss and the conditional maximum mean difference loss to obtain the joint loss. And perform back propagation to update the dynamic alignment residual network model parameters. The calculation formula is as follows:

[0060]

[0061]

[0062] In formula (5) and (6), r represents the four branches in the initial adaptive module, and λ is a non-negative trade-off parameter.

[0063] (6) The trained dynamic alignment residual network model is used to test the target domain data to obtain the classification results of the attention-based dynamic alignment distribution adaptation algorithm.

[0064] The beneficial effects of the present invention are verified by comparative experiments below.

[0065] Since there is no benchmark dataset for cross-domain scene classification, the three existing scene classification datasets are combined into a cross-domain scene classification dataset, which is described in detail as follows.

[0066] (1) UC-Merced dataset: The UCM-Merced (UCM) dataset contains 21 land use scene classes, consisting of aerial orthophotos with a pixel resolution of 0.3 m, available in 2010. Each class consists of 100 images of 256 × 256 pixels.

[0067] (2) Aerial Image Dataset: The large-scale Aerial Image Dataset (AID) was constructed in 2017 and consists of 30 aerial scene categories, each with approximately 220 to 420 images of 600×600 pixel size.

[0068] (3) NWPU-RESISC45 dataset: The NWPU-RESISC45 (NWPU) dataset became available in 2017 and contains 45 scene categories, each containing 700 images of pixel size 256 × 256. The spatial resolution ranges from approximately 30m to 0.2m.

[0069] Since there is no cross-domain scene benchmark dataset, similar eight categories are selected from each of the above-mentioned datasets and renamed as baseball field, beach, dense residential, forest, port, parking lot, river and storage tank. Dynamic adversarial adaptive network (method 1), attention-based multi-scale residual adaptation network (method 2), deep domain adaptation correlation alignment (method 3), batch nuclear norm maximization (method 4), deep subdomain adaptation network (method 5), deep manifold embedding dynamic alignment (method 6) and the method of the present invention are respectively used for remote sensing cross-domain scene classification.

[0070] High-resolution remote sensing cross-domain scene classification evaluation indicators: A quantitative evaluation method is used. The source data and target domain data are simultaneously input into each method for training, and the classification result of the target domain is its predicted label.

[0071] The evaluation index adopts the following two indicators:

[0072] (1) Overall Accuracy: Overall Accuracy (OA) is an authoritative evaluation indicator for evaluating classification problems. The higher the overall accuracy, the higher the detection accuracy. The calculation formula for overall accuracy OA is:

[0073]

[0074] In the formula, TP represents the number of positive samples predicted to be positive, TN represents the number of negative samples predicted to be negative, and N is the total number of samples.

[0075] (2) Average Accuracy (AVG): The average accuracy is the overall average accuracy of all migration tasks for each method.

[0076] The overall accuracy and average overall accuracy are used to evaluate the high-resolution remote sensing cross-domain image classification task capabilities of methods 1 to 6 and the method of the present invention. The quantitative evaluation results are shown in Table 1.

[0077] Table 1 Quantitative evaluation table of remote sensing cross-domain classification

[0078]

[0079] From the experimental results in Table 1, the overall performance of the proposed method is better than all the comparison methods, indicating that the proposed method can better improve the generalization ability of the model and align the data distribution of the source domain and the target domain. It also makes the boundaries between classes clearer and the degree of aggregation between classes higher. Compared with method 2, the features extracted by ADA-DDA are more discriminative.

[0080] It can be concluded that, compared with other comparison methods, the method of the present invention has higher image classification accuracy.

[0081] The present invention makes full use of the ability of the attention-based dynamic alignment module to align the marginal distributions of the source domain and the target domain, while dynamically balancing the relative importance of the marginal distribution and the conditional distribution, fully reducing the difference in marginal distribution and conditional distribution of source and target domain data, and enabling the algorithm to capture stronger discriminant information, thereby improving the classification accuracy of high-resolution remote sensing cross-domain scenes.

[0082] Embodiment 2 relates to a remote sensing cross-scene classification device based on attention alignment distribution adaptation. The remote sensing cross-domain scene classification device includes a memory, a processor, and a remote sensing cross-domain scene classification program stored in the memory and executable on the processor. When the remote sensing cross-domain scene classification program is executed by the processor, the steps of a remote sensing cross-scene classification device based on attention alignment distribution adaptation as described in any of the previous items are implemented.

[0083] The remote sensing cross-scene classification device based on attention alignment distribution adaptation may also include input and output devices, network access devices, buses, etc. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor is the control center of the remote sensing cross-scene classification device based on attention alignment distribution adaptation, and various interfaces and lines are used to connect the various parts of the remote sensing cross-scene classification device based on attention alignment distribution adaptation. The memory may be used to store the computer program and / or module, and the processor implements various functions of the remote sensing cross-scene classification device based on attention alignment distribution adaptation by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory may include a high-speed random access memory and may 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 (Secure-Digital, SD) card, a flash card (Flash-Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0084] In summary, the present invention considers the influence of each sample in the source domain and the target domain on the network model, and then uses ternary attention to calculate the deep information between space and space, and between space and channel, and finally uses the dynamic balance factor to adjust the relative importance of edge distribution and conditional distribution to the alignment of source domain and target domain, thereby improving the accuracy of remote sensing cross-domain scene classification. At the same time, the dynamic alignment distribution adaptive network based on attention is easy to implement and has good classification performance.

[0085] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0086] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

Claims

1. A remote sensing cross-scene classification method based on attention alignment distribution adaptation, characterized in that: Remote sensing cross-scene classification methods include: Read the source domain high-resolution remote sensing image into the first matrix; Reading the high-resolution remote sensing image of the target domain into the second matrix; Preprocessing the first matrix and the second matrix respectively to obtain a first processing matrix and a second processing matrix; Inputting the first processing matrix and the second processing matrix into the attention-based dynamic alignment residual network model respectively to obtain the first feature and the second feature after the edge distribution is aligned; Input the first feature and the second feature into the initial adaptive module respectively to obtain the third feature and the fourth feature after conditional distribution alignment; Inputting the third feature and the fourth feature into a classifier to obtain a first prediction result and a second prediction result; According to the first prediction result and the second prediction result, obtaining a classifier loss, a maximum mean difference loss, and a conditional maximum mean difference loss; Calculating a dynamic balance factor according to the maximum mean difference loss and the conditional maximum mean difference loss; According to the first prediction result and the second prediction result, obtaining the classifier loss, the maximum mean difference loss, and the conditional maximum mean difference loss includes: The classifier loss The maximum mean difference loss and the conditional maximum mean difference loss The calculation formulas are the first formula: Second formula: The third formula: in, and are the first matrix and the second matrix respectively, N s and N t are the total number of samples in the source domain and the target domain respectively, CE(·) is the cross entropy loss, is the label of the source domain, φ(·) represents the entire model mapping, c represents the total number of categories, and represent the i-th sample and j-th sample in the source domain and target domain respectively, represents the reproducing kernel Hilbert space; Calculating a dynamic balance factor according to the maximum mean difference loss and the conditional maximum mean difference loss includes: The calculation formula of the dynamic balance factor is: Among them, α is the dynamic balance factor between marginal distribution and conditional distribution, is the maximum mean difference loss, is the conditional maximum mean difference loss, r is the four branches in the initial adaptive module, and are the first matrix and the second matrix respectively; Obtaining a joint loss based on the dynamic balancing factor, the classifier loss, the maximum mean difference loss, and the conditional maximum mean difference loss; Back-propagating the joint loss to update the dynamic alignment residual network model; The updated dynamic alignment residual network model is used to test the target domain data to obtain scene classification results.

2. A remote sensing cross-scene classification method based on attention alignment distribution adaptation as claimed in claim 1, characterized in that: Preprocessing the first matrix and the second matrix respectively to obtain a first processing matrix and a second processing matrix includes: Resampling, randomly cropping and horizontally flipping the first matrix respectively to obtain the first processing matrix; The second matrix is ​​resampled to obtain the second processing matrix.

3. The remote sensing cross-scene classification method based on attention alignment distribution adaptation as claimed in claim 1 is characterized in that: Inputting the first processing matrix and the second processing matrix into the attention-based dynamic alignment residual network model respectively, and obtaining the first feature and the second feature includes: The formulas for calculating the first feature and the second feature are: Among them, A is the feature obtained by calculation, z is the feature obtained by the dynamic alignment module, represents the mth feature obtained by rotating z along the spatial height axis and the spatial width axis, where m = 1, 2, is the maximum pooling and mean pooling along the zeroth dimension and aggregation, ψ n is the convolutional neural map of the nth branch, where n = 1, 2, 3, σ represents the sigmoid function, Represents a 90 degree rotation in the clockwise direction.

4. A remote sensing cross-scene classification method based on attention alignment distribution adaptation as claimed in claim 1, characterized in that , obtaining the joint loss based on the dynamic balance factor, the classifier loss, the maximum mean difference loss and the conditional maximum mean difference loss includes: The calculation formula of the joint loss is: is the classifier loss, is the maximum mean difference loss, is the conditional maximum mean difference loss, α is the dynamic balance factor between the marginal distribution and the conditional distribution, L is the joint loss, and λ is a non-negative trade-off parameter.

5. A remote sensing cross-scene classification device based on attention alignment distribution adaptation, characterized in that: The remote sensing cross-domain scene classification device includes a memory, a processor, and a remote sensing cross-domain scene classification program stored in the memory and executable on the processor. When the remote sensing cross-domain scene classification program is executed by the processor, the steps of a remote sensing cross-scene classification method based on attention alignment distribution adaptation as described in any one of claims 1 to 4 are implemented.