Information processing device, information processing method, and information processing program
The information processing device addresses class imbalance by using a loss function based on score frequency distribution to improve classification accuracy, enabling efficient learning and accurate classification of sequence data into multiple classes.
Patent Information
- Application Number
- PCT/JP2023/010095
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-09-19
AI Technical Summary
Existing classification technologies face difficulties in achieving accurate classification due to class imbalance, where some classes have a large amount of data while others have very little, leading to inefficient learning and reduced classification accuracy.
An information processing device and method that acquires sequence data, classifies it into multiple classes using a score representing classification certainty, and trains the classification means using a loss function based on the frequency distribution of scores, allowing for efficient learning and improved classification accuracy even with class imbalance.
The solution enables efficient learning and enhances classification accuracy by using a loss function that accounts for the frequency distribution of scores, effectively addressing the challenges posed by class imbalance.
Smart Images

Figure JP2023010095_19092024_PF_FP_ABST
Abstract
Description
Information processing device, information processing method, and information processing program
[0001] The present invention relates to an information processing device, an information processing method, and an information processing program.
[0002] There is known a technique for classifying sequential data into one of a plurality of classes by referring to the sequential data. For example, Patent Literature 1 discloses an identification device that identifies to which of a plurality of classes, such as pre-registered people or other objects, a plurality of time-series data, which is an example of sequential data, belongs.
[0003] JP 2009-245314 A
[0004] In general, classification processing for classifying sequential data is prone to the problem of class imbalance, where a class into which a large amount of sequential data is classified is mixed with a class into which almost no sequential data is classified. In the classification device described in Patent Document 1, when class imbalance exists in the training data, the device's learning process has a problem in that learning related to classification into a minority class is difficult to progress. As a result, the accuracy of the classification processing is difficult to improve.
[0005] One aspect of the present invention has been made in consideration of the above-mentioned problems, and one example of a purpose of the present invention is to provide a technology that enables efficient learning and improves classification accuracy even when class imbalance exists in training data.
[0006] An information processing device according to one aspect of the present invention includes an acquisition means for acquiring sequence data, and a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means is trained using a loss function according to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0007] An information processing device according to one aspect of the present invention includes an acquisition means for acquiring sequence data, a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, and a learning means for training the classification means using a loss function according to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0008] An information processing method according to one aspect of the present invention includes: acquiring sequence data by at least one processor; and using classification means to classify the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means is trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0009] An information processing method according to one aspect of the present invention includes at least one processor acquiring sequence data, and training a classification means that performs a classification process to classify the sequence data into one of a plurality of classes using a score that represents the accuracy of the classification, using a loss function that corresponds to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0010] An information processing program according to one aspect of the present invention causes a computer to execute an acquisition process for acquiring sequence data and a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means for performing the classification process has been trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0011] An information processing program according to one aspect of the present invention causes a computer to execute an acquisition process of acquiring sequence data, a classification process of classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, and a learning process of training a classifier that performs the classification process using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0012] According to one aspect of the present invention, even when class imbalance exists in the training data, efficient training can be performed, and classification accuracy can be improved.
[0013] FIG. 1 is a block diagram showing the configuration of an information processing device according to exemplary embodiment 1. FIG. 2 is a flow diagram showing the flow of an information processing method according to exemplary embodiment 1. FIG. 3 is a block diagram showing the configuration of an information processing device according to exemplary embodiment 1. FIG. 4 is a flow diagram showing the flow of an information processing method according to exemplary embodiment 1. FIG. 5 is a block diagram showing the configuration of an information processing device according to exemplary embodiment 2. FIG. 6 is a diagram for explaining a score matrix and a score sequence according to exemplary embodiment 2. FIG. 7 is a flow diagram showing the flow of classification processing according to exemplary embodiment 2. FIG. 8 is a diagram for explaining classification processing according to exemplary embodiment 2. FIG. 9 is a flow diagram showing the flow of learning processing according to exemplary embodiment 2. FIG. 10 is a diagram for explaining learning processing according to exemplary embodiment 2. FIG. 11 is a diagram for explaining extraction processing according to exemplary embodiment 2. FIG. 12 is a block diagram showing the configuration of an information processing device according to exemplary embodiment 3. FIG. 13 is a block diagram showing the configuration of a computer that functions as an information processing device according to each exemplary embodiment.
[0014] [First Exemplary Embodiment] A first exemplary embodiment of the present invention will be described in detail with reference to the drawings. This exemplary embodiment is a basic form of the exemplary embodiments described below.
[0015] Overview of Information Processing Device 1 The information processing device 1 according to this exemplary embodiment has a function of classifying sequence data input to an acquisition unit into one of a plurality of classes using a classification unit, and a function of training the classification unit. In other words, the information processing device 1 functions both as a classification device that classifies sequence data and as a learning device that trains the classification unit that performs the classification processing.
[0016] Here, the sequence data according to this exemplary embodiment is ordered data including one or more element data. In other words, the sequence data is composed of each element data. An example of the sequence data is video data or audio data. The sequence data may also be data representing trends in power consumption, etc. The sequence data is not limited to time-series data in which element data are arranged in chronological order, but may be any data in which the element data have some sort of sequential relationship. The element data is data that constitutes the sequence data, and an example is a frame in a video, but is not limited to this.
[0017] For example, the information processing device 1 calculates a score for classifying each element data included in the sequence data. A series of scores corresponding to the sequence data is constructed from a plurality of scores calculated for the sequence data.
[0018] Then, as an example, the information processing device 1 classifies the series data corresponding to the score series into one of multiple predetermined classes by comparing the scores included in the score series with one or more predetermined thresholds.
[0019] These processes executed by the information processing device 1 can be considered as a type of so-called SPRT (Sequential Probability Ratio Test), but are not limited thereto. Specific examples of classes do not limit the present exemplary embodiment, but include people, objects other than people, and people's actions.
[0020] As an example, the information processing device 1 is a device that acquires video images from a camera installed at the entrance of a building, an event venue, etc. as sequence data and classifies the subjects included in the video images into a plurality of pre-registered classes.
[0021] <Configuration of information processing device 1> Next, the configuration of the information processing device 1 will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the configuration of the information processing device 1. As shown in Fig. 1, the information processing device 1 includes an acquisition unit 11, a classification unit 12, and a learning unit 13.
[0022] (Acquisition Unit 11) The acquisition unit 11 acquires sequence data. The acquisition unit 11 may acquire the sequence data all at once, or may acquire the sequence data sequentially. An example of the sequence data is as described above.
[0023] (Classification Unit 12) The classification unit 12 performs a classification process to classify the sequential data acquired by the acquisition unit 11 into one of a plurality of classes, using a score that indicates the accuracy of the classification. Although the details of the classification process performed by the classification unit 12 do not limit the present exemplary embodiment, an example of the classification process may include, as described above, the following processes: calculate a score from each element data included in the sequential data acquired by the acquisition unit 11, and refer to a score series obtained from the calculated scores, and compare the scores included in the score series with a predetermined threshold, thereby classifying the sequential data corresponding to the score series into one of a plurality of predetermined classes.
[0024] (Learning Unit 13) The learning unit 13 trains the classification unit 12 using a loss function according to the frequency distribution of scores obtained from a score sequence, which is a sequence of scores.
[0025] Here, the score series referred to by the learning unit 13 may be a score series of scores calculated by the classification unit 12 in the classification phase in which the information processing device 1 functions as a classification device, or may be a score series of scores calculated by the classification unit 12 by referring to series data acquired as learning data in the learning phase in which the information processing device 1 functions as a learning device.
[0026] Furthermore, the frequency distribution of scores referenced by the learning unit may be: a frequency distribution of scores obtained in a certain piece of sequence data by ignoring the sequence direction (time direction in the case of time-series data) (in other words, obtained by making the sequence direction zero-dimensional) or a frequency distribution of scores across a sequence data group at a certain point in the sequence direction (a certain time point in the case of time-series data) in a sequence data group containing multiple pieces of sequence data (in other words, a sequence data group in a mini-batch).
[0027] As described above, the information processing device 1 according to this exemplary embodiment is configured to acquire sequence data and classify the sequence data into one of a plurality of classes, using a score that indicates the accuracy of the classification, and train the classification means using a loss function according to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0028] In general, classification processing for classifying sequential data is prone to the problem of class imbalance, where a class into which a large amount of sequential data is classified is mixed with a class into which almost no sequential data is classified. The information processing device 1 according to this exemplary embodiment employs a configuration in which the classifier 12 is trained using a loss function according to the frequency distribution of scores obtained from a score sequence, which is a sequence of scores. This provides the advantage of being able to perform efficient training without being significantly affected by class imbalance. In other words, the information processing device 1 according to this exemplary embodiment provides the advantage of being able to perform efficient training and improve classification accuracy even when class imbalance exists in the training data.
[0029] <Flow of Information Processing Method S1> Next, the flow of the information processing method S1 according to the present exemplary embodiment 1 will be described with reference to Fig. 2. Fig. 2 is a flow diagram showing the flow of the information processing method S1. As shown in Fig. 2, in step S11, the acquisition unit 11 acquires sequence data. In step S12, the learning unit 13 causes the classifier 12, which performs classification processing to classify the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, to learn using a loss function corresponding to the frequency distribution of the scores obtained from the score sequence, which is a sequence of the scores.
[0030] As described above, the information processing method S1 according to this exemplary embodiment is configured to acquire sequence data and classify the sequence data into one of a plurality of classes, and to train a classifier that performs the classification process using a score that indicates the accuracy of the classification using a loss function that corresponds to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores. Therefore, the information processing method S1 according to this exemplary embodiment can perform efficient training and achieve improved classification accuracy even when class imbalance exists in the training data.
[0031] <Configuration of Information Processing Device 2> Next, the configuration of the information processing device 2 according to this exemplary embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing the configuration of the information processing device 2. As shown in Fig. 3, the information processing device 2 includes an acquisition unit 21 and a classification unit 22. On the other hand, the information processing device 2 does not include the learning unit included in the information processing device 1. However, the classification unit 22 included in the information processing device 2 has been trained in advance using a configuration equivalent to the learning unit 13 included in the information processing device 1. The information processing device 2 according to this exemplary embodiment functions as a classification device that classifies sequence data.
[0032] (Acquisition Unit 21) The acquisition unit 21 acquires sequence data in the same manner as the acquisition unit 11 provided in the information processing device 1, which has already been described. The specific processing executed by the acquisition unit 21 is similar to that of the acquisition unit 11 provided in the information processing device 1, which has already been described, and therefore will not be described here.
[0033] (Classification unit 22) The classification unit 22 performs classification processing to classify the sequence data into one of a plurality of classes, using a score that indicates the accuracy of the classification. Here, the classification unit 22 is trained using a loss function according to the frequency distribution of the scores obtained from the score sequence, which is a sequence of the scores. The specific processing performed by the classification unit 22 is similar to the processing performed by the classification unit 12 included in the information processing device 1, which has already been described, and therefore will not be described here.
[0034] As described above, the information processing device 2 according to this exemplary embodiment acquires sequence data and classifies the sequence data into one of a plurality of classes, using a score that indicates the accuracy of the classification. Here, the classifier that performs the classification process is trained using a loss function according to the frequency distribution of the scores obtained from the score sequence, which is a sequence of the scores.
[0035] Therefore, according to the information processing device 2 according to this exemplary embodiment, even if class imbalance exists in the training data, it is possible to improve classification accuracy by using an efficiently trained classification unit.
[0036] <Flow of Information Processing Method S2> Next, the flow of the information processing method S2 according to the present exemplary embodiment 1 will be described with reference to FIG. 4. FIG. 4 is a flow diagram showing the flow of the information processing method S2. As shown in FIG. 4, in step S21, the acquisition unit 21 acquires sequence data. In step S22, the classification unit 22 performs classification processing to classify the sequence data into one of a plurality of classes, using a score that indicates the accuracy of the classification. Here, the classification unit 22 has been trained using a loss function according to the frequency distribution of the scores obtained from the score sequence, which is a sequence of the scores.
[0037] As described above, the information processing method S2 according to this exemplary embodiment acquires sequence data and classifies the sequence data into one of a plurality of classes, using a score that indicates the accuracy of the classification. Also, in the information processing method S2 according to this exemplary embodiment, the classifier 22 is trained using a loss function according to the frequency distribution of the scores obtained from the score sequence, which is a sequence of the scores.
[0038] Therefore, according to the information processing method S2 of this exemplary embodiment, even if class imbalance exists in the training data, it is possible to improve classification accuracy by using an efficiently trained classifier.
[0039]
[0033] A second exemplary embodiment of the present invention will be described in detail with reference to the drawings. Note that components having the same functions as those described in the first exemplary embodiment are designated by the same reference numerals, and their description will not be repeated.
[0040] 5 is a block diagram showing the configuration of the information processing device 1A according to this exemplary embodiment. The information processing device 1A includes a control unit 10A, a storage unit 20A, a communication unit 30A, and an input / output unit 40A.
[0041] (Communication Unit 30A) The communication unit 30A communicates with devices external to the information processing device 1A via a communication line. Although the specific configuration of the communication line does not limit this exemplary embodiment, examples of the communication line include a wireless local area network (LAN), a wired LAN, a wide area network (WAN), a public line network, a mobile data communication network, or a combination thereof. The communication unit 30A transmits data supplied from the control unit 10A to other devices, and supplies data received from other devices to the control unit 10A.
[0042] (Input / Output Unit 40A) Input / output devices such as a keyboard, a mouse, a display, a printer, and a touch panel are connected to the input / output unit 40A. The input / output unit 40A receives various types of information input to the information processing device 1A from the connected input devices. Furthermore, under the control of the control unit 10A, the input / output unit 40A outputs various types of information to connected output devices. Examples of the input / output unit 40A include an interface such as a USB (Universal Serial Bus).
[0043] (Acquisition Unit 11) The acquisition unit 11 acquires the sequence data SD. For example, the acquisition unit 11 acquires the sequence data SD from another device via the communication unit 30A. Alternatively, the acquisition unit 11 may acquire the sequence data SD input via the input / output unit 40A. Alternatively, the acquisition unit 11 may acquire the sequence data SD by reading it from the storage unit 20A or an externally connected storage device.
[0044] In this exemplary embodiment, the sequence data SD acquired by the acquisition unit 11 is, for example, time-series data having a sequence with respect to time, but this does not limit the exemplary embodiment.
[0045] In addition, in this exemplary embodiment, the series data SD acquired by the acquisition unit 11 is, as an example, video data including a plurality of frames, but this does not limit the present exemplary embodiment.
[0046] (Classification Unit 12) The classification unit 12 performs classification processing to classify the sequence data acquired by the acquisition unit 11 into one of a plurality of classes, using a score that indicates the accuracy of the classification. Here, the score is calculated by the classification unit 12, for example. A specific example of the score calculated by the classification unit 12 is not limited to this exemplary embodiment, but a log-likelihood ratio is one example.
[0047] The upper part of Fig. 6 shows log-likelihood ratios as a specific example of scores calculated by the classification unit 12. In the example shown in the upper part of Fig. 6, classification into three classes is assumed. As shown in Fig. 6, a score matrix λ is defined as a matrix having log-likelihood ratios as elements. kl (t) is defined, where k is an index specifying a row of the score matrix, l is an index specifying a column of the score matrix, and t is an index indicating time.
[0048] The score matrix λ kl (t) is a sequence X (1,t) = {x (1) , x (2) , ..., x (t)} In the score matrix representation, y indicates the class label.
[0049] As shown in Figure 3, the score matrix λ kl Each component of (t) is the sequence X up to time t. (1,t) The conditional probability (sometimes called likelihood or prior distribution) p(X (1,t) |y). For example, as shown in FIG. 12 is X(1,t) The probability of classification into class label y = 1 under the condition p(X (1,t) |y=1) and X (1,t) The probability of classification to class label y = 0, given (1,t) |y=0). As is clear from these definitions, the score matrix λ kl (t) is an antisymmetric matrix.
[0050] The specific configuration used by the classification unit 12 to calculate the above probability (likelihood) does not limit this exemplary embodiment, but as an example, a deep learning algorithm using a neural network can be used.
[0051] The classification unit 12 also uses the score matrix λ defined as above. kl From each component of (t), the value at each time t is calculated as shown in the lower part of FIG. The score sequence s defined by k (1,t) (sometimes simply referred to as score sequence s). Here, min{} is a function whose output value is the minimum value of the arguments. As is clear from the above explanation, the classification unit 12 calculates score sequences s for the number of classes. In other words, score sequences s for the number of classes are calculated from one piece of sequence data acquired by the acquisition unit 11.
[0052] (Flow of Classification Process by Classification Unit 12) When a score corresponding to a certain datum in the sequence data acquired by the acquisition unit 11 reaches the threshold of one of multiple classes, the classification unit 12 classifies the sequence data into the class, and when the score corresponding to the certain datum does not reach any of the thresholds of the multiple classes, the classification unit 12 updates the score using the data next to the certain datum among the data included in the sequence data, in other words, updates the score sequence. By performing the above-described process, the classification unit 12 can efficiently classify the sequence data.
[0053] The specific flow of the classification process of the sequence data by the classification unit 12 will be described below with reference to Fig. 7. Fig. 7 is a flowchart showing the flow of the classification process of the sequence data by the classification unit 12.
[0054] 7, in step S101, the classification unit 12 calculates a score from the sequence data. More specifically, the classification unit 12 calculates the score sequence defined in the above description.
[0055] (S102) Next, in step S102, the classification unit 12 determines whether any of the scores included in the score series has reached a predetermined threshold value Th. If any of the scores included in the score series has reached the predetermined threshold value Th, the process proceeds to step S103; if not, the process proceeds to step S104.
[0056] Here, the threshold Th may be set for each class. For example, a threshold Th0 to be referenced for classification into class 0 (y=0), a threshold Th1 to be referenced for classification into class 1 (y=1), and a threshold Th2 to be referenced for classification into class 2 (y=2) may be set.
[0057] (S103) If any score in the score series reaches a predetermined threshold Th, in step S103, the classification unit 12 classifies the series data into a class corresponding to the score series including the score that reaches the threshold Th, and ends the classification process. The classification unit 12 stores the classification result in the storage unit 20A, for example.
[0058] (S104) On the other hand, if there is no score that has reached the predetermined threshold Th among the scores included in the score series, in step S104, the classification unit 12 updates the score and updates the score series using the updated score. After these update processes, the process of step S102 is performed.
[0059] 8 is a diagram for schematically explaining the results of the classification process by the classification unit 12. In the example of FIG. 8, the horizontal axis represents time, and the vertical axis represents the score value. In the example shown in FIG. 8, the score series s 1 (1,t) approaches the threshold value Th as time passes, and reaches the threshold value Th at time τ. This is because, in step S102 described above, the score series s at time τ 1 (1,t) reaches the threshold value, and in step S103, classification into class 1 is performed. On the other hand, as shown in FIG. 8, the score series s 0 (1,t) , and the score sequence s indicating the classification into class 2 2 (0,t) does not approach the threshold value Th over time, and does not reach the threshold value Th at time τ. Therefore, in this example, the sequence data to be processed is not classified into either class 0 or class 2.
[0060] In this way, the classification unit 12 sequentially calculates score sequences for the number of classes from the acquired sequence data, and sequentially compares the calculated score sequences with thresholds to classify the sequence data into one of a plurality of classes. Note that the classification process described above can be considered as a type of SPRT (Sequential Probability Ratio Test) algorithm, but this term does not limit this exemplary embodiment.
[0061] (Learning Unit 13) The learning unit 13 trains the classification unit 12 using a loss function according to the frequency distribution of scores obtained from a score series, which is a series of scores calculated by the classification unit 12. Here, the loss function referred to by the learning unit 13 is, for example, a loss function expressed using the partial AUC (Partial Area Under the Curve) of an ROC curve (Receiver Operating Characteristic Curve) obtained from the frequency distribution of the scores. Specific examples of the ROC curve and the partial AUC will be described later.
[0062] (Flow of learning process by learning unit 13) The flow of learning process of the classification unit 12 by the learning unit 13 will be described below with reference to Fig. 9. Fig. 9 is a flowchart showing the flow of learning process of the classification unit 12 by the learning unit 13.
[0063] (S201) As shown in Fig. 9, the learning unit 13 acquires a score series in step S201. Here, the score series acquired by the learning unit 13 is, as an example, the score series calculated by the classification unit 12 described above. The upper part of Fig. 10 shows an example of a score series acquired by the learning unit 13. The upper part of Fig. 10 shows, as an example of a score series, a score series s 0 (0,t) , the score sequence s indicating classification into class 1 1 (0,t) , and the score sequence s indicating the classification into class 2 2 (0,t) is shown.
[0064] (S202) Subsequently, in step S202, the learning unit 13 calculates a cumulative frequency distribution ADD from the score series acquired in step S201. In this step, the learning unit 13 first calculates a frequency distribution (histogram) showing the relationship between each score and the frequency (frequency) of that score by ignoring (or making zero-dimensional) the sequence direction (time direction in this example) of the score series, as shown in the lower left part of FIG. 10 . Here, the learning unit 13 generates the frequency distribution including a histogram corresponding to a true class and a histogram corresponding to a false class. In this example, the histogram corresponding to the true class is a histogram corresponding to the score series s 1 (0,t) The histogram corresponding to the false class is the score series s 0 (0,t) and the score sequence s indicating classification into class 2 1 (0,t) It is calculated from the score series that sums up the above.
[0065] Next, in this step, the learning unit 13 calculates histograms for the other multiple sequence data included in the mini-batch (a group of sequence data stored in the storage unit 20A) using the same method, and calculates a cumulative frequency distribution by summing up the calculated histograms within the mini-batch. This summation is performed for each class. An example of the calculated cumulative frequency distribution is shown in the lower right corner of Figure 10.
[0066] (S203) Subsequently, in step S203, the learning unit 13 calculates an ROC curve for each class using the cumulative frequency distribution calculated in step S202. Subsequently, in this step, the learning unit 13 calculates a pAUC (partial area under the curve) for each class from the above-mentioned ROC curve. The learning unit 13 stores the calculated partial area under the curve pAUC in the memory unit 20A, as an example. FIG. 11 is a diagram schematically showing the ROC curve and pAUC calculated by the learning unit 13 in this step. Here, the pAUC calculated in this step is also referred to as pAUC-ROC.
[0067] Note that specific examples of calculating pAUC by the learning unit 13 do not limit this exemplary embodiment, but examples include: pAUC obtained by restricting the FPR (False Positive Rate) pAUC obtained by restricting the TPR (True Positive Rate) pAUC obtained by restricting both the FPR and TPR pAUC obtained by restricting to a Region of Interest The pAUC shown in Fig. 11 is an example of pAUC obtained by restricting both the FPR and TPR.
[0068] Next, in this step, the learning unit 13 converts the class-specific pAUCs described above so that the pAUCs become differentiable functions. Here, the conversion process may include replacing a step function included in the pAUC before conversion with a smooth function.
[0069] (S204) Subsequently, in step S204, the learning unit 13 calculates a value of a loss function defined using the converted pAUC described above. The learning unit 13 stores the calculated loss function value VLF in the storage unit 20A, for example.
[0070] Note that a specific example of the loss function LF calculated by the learning unit 13 does not limit the present exemplary embodiment, but as an example, LF=(1−Z) 2 ...(Formula 1) (where Z is the pAUC after the above conversion averaged over multiple classes) can be used. Here, the averaging process may be a simple average or a weighted average obtained by setting a weighting factor for each class. For example, Z can be expressed as Z=w 0 *pAUC 0 + w 1 *pAUC 1 + w 2 *pAUC 2 You can also use w 0 , w 1 , w 2 represent the weighting factors set for classes 0, 1, and 2, respectively, and pAUC 0 , pAUC 1 , pAUC 2 represent the transformed pAUC for classes 0, 1, and 2, respectively, and * is the symbol representing the product.
[0071] (S205) Subsequently, in step S205, the learning unit 13 causes the classifier 12 to train using the loss function calculated as described above. More specifically, the learning unit 13 trains the classifier 12 by updating the parameters of the classifier 12 (parameters of the neural network, if a neural network is used as the classifier 12) so as to increase or decrease the value of the loss function calculated as described above. In other words, the learning unit 13 trains the classifier 12 by updating the parameters of the classifier 12 so as to maximize or minimize the loss function calculated as described above. Note that, as a parameter optimization method using a loss function, stochastic gradient descent, error propagation, etc. can be used, but are not limited to these.
[0072] (Effects of Using pAUC) As will be described in more detail later, pAUC tends to be less affected by class imbalance, and therefore, by performing training using the loss function LF as described above, the training unit 13 can train the classifier 12 with almost no effect from class imbalance. Therefore, with the above configuration, even if class imbalance exists in the training data, efficient training can be performed, and classification accuracy can be improved.
[0073] (Another Example of Loss Function) Furthermore, the learning unit 13 may employ, as the loss function LF, a linear sum of a loss function that depends on pAUC as described above and a loss function that does not depend on pAUC.
[0074] For example, the learning unit 13 sets the loss function LF as follows: LF=a*(1−Z) 2 + b*L LLLR ...(Equation 2) may be used, where a and b represent weighting coefficients, and L LLLR represents a loss function that does not depend on pAUC, and as an example, Here, K is the number of classes, M is the data length, and T is the time series length of the sequence data. LLLR Since L performs a sum operation within the argument of the logarithm, LLLRhas a large gradient with respect to the dominant element in the sum. LLLR The adoption of the method has the advantage that the classifier 12 can be trained to effectively classify difficult-to-distinguish sequence data, in other words, to perform hard sample mining.
[0075] Therefore, by using the loss function LF defined by the above-mentioned equation 2, the classifier 12 can be trained to be tolerant to class imbalance and to be able to effectively perform hard sample mining.
[0076] (Other Examples of Cumulative Frequency Distribution) In the above explanation, the cumulative frequency distribution calculated in step S202 is exemplified as follows: - By ignoring (or making zero-dimensional) the series direction of the score series (the time direction in this example), a frequency distribution (histogram) showing the relationship between each score and the frequency (frequency) of that score is calculated; - Histograms are calculated using a similar method for multiple other series data included in the mini-batch, and the calculated histograms are added up within the mini-batch to calculate the cumulative frequency distribution. However, this exemplary embodiment is not limited to this.
[0077] Instead of the above example, the learning unit 13 may calculate the cumulative frequency distribution for each class as follows: a frequency distribution for multiple series data included in a mini-batch, which is a frequency distribution of scores at a certain point in the series direction (a certain time point in the case of time-series data), and use the calculated frequency distribution as the cumulative frequency distribution.
[0078] (Explanation of Not Being Affected by Class Imbalance) The following will explain why using the pAUC-dependent loss function described above enables learning that is less susceptible to the effects of class imbalance.
[0079] Conventionally, the loss function is As shown above, a loss function that depends on the probability (also called the prior distribution) p(y) was used. However, when using such a loss function, the minority class has a small p(y), so its contribution to the loss function is small. As a result, there was a problem that learning did not proceed efficiently for the minority class (the class imbalance problem).
[0080] On the other hand, as explained in this exemplary embodiment, AUC (pAUC) is, by definition, As such, it does not depend on the prior distribution. Therefore, the magnitude of p(y) does not affect the loss function. For this reason, by using the loss function dependent on pAUC described above, the learning unit 13 can be trained without being affected by class imbalance.
[0081] Next, the extraction unit 14 included in the control unit 10A according to this exemplary embodiment will be described. The extraction unit 14 extracts, from the sequence data acquired by the acquisition unit 11, sequence data corresponding to an area where a frequency distribution obtained from a certain score sequence overlaps with a frequency distribution obtained from another score sequence in the frequency distribution of the scores calculated by the classification unit 12.
[0082] 12 is a diagram for schematically explaining the extraction process performed by the extraction unit 14. As shown in FIG. 12, the region defined by pAUC on the ROC graph corresponds to the region in the (cumulative) frequency distribution where the histogram of the true class and the histogram of the false class overlap. The extraction unit 14 extracts sequence data corresponding to such overlapping region from the data acquired by the acquisition unit 11. The learning unit 13 then trains the classifier 12 using the sequence data extracted by the extraction unit 14.
[0083] By including the extraction unit 14 as described above, the information processing device 1A according to this exemplary embodiment can train the classification unit 12 so that it can effectively classify difficult-to-distinguish sequence data without being affected by class imbalance, in other words, so that it can perform hard sample mining.
[0084]
[0033] A third exemplary embodiment of the present invention will be described in detail with reference to the drawings. Note that components having the same functions as those described in the first and second exemplary embodiments are denoted by the same reference numerals, and their description will not be repeated.
[0085] 13 is a block diagram showing the configuration of the information processing device 2A according to this exemplary embodiment. As shown in FIG. 13, the information processing device 2A includes a control unit 10A, a storage unit 20A, a communication unit 30A, and an input / output unit 40A. The information processing device 2A functions as a classification device that classifies sequence data.
[0086] 13 , the control unit 10A of the information processing device 2A includes an acquisition unit 11 and a classification unit 12, but does not include a learning unit 13 or an extraction unit 14. The acquisition unit 11 and classification unit 12 included in the control unit 10A of the information processing device 2A perform the same processing as the acquisition unit 11 and classification unit 12 included in the information processing device 1A. The classification unit 12 included in the control unit 10A of the information processing device 2A has been learned by the learning unit 13 described in exemplary embodiment 2. Furthermore, the classification unit 12 may be learned by the learning unit 13 using the sequence data extracted by the extraction unit 14 described in exemplary embodiment 2.
[0087] According to the information processing device 2A configured as described above, the classification unit 12 is trained in the same manner as in the information processing device 1A to classify sequence data, thereby enabling efficient classification processing without being affected by class imbalance.
[0088] [Example of implementation by software] The control blocks (particularly the classification units 12, 22, learning unit 13, and extraction unit 14) of the information processing devices 1, 2, 1A, and 2A may be implemented by logic circuits (hardware) formed on an integrated circuit (IC chip) or the like, or may be implemented by software.
[0089] In the latter case, the information processing devices 1, 2, 1A, and 2A each include a computer that executes instructions from a program, which is software that realizes each function. This computer includes, for example, at least one processor (control device) and at least one computer-readable recording medium storing the program. The object of the present invention is achieved when the processor in the computer reads and executes the program from the recording medium. The processor may be, for example, a CPU (Central Processing Unit). The recording medium may be a "non-transitory tangible medium," such as a ROM (Read Only Memory), tape, disk, card, semiconductor memory, or programmable logic circuit. The computer may also include a RAM (Random Access Memory) for loading the program. The program may also be supplied to the computer via any transmission medium capable of transmitting the program (such as a communication network or broadcast waves). Note that one aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave, in which the program is embodied by electronic transmission.
[0090] [Additional Note 1] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. For example, embodiments obtained by appropriately combining the technical means disclosed in the above-described embodiments are also included in the technical scope of the present invention.
[0091] [Additional Note 2] Part or all of the above-described embodiment can also be described as follows: However, the present invention is not limited to the following described aspects.
[0092] (Supplementary Note 1) An information processing device comprising: an acquisition means for acquiring sequence data; and a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification, wherein the classification means is trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0093] (Supplementary Note 2) The information processing device according to Supplementary Note 1, wherein the loss function is a loss function expressed using a partial AUC of an ROC curve obtained from a frequency distribution of the scores.
[0094] (Supplementary Note 3) The information processing device according to Supplementary Note 1 or 2, wherein the classification means is trained using sequence data extracted from the sequence data acquired by the acquisition means, the sequence data corresponding to an area in the frequency distribution of the scores where a frequency distribution obtained from a certain score sequence overlaps with a frequency distribution obtained from another score sequence.
[0095] (Supplementary Note 4) The information processing device according to any one of Supplementary Notes 1 to 3, wherein the classification means classifies the sequence data into a class when a score corresponding to a certain piece of data in the sequence data reaches a threshold value of one of a plurality of classes, and updates the score using data subsequent to the certain piece of data included in the sequence data when the score corresponding to the certain piece of data does not reach any of the threshold values of the plurality of classes.
[0096] (Supplementary Note 5) An information processing device comprising: an acquisition means for acquiring sequence data; a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification; and a learning means for training the classification means using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0097] (Supplementary Note 6) The information processing device according to Supplementary Note 5, wherein the loss function is a loss function expressed using a partial AUC of an ROC curve obtained from a frequency distribution of the scores.
[0098] (Supplementary Note 7) The information processing device according to Supplementary Note 5 or 6, further comprising an extraction means for extracting, from the sequence data acquired by the acquisition means, sequence data corresponding to an area in the frequency distribution of the scores where a frequency distribution obtained from a certain score sequence overlaps with a frequency distribution obtained from another score sequence.
[0099] (Supplementary Note 8) The information processing device according to Supplementary Note 7, wherein the classifying means is trained using the sequence data extracted by the extracting means.
[0100] (Supplementary Note 9) The information processing device according to any one of Supplementary Notes 5 to 8, wherein the classification means classifies the sequence data into a class when a score corresponding to a certain piece of data in the sequence data reaches a threshold value of one of a plurality of classes, and updates the score using data subsequent to the certain piece of data included in the sequence data when the score corresponding to the certain piece of data does not reach any of the threshold values of the plurality of classes.
[0101] (Supplementary Note 10) An information processing method including: at least one processor acquiring sequence data; and using classification means to perform a classification process of classifying the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification; wherein the classification means is trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0102] (Supplementary Note 11) An information processing method including: at least one processor acquiring sequence data; and training a classification means that performs a classification process to classify the sequence data into one of a plurality of classes using a score that represents the accuracy of the classification, using a loss function according to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0103] (Supplementary Note 12) An information processing program that causes a computer to execute an acquisition process for acquiring sequence data, and a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification, wherein the classification means that performs the classification process is trained using a loss function that corresponds to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0104] (Supplementary Note 13) An information processing program that causes a computer to execute: an acquisition process that acquires sequence data; a classification process that classifies the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification; and a learning process that causes a classification means that performs the classification process to learn using a loss function that corresponds to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0105] [Additional Note 3] Part or all of the above-described embodiment can also be expressed as follows.
[0106] (Supplementary Note 14) An information processing device comprising at least one processor, the processor executing: an acquisition process for acquiring sequence data; and a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score representing the accuracy of the classification; wherein the classification means for performing the classification process is trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0107] (Supplementary Note 15) An information processing device comprising at least one processor, the processor executing: an acquisition process for acquiring sequence data; a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score representing the accuracy of the classification; and a learning process for training a classification means for performing the classification process using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
[0108] These information processing devices may further include a memory that stores a program for causing the processor to execute the acquisition process, the classification process, and the learning process. The program may also be recorded on a computer-readable, non-transitory, tangible recording medium.
[0109] REFERENCE SIGNS LIST 1, 2, 1A, 2A... Information processing device 11, 21... Acquisition unit 12, 22... Classification unit 13... Learning unit 14... Extraction unit 20A... Storage unit 30A... Communication unit 40A... Input / output unit
Claims
1. An information processing device comprising: an acquisition means for acquiring sequence data; and a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means is trained using a loss function corresponding to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
2. The information processing device according to claim 1, wherein the loss function is a loss function expressed using a partial AUC of an ROC curve obtained from a frequency distribution of the scores.
3. The information processing device according to claim 1 or 2, wherein the classification means is trained using sequence data extracted from the sequence data acquired by the acquisition means, the sequence data corresponding to an area in the frequency distribution of the scores where a frequency distribution obtained from a certain score sequence overlaps with a frequency distribution obtained from another score sequence.
4. An information processing device as claimed in any one of claims 1 to 3, wherein the classification means classifies the sequence data into a class when a score corresponding to a certain piece of data in the sequence data reaches a threshold value of one of a plurality of classes, and updates the score using data subsequent to the certain piece of data among data included in the sequence data when the score corresponding to the certain piece of data does not reach any of the threshold values of the plurality of classes.
5. An information processing device comprising: an acquisition means for acquiring sequence data; a classification means for performing a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification; and a learning means for training the classification means using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
6. The information processing device according to claim 5, wherein the loss function is a loss function expressed using a partial AUC of an ROC curve obtained from a frequency distribution of the scores.
7. An information processing device as described in claim 5 or 6, further comprising an extraction means for extracting sequence data corresponding to an area in the frequency distribution of the scores where a frequency distribution obtained from a certain score sequence overlaps with a frequency distribution obtained from another score sequence, from the sequence data acquired by the acquisition means.
8. The information processing device according to claim 7, wherein the classification means is trained using the sequence data extracted by the extraction means.
9. An information processing device as claimed in any one of claims 5 to 8, wherein the classification means classifies the sequence data into a class when a score corresponding to a certain data item in the sequence data reaches a threshold value of one of a plurality of classes, and updates the score using data subsequent to the certain data item among data included in the sequence data when the score corresponding to the certain data item does not reach any of the threshold values of the plurality of classes.
10. An information processing method comprising: at least one processor acquiring sequence data; and using a classification means to perform a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means is trained using a loss function according to a frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
11. An information processing method comprising: at least one processor acquiring sequence data; and training a classification means that performs a classification process to classify the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, using a loss function according to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
12. An information processing program that causes a computer to execute an acquisition process for acquiring sequence data, and a classification process for classifying the sequence data into one of a plurality of classes using a score that indicates the accuracy of the classification, wherein the classification means for performing the classification process is trained using a loss function corresponding to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
13. An information processing program that causes a computer to execute an acquisition process for acquiring sequence data; a classification process for classifying the sequence data into one of a plurality of classes, the classification process using a score that indicates the accuracy of the classification; and a learning process for training a classification means that performs the classification process using a loss function that corresponds to the frequency distribution of the scores obtained from a score sequence that is a sequence of the scores.
Citation Information
Patent Citations
Information processing method, information processing program, and information processing equipment
JP2020149644A
Time series data analysis method, time-series data analyzer and computer program
JP2020170214A
