A method for measuring the transferability of deep neural network models based on geographical partitioning

Divide the source domain and target domain through geographical partitions, evaluate the cross-domain stability and adaptability of the deep neural network model, solve the problem of poor migration effect of the neural network model, realize the evaluation and model sharing of cross-domain applications, and reduce the training time cost.

CN117216507BActive Publication Date: 2024-08-27SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311304916.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-08
Publication Date
2024-08-27
Estimated Expiration
2043-10-08

AI Technical Summary

Technical Problem

The existing technology has unsatisfactory application results when performing geographical migration of neural network models, and lacks effective cross-domain application measurement methods, resulting in the inability of the model to effectively generalize to new geographical areas.

Method used

Divide the data into source domain and target domain through geographical partitioning, extract the corresponding training set, verification set and test set, calculate the cross-domain stability and fitness, evaluate the cross-domain migration ability of the source domain model, and determine whether it is suitable for cross-domain use.

Benefits of technology

It achieves a quantitative assessment of the geographical transferability of deep neural network models, helps select appropriate models for cross-domain applications, reduces model training costs, and enables data fusion and knowledge flow between different geographical areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117216507B
    Figure CN117216507B
Patent Text Reader

Abstract

The present invention discloses a method for measuring the transferability of a deep neural network model based on geographic partitioning. The method comprises: acquiring geographic space data and an initial neural network model, extracting source domain data and target domain data from the geographic space data according to the division of geographic space; extracting a source domain training set from the source domain data, training to obtain a source domain model, extracting a target domain training set from the target domain data, training to obtain a target domain model; verifying the source domain model to obtain source domain test data, verifying the source domain model to obtain cross-domain test data, and verifying the target domain model to obtain target domain test data; calculating the cross-domain stability and / or cross-domain fitness of the source domain model; judging whether the source domain model is a neural network model that can be used across domains according to the cross-domain stability and / or cross-domain fitness of the source domain model, and displaying the judgment result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of deep neural network models, and in particular to a method for measuring the transferability of deep neural network models based on geographical partitioning. Background Art

[0002] Cross-domain model sharing between cities can help significantly reduce the time and cost of model training and expand the scope of model application. The successful application of deep learning models depends on a large amount of useful labeled data. However, many geographic regions have small amounts of data, and high-quality labeled data is always in short supply. Deep neural network models often have "overfitting" problems due to limited geospatial annotated data, and therefore cannot be generalized well to new geographic regions. Deep learning models that rely on specific geographic regions have different recognition or prediction effects when migrating depending on the geographic location.

[0003] Traditional deep learning models only use training sets in the same geographic region for model training, and use validation sets to check model performance, adjust parameters, and optimize. After the model is completed, the model is evaluated using a local test set, but the effect of cross-domain application of the model is not measured.

[0004] Therefore, technical personnel in this field lack a basis when selecting a neural network model for cross-domain application, which often results in unsatisfactory cross-domain application effects of the selected neural network model. Summary of the invention

[0005] The purpose of the present invention is to provide a method for measuring the transferability of a deep neural network model based on geographical partitioning, aiming to solve the problem that the application effect of the prior art is not ideal when performing geographical migration of neural network models.

[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0007] The present invention provides a method for measuring the transferability of a deep neural network model based on geographical partitioning, comprising:

[0008] Obtaining geospatial data and an initial neural network model, and extracting source domain data and target domain data from the geospatial data according to the division of the geospatial space;

[0009] Extracting a source domain training set from the source domain data, training a test neural network model according to the source domain training set to obtain a source domain model, extracting a target domain training set from the target domain data, and training the test neural network model according to the target domain training set to obtain a target domain model;

[0010] A source domain verification set is extracted from the source domain data, the source domain model is verified to obtain source domain test data, a target domain verification set and a cross-domain test set are extracted from the target domain data, the source domain model is verified according to the cross-domain test set to obtain cross-domain test data, and the target domain model is verified according to the target domain verification set to obtain target domain test data;

[0011] Calculating the cross-domain stability of the source domain model according to the cross-domain test data and the source domain test data, and calculating the cross-domain adaptability of the source domain model according to the cross-domain test data and the target domain test data;

[0012] Determine whether the source domain model is a neural network model that can be used across domains based on the cross-domain stability and / or cross-domain adaptability of the source domain model, and display the determination result.

[0013] Further, calculating the cross-domain stability of the source domain model according to the cross-domain test data and the source domain test data, and calculating the cross-domain adaptability of the source domain model according to the cross-domain test data and the target domain test data specifically includes:

[0014] Calculate the cross-domain basic evaluation index according to the cross-domain test data, calculate the source domain basic evaluation index according to the source domain test data, and calculate the target domain basic evaluation index according to the target domain test data;

[0015] The cross-domain stability of the source domain model is calculated according to the cross-domain basic evaluation index and the source domain basic evaluation index, and the cross-domain adaptability of the source domain model is calculated according to the cross-domain basic evaluation index and the target domain basic evaluation index.

[0016] Further, the cross-domain stability of the source domain model is calculated according to the source domain basic evaluation index and the cross-domain basic evaluation index, specifically, the difference between the cross-domain basic evaluation index and the source domain basic evaluation index is used as the cross-domain stability of the source domain model;

[0017] The cross-domain fitness of the source domain model is calculated according to the cross-domain basic evaluation index and the target domain basic evaluation index, specifically, the difference between the cross-domain basic evaluation index and the target domain basic evaluation index is used as the cross-domain fitness of the source domain model.

[0018] Furthermore, the basic evaluation indicators include one or more of accuracy, precision, recall, interaction ratio, Kappa coefficient, mean absolute error, mean square error, root mean square error, mean absolute percentage error and determination coefficient.

[0019] Furthermore, the calculation method of the accuracy is:

[0020]

[0021] The calculation method of precision is:

[0022]

[0023] The calculation method of recall rate Recall is:

[0024]

[0025] The calculation method of interaction ratio IoU is:

[0026]

[0027] The calculation method of Kappa coefficient is:

[0028]

[0029] Among them, the accuracy Po is specifically:

[0030]

[0031] The accidental consistency error Pe is specifically:

[0032]

[0033] Among them, TP is the number of true positive examples of the test data corresponding to the basic evaluation indicator, TN is the number of true negative examples of the test data corresponding to the basic evaluation indicator, FP is the number of false positive examples of the test data corresponding to the basic evaluation indicator, and FN is the number of false negative examples of the test data corresponding to the basic evaluation indicator; Po is the accuracy, and Pe is the accidental consistency error.

[0034] The mean absolute error MAE is calculated as:

[0035]

[0036] The calculation formula for mean square error MSE is:

[0037]

[0038] The calculation formula of root mean square error RMSE is:

[0039]

[0040] The mean absolute percentage error (MAPE) is calculated as:

[0041]

[0042] Coefficient of determination R 2The calculation method is:

[0043]

[0044] Where N represents the number of samples, i represents the i-th sample, and y i represents the ith dependent variable, represents the regression value of the dependent variable, that is, the predicted value, represents the regression value of the ith dependent variable, represents the mean of the dependent variable.

[0045] Further, judging whether the source domain model is a neural network model that can be used across domains according to the cross-domain adaptability and / or cross-domain stability of the source domain model is specifically:

[0046] Judging the excellence of the geographical transferability of the source domain model based on cross-domain adaptability and / or cross-domain stability;

[0047] Whether the source domain model is a neural network model that can be used across domains is determined according to the excellence of the geographical transferability of the source domain model.

[0048] The present invention adopts the above technical solution to achieve the following effects:

[0049] The present invention migrates the source domain model across geographical domains to the target domain by dividing the geographical area into source domains and target domains, and then tests the effects of the source domain model before and after the migration, so as to obtain the test data as a basis, and then evaluates the cross-domain adaptability and / or cross-domain stability of the source domain model to evaluate the geographical transferability of the source domain model, and judges whether the source domain model is suitable for migration to the target domain based on the geographical transferability, so that the test personnel can select the appropriate source domain model for geographical migration application, thereby helping to share models across domains between different geographical areas, thereby reducing the training cost of the model and realizing "available but invisible" data fusion and knowledge flow. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 It is a flowchart of the steps of the method for measuring the transferability of a deep neural network model based on geographical partitioning in a preferred embodiment of the present invention;

[0051] Figure 2 It is a schematic diagram of the model and data structure of the method for measuring the transferability of a deep neural network model based on geographic partitioning in a preferred embodiment of the present invention. DETAILED DESCRIPTION

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

[0053] Embodiment 1

[0054] In view of the problem that there is currently no clear method to measure the geographical transferability of deep neural network models, the present invention aims to propose a method for measuring the transferability of deep neural network models based on geographical partitioning. First, geographical space partitioning is performed. For the geographical deep neural network model constructed using multi-source urban big data such as remote sensing images, urban road networks, points of interest data, and taxi trajectories, a method for measuring the transferability of deep neural network models based on geographical partitioning is invented to measure the geographical transferability of deep neural networks. The proposed measurement method can realize the quantitative evaluation of the migration ability of deep neural networks across geographical domains, and is applicable to any data set with spatial attributes and different types of deep neural network model structures, and has certain comparability and scalability. This provides an objective evaluation standard and a universal measurement method for subsequent geographical migration research of deep learning models.

[0055] Specifically, see Figure 1 and Figure 2 , Embodiment 1 of the present application provides a method for testing the transferability of a deep neural network model, which comprises the steps of:

[0056] S1. Obtain geospatial data and an initial neural network model, and extract source domain data and target domain data from the geospatial data according to the division of the geospatial space.

[0057] The geographic space is divided into source domain and target domain. The source domain refers to the geographic region where the dataset used to train the source domain model is located, and the target domain refers to the geographic region where the trained source domain model is applied. Geographic domain division is an important step to verify whether the trained source domain model can be effectively generalized in different geographical environments after migration. Figure 1 As shown in the figure, a geographical area is selected as the source domain (Source Domain, referred to as S), and the geospatial data within the region is called the source domain data, and another geographical area is selected as the target domain (Target Domain, referred to as T), and the geospatial data within the region is called the target domain data. In terms of geographical domain division, geographical space can be divided into regions based on a variety of methods, such as based on administrative boundaries, based on geographical location, based on spatial clustering, etc. The selection of source domains and target domains can take into account the geographical characteristics and data distribution between different domains.

[0058] And select a suitable deep neural network and deep learning framework to construct a deep neural network model as the initial neural network model in this embodiment.

[0059] In this embodiment, the regional division of geographic spatial data may be performed according to administrative divisions or grids in actual use, and is not limited to a specific partitioning method, and the present invention does not impose any restriction on this.

[0060] S2. Extract a source domain training set from the source domain data, train the test neural network model according to the source domain training set to obtain a source domain model, extract a target domain training set from the target domain data, and train the test neural network model according to the target domain training set to obtain a target domain model.

[0061] Specifically, in each geographic domain, this embodiment prepares a geospatial data set according to the application scenario and requirements, and divides the source domain data and the target domain data into a training set and a validation set, respectively. The training set is used to train the model, and the validation set and the test set are used to evaluate the performance of the model.

[0062] Then, the source domain model and the target domain model are trained in the source domain and the target domain respectively according to the obtained training set.

[0063] S3. Extract a source domain verification set from the source domain data, verify the source domain model to obtain source domain test data, extract a target domain verification set and a cross-domain test set from the target domain data, verify the source domain model according to the cross-domain test set to obtain cross-domain test data, and verify the target domain model according to the target domain verification set to obtain target domain test data.

[0064] In this embodiment, the target domain test data and the cross-domain test data both include true positive samples, true negative samples, false positive samples, and false negative samples.

[0065] In this embodiment, a source domain verification set is also extracted from the source domain data, and the source domain model is verified by the source domain verification set to obtain source domain test data. In this embodiment, the cross-domain test set specifically includes all sample data of the target domain training set and the target domain verification set.

[0066] In the real world, the labeled data in some target domains may not be sufficient to train a target domain model. Therefore, in this embodiment, if the labeled data in the target domain is insufficient to train a target domain model, the source domain model is tested using the validation set of the source domain to obtain source domain test data, thereby providing a basis for further calculating the cross-domain stability to measure the geographical transferability of the model.

[0067] S4. Calculate the cross-domain stability of the source domain model according to the cross-domain test data and the source domain test data, and calculate the cross-domain fitness of the source domain model according to the cross-domain test data and the target domain test data.

[0068] Specifically, a cross-domain basic evaluation index is first calculated according to the cross-domain test data, a target domain basic evaluation index is calculated according to the target domain test data, and then the cross-domain fitness of the source domain model is calculated according to the cross-domain basic evaluation index and the target domain basic evaluation index.

[0069] The present invention associates the performance evaluation index of the model with the deep neural network model trained in a specific geographical area. The source domain model and the target domain model respectively calculate the basic evaluation index in the model performance evaluation system on the test set and the validation set of the target domain to obtain the cross-domain basic evaluation index Index. Cmodel And the target domain basic evaluation index Index Tmodel .

[0070] Specifically, in this embodiment, five basic evaluation indicators, namely Accuracy (Acc), Precision (Pre), Recall (Recall), Intersection over Union (IoU) and Kappa coefficient, are selected for the application scenario of the classification problem. The performance evaluation system of the deep neural network model is constructed through these five indicators. The confusion matrix is ​​constructed using the recognition results of the deep neural network model to calculate the above indicators. The confusion matrix cross-compares the actual category and the predicted category to count the correctness, error and type of the classification results.

[0071] Specifically, assume that the number of true positive examples in the confusion matrix is ​​TP, the number of true negative examples is TN, the number of false positive examples is FP, and the number of false negative examples is FN.

[0072] In this embodiment, the calculation method of accuracy is:

[0073]

[0074] The calculation method of precision is:

[0075]

[0076] The calculation method of recall rate Recall is:

[0077]

[0078] The calculation method of interaction ratio IoU is:

[0079]

[0080] The calculation method of Kappa coefficient is:

[0081]

[0082] Among them, the Kappa coefficient is an indicator of consistency in statistics, and its value is between -1 and 1, that is, [-1,1]. The calculation of the Kappa coefficient is based on the confusion matrix and is usually greater than 0. For classification problems, consistency refers to whether the model prediction results are consistent with the actual classification results. Po is the accuracy, and Pe is the accidental consistency error. Po is the accuracy of the prediction, which is the sum of the number of correctly classified samples in each category divided by the total number of samples, that is, the overall classification accuracy, which can be understood as the consistency of the prediction.

[0083] Pe represents the accidental consistency error, which is the sum of the "product of the actual and predicted numbers" corresponding to all categories, divided by the "square of the total number of samples". Pe is the expected value of consistency under random circumstances.

[0084] Specifically, the overall accuracy Po is calculated as:

[0085]

[0086] The calculation method of accidental consistency error Pe is:

[0087]

[0088] It is worth noting that, in other embodiments, the basic evaluation indicators are not limited to the five indicators listed. Other indicators that can be used to judge deep learning models, such as mean square error, mean absolute error, root mean square error, mean absolute percentage error, determination coefficient, etc., can also be used as evaluation indicators.

[0089] The calculation method of mean absolute error MAE is:

[0090]

[0091] The calculation formula for mean square error MSE is:

[0092]

[0093] The calculation formula of root mean square error RMSE is:

[0094]

[0095] The mean absolute percentage error (MAPE) is calculated as:

[0096]

[0097] Coefficient of determination R 2 The calculation method is:

[0098]

[0099] Where N represents the number of samples, i represents the i-th sample, and y i represents the ith dependent variable, represents the regression value of the dependent variable, that is, the predicted value, represents the regression value of the ith dependent variable, represents the mean of the dependent variable.

[0100] In actual use, when measuring the geographic transferability of the model, we can select appropriate basic evaluation indicators from the performance evaluation index system of the deep learning model according to the application scenario and the characteristics of the data set, and then use the entropy weight method to assign weights to multiple basic evaluation indicators. Finally, we can calculate the comprehensive evaluation index by weighted summing up the values ​​of each indicator.

[0101] In this embodiment, the entropy weight method is used to assign weights to the five basic evaluation index values ​​of accuracy (Accuracy, Acc), precision (Precision, Pre), recall (Recall), interaction ratio (Intersection over Union, IoU) and Kappa coefficient, and then the weighted sum of each index value is obtained to obtain a comprehensive value;

[0102] Specifically, the value of each indicator is normalized and scaled to the same scale range for comparison. Normalization can be done by linear transformation, minimum-maximum normalization, etc.

[0103] For each indicator, calculate its entropy value. Entropy is an indicator used to measure the dispersion or uncertainty of information. In multi-criteria decision-making, entropy is usually used to calculate the importance of each indicator. The higher the entropy value, the greater the difference in indicator values. The weight is determined based on the distribution of indicator values.

[0104] Specifically, the normalized value of each indicator is divided into multiple intervals, usually distributed equally in the range of [0,1] or [-1,1]. For each indicator, the frequency of its normalized value in each interval is calculated, and the frequency indicates how many data points there are in the interval. The frequency in each interval is divided by the total number of samples to calculate the probability of each interval. These probability values ​​represent the distribution of data points in each interval. For each indicator, the information entropy of each interval is calculated using the following formula:

[0105] Information entropy = -∑(probability*log2(probability))

[0106] Among them, Σ represents the sum of all intervals, and probability represents the probability of each interval.

[0107] The entropy value of the indicator is obtained by weighting and summing the information entropy of each interval of each indicator. Usually, the weight is the ratio of the number of samples (frequency) in each interval to the total number of samples. The calculated entropy values ​​are normalized to ensure that they are in the range of [0,1];

[0108] The entropy value is used to calculate the weight of each indicator. Generally, the weight is inversely proportional to the entropy value, that is, the higher the entropy value of the indicator, the lower its weight. The weight is calculated using the following formula:

[0109]

[0110] Among them, ∑ represents the sum of all indicators.

[0111] The calculated weights are normalized to ensure that their sum is equal to 1, and used as weight coefficients to weight the sum of the individual indicator values;

[0112] Multiply each index value by the corresponding weight, and then add the results to get the comprehensive evaluation index value. This comprehensive evaluation index is used as the final evaluation result of the model for the test data.

[0113] After obtaining the source domain comprehensive evaluation index S of the source domain model Index , cross-domain comprehensive evaluation index C of source domain model Index and the target domain comprehensive evaluation index T of the target domain model Index After that, the source domain comprehensive evaluation index S of the source domain model can be used Index , cross-domain comprehensive evaluation index C of source domain model Index and the target domain comprehensive evaluation index T of the target domain model Index The cross-domain fitness and / or cross-domain stability of the geographical transferability of the neural network is calculated.

[0114] In this embodiment, the cross-domain stability (Cross-Domain Stability, CDS) and cross-domain adaptation (Cross-Domain Adaptation, CDA) of the main calculation model are used as the test results of geographical transferability.

[0115] Among them, the comprehensive evaluation index value (C Index ) minus the comprehensive evaluation index value of the target domain model (T Index ), which is the cross-domain adaptation (CDA) of the model. That is, the calculation formula of cross-domain adaptation is as follows:

[0116] CDA=CIndex -T Index ;

[0117] Optionally, when the labeled data in part of the target domain may not be sufficient to train a target domain model, the present invention also calculates the source domain comprehensive evaluation index based on the source domain test data, and calculates the cross-domain stability of the source domain model based on the source domain comprehensive evaluation index and the cross-domain comprehensive evaluation index.

[0118] Specifically, the comprehensive evaluation index value of the source domain model across geographical domains (Index Cmodel ), and accordingly subtract the comprehensive evaluation index value of the source domain model (Index Smodel ), which is the cross-domain stability CDS of the model. That is, the calculation formula of cross-domain stability is as follows:

[0119] CDS=C Index -S Index ;

[0120] When the source domain model is applied to a target domain that is different from the training environment, the performance of the model will change, and there will be differences between the cross-domain evaluation indicators of the source domain model and the source domain evaluation indicators of the source domain model and the target domain evaluation indicators of the target domain model. Stable performance indicates that the source domain model can use the geographic features of the source domain to assist in understanding the data in the new domain, thereby better migrating to the target domain. A significant drop in performance indicates that effective geographic migration cannot be performed between the two domains, resulting in negative migration of the source domain model.

[0121] In the present invention, two indicators, cross-domain stability and cross-domain fitness, are used to evaluate the geographical transferability of the source domain model. The difference between cross-domain stability and cross-domain fitness lies in the different evaluation angles of the geographical transferability of the model. Cross-domain stability calculates the numerical difference between the evaluation indicators of the model in the target domain and in the source domain after the source domain model is migrated to the target domain. It focuses on the geographical transferability of the model itself, that is, whether the model can maintain relatively stable performance in different geographical environments. Cross-domain fitness calculates the numerical difference between the evaluation indicators of the source domain model and the target domain model migrated from across geographical domains, and emphasizes the actual application effect of the model in the target domain. The former focuses on the geographical transferability of the model itself, while the latter focuses more on the performance of the model in actual applications. The two metrics complement each other and help to measure the geographical transferability of deep neural networks more comprehensively.

[0122] There are quantitative differences in the cross-domain stability and cross-domain fitness of models for different source domain-target domain pairs. Data classification can be used to evaluate the degree of geographical transferability of deep neural network models in various source domain-target domain pairs. When the cross-domain stability and cross-domain fitness of the model are positive, the geographical transfer level of the model is excellent; when it is a negative value of 0-0.1, the geographical transfer level of the model is good; when it is a negative value of 0.2-0.3, the geographical transfer level of the model is medium; when it is less than a negative value of 0.3, the geographical transfer level of the model is poor.

[0123] If the conclusions of the two are contradictory, in this embodiment, if the label data in the target domain can train a target domain model, the cross-domain fitness is calculated first to measure the geographical transferability of the model.

[0124] This is because after the model is geographically migrated, the cross-domain stability may be very low (for example, -0.2), but the cross-domain fitness is relatively high (for example, 0.1). From the perspective of the actual application of the model, this shows that although the accuracy of the source domain model has been greatly lost after migration, it still shows a higher accuracy than the target domain model. In the target domain, using the source domain model is a more suitable choice than the target domain model. Therefore, when both metrics in the present invention can be calculated, cross-domain fitness will be given priority.

[0125] S5. Determine whether the source domain model is a neural network model that can be used across domains according to the cross-domain adaptability and / or cross-domain stability of the source domain model, and display the determination result.

[0126] Specifically, in the present invention, the model can be judged as good or above through cross-domain fitness and / or cross-domain stability, that is, the source domain model whose cross-domain fitness and cross-domain stability are positive or negative values ​​0-0.1 is used as a neural network model that can be used across domains, so that testers can select and use from various types of neural network models that can be used across domains according to the actual needs of the target domain.

[0127] Alternatively, multiple neural network models that have been selected to be suitable for use may be tested separately as source domain models, and the neural network model with the best geographical transferability may be used as the neural network model that can be used across domains.

[0128] The present invention discloses a method for measuring the transferability of a deep neural network model based on geographic partitioning, which divides geographic spatial data into source domains and target domains. The source domain model is migrated across geographic domains to the target domain, and two measurement indicators, cross-domain stability and cross-domain fitness, are invented to measure the geographic transferability of the deep neural network model. This helps to share models across domains between different geographic regions, thereby reducing the training cost of the model and realizing "available but invisible" data fusion and knowledge flow.

[0129] In summary, the present invention migrates the source domain model across geographical domains to the target domain by partitioning the geography into source domains and target domains, and then tests the effects of the source domain model before and after migration, so as to obtain the test data as a basis, and then evaluates the cross-domain adaptability and / or cross-domain stability of the source domain model to evaluate the geographical transferability of the source domain model, and judges whether the source domain model is suitable for migration to the target domain based on the geographical transferability, so that the test personnel can select the appropriate source domain model for geographical migration application, thereby helping to share models across domains between different geographical regions, thereby reducing the training cost of the model and realizing "available but invisible" data fusion and knowledge flow.

[0130] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process or method 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 or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.

[0131] Of course, those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program.

[0132] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for measuring the transferability of a deep neural network model based on geographical partitioning, characterized in that: include: Obtaining geospatial data and an initial neural network model, and extracting source domain data and target domain data from the geospatial data according to the division of the geospatial space; Extracting a source domain training set from the source domain data, training a test neural network model according to the source domain training set to obtain a source domain model, extracting a target domain training set from the target domain data, and training the test neural network model according to the target domain training set to obtain a target domain model; A source domain verification set is extracted from the source domain data, the source domain model is verified to obtain source domain test data, a target domain verification set and a cross-domain test set are extracted from the target domain data, the source domain model is verified according to the cross-domain test set to obtain cross-domain test data, and the target domain model is verified according to the target domain verification set to obtain target domain test data; Calculating the cross-domain stability of the source domain model according to the cross-domain test data and the source domain test data, and calculating the cross-domain adaptability of the source domain model according to the cross-domain test data and the target domain test data; Determine whether the source domain model is a neural network model that can be used across domains according to the cross-domain stability and / or cross-domain adaptability of the source domain model, and display the determination result; Calculating the cross-domain stability of the source domain model according to the cross-domain test data and the source domain test data, and calculating the cross-domain adaptability of the source domain model according to the cross-domain test data and the target domain test data specifically includes: Calculate a cross-domain evaluation index based on the cross-domain test data, calculate a source domain evaluation index based on the source domain test data, and calculate a target domain evaluation index based on the target domain test data; According to the cross-domain evaluation index and the source domain evaluation index, the cross-domain stability of the source domain model is calculated, and according to the cross-domain evaluation index and the target domain evaluation index, the cross-domain adaptability of the source domain model is calculated; The cross-domain stability of the source domain model is calculated according to the cross-domain evaluation index and the source domain evaluation index, specifically, the difference between the cross-domain evaluation index and the source domain evaluation index is used as the cross-domain stability of the source domain model; The cross-domain fitness of the source domain model is calculated according to the cross-domain evaluation index and the target domain evaluation index, specifically, the difference between the cross-domain evaluation index and the target domain evaluation index is used as the cross-domain fitness of the source domain model; The cross-domain evaluation index is calculated according to the cross-domain test data, the source domain evaluation index is calculated according to the source domain test data, the target domain evaluation index is calculated according to the target domain test data, the multiple cross-domain basic evaluation indexes are calculated according to the cross-domain test data, the multiple source domain basic evaluation indexes are calculated according to the source domain test data, and the multiple target domain basic evaluation indexes are calculated according to the target domain test data; Normalizing each of the cross-domain basic evaluation indicators, the source domain basic evaluation indicators, and the target domain basic evaluation indicators; Calculate the information entropy of the corresponding cross-domain basic evaluation indicator according to each normalized cross-domain basic evaluation indicator, calculate the information entropy of the corresponding source domain basic evaluation indicator according to each normalized source domain basic evaluation indicator, and calculate the information entropy of the corresponding target domain basic evaluation indicator according to each normalized target domain basic evaluation indicator; Calculate the weight of each basic evaluation indicator according to the information entropy of each cross-domain basic evaluation indicator, the source domain basic evaluation indicator, and the target domain basic evaluation indicator; Calculate the cross-domain comprehensive evaluation index according to each of the cross-domain basic evaluation indicators and the corresponding weights, calculate the source domain comprehensive evaluation index according to each of the source domain basic evaluation indicators and the corresponding weights, and calculate the target domain comprehensive evaluation index according to each of the target domain basic evaluation indicators and the corresponding weights; The difference between the cross-domain evaluation index and the source domain evaluation index is used as the cross-domain stability of the source domain model, specifically, the difference between the cross-domain comprehensive evaluation index and the source domain comprehensive evaluation index is used as the cross-domain stability of the source domain model; The difference between the cross-domain evaluation index and the target domain evaluation index is used as the cross-domain fitness of the source domain model, specifically, the difference between the cross-domain comprehensive evaluation index and the target domain comprehensive evaluation index is used as the cross-domain fitness of the source domain model.

2. According to claim 1, a method for measuring the transferability of a deep neural network model based on geographical partitioning is characterized in that: The basic evaluation indicators include one or more of accuracy, precision, recall, interaction ratio, Kappa coefficient, mean absolute error, mean square error, root mean square error, mean absolute percentage error and determination coefficient.

3. A deep neural network model transferability testing method according to claim 2, characterized in that: The calculation method of the accuracy is: The calculation method of precision is: The calculation method of recall rate Recall is: The calculation method of interaction ratio IoU is: The calculation method of Kappa coefficient is: Among them, the accuracy Po is specifically: The accidental consistency error Pe is specifically: Among them, TP is the number of true positive examples of the test data corresponding to the basic evaluation index, TN is the number of true negative examples of the test data corresponding to the basic evaluation index, FP is the number of false positive examples of the test data corresponding to the basic evaluation index, and FN is the number of false negative examples of the test data corresponding to the basic evaluation index; Po is the accuracy, and Pe is the accidental consistency error; The mean absolute error MAE is calculated as: The calculation formula for mean square error MSE is: The calculation formula of root mean square error RMSE is: The mean absolute percentage error (MAPE) is calculated as: Coefficient of determination R 2 The calculation method is: Where N represents the number of samples, i represents the i-th sample, and y i represents the ith dependent variable, represents the regression value of the dependent variable, represents the regression value of the ith dependent variable, represents the mean of the dependent variable.

4. A deep neural network model transferability testing method according to claim 1, characterized in that: The step of judging whether the source domain model is a neural network model that can be used across domains according to the cross-domain adaptability and / or cross-domain stability of the source domain model is specifically: Judging the excellence of the geographical transferability of the source domain model based on cross-domain adaptability and / or cross-domain stability; Whether the source domain model is a neural network model that can be used across domains is determined according to the excellence of the geographical transferability of the source domain model.

5. A deep neural network model transferability testing method according to claim 4, characterized in that: The judging of the excellence of the geographical transferability of the source domain model according to the cross-domain adaptability and / or the cross-domain stability is specifically: If the target domain sample data is sufficient to train the target domain model, then judging the excellence of the geographical transferability of the source domain model according to the cross-domain fitness; If the target domain sample data is insufficient to train the target domain model, the excellence of the geographical transferability of the source domain model is judged according to the cross-domain stability.