ROBUSTNESS ESTIMATION METHOD, DATA PROCESSING METHOD AND INFORMATION PROCESSING APPARATUS
The robustness estimation method addresses the challenge of evaluating classification models on unknown target data sets by determining similar samples and calculating classification similarity, ensuring improved performance on the target data set.
Patent Information
- Application Number
- JP2020111506
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-09-06
- Filing Date
- 2020-06-29
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-06-29
AI Technical Summary
Classification models trained on one data set often perform poorly on a different target data set due to distribution bias, making it difficult to estimate their robustness when target data set labels are unknown.
A robustness estimation method that determines target samples similar to training samples within a threshold, calculating classification similarity and robustness based on these similarities to evaluate a classification model's performance on the target data set.
Enables the selection of a classification model with good robustness for the target data set, improving subsequent data processing performance by estimating model robustness without knowing target data set labels.
Smart Images

Figure 0007532950000010 
Figure 0007532950000015 
Figure 0007532950000018
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of machine learning, and in particular to a robustness estimation method for estimating the robustness of a classification model obtained by training, an information processing device capable of implementing the robustness estimation method, and a data processing method utilizing a classification model selected by the robustness estimation method. [Background technology]
[0002] With the advancement of machine learning technology, classification models obtained based on machine learning have attracted widespread attention and are being applied in various fields such as image processing, text processing, and time-series data processing.
[0003] Regarding various models obtained by training, including classification models, there may be cases where the training data set for training the model and the target data set to which the model is finally applied are not independently identically distributed, that is, there may be a bias between the two. Therefore, there may be a problem that the performance of the classification model is relatively good for the training data set, but the performance or robustness for the target data set is not good. When such a model is applied to the target data set of a real scenario, its processing performance may be significantly degraded. Accordingly, it is desirable to be able to grasp the performance or robustness of the classification model for the target data set in advance.
[0004] However, since the labels of the samples in the target data set are unknown, it is not possible to directly calculate the robustness of the classification model to the target data set. Therefore, a method is desired that can estimate the robustness of the classification model to the target data set. Summary of the Invention [Problem to be solved by the invention]
[0005] In view of the need to know in advance the robustness of a classification model with respect to a target data set, one of the objectives of the present invention is to provide a robustness estimation method capable of estimating the robustness of a classification model with respect to a target data set when the labels of the target samples in the target data set are unknown. [Means for solving the problem]
[0006] According to one aspect of the present invention, there is provided a robustness estimation method, which is used to estimate the robustness of a classification model previously obtained by training based on a training data set, the robustness estimation method comprising: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range (i.e., meets a predetermined threshold requirement), and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample; and The method includes determining a classification robustness of the classification model to the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set.
[0007] According to another aspect of the present invention there is further provided a data processing method, the method comprising: Input the target samples into the classification model; and performing classification on the target samples using the classification model; The classification model is obtained by previously training the classification model using a training data set, and the classification robustness of the classification model estimated by the robustness estimation method in the above aspect of the present invention for the target data set to which the target sample belongs exceeds a predetermined robustness threshold.
[0008] According to yet another aspect of the present invention, there is provided an information processing apparatus including a processor, the processor being configured as follows: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample, where the classification model is previously obtained by training based on the training data set; and The classification robustness of the classification model to the target data set is determined based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set.
[0009] According to another aspect of the present invention, there is further provided a program for causing a computer to execute the robustness estimation method as described above.
[0010] According to another aspect of the invention, there is further provided a corresponding storage medium having stored therein machine (e.g., computer) readable instruction codes which, when read and executed by the machine, cause the machine to perform the robustness estimation method as described above.
[0011] According to the above-mentioned aspects of the present invention, at least one or more of the following effects can be obtained: when the labels of the target samples in the target data set are unknown, the robustness of a classification model to a target data set can be estimated based on the classification similarity between the classification results of the classification model to the training samples in the training data set and its corresponding (or similar) target samples in the target data set. Also, by using the robustness estimation method according to the present invention, a classification model having good robustness to the target data set can be selected from among a plurality of pre-trained candidate classification models, and such a classification model can be applied to subsequent data processing to improve the performance of the subsequent processing. [Brief description of the drawings]
[0012] [Figure 1] 1 is a flowchart of an exemplary flow of a robustness estimation method in one embodiment of the present invention. [Diagram 2] FIG. 2 is an illustration of an exemplary process performed in step S101 for classification similarity calculation in the robustness estimation method shown in FIG. 1. [Diagram 3] 11 is a flowchart of an exemplary flow of a robustness estimation method in another embodiment of the present invention. [Figure 4] 11 is a flowchart of an exemplary flow of a robustness estimation method in yet another embodiment of the present invention. [Diagram 5] 5 is a flow chart of an exemplary process performed in step S400 for determining a robustness criterion in the robustness estimation method shown in FIG. 4. [Figure 6] 1 is a table illustrating the accuracy of the robustness estimation method in an embodiment of the present invention. [Figure 7] FIG. 1 is a block diagram showing an exemplary configuration of a robustness estimation device according to an embodiment of the present invention. [Figure 8]FIG. 2 is a block diagram showing another exemplary configuration of a robustness estimation device in an embodiment of the present invention. [Figure 9] FIG. 2 is a block diagram showing yet another exemplary configuration of a robustness estimation device in an embodiment of the present invention. [Figure 10] 1 is a flowchart of an exemplary flow for determining a classification model with good robustness and processing data using a robustness estimation method according to an embodiment of the present invention. [Figure 11] FIG. 1 is a diagram illustrating an exemplary hardware configuration capable of realizing a robustness estimation method and device, and an information processing device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that such embodiments are merely examples and do not limit the present invention.
[0014] In one aspect of the present invention, a robustness estimation method is provided. Figure 1 is a flow chart of an exemplary flow of a robustness estimation method 100 in an embodiment of the present invention, which is used to estimate the robustness of a classification model previously obtained by training based on a training data set.
[0015] As shown in FIG. 1, the robustness estimation method 100 may include the following steps.
[0016] Step S101: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range (i.e., a target sample whose sample similarity with the training sample meets the requirement of a predetermined threshold, in this text, such a target sample is also referred to as a corresponding or similar target sample of the training sample), and calculate the classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample; and Step S103: Determine the classification robustness of the classification model to the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set.
[0017] By using the robustness estimation method of the present embodiment, when the labels of the target samples in the target data set are unknown, the robustness of the classification model for the target data set can be estimated based on the classification similarity between the classification results of the classification model for the training samples and the corresponding (or similar) target samples. For example, if the classification results of the classification model for the training samples and the classification results of the classification model for the corresponding (or similar) target samples are similar or consistent with each other, the classification model can be deemed robust for the target data set.
[0018] As an example, both the training data set and the target data set for a classification model may include image data samples, time series data samples, and the like.
[0019] For example, the classification model according to the robustness estimation method in the embodiment of the present invention may be a classification model for various image data, including classification models for various image classification applications such as semantic segmentation, handwritten character recognition, and traffic sign recognition. Such classification models may adopt various formats suitable for classifying image data, such as a model based on a convolutional neural network (CNN). In addition, the classification model may be a classification model for various time series data, such as a classification model for weather forecasting based on weather data from a certain previous period. Such classification models may adopt various formats suitable for classifying time series data, such as a model based on a recurrent neural network (RNN).
[0020] It should be understood by those skilled in the art that the application scenario of the classification model in the robustness estimation method according to the embodiment of the present invention, as well as the specific type or format of the classification model and the data it processes, are not limited as long as the classification model is obtained in advance by training based on a training data set and can be used for a target data set.
[0021] For ease of explanation, the specific processing in the embodiment of the present invention will be described below mainly based on a specific example of a classification model C. In this example, a classification model C that classifies image samples into one of N classes set in advance (N is a natural number greater than 1) is obtained by training using a training data set DS consisting of training (image) samples x, and the classification model C is a target data set D consisting of target (image) samples y. T The classification model C is a model based on a convolutional neural network (CNN). Those skilled in the art can also appropriately apply the embodiments of the present invention to other data and / or models based on the embodiments of the present invention described based on this example, but detailed description thereof will be omitted here.
[0022] Hereinafter, based on the above-mentioned example of classification model C, exemplary processes executed in each step of the exemplary flow of the robustness estimation method 100 in this embodiment will be described with reference to Fig. 1. First, based on the above-mentioned example of classification model C, exemplary processes in step S101 for classification similarity calculation will be described.
[0023] In step S101, first, a training data set D S For each training sample x in the target dataset D T It is necessary to calculate the sample similarity between each target sample y in and the training sample x, so that for the training sample x, a corresponding or similar target sample can be determined whose sample similarity meets a predetermined threshold requirement.
[0024] In one preferred embodiment, the similarity between features extracted from a training sample and a target sample, respectively, can be used to represent the sample similarity between these samples.
[0025] For example, the feature similarity between the feature f(x) extracted from the training sample x and the feature f(y) extracted from the target sample y can be calculated as the sample similarity between the samples x and y using the classification model C. Here, f() represents a function for extracting features from the input sample using the classification model C. In this example, the classification model C is a CNN model for image processing, and f() may represent the output of the fully connected layer immediately before the Softmax activation function of the CNN model being extracted as a vector-form feature extracted from the input sample. It should be understood by those skilled in the art that for different applications and / or data, the output of different layers of the CNN model may be extracted as appropriate features, and the present invention is not limited thereto.
[0026] For example, for features f(x) and f(y) extracted from a training sample x and a target sample y in the above-mentioned manner, the L1 norm distance, Euclidean distance, cosine distance, etc. between the two can be calculated to represent the feature similarity between these features, thereby representing the corresponding sample similarity. In this document, as can be understood by those skilled in the art, the description "calculating / determining the similarity" includes "calculating / determining an index representing the similarity", and hereinafter, the similarity may be determined by a method of calculating an index representing the similarity (e.g., L1 norm distance), which will not be described in detail.
[0027] As an example, the L1 norm distance D(x,y) between a feature f(x) of a training sample x and a feature f(y) of a target sample y can be calculated by the following formula (1):
[0028] D(x,y)=||f(x)-f(y)|| (1) The calculation result of the L1 norm distance D(x, y) in the above formula (1) is between 0 and 1, and the smaller the value of D(x, y), the greater the feature similarity between the corresponding features f(x) and f(y), i.e., the greater the sample similarity between the corresponding samples x and y.
[0029] Target Data Set D T After calculating the L1 norm distance D(x,y) between the features of each target sample y in and a given training sample x to represent the sample similarity, the target samples y whose sample similarity is within a predetermined threshold (i.e., the L1 norm distance D(x,y) is smaller than a predetermined distance threshold) can be determined. For example, the target samples y that satisfy the following formula (2) can be determined, and the L1 norm distance D(x,y) between the features of these target samples y and training sample x is smaller than a predetermined distance threshold δ, and can be considered as the "corresponding" or "similar" target samples of the training sample x.
[0030] D(x,y)≦δ (2) The above-mentioned distance threshold δ may be appropriately determined according to various design factors such as processing load, application needs, and the like.
[0031] For example, the training data set D S The corresponding distance threshold can be determined based on the average intra-class distance (representing the average intra-class similarity of the training samples) of the N classes contained in the training data set D. S The L1-norm distance δ between each pair of similar samples in p where p=1,2,…,P, where P is the training data set D S Then, the L1 norm distance δ p Based on this, the training data set D S The overall average intra-class distance can be calculated as follows:
number
[0032] The δ calculated in the above manner can be a distance threshold that represents a similarity threshold.
[0033] The meaning of the above formula (2) can be better understood by referring to Fig. 2. Fig. 2 is an explanatory diagram for explaining an exemplary process performed in step S101 for classification similarity calculation in the robustness estimation method 100 shown in Fig. 1, which shows training samples and target samples in the feature space that satisfy the above formula (2). In Fig. 2, each symbol "x" indicates one training sample in the feature space, each symbol "·" indicates one target sample in the feature space, each hollow circle with each symbol "x" as the circle center and radius δ indicates the adjacent area in the feature space of the training sample, and the symbol "·" in the hollow circle represents a target sample whose sample similarity with the training sample satisfies a predetermined threshold requirement (in this example, the L1 norm distance D(x,y) between the features is within the distance threshold δ).
[0034] Through the above-mentioned method, for each training sample, a corresponding or similar target sample in the target data set can be determined, which is convenient for subsequent estimation of the classification robustness of the classification model to the target data set based on the classification similarity between the classification results of each training sample and its corresponding or similar target sample.
[0035] The above describes the case where, for each training sample in the training data set, a uniform distance threshold (corresponding to a uniform similarity threshold) is used to determine the corresponding target sample in the target data set.
[0036] In one preferred embodiment, in the process of determining the target samples whose sample similarity with the training samples is within a predetermined threshold range (or meets the requirement of a predetermined threshold), a similarity threshold associated with a class to which each training sample belongs may be used as the corresponding predetermined threshold. For example, a similarity threshold associated with a class to which a training sample belongs may include an average sample similarity between each training sample belonging to the class in the training data set.
[0037] In such a case, in this example, the training data set D S For a training sample of the i-th class (i=1, 2, ..., N) in i (i.e., the average L1 norm distance between the features of each pair of training samples in the i-th class, where i = 1, 2, ..., N) is the distance threshold δ i and use a target data set D that satisfies the following formula (2') instead of formula (2). T A target sample y in may be determined as the corresponding target sample of a given training sample x in the i-th class.
[0038] D(x,y)≦δ i (2') The inventors have discovered that the average intra-class distance δ of the training samples in each class i may be different from each other, and the value is relatively small when the training samples of the class are relatively compact (dense) in the feature space, but the value is relatively large when the training samples of the class are relatively sparse in the feature space. Therefore, taking the intra-class average distance of the training samples of each class as the distance threshold of the class is advantageous to determine the appropriate adjacent region of the training samples of the class in the feature space, so that for the training samples of each class, the similar or corresponding target samples in the target data set can be more accurately determined.
[0039] For example, after determining each training sample x and its corresponding target sample y in a manner such as the above formulas (1) and (2) or (2'), in step S101, the classification similarity S(x, y) between the classification result c(x) of the classification model C for the training sample x and the classification result c(y) for each determined target sample y can be continuously calculated, for example, by the following formula (3).
[0040] S(x,y)=1-||c(x)-c(y)|| (3) Wherein, c(x) and c(y) respectively indicate the classification results of the classification model C for the training sample x and the target sample y. The classification results may adopt the form of an N-dimensional vector corresponding to the N classes output by the classification model C, where only the dimension corresponding to the class that the classification model C classifies the input sample has a value of 1, and the remaining dimensions have values of 0. ||c(x)-c(y)|| represents the L1 norm distance between such classification results c(x) and c(y), and its value is 0 or 1. If the classification result satisfies c(x)=c(y), the classification similarity S(x,y) is 1, otherwise S(x,y) is 0. It should be noted that the formula (3) here is merely an exemplary calculation method, and those skilled in the art may calculate the similarity between the classification results by other methods of calculating the similarity. For example, when calculating the classification similarity using another method, the value range of the classification similarity S(x, y) can be set to 0 to 1, and when the classification result satisfies c(x) = c(y), S(x, y) = 1, and when it does not, S(x, y) can be set to less than 1; however, detailed explanation of this is omitted here.
[0041] After obtaining the classification similarity between the classification result of each training sample x in the form of, for example, formula (3) and the classification result of each corresponding target sample y in step S101, the exemplary process in FIG. 1 can proceed to step S103.
[0042] In step S103, the training data set D S The classification result c(x) for each training sample x in the target data set D T Based on the classification similarity S(x,y)=1-||c(x)-c(y)|| between the classification result c(y) of the corresponding target sample y in the classification model C, for example, the target data set D of the classification model C is calculated by the following formula (4): T Classification robustness R 1 (C,T) can be determined.
number
[0043] The above formula (4) is S training sample x in the target data set D T If a target sample y in satisfies the condition ||f(x)-f(y)||≦δ, calculate its classification similarity 1-||c(x)-c(y)|| (i.e., calculate the classification similarity only for each training sample x and its "similar" or "corresponding" target sample y in step S101), and then calculate the expected value of all the obtained classification similarities (i.e., calculate the average value of all the classification similarities), to obtain the target data set D of the classification model C. T represents the computation of the classification robustness against
[0044] By using a format such as the above formula (4), for each training sample in the training data set, the classification ratio (proportion) of the training sample and its corresponding (or similar) target sample in the neighboring region in the feature space (i.e., the neighboring region centered on the sample and with the distance threshold δ as the radius) can be statistically calculated. The higher the matching ratio between the classification result of the classification model for the training sample and the classification result of the classification model for its corresponding (or similar) target sample, the higher the robustness of the classification model for the target data set.
[0045] Alternatively, in step S101, a distance threshold of the form of formula (2') may be used instead of formula (2) to calculate the distance of the target data set D for the training sample x. T When determining the corresponding target sample y in, the above formula (4) becomes the following formula (4').
number
[0046] In formula (4'), N represents the number of classes that the classification model classifies, and C i represents the set of training samples of the i-th class in the training data set, and δi represents the distance threshold of the i-th class, which is set as the average intra-class distance between the features of the training samples of the i-th class. Compared to formula (4), formula (4') uses the distance threshold δ associated with each class. i We use a method to more accurately determine the corresponding target samples for each training sample of a class, and thus to more accurately estimate the robustness of the classification model to the target data set.
[0047] An exemplary flow of the robustness estimation method in one embodiment of the present invention has been described above with reference to Figs. 1 and 2. Note that a specific method for determining robustness based on formulas (1) to (4') has been described with reference to Figs. 1 and 2. However, a person skilled in the art may perform the above-mentioned determination in any appropriate manner based on this embodiment. In other words, it is sufficient to be able to estimate the robustness of a classification model for a target data set based on the classification similarity between the training sample of the classification model and the classification result for the corresponding (or similar) target sample. By using the robustness estimation method in this embodiment, when the label of the target data is unknown, the robustness of the classification model for the target data set can be estimated in advance. In addition, the robustness estimation method requires only a calculation amount corresponding to the number of classes N of the classification model, i.e., has a relatively small time complexity of O(NlogN), and can be applied to estimate the robustness of a classification model for a large data set.
[0048] Next, based on the embodiment described with reference to the above-mentioned FIGS. 1 and 2, an exemplary flow of a robustness estimation method in another embodiment of the present invention will be described with reference to FIGS.
[0049] First, please refer to Figure 3, which is an exemplary flow of a robustness estimation method in another embodiment of the present invention.
[0050] As shown in Fig. 3, the robustness estimation method 300 in this embodiment differs from the robustness estimation method 100 shown in Fig. 1 in the following points. That is, in addition to steps S301 and S303 corresponding to steps S101 and S103 in Fig. 1, Fig. 3 further includes step S302. Step S302 is used to determine a classification confidence for each training sample of the classification model for the classification result of each training sample and the true class of each training sample based on the classification model. In addition, in step 303 in the method 300 shown in Fig. 3, in addition to the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set, the classification robustness of the classification model for each training image sample is further determined based on the classification confidence of the classification model for each training image sample.
[0051] Other than the above differences, step S301 in the robustness estimation method 300 in this embodiment is substantially the same as or similar to the corresponding step S101 in the robustness estimation method 100 in Fig. 1. Therefore, in the following, based on the embodiment described with reference to Figs. 1 and 2, the classification model C and the training data set D S and the target data set D T The differences between the two embodiments will be mainly described with reference to the example of FIG.
[0052] Specifically, in the exemplary method 300 shown in FIG. 3, in step S301 similar to step S101 in FIG. 1, in addition to calculating the classification similarity S(x, y) between the classification result c(x) for each training sample x of the classification model C and the classification result c(y) for the corresponding target sample y in the form of formula (3), in step S302, the classification confidence Con(x) for the training sample x of the classification model C is calculated based on the classification result c(x) for each training sample x of the classification model C and the true class (i.e., real label) label(x) of the training sample x, for example, by the following formula (5).
[0053] Con(x)=1-||label(x)-c(x)|| (5) Here, label(x) represents the true class of training sample x, which adopts the form of an N-dimensional vector like the classification result c(x), and Con(x) represents the classification confidence of training sample x calculated based on the L1 norm distance ||label(x)-c(x)|| between the true class label(x) of training sample x and the classification result c(x). Con(x) is 1 only when the value of Con(x) is between 0 and 1 and the classification result c(x) of classification model C for training sample x matches its true class label(x), and Con(x) is 0 otherwise.
[0054] After obtaining the classification confidence Con(x) in step S302, for example in the form of formula (5) above, the example method 300 in FIG. 3 may proceed to step 303. In step S303, the training data set D S The classification result c(x) for each training sample x in the target data set D T Based on the classification similarity S(x,y) between the classification result c(y) of the corresponding target sample y and the classification confidence Con(x) for each training sample x of the classification model C, the target data set D of the classification model C is calculated. T Classification robustness R 3 (C,T) is determined as follows:
number
[0055] Compared with formula (4) in the embodiment described with reference to Fig. 1, the above formula (6) in this embodiment has an additional term (1-||label(x)-c(x)||) indicating the classification confidence Con(x) of training sample x. In this manner, this embodiment further considers the classification accuracy of the training data set of the classification model, and can reduce the influence of incorrectly classified training samples and their corresponding target samples in the robustness estimation process, thereby making the robustness estimation more accurate.
[0056] Although a specific method for determining the classification robustness by further considering the classification reliability of the training samples, such as formulas (5) and (6), has been described with reference to Fig. 3, those skilled in the art may perform the above robustness estimation by adopting any appropriate method based on this embodiment, in other words, it is sufficient to reduce the influence of the incorrectly classified training samples and their corresponding target samples based on the classification reliability of the training samples, but detailed description thereof will be omitted here. The robustness estimation method in this embodiment further considers the classification reliability of the training samples in the process of determining the classification robustness, thereby further improving the accuracy of the robustness estimation.
[0057] Continuing, reference is made to Fig. 4, which is a diagram showing an exemplary flow of a robustness estimation method in another embodiment of the present invention.
[0058] As shown in Fig. 4, the robustness estimation method 400 in this embodiment differs from the robustness estimation method 100 in Fig. 1 in the following points: in addition to steps S401 and S403 corresponding to steps S101 and S103 in Fig. 1, Fig. 4 further includes steps S400 and S405. In step S400, a reference robustness of the classification model is determined for the training data set, and in step S405, a relative robustness of the classification model for the target data set is determined based on the classification robustness of the classification model for the target data set and the reference robustness of the classification model for the training data set.
[0059] Other than the above differences, steps S401 and S403 in the robustness estimation method 400 in this embodiment are substantially the same as or similar to the corresponding steps S101 and S103 in the robustness estimation method 100 shown in Fig. 1. Therefore, in the following, based on the embodiment described with reference to Figs. 1 and 2, the image classification model C and the training data set D S and the target data set D T The differences between the two embodiments will be mainly described with reference to the example of FIG.
[0060] In the exemplary method 400 in FIG. 4, first, in step S400, a criterion robustness of a training data set is calculated. S Let D be the training subset. S1 (first subset) and target subset D S2 (second subset) and then applying any one of the robustness estimation methods described with reference to Figures 1 to 3 to the training subset and the target subset to obtain a baseline robustness for the training data set.
[0061] 5 shows one example of the above-mentioned step S400. As shown in FIG. 5, the example process may include the following steps:
[0062] Step S4001: randomly divide the training data set to obtain a first subset and a second subset with equal numbers of samples; Step S4003: for each training sample in the first subset, determine a training sample in the second subset whose similarity with the training sample is within a predetermined threshold range, and calculate the sample similarity between the classification result for the training sample in the first subset of the classification model and the classification result for the training sample in the determined second subset of the classification model; Step S4005: Determine a criterion robustness of the classification model to the training data set based on the classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset.
[0063] Specifically, first, in step S4001, a training data set D S By randomly dividing the first subset D S1 and the second subset D S2 Get the.
[0064] Next, in step S4003, the first subset D S1 For each training sample x1 in the second subset D S2 Then, determine a training sample x2 whose similarity to the training sample x1 in the second subset D is within a predetermined threshold. For example, calculate the L1-norm distance D(x1,x2)=||f(x1)-f(x2)|| in the form of the above formula (2) to represent the sample similarity between the samples x1 and x2, and then define a second subset D S2 The training sample x2 whose L1 norm distance is within the distance threshold δ, that is, D(x1, x2)≦δ, is determined as the corresponding training sample.
[0065] Next, using formula (3), we calculate the first subset D of the classification model C. S1 The classification result c(x1) for the training sample x1 in the second subset D S2We can calculate the classification similarity S(x1, x2)=1-||c(x1)-c(x2)|| between the classification result c(x2) for the corresponding training sample x2 in
[0066] Then, in step S4005, the first subset D S1 The classification result c(x1) of each training sample x1 in S2 Based on the classification similarity S(x1,x2) between the classification result c(x2) of the corresponding training sample x1 in the training data set S, for example by using formula (4), the criterion robustness R 0 (C,S) is determined as follows:
number
[0067] Although formula (4) is employed here to determine the reference robustness for the training data set S of the classification model C, any suitable classification robustness determination method provided by the present invention (e.g., a method using formula (4') or formula (6)) may be used to determine the reference robustness. In other words, the determination method of the reference robustness should be consistent with the determination method for the classification robustness (hereinafter also referred to as absolute robustness) of the target data set in step S403.
[0068] Reference is now made again to FIG. 4. For example, the criterion robustness R 0 After obtaining (C,S), in steps S401 and S403 similar to steps S101 and S103 in FIG. 1, the absolute robustness R 1 After obtaining (C, S), the method 400 may proceed to step S405.
[0069] In step S405, the absolute robustness R 1 (C,S) and the criterion robustness R of the form (7) 0Based on (C,S), we can calculate the relative robustness as follows:
number
[0070] That is,
number
[0071] By calculating the baseline robustness of the training data set and then calculating the relative robustness based on the baseline robustness and the absolute robustness, a correction effect on the classification robustness can be achieved, thereby avoiding the influence of bias in the classification model itself on the classification robustness estimate.
[0072] Although the specific method for determining the relative robustness has been described with reference to Figures 4 and 5, such as formulas (7) and (8), those skilled in the art may use any suitable method to calculate the relative robustness based on this embodiment, in other words, it is sufficient to be able to modify the absolute robustness of the target data set based on the reference robustness of the training data set, but the detailed description thereof will be omitted here. According to the robustness estimation method of this embodiment, the classification robustness can be modified to modify the bias in the training process of the classification model itself, thereby further improving the accuracy of robustness estimation.
[0073] In addition, the robustness estimation methods in the embodiments of the present invention described above with reference to Figs. 1 to 5 can be combined to adopt different robustness estimation methods in different application scenarios. For example, the robustness estimation methods in the embodiments of the present invention can be combined in three aspects: when determining the corresponding target sample of the training sample, the same or different similarity thresholds are used for each class of the training sample (determining the corresponding target sample in a manner such as formula (2) or (2') and calculating the robustness in a manner such as formula (4) or (4')); when calculating the classification robustness for the target data set, the classification confidence of the training sample is taken into account or not (calculating the robustness in a manner such as formula (4) or (6)); and when calculating the classification robustness for the target data set, the relative robustness or absolute robustness is calculated (calculating the robustness in a manner such as formula (4) or (7)). In this way, eight different robustness estimation methods can be obtained, and the optimal method can be adopted in different application scenarios.
[0074] Next, a method for evaluating the accuracy of a robustness estimation method and the accuracy of various robustness estimation methods obtained according to the embodiments of the present invention evaluated using the evaluation method will be described.
[0075] As an example, the accuracy of a robustness estimation method can be evaluated by calculating the average estimation error (AEE) of the robustness estimation method for the true robustness value and the estimated robustness estimated using multiple classification models based on a given robustness estimation method.
[0076] Specifically, we first take classification accuracy as an exemplary indicator of the performance of a classification model and define a true robustness value G in the form of the following formula (9).
number
[0077] Formula (9) expresses the classification accuracy acc for a given classification model on a target data set T. T and the classification accuracy acc for the training data set or a test set S corresponding to the training data set (e.g., a test set that is independent and identically distributed to the training data set). S Here, the accuracy rate acc for the target data set is T is the accuracy rate acc on the test set S Therefore, by adopting the minimum value between the two as the numerator of formula (9), the value of the true robustness G can be limited to between 0 and 1 to make subsequent calculations easier. For example, the accuracy rate acc for the test set of a classification model is S is 0.95, and the accuracy rate acc for the target data set T falls to 0.80, the true robustness value G for the target data set is 0.84. The higher the value of the true robustness value G, the closer the accuracy rate of the classification model for the target data set is to the accuracy rate for the test set.
[0078] Based on the robustness true value calculated for multiple models in the form of the above formula (9) and the estimated robustness of each model obtained by a certain robustness estimation method, it is possible to determine whether the robustness estimation method is effective. For example, the average estimation error AEE in the form of the following formula (10) can be used as an evaluation index.
number
[0079] In formula (10), M denotes the number of classification models for which robustness is estimated using a given robustness estimation method (M is a natural number greater than 1), and R j denotes the estimated robustness of the j-th classification model obtained using the robustness estimation method, and G jdenotes the true robustness value (j=1,2,...,M) of the jth classification model obtained by using formula (9). By calculating the average estimation error ACC in the above manner, the average error rate of the estimation result of the robustness estimation method can be reflected, and the smaller the value, the higher the accuracy of the robustness estimation method.
[0080] The accuracy of the robustness estimation method obtained according to the embodiment of the present invention can be evaluated for an application by the above-mentioned average estimation error calculation method in the form of formula (10). Figure 6 is an exemplary table illustrating the accuracy of the robustness estimation method according to the embodiment of the present invention, which shows the average estimation error (AEE) of robustness estimation methods (1)-(8) calculated using formula (10) for a specific application.
[0081] In the application example shown in FIG. 6, each of the eight robustness estimation methods, each of which is numbered (1) to (8), is used to estimate each of the M classification models C j (j = 1, 2, ..., M, where M = 10), and calculate the average estimation error (AEE) of each robustness estimation method for the estimated robustness of each classification model and the true robustness of each classification model based on each robustness estimation method, as shown in the rightmost column of the table in Figure 6, using formula (10).
[0082] Each classification model C related to the application example of Figure 6 j The image samples are stored in a predefined number of j Classes (N j is a natural number greater than 1), and the classification model C j A training data set D for training j S is a subset of the MNIST handwritten character set, and the classification model C j Target data set D to which the j T is a subset of the USPS handwritten character set.
[0083] The robustness estimation methods (1)-(8) employed in the application example shown in Fig. 6 are directly obtained by using the robustness estimation methods in the embodiments of the present invention described above with reference to Fig. 1-5, or by using a combination of multiple methods among these methods. As shown in the three middle columns of the table in Fig. 6, the robustness estimation methods (1)-(8) adopt different settings in three aspects, namely, when determining the corresponding target samples of the training samples, set the same or different similarity thresholds for each class of the training samples (determine the corresponding target samples in the manner of formula (2) or (2'), and calculate the robustness in the manner of formula (4) or (4')); when calculating the classification robustness for the target data set, consider or do not consider the classification reliability of the training samples (calculate the robustness in the manner of formula (4) or (6)); and when calculating the classification robustness for the target data set, calculate the relative robustness or absolute robustness (calculate the robustness in the manner of formula (4) or (7)).
[0084] For the robustness estimation methods (1) to (8) adopting different settings in the above three aspects, the rightmost column of the table in FIG. 6 shows the average estimation error (AEE) calculated using formula (10). As can be seen from the AEE calculation results shown in the table in FIG. 6, various robustness estimation methods obtained using the embodiments of the present invention can obtain a fairly low estimation error. In addition, as shown in the table in FIG. 6, setting different similarity thresholds and considering the classification reliability of training samples are advantageous in further reducing the average estimation error, among which the minimum average estimation error is only 0.0461. In addition, in this embodiment, the average estimation error when adopting relative robustness is inferior to the average estimation error when adopting absolute robustness, but in different cases (for example, when the classification model itself has a bias), the method adopting relative robustness can have higher accuracy.
[0085] In another aspect of the present invention, there is further provided a robustness estimation device. Hereinafter, a robustness estimation device according to an embodiment of the present invention will be described with reference to Figs.
[0086] FIG. 7 is a block diagram showing an exemplary configuration of a robustness estimation device in an embodiment of the present invention.
[0087] As shown in FIG. 7, the robustness estimation device 700 may include:
[0088] A classification similarity calculation unit 701: for each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate the classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample; and Classification robustness determination unit 703: determine the classification robustness of the classification model to the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set.
[0089] Regarding the robustness estimation device and each unit thereof, reference can be made to, for example, the robustness estimation method and the operations and / or processing of each step thereof described with reference to Figures 1 and 2 above, and therefore duplicated explanations will be omitted here.
[0090] FIG. 8 is a block diagram showing another exemplary configuration of a robustness estimation device in an embodiment of the present invention.
[0091] As shown in Fig. 8, the robustness estimation apparatus 800 in this embodiment differs from the robustness estimation apparatus 700 in Fig. 7 in that, in addition to the classification similarity calculation unit 801 and the classification robustness determination unit 803 corresponding to the classification similarity calculation unit 701 and the classification robustness determination unit 703 in Fig. 7, Fig. 8 further includes a classification confidence calculation unit 802, which is used to determine a classification confidence for each training sample of the classification model based on the classification result for each training sample of the classification model and the true class of each training sample. In addition, the classification robustness determination unit 803 in the exemplary apparatus 800 in Fig. 8 determines the classification robustness of the classification model for the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set, and further based on the classification confidence for each training sample of the classification model.
[0092] For the robustness estimation device and each unit thereof described above, reference can be made to, for example, the robustness estimation method and the operations and / or processing of each step thereof described with reference to FIG. 3 above, so that repeated explanations will be omitted here.
[0093] FIG. 9 is a block diagram showing yet another exemplary configuration of a robustness estimation device in an embodiment of the present invention.
[0094] As shown in FIG. 9, the robustness estimation apparatus 900 in this embodiment differs from the robustness estimation apparatus 700 in FIG. 7 in that, in addition to the classification similarity calculation unit 901 and the classification robustness determination unit 903 corresponding to the classification similarity calculation unit 701 and the classification robustness determination unit 703 in FIG. 7, FIG. 9 further includes a reference robustness determination unit 9000 and a relative robustness determination unit 905, in which the reference robustness determination unit 9000 is used for determining the reference robustness of the classification model for the training data set, and the relative robustness determination unit 905 is used for determining the relative robustness of the classification model for the target data set based on the classification robustness of the classification model for the target data set and the reference robustness of the classification model for the training data set.
[0095] Regarding the robustness estimation device and each unit thereof, reference can be made to, for example, the robustness estimation method and the operations and / or processes of each step thereof described based on Figures 4 and 5 above, and therefore duplicated explanations will be omitted here.
[0096] In another aspect of the present invention, there is further provided a data processing method for performing data classification using a classification model having good robustness selected by the robustness estimation method in the embodiment of the present invention. Figure 10 is a flowchart of an exemplary flow for determining a classification model having good robustness using the robustness estimation method in the embodiment of the present invention and performing data processing.
[0097] As shown in FIG. 10, the data processing method 10 includes the following steps.
[0098] Step S11: Input the target sample into the classification model; and Step S13: Using the classification model, classification is performed on the target sample.
[0099] Here, the classification model is obtained in advance by training using a training data set, and the classification robustness of the classification model estimated using any one of the robustness estimation methods (or a combination thereof) in the embodiments of the present invention described based on Figures 1 to 5 above for the target data set to which the target sample belongs exceeds a predetermined robustness threshold.
[0100] Also, as described in the description of the robustness estimation method in the embodiment of the present invention, the robustness estimation method in the embodiment of the present invention can be applied to classification models of multiple types of data including image data and time series data, and these classification models can adopt various appropriate formats such as CNN model, RNN model, etc. Accordingly, by applying a classification model with good robustness selected by such a robustness estimation method (i.e., a classification model with relatively high robustness estimated by such a robustness estimation method) to the above-mentioned various data processing fields, it is possible to ensure that the selected classification model has good classification performance for the target data set to which it is applied, thereby improving the performance of subsequent data processing.
[0101] Taking image data classification as an example, since the cost of marking (labeling) real-world images is high, labeled images (e.g., existing training data samples) previously obtained by other means can be used as a training data set in the process of training a classification model. However, since such previously obtained labeled images may not be completely consistent with real-world images, the classification model trained using them may have a significantly reduced expression (classification performance) for a target data set in the real world. In such a case, the robustness estimation method in the embodiment of the present invention can be used to estimate the classification robustness of a classification model trained using a training data set previously obtained by other means for a target data set in the real world, thereby improving the effectiveness of subsequent data processing by selecting a classification model with good robustness before actual deployment and use.
[0102] Below, we will describe several application examples to which the method shown in Figure 10 can be applied. These application examples include the following types of classification models: image classification models for semantic segmentation, image classification models for handwritten character recognition, image classification models for traffic sign recognition, and classification models for time series data for weather forecasting.
[0103] <Application Example 1> Application example 1 of the data processing method in the embodiment of the present invention may include semantic segmentation, which refers to segmenting different parts of a given image that represent different objects in the image (e.g. labeling different objects with different colors), and the principle is to classify each pixel in the image into one of multiple predefined object classes using a classification model.
[0104] In the application of semantic segmentation, the cost of labeling real-world images is very high, so in the process of training a classification model for semantic segmentation, pre-labeled images of scenes in a simulation environment (e.g., 3D games) can be used as a training data set. Compared with real-world images, it is easier to realize automatic labeling of objects in a simulation environment by programming, so labeled training samples can be easily obtained. However, since the simulation environment cannot be completely identical to the real environment, a classification model trained using training samples in a simulation environment may have a significantly reduced representation (classification performance) for the target data set in the real environment.
[0105] Therefore, by using the robustness estimation method in an embodiment of the present invention, the classification robustness of a classification model trained based on a training data set in a simulation environment to a target data set in a real environment can be estimated, so that a classification model with good robustness can be selected before actual deployment and use to improve the effectiveness of subsequent data processing.
[0106] <Application Example 2> Application example 2 of the data processing method in the embodiment of the present invention may include, for example, recognizing images of traffic signs, etc. Recognizing images of traffic signs, etc. can be achieved by classifying traffic signs contained in a given image into one of a number of predefined sign classes, which is of great significance in fields such as autonomous driving.
[0107] Similar to the application of semantic segmentation, in the process of training a classification model for traffic sign recognition, pre-labeled images of scenes in a simulation environment (e.g., a 3D game) can be used as a training data set. By using the robustness estimation method in the embodiment of the present invention, the classification robustness of the classification model trained based on the training data set of the simulation environment to the target data set of the real environment can be estimated, so that a classification model with good robustness can be selected before actual deployment and use to improve the effect of subsequent data processing.
[0108] <Application example 3> The application example 3 of the data processing method in the embodiment of the present invention may include, for example, recognition of handwritten characters (numbers and Chinese characters). The recognition of handwritten characters can be achieved by classifying characters contained in a given image into one of a number of predefined character classes.
[0109] Since the cost of labeling real handwritten character images obtained by photographing is very high, in the process of training a classification model for handwritten character recognition, an existing labeled handwritten character set, for example, MNIST, USPS, SVHN, etc., can be used as a training data set. By using the robustness estimation method in the embodiment of the present invention, the classification robustness of the classification model trained based on such a training data set for handwritten character images (i.e., a target data set) obtained by photographing in a real environment can be estimated, and thus, a classification model with good robustness can be selected before actual deployment and use to improve the effectiveness of subsequent data processing.
[0110] <Application Example 4> Besides the application scenario based on image classification, the application example of the data processing method in the embodiment of the present invention may further include classification of time series data, such as application example 4 of the classification model of time series data for weather forecasting. The classification model of time series data for weather forecasting can predict weather indicators after a predetermined period based on time series weather data representing the weather in the predetermined period, i.e., can provide one of a plurality of predefined weather indicator classes.
[0111] As an example, input data for a classification model of time series data for weather forecasting may be a predetermined length of time (e.g., 2 hours) of time series data of eight dimensions including time, PM2.5 air pollution index, temperature, pressure, wind speed, wind direction, cumulative precipitation, and cumulative snow depth within a predetermined period (e.g., 3 days), and the output of the classification model may be one of a number of predefined PM2.5 air pollution index ranges.
[0112] For example, such a classification model may adopt a training data set of region A during training, and be applied to weather forecasting of region B during application. Also, for example, the classification model may adopt a training data set of spring during training, and be applied to weather forecasting of autumn during application. By using the robustness estimation method in the embodiment of the present invention, the classification robustness of the classification model trained based on the training data set of a certain region or season (or time) to a target data set of a different region or season (or time) can be estimated, so that a classification model with good robustness can be selected before actual deployment and use to improve the effect of subsequent data processing.
[0113] Above, the application examples of image data classification and time series data classification have been described as application scenarios in which data processing can be performed using the robustness estimation method and corresponding classification model in the embodiments of the present invention. Those skilled in the art should understand that based on these application examples, if the performance of a classification model for a target data set is different from that for a training data set due to the training data set and the target data set not being independent and identically distributed, the robustness estimation method in the embodiments of the present invention can be used to estimate the robustness of the classification model for the target data set, and a classification model with good robustness can be selected to improve the effect of subsequent data processing.
[0114] According to another aspect of the present invention, there is provided an information processing device, which can realize the robustness estimation method in the embodiment of the present invention, and may include a processor, which may be configured as follows: for each training sample in a training data set, determine a target sample in a target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between a classification result of the classification model for the training sample and a classification result of the classification model for the determined target sample, where the classification model is previously obtained by training based on the training data set; and determine a classification robustness of the classification model for the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set.
[0115] The processor of the information processing device may be configured to perform, for example, the operation and / or processing of the robustness estimation method and each step thereof described with reference to Figures 1 to 5 above, but a duplicated description will be omitted here.
[0116] As an example, both the training data set and the target data set include image data samples or time series data samples.
[0117] In a preferred embodiment, the processor of the information processing device may be further configured to: determine a classification confidence for each training sample of the classification model based on the classification result for each training sample of the classification model and the true class of each training sample; and determine a classification robustness of the classification model for the target data set based on the classification similarity between the classification result of each training sample in the training data set and the classification result of the corresponding target sample in the target data set, and the classification confidence for each training sample of the classification model.
[0118] In a preferred embodiment, the processor of the information processing device may be further configured to: randomly divide the training data set to obtain a first subset and a second subset with equal numbers of samples; for each training sample in the first subset, determine a training sample whose similarity to the training sample in the second subset is within a predetermined threshold range; calculate a sample similarity between the classification result of the classification model for the training sample in the first subset and the classification result of the classification model for the training sample in the determined second subset; determine a reference robustness of the classification model for the training data set based on the classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset; and determine a relative robustness of the classification model for the target data set based on the classification robustness of the classification model for the target data set and the reference robustness of the classification model for the training data set.
[0119] In one preferred embodiment, the processor of the information processing device may be further configured to: in the process of determining a target sample whose sample similarity to a training sample in a target data set is within a predetermined threshold range, use a similarity threshold associated with a class to which the training sample belongs as the predetermined threshold.
[0120] Preferably, the similarity threshold associated with the class to which the training sample belongs may comprise the average sample similarity between each training sample in the training data set that belongs to said class.
[0121] In one preferred embodiment, the processor of the information processing device may be further configured as follows: in the process of determining a target sample in a target data set whose sample similarity with a training sample is within a predetermined threshold range, a classification model is used to calculate the feature similarity between the features extracted from the training sample and the features extracted from each target sample in the target data set as the sample similarity between the training sample and each target sample.
[0122] FIG. 11 is a diagram showing a hardware configuration 1100 capable of realizing a robustness estimation method and apparatus, and an information processing device according to an embodiment of the present invention.
[0123] 11, a central processing unit (CPU) 1101 performs various processes based on a program stored in a ROM 1102 or a program loaded from a storage unit 1108 to a RAM 1103. The RAM 1103 can also store data required when the CPU 1101 performs various processes, depending on the needs. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output interface 1105 is also connected to the bus 1104.
[0124] Further, the following components are connected to the input / output interface 1105: an input unit 1106 including a keyboard, an output unit 1107 including a display such as a liquid crystal display (LCD) and a speaker, a storage unit 1108 including a hard disk, and a communication unit 1109 including a network interface card such as a LAN card, a modem, etc. The communication unit 1109 performs communication processing via a network such as the Internet or a LAN.
[0125] The drive 1110 may be connected to the input / output interface 1105 as needed. A removable medium 1111, for example, a semiconductor memory, can be set in the drive 1110 as needed to install a computer program read from the removable medium 1111 into the memory 1108.
[0126] The present invention further provides a program product including a machine-readable instruction code, which, when read and executed by a machine, can execute the method in the above-mentioned embodiment of the present invention. Accordingly, various storage media, such as magnetic disks (including floppy disks (registered trademark)), optical disks (including CD-ROMs and DVDs), magneto-optical disks (including MDs (registered trademark)), and semiconductor storage devices, that carry such a program product are also included in the present invention.
[0127] The above-mentioned storage medium may include, for example, a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory device, and the like, but is not limited to these.
[0128] Additionally, each operation (process) in the above-described method may be implemented in the form of a computer-executable program stored in various machine-readable storage media.
[0129] Furthermore, with respect to the above-mentioned embodiments, the following supplementary notes are disclosed.
[0130] (Appendix 1) 1. A robustness estimation method for estimating robustness of a classification model previously obtained by training on a training data set, comprising: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample; and determining classification robustness of a classification model to a target data set based on a classification similarity between a classification result of each training sample in the training data set and a classification result of a corresponding target sample in the target data set.
[0131] (Appendix 2) 2. A robustness estimation method according to claim 1, comprising: determining a classification confidence for each training sample of the classification model based on the classification result for each training sample of the classification model and the true class of each training sample; A method for determining classification robustness of a classification model for a target data set based on classification similarity between a classification result of each training sample in a training data set and a classification result of a corresponding target sample in a target data set, and classification confidence of the classification model for each training sample.
[0132] (Appendix 3) 2. A robustness estimation method according to claim 1, comprising: Randomly split the training data set to obtain a first subset and a second subset with equal numbers of samples; For each training sample in the first subset, determine a training sample in the second subset whose similarity to the training sample is within a predetermined threshold range, and calculate a sample similarity between the classification result of the training sample in the first subset of the classification model and the classification result of the classification model for the training sample in the determined second subset; Calculating a criterion robustness of the classification model to the training data set based on a classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset; and The method further includes determining a relative robustness of the classification model to the target data set based on the classification robustness of the classification model to the target data set and a baseline robustness of the classification model to the training data set.
[0133] (Appendix 4) 4. A robustness estimation method according to any one of claims 1 to 3, comprising: A method for determining target samples in a target data set whose sample similarity to a training sample is within a predetermined threshold range, the method using a similarity threshold associated with a class to which the training sample belongs as the predetermined threshold.
[0134] (Appendix 5) 5. A robustness estimation method according to claim 4, comprising the steps of: The method of claim 1, wherein the similarity threshold associated with the class to which the training sample belongs comprises an average sample similarity between each training sample in the training data set that belongs to the class.
[0135] (Appendix 6) 4. A robustness estimation method according to any one of claims 1 to 3, comprising: A method for determining target samples in a target data set whose sample similarity to a training sample is within a predetermined threshold range, the method using a classification model to calculate feature similarity between features extracted from the training sample and features extracted from each target sample in the target data set as sample similarity between the training sample and each target sample.
[0136] (Appendix 7) 4. A robustness estimation method according to any one of claims 1 to 3, comprising: The method, wherein the training data set and the target data set include image data samples or time series data samples.
[0137] (Appendix 8) 1. A data processing method comprising the steps of: Input the target samples into the classification model; and performing classification on the target samples using the classification model; The classification model has been previously obtained by training using a training data set; A method, wherein the classification robustness of a classification model estimated using the robustness estimation method according to any one of claims 1 to 7 to a target data set to which the target sample belongs exceeds a predetermined robustness threshold.
[0138] (Appendix 9) 9. The data processing method according to claim 8, further comprising: The method, wherein the classification model includes one of an image classification model for semantic segmentation, an image classification model for handwritten character recognition, an image classification model for traffic sign recognition, and a time series data classification model for weather forecasting.
[0139] (Appendix 10) An information processing device including a processor, The processor includes: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample, the classification model being previously obtained by training based on the training data set; and An apparatus configured to determine classification robustness of a classification model to a target data set based on a classification similarity between a classification result of each training sample in the training data set and a classification result of a corresponding target sample in the target data set.
[0140] (Appendix 11) 11. The information processing device according to claim 10, The processor further comprises: The method is configured to determine a classification confidence for each training sample of the classification model based on the classification result for each training sample of the classification model and the true class of each training sample; An apparatus for determining classification robustness of a classification model for a target data set based on a classification similarity between a classification result of each training sample in the training data set and a classification result of a corresponding target sample in the target data set, and a classification confidence of the classification model for each training sample.
[0141] (Appendix 12) 11. The information processing device according to claim 10, The processor further comprises: Randomly split the training data set to obtain a first subset and a second subset with equal numbers of samples; For each training sample in the first subset, determine a training sample in the second subset whose similarity to the training sample is within a predetermined threshold range, and calculate a sample similarity between the classification result of the training sample in the first subset of the classification model and the classification result of the classification model for the training sample in the determined second subset; Calculating a criterion robustness of the classification model to the training data set based on a classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset; and An apparatus configured to determine a relative robustness of a classification model to a target data set based on a classification robustness of the classification model to a target data set and a baseline robustness of the classification model to a training data set.
[0142] (Appendix 13) 13. An information processing device according to any one of claims 10 to 12, The processor further comprises: An apparatus configured to, in a process of determining target samples in a target data set whose sample similarity to a training sample is within a predetermined threshold, use a similarity threshold associated with a class to which the training sample belongs as the predetermined threshold.
[0143] (Appendix 14) 14. The information processing device according to claim 13, The similarity threshold associated with the class to which the training sample belongs comprises an average sample similarity between each training sample in the training data set that belongs to the class.
[0144] (Appendix 15) 13. An information processing device according to any one of claims 10 to 12, The processor further comprises: An apparatus configured to, in a process of determining target samples in a target data set whose sample similarity to a training sample is within a predetermined threshold range, use a classification model to calculate feature similarity between features extracted from the training sample and features extracted from each target sample in the target data set as sample similarity between the training sample and each target sample.
[0145] (Appendix 16) 13. An information processing device according to any one of claims 10 to 12, The training data set and the target data set include image data samples or time series data samples.
[0146] (Appendix 17) A storage medium having machine (e.g., computer) readable instruction code stored thereon, the instruction code, when read and executed by a machine, causes the machine to execute a robustness estimation method, the robustness estimation method being used to estimate robustness of a classification model previously obtained by training based on a training data set; Randomly split the training data set to obtain a first subset and a second subset with equal numbers of samples; For each training sample in the first subset, determine a training sample in the second subset whose similarity to the training sample is within a predetermined threshold range, and calculate a sample similarity between the classification result of the training sample in the first subset of the classification model and the classification result of the classification model for the training sample in the determined second subset; Calculating a criterion robustness of the classification model to the training data set based on a classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset; and The storage medium further includes determining a relative robustness of the classification model to the target data set based on the classification robustness of the classification model to the target data set and a baseline robustness of the classification model to the training data set.
[0147] Although the preferred embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and any modification to the present invention falls within the technical scope of the present invention as long as it does not depart from the spirit of the present invention.
Claims
1. A computer-implemented robustness estimation method used to estimate the robustness of a classification model previously obtained by training on a training data set, comprising: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample; and A robustness estimation method comprising determining classification robustness of a classification model to a target data set based on classification similarity between a classification result of each training sample in the training data set and a classification result of a corresponding target sample in the target data set.
2. 2. A robustness estimation method according to claim 1, comprising the steps of: determining a classification confidence for each training sample of the classification model based on the classification result for each training sample of the classification model and the true class of each training sample; A robustness estimation method for determining classification robustness of a classification model for a target data set based on classification similarity between the classification result of each training sample in the training data set and the classification result of a corresponding target sample in the target data set, and classification confidence of the classification model for each training sample.
3. 2. A robustness estimation method according to claim 1, comprising the steps of: Randomly splitting the training data set to obtain a first subset and a second subset having equal numbers of samples; For each training sample in the first subset, determine a training sample in the second subset whose similarity to the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the training sample in the first subset of the classification model and the classification result of the classification model for the training sample in the determined second subset; Calculating a criterion robustness of the classification model to the training data set based on a classification similarity between the classification result of each training sample in the first subset and the classification result of the corresponding training sample in the second subset; and The robustness estimation method further includes determining a relative robustness of the classification model to the target data set based on the classification robustness of the classification model to the target data set and a baseline robustness of the classification model to the training data set.
4. A robustness estimation method according to any one of claims 1 to 3, comprising the steps of: A robustness estimation method, comprising: in a process of determining target samples in a target data set whose sample similarity to a training sample is within a predetermined threshold range, the predetermined threshold is a similarity threshold associated with a class to which the training sample belongs.
5. A robustness estimation method according to claim 4, comprising the steps of: The robustness estimation method, wherein the similarity threshold associated with the class to which the training sample belongs comprises an average sample similarity between each training sample in the training data set that belongs to the class.
6. A robustness estimation method according to any one of claims 1 to 3, comprising the steps of: A robustness estimation method, in a process of determining a target sample in a target data set whose sample similarity to a training sample is within a predetermined threshold range, using a classification model to calculate feature similarity between a feature extracted from the training sample and a feature extracted from each target sample in the target data set as a sample similarity between the training sample and each target sample.
7. A robustness estimation method according to any one of claims 1 to 3, comprising the steps of: A robustness estimation method, wherein the training data set and the target data set include image data samples or time series data samples.
8. 1. A data processing method comprising the steps of: Inputting the target sample into a classification model; and performing classification on the target samples using the classification model; The classification model has been previously obtained by training using a training data set; A data processing method, wherein the classification robustness of a classification model estimated using the robustness estimation method according to any one of claims 1 to 7 to a target data set to which the target sample belongs exceeds a predetermined robustness threshold.
9. A data processing method according to claim 8, further comprising the steps of: The data processing method, wherein the classification model includes one of an image classification model for semantic segmentation, an image classification model for handwritten character recognition, an image classification model for traffic sign recognition, and a time series data classification model for weather prediction.
10. An information processing device including a processor, The processor includes: For each training sample in the training data set, determine a target sample in the target data set whose sample similarity with the training sample is within a predetermined threshold range, and calculate a classification similarity between the classification result of the classification model for the training sample and the classification result of the classification model for the determined target sample, the classification model being previously obtained by training based on the training data set; and An information processing device configured to determine classification robustness of a classification model to a target data set based on a classification similarity between a classification result of each training sample in the training data set and a classification result of a corresponding target sample in the target data set.
Citation Information
Patent Citations
Output value prediction method, output value prediction device, and program for the method
JP2011039763A
