Training device, estimation device, training method, and training program

The learning device calculates covariance matrices and sets weights for evaluation functions to generate trained models that handle data distribution mismatches, ensuring accurate processing of data from different sources, thereby addressing the challenge of biased models in machine learning.

WO2024180681A1PCT designated stage expired Publication Date: 2024-09-06NT T INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/007395
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing machine learning technologies face challenges in generating trained models when the distribution of training data differs from the data distribution at the time of estimation, such as when data from one observation device is used for training but data from another device is used for estimation, leading to biased models.

Method used

A learning device and method that calculates covariance matrices for output values of evaluation functions from both data groups, sets weights for these functions, and forms an overall evaluation function to generate a trained model based on the assumed data distribution during estimation, allowing for balanced processing of data from different sources.

Benefits of technology

Enables the generation of trained models that accurately process mixed data by adjusting the contribution of each data group's evaluation function, effectively addressing the distribution mismatch and improving model performance in domain generalization scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023007395_06092024_PF_FP
    Figure JP2023007395_06092024_PF_FP
Patent Text Reader

Abstract

This training device comprises: a training acquisition unit that acquires a first training data set and a second training data set formed with a fewer number of data pieces than the number of data pieces belonging to the first training data set; a calculation unit that calculates a first covariance matrix which is a covariance matrix of output values of a first evaluation function used when machine learning is performed using the first training data set, and calculates a second covariance matrix which is a covariance matrix of output values of a second evaluation function used when machine learning is performed using the second training data set; a configuration unit that calculates a weight for the first evaluation function and / or the second evaluation function on the basis of a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and configures an overall evaluation function formed by including the weight, the first evaluation function, and the second evaluation function; and a training unit that generates a trained model by training a learning model on the basis of the first training data, the second training data, and the overall evaluation function.
Need to check novelty before this filing date? Find Prior Art

Description

Learning device, estimation device, learning method, and learning program

[0001] The disclosed technology relates to a learning device, an estimation device, a learning method, and a learning program.

[0002] When generating a trained model using machine learning technology, if the statistical distribution of already obtained training data (hereinafter simply referred to as "distribution") matches the distribution of data at the time of estimation, it is possible to generate a trained model that can accurately process the data at the time of estimation. However, in reality, it is often the case that only training data with a distribution different from the distribution of data at the time of estimation is obtained.

[0003] For example, there are cases where data observed by observation device 1 is used during learning, while data observed by observation device 2 must be used as input data during actual estimation. For example, when an old camera, observation device 1, is switched to a new camera, observation device 2, it is expected that there will be a large amount of data captured by the old camera, while there will be little data captured by the new camera. In this case, a trained model must be generated under an unbalanced situation in which the amount of data captured by the new camera is extremely small compared to the amount of data captured by the old camera. In this case, a trained model is generated using a large amount of data captured by the old camera and a small amount of data captured by the new camera, and during estimation, data that is a mixture of data captured by both the old and new cameras must be processed using the trained model.

[0004] As another example, a case may be considered in which a large amount of data is observed from machine 1 in a factory, while only a small amount of data is observed from machine 2 of the same type in another factory. In this case, it may be desirable to generate a trained model assuming that there is a similar amount of data observed by machine 1 and that observed by machine 2. Regarding the distribution of data assumed during estimation, if the distribution of data observed from machine 1 and the distribution of data observed from machine 2 are similar, it is desirable to generate a trained model after correcting the bias in the amount of data as described above.

[0005] A conventionally known technique is, for example, a technique for evaluating anomalies using Mahalanobis distance (see, for example, Non-Patent Document 1). In this technique, when generating a trained model, the variance of the error output from the evaluation function is calculated in advance. Then, in this technique, the data output from the trained model during estimation is corrected based on the variance of the error calculated during training.

[0006] Tsuyoshi Ide and Masaru Sugiyama, "Machine Learning Professional Series: Anomaly Detection and Change Detection", Kodansha, 2015, (pp. 15-21)

[0007] As described above, even if only training data with a distribution different from the distribution of data obtained during estimation is available, it is desirable to generate a trained model by assuming the distribution of data obtained during estimation.

[0008] However, the technology of Non-Patent Document 1 only corrects the data output from the trained model during estimation, and has the problem that it cannot generate a trained model by assuming the distribution of data obtained during estimation.

[0009] The disclosed technology has been made in consideration of the above points, and aims to provide a learning device, an estimation device, a learning method, and a learning program that can generate a trained model by assuming the distribution of data obtained at the time of estimation, even if only learning data having a distribution different from the distribution of data obtained at the time of estimation is available.

[0010] A first aspect of the present disclosure includes a learning acquisition unit that acquires a first learning data group and a second learning data group that is configured with a number of data smaller than the number of data belonging to the first learning data group, and a first evaluation function that is used when performing machine learning using the first learning data group, the first evaluation function being used when inputting each of a plurality of first learning data belonging to the first learning data group, the first covariance matrix being the covariance matrix of output values ​​of the first evaluation function, and a second evaluation function that is used when performing machine learning using the second learning data group, the second covariance matrix being the covariance matrix of output values ​​of the first evaluation function when inputting each of a plurality of first learning data belonging to the second learning data group. a calculation unit that calculates a second covariance matrix, which is a covariance matrix of output values ​​of the second evaluation function, when each set of data for training is input; a setting unit that calculates a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and sets an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; and a learning unit that generates a trained model by training a model for training based on the first data group for training, the second data group for training, and the overall evaluation function.

[0011] A second aspect of the present disclosure includes acquiring a first training data group and a second training data group consisting of less data than the number of data belonging to the first training data group, calculating a first covariance matrix that is a covariance matrix of output values ​​of a first evaluation function used when performing machine learning using the first training data group, when each of a plurality of first training data belonging to the first training data group is input to the first evaluation function, and calculating a first covariance matrix that is a covariance matrix of output values ​​of the first evaluation function used when performing machine learning using the second training data group, when each of a plurality of second training data belonging to the second training data group is input to the second evaluation function, a second covariance matrix that is a covariance matrix of output values ​​of the second evaluation function when each of the sets of data for training is input; a weight for at least one of the first evaluation function and the second evaluation function is calculated based on the value obtained from the first covariance matrix and the value obtained from the second covariance matrix; an overall evaluation function including the weight, the first evaluation function, and the second evaluation function is set; and a training model is trained based on the first data group for training, the second data group for training, and the overall evaluation function, thereby generating a trained model.

[0012] A third aspect of the present disclosure provides a method for acquiring a first group of training data and a second group of training data that is configured with less data than the number of data belonging to the first group of training data, calculating a first covariance matrix that is a covariance matrix of output values ​​of a first evaluation function that is used when performing machine learning using the first group of training data, when each of a plurality of first training data belonging to the first group of training data is input to the first evaluation function, and calculating a first covariance matrix that is a covariance matrix of output values ​​of the first evaluation function that is used when performing machine learning using the second group of training data, when each of a plurality of second training data belonging to the second group of training data is input to the second evaluation function, a second covariance matrix that is a covariance matrix of output values ​​of the second evaluation function when the first data group for learning, the second data group for learning, and the overall evaluation function are input; a weight for at least one of the first evaluation function and the second evaluation function is calculated based on the value obtained from the first covariance matrix and the value obtained from the second covariance matrix; an overall evaluation function including the weight, the first evaluation function, and the second evaluation function is set; and a learning model is trained based on the first data group for learning, the second data group for learning, and the overall evaluation function, thereby generating a trained model.

[0013] According to the disclosed technology, even if only learning data with a distribution different from the distribution of data obtained at the time of estimation is obtained, it is possible to generate a trained model by assuming the distribution of data obtained at the time of estimation.

[0014] Fig. 1 is a block diagram showing an example of the hardware configuration of the customer number prediction device according to the first embodiment; Fig. 2 is a block diagram showing an example of the functional configuration of the customer number prediction device according to the first embodiment; Fig. 3 is a diagram for explaining the operation of the learning device according to the embodiment; Fig. 4 is a diagram for explaining the operation of the learning device according to the embodiment; Fig. 5 is a diagram for explaining an example; Fig. 6 is a diagram for explaining an example; Fig. 7 is a diagram for explaining a modified example; Fig. 8 is a diagram for explaining a modified example.

[0015] An example of an embodiment of the disclosed technology will be described below with reference to the drawings. Note that in each drawing, the same or equivalent components and parts are given the same reference numerals. Also, the dimensional proportions in the drawings are exaggerated for the convenience of explanation and may differ from the actual proportions.

[0016] First, the hardware configuration of a learning device 10 according to this embodiment will be described with reference to FIG.

[0017] FIG. 1 is a block diagram showing an example of the hardware configuration of a learning device 10 according to this embodiment.

[0018] 1, the learning device 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage 14, an input unit 15, a display unit 16, and a communication interface (I / F) 17. Each component is connected to each other via a bus 18 so as to be able to communicate with each other.

[0019] The CPU 11 is a central processing unit that executes various programs and controls each part. That is, the CPU 11 reads programs from the ROM 12 or the storage 14 and executes the programs using the RAM 13 as a work area. The CPU 11 controls the above components and performs various arithmetic processing in accordance with the programs stored in the ROM 12 or the storage 14. In this embodiment, the ROM 12 or the storage 14 stores a learning program and an estimation program.

[0020] The ROM 12 stores various programs and various data. The RAM 13 temporarily stores programs or data as a working area. The storage 14 is configured with an HDD (Hard Disk Drive) or an SSD (Solid State Drive) and stores various programs including the operating system and various data.

[0021] The input unit 15 includes a pointing device such as a mouse and a keyboard, and is used to input various information to the device itself.

[0022] The display unit 16 is, for example, a liquid crystal display, and displays various information. The display unit 16 may be a touch panel type and function as the input unit 15.

[0023] The communication interface 17 is an interface for the device itself to communicate with other external devices. For this communication, for example, a wired communication standard such as Ethernet (registered trademark) or FDDI (Fiber Distributed Data Interface) or a wireless communication standard such as 4G, 5G, or Wi-Fi (registered trademark) is used.

[0024] The learning device 10 according to this embodiment is implemented as a general-purpose computer device such as a server computer or a personal computer (PC).

[0025] Next, the functional configuration of the learning device 10 will be described with reference to FIG.

[0026] FIG. 2 is a block diagram showing an example of the functional configuration of the learning device 10 according to this embodiment.

[0027] 2, the learning device 10 includes, as functional components, a data storage unit 100, a learning acquisition unit 102, a calculation unit 104, a setting unit 106, a learning unit 108, a model storage unit 110, an acquisition unit 112, and an estimation unit 114. Each functional component is realized by the CPU 11 reading out a learning program and an estimation program stored in the ROM 12 or the storage 14, and expanding and executing the programs in the RAM 13.

[0028] For example, consider a case where a trained model is generated based on training data belonging to event A and training data belonging to event B. In this case, even if the number of training data belonging to event B is overwhelmingly smaller than the number of training data belonging to event A, it may be assumed that events A and B will occur with approximately the same probability at the time of estimation (or that events A and B will occur in a ratio of a:b). In this case, even if the number of training data belonging to event B obtained during training is smaller than the number of training data belonging to event A obtained during training, it is preferable to generate a trained model based on the assumption that events A and B will occur with approximately the same probability at the time of estimation.

[0029] Therefore, the learning device 10 of this embodiment executes machine learning processing that assumes the distribution of data at the time of estimation, even if only biased learning data that differs from the distribution of data at the time of estimation is obtained.

[0030] Furthermore, the learning device 10 of this embodiment performs machine learning processing to obtain a useful trained model even in cases where no information is provided regarding whether data belonging to event A or data belonging to event B was input to the trained model at the time of estimation (also known as the "domain generalization problem").

[0031] A specific description will be given below. In the following, an example will be given in which the number of learning data belonging to event A is 990 and the number of learning data belonging to event B is 10.

[0032] The data storage unit 100 stores a first data group for learning that belongs to event A and a second data group for learning that belongs to event B. The second data group for learning is composed of a smaller number of pieces of data than the number of pieces of data that belong to the first data group for learning. In this embodiment, as described above, the first data group for learning is composed of 990 pieces of data, and the second data group for learning is composed of 10 pieces of data.

[0033] The learning acquisition unit 102 acquires a first group of learning data and a second group of learning data from the data storage unit 100 .

[0034] The calculation unit 104 acquires a plurality of first learning data sets by sampling, allowing overlap, from the first learning data group acquired by the learning acquisition unit 102. The calculation unit 104 also acquires a plurality of second learning data sets, the number of which is approximately the same as the number of first learning data sets, by sampling, allowing overlap, from the second learning data group acquired by the learning acquisition unit 102.

[0035] Specifically, the calculation unit 104 generates a mini-batch by stochastically sampling approximately the same number of sample data from each of the first training data group and the second training data group. A mini-batch is a data set consisting of a plurality of first training data and a plurality of second training data.

[0036] For example, the calculation unit 104 generates a plurality of first training data sets by randomly extracting 256 pieces of data, allowing overlaps, from 990 pieces of data in a first training data group belonging to event A. The calculation unit 104 also generates a plurality of second training data sets by randomly extracting 256 pieces of data, allowing overlaps, from 10 pieces of data in a second training data group belonging to event B. Note that sampling that allows overlaps can result in the same data being extracted multiple times. This increases the amount of data belonging to event B within the mini-batch, and the plurality of first training data sets belonging to event A and the plurality of second training data sets belonging to event B become comparable. Since there are 256 pieces of first training data sets belonging to event A and 256 pieces of second training data sets belonging to event B, a total of 512 pieces of data are used in the machine learning described below.

[0037] Next, the calculation unit 104 inputs each of the plurality of first learning data belonging to the first learning data group to a first evaluation function used when performing machine learning using the first learning data group. Then, the calculation unit 104 calculates a first covariance matrix Σ, which is a covariance matrix of the output values ​​of the first evaluation function when the plurality of first learning data are input to the first evaluation function. A Calculate this first covariance matrix Σ Ais calculated based on 256 pieces of first learning data belonging to event A.

[0038] Furthermore, the calculation unit 104 inputs each of the plurality of second learning data belonging to the second learning data group to a second evaluation function used when performing machine learning using the second learning data group. Then, the calculation unit 104 calculates a second covariance matrix Σ, which is a covariance matrix of the output values ​​of the second evaluation function when the plurality of second learning data are input to the second evaluation function. B Calculate this second covariance matrix Σ B is calculated based on 256 pieces of second learning data belonging to event B.

[0039] The setting unit 106 sets the first covariance matrix Σ A and the second covariance matrix Σ B and a value obtained from the above, a weight for at least one of the first evaluation function and the second evaluation function is calculated, and an overall evaluation function including the weight, the first evaluation function, and the second evaluation function is set.

[0040] For example, the setting unit 106 sets the first covariance matrix Σ A logdet(Σ A ) and the second covariance matrix Σ B logdet(Σ B ) Then, the setting unit 106 calculates the weight λ according to the following formula:

[0041] λ=exp(logdet(Σ A ) -logdet(Σ B )) (1)

[0042] Then, the setting unit 106 sets an overall evaluation function including the weight λ, the first evaluation function, and the second evaluation function, as shown in the following equation.

[0043] Loss(all)=Loss(A)+λLoss(B) (2)

[0044] In the above formula, Loss(all) is a value obtained from the overall evaluation function, Loss(A) is a value obtained from the first evaluation function, and Loss(B) is a value obtained from the second evaluation function. Loss( ) in the above formula is, for example, a value representing the squared error between the data output from the learning model and the correct answer data. Alternatively, for example, Loss( ) is a value representing the sum of the error between each of the 256 pieces of first learning data belonging to event A and the correct answer data, and the error between each of the 256 pieces of second learning data belonging to event B and the correct answer data. Alternatively, for example, Loss( ) is a value representing the average value of the error per data (e.g., expected value).

[0045] The learning unit 108 generates a trained model by training a learning model based on the first training data group, the second training data group, and the overall evaluation function. For example, the learning model is a known machine learning model. Specifically, the learning unit 108 trains the learning model so that the sum of values ​​output from the overall evaluation function when the first training data group and the second training data group are input to the overall evaluation function is small.

[0046] Since the ratio of the first learning data group to the second learning data group is 99:1, the first covariance matrix Σ obtained from the plurality of first learning data A The value of the logarithmic determinant of the second covariance matrix Σ B tends to be larger than the logarithmic determinant of

[0047] However, if the ratio of the occurrence probability of data belonging to event A to the occurrence probability of data belonging to event B is assumed to be 1:1 during estimation, the distribution of data belonging to event A and the distribution of data belonging to event B are also assumed to correspond 1:1. For this reason, in this embodiment, the evaluation function used in machine learning is corrected according to the variance of the data during learning. As a result, even if only learning data with a distribution different from the distribution of data obtained during estimation is available, it is possible to generate a trained model by assuming the distribution of the data obtained during estimation.

[0048] The model storage unit 110 stores the trained model generated by the training unit 108.

[0049] The acquisition unit 112 acquires target data to be estimated.

[0050] The estimation unit 114 inputs the target data acquired by the acquisition unit 112 into the trained model stored in the model storage unit 110, thereby estimating the label of the target data.

[0051] For example, the estimation unit 114 estimates a label indicating whether input data is abnormal or normal based on a known Mahalanobis distance. When using the known Mahalanobis distance, the estimation unit 114 estimates the label of the target data by using the first covariance matrix Σ calculated from the first learning data belonging to the event A as described above. A and a second covariance matrix Σ calculated from the second learning data belonging to event B. B and are used.

[0052] As disclosed in the above-mentioned Non-Patent Document 1, the estimation unit 114 calculates the error between the output vector x' obtained by inputting target data to the trained model and x representing the first training data or the second training data. Then, the estimation unit 114 calculates the error between the output vector x' and the plurality of first training data x, by adding, from the left, a first covariance matrix Σ A Inverse matrix Σ A -1 Furthermore, the estimation unit 114 calculates the error of the Mahalanobis distance measure by multiplying the second covariance matrix Σ B Inverse matrix Σ B -1 The error of the Mahalanobis distance measure is calculated by multiplying the error by . The estimation unit 114 then obtains the value that results in the smallest error of the Mahalanobis distance measure as the final score. The estimation unit 114 estimates the label of the target data according to this final score.

[0053] Fig. 3 is a flowchart showing an example of the flow of processing by the learning program according to this embodiment. Fig. 4 is a flowchart showing an example of the flow of processing by the estimation program according to this embodiment. Processing by the learning program is realized by the CPU 11 of the learning device 10 writing the learning program stored in the ROM 12 or storage 14 to the RAM 13 and executing it. Processing by the estimation program is realized by the CPU 11 of the learning device 10 writing the estimation program stored in the ROM 12 or storage 14 to the RAM 13 and executing it.

[0054] Upon receiving a control signal indicating an instruction to learn a model, the learning device 10 executes the learning process shown in FIG.

[0055] First, in step S100 of FIG. 3 , the CPU 11 functions as the learning acquisition unit 102 and acquires a first learning data group and a second learning data group from the data storage unit 100 .

[0056] In step S102, the CPU 11, as the calculation unit 104, acquires a plurality of first learning data sets by sampling, allowing overlap, from the first learning data group acquired in step S100. The calculation unit 104 also acquires a plurality of second learning data sets, the number of which is approximately the same as the number of first learning data sets, by sampling, allowing overlap, from the second learning data group acquired in step S100.

[0057] In step S104, the CPU 11, functioning as the calculation unit 104, inputs each of the plurality of first learning data acquired in step S102 to the first evaluation function. Then, the calculation unit 104 calculates a first covariance matrix Σ, which is a covariance matrix of the output values ​​of the first evaluation function when the plurality of first learning data are input to the first evaluation function. A Furthermore, the CPU 11, functioning as the calculation unit 104, inputs each of the plurality of second learning data acquired in step S102 to the second evaluation function. Then, the calculation unit 104 calculates a second covariance matrix Σ, which is a covariance matrix of the output values ​​of the second evaluation function when the plurality of second learning data are input to the second evaluation function. B Calculate.

[0058] In step S106, the CPU 11, functioning as the setting unit 106, calculates the first covariance matrix Σ A The logarithmic determinant obtained from the second covariance matrix Σ B The weight λ is calculated according to the above equation (1) based on the logarithmic determinant obtained from

[0059] In step S108, the CPU 11, functioning as the setting unit 106, sets an overall evaluation function including the weight λ, the first evaluation function, and the second evaluation function as shown in the above formula (2).

[0060] In step S110, the CPU 11, as the learning unit 108, generates a trained model by training a learning model based on the first group of data for learning, the second group of data for learning, and the overall evaluation function set in step S108.

[0061] In step S112, the CPU 11, functioning as the learning unit 108, stores the trained model generated in step S110 in the model storage unit 110.

[0062] Next, upon receiving a control signal representing an estimation instruction, the learning device 10 executes the estimation process shown in FIG.

[0063] In step S200, the CPU 11 functions as the acquisition unit 112 to acquire target data to be estimated.

[0064] In step S202, the CPU 11, functioning as the estimation unit 114, reads out a trained model from the model storage unit 110.

[0065] In step S204, the CPU 11, functioning as the estimation unit 114, inputs the target data acquired in step S200 to the trained model read out in step S202, thereby estimating the label of the target data. For example, it is estimated whether the target data is abnormal data.

[0066] In step S206, the CPU 11 functions as the estimation unit 114 and outputs the result obtained in step S204.

[0067] As described above, the learning device acquires a first training data group and a second training data group consisting of a smaller number of data items than the number of data items belonging to the first training data group. The learning device calculates a first covariance matrix, which is a covariance matrix of output values ​​of a first evaluation function used when performing machine learning using the first training data group, when each of the plurality of first training data items belonging to the first training data group is input. The learning device calculates a second covariance matrix, which is a covariance matrix of output values ​​of a second evaluation function used when performing machine learning using the second training data group, when each of the plurality of second training data items belonging to the second training data group is input. The learning device calculates a weight for at least one of the first evaluation function and the second evaluation function based on the value obtained from the first covariance matrix and the value obtained from the second covariance matrix, and sets an overall evaluation function including the weight, the first evaluation function, and the second evaluation function. The learning device generates a trained model by training a training model based on a first group of training data, a second group of training data, and an overall evaluation function. This makes it possible to generate a trained model by assuming the distribution of data obtained at the time of estimation, even if only training data having a distribution different from the distribution of data obtained at the time of estimation is available.

[0068] Furthermore, the learning device of this embodiment allows for overlapping data during sampling, making it possible to increase the amount of data that can only be obtained in small quantities (for example, data that belongs to the above-mentioned event B). This allows for a stable acquisition of the covariance matrix.

[0069] Furthermore, according to the learning device of this embodiment, the ratio of the logarithmic determinants of the covariance matrices of the outputs of the evaluation functions corresponding to each event (for example, the above-mentioned Loss(A) and Loss(B)) is set as the weight λ. By using the weight λ to adjust the degree of contribution of the first evaluation function and the second evaluation function to the whole, it is possible to learn a learning model that takes into account the trade-off between the amount of data given as input and the probability of occurrence of data assumed at the time of estimation (for example, when it is assumed that events A and B occur with approximately the same probability).

[0070] Furthermore, according to the learning device of this embodiment, the value of the determinant can be calculated logarithmically, thereby making it possible to stably find the value.

[0071] The method of calculating the weights and the method of constructing the overall evaluation function are not limited to the above embodiment. For example, the following modifications 1 to 10 may be adopted.

[0072] [Modification 1] The setting unit 106 sets the first covariance matrix Σ A The value obtained from the second covariance matrix Σ B may be set as the weight λ for the second evaluation function, and an overall evaluation function including the first evaluation function and the second evaluation function with the weight λ may be set. For example, the setting unit 106 may set the first covariance matrix Σ as shown in the following equation: A The determinant value det(Σ A ) into the second covariance matrix Σ B The determinant value det(Σ B ) may be set as the weight λ.

[0073] Loss(all)=Loss(A)+λLoss(B) λ=det(Σ A ) / det(Σ B )

[0074] [Modification 2] The setting unit 106 calculates the first covariance matrix Σ as shown in the following equation: A The sum of the diagonal elements tr (Σ A ) into the second covariance matrix Σ B The sum of the diagonal elements tr (Σ B ) may be set as the weight λ.

[0075] Loss(all)=Loss(A)+λLoss(B) λ=tr(Σ A ) / tr (Σ B )

[0076] [Modification 3] The setting unit 106 sets the first covariance matrix Σ A The inverse matrix of is set as the first weight for the first evaluation function, and the second covariance matrix Σ BAlternatively, the inverse matrix of the first covariance matrix Σ may be set as the second weight for the second evaluation function. In this case, the setting unit 106 sets an overall evaluation function including the first evaluation function with the first weight and the second evaluation function with the second weight. For example, the setting unit 106 sets the first covariance matrix Σ as shown in the following equation: A The inverse matrix Σ obtained from A -1 is set as the first weight for the output of the first evaluation function, and the second covariance matrix Σ B The inverse matrix Σ obtained from B -1 may be set as a second weight for the output of the second evaluation function. Note that loss() in the following equation is not a scalar value but a matrix representing an error. loss() will be described later in the embodiments.

[0077] Loss(all)=Σ A -1 ・loss(A) + Σ B -1 ・loss (B) + α

[0078] In the above equation, α is a regularization term. For example, the following equations can be used as α. Note that the regularization term α does not need to be included in the above equation.

[0079] α = logdet(Σ A ) + logdet(Σ B ) α = det (Σ A ) + det(Σ B ) α = tr (Σ A ) + tr(Σ B )

[0080] [Variation 4] When the data is not increased by sampling as described above, the ratio of the first learning data belonging to event A to the second learning data belonging to event B in a mini-batch is 99:1. In this case, to perform learning assuming that the occurrence probabilities of events A and B at the time of estimation are approximately the same, the setting unit 108 increases the weight for event B by g as follows: As a result, the contribution of event B to the overall Loss(all) is corrected to be equal to the contribution of event A.

[0081] Loss (all) = Loss (A) + gλLoss (B) g = 99 / 1

[0082] This makes it possible to perform learning assuming that the occurrence probabilities of events A and B at the time of estimation are approximately the same, even if there is a large gap between the occurrence probability of data corresponding to the amount of data obtained for learning (99:1) and the occurrence probability of data assumed at the time of actual estimation (1:1).

[0083] [Variation 5] Based on a first occurrence probability a representing the probability that data belonging to the first data group will appear during estimation and a second occurrence probability b representing the probability that data belonging to the second data group will appear during estimation, the setting unit 108 may set the value obtained by dividing the second occurrence probability b by the first occurrence probability a as a weight for the second evaluation function. In the above embodiment, correction is performed assuming that the occurrence probability of data belonging to event A during estimation and the occurrence probability of data belonging to event B during estimation are approximately equal (1:1). However, if the ratio of the occurrence probability of data belonging to event A during estimation to the occurrence probability of data belonging to event B during estimation is not 1:1 during actual estimation, the setting unit 108 sets g as shown below according to the expected occurrence probability. For example, if it is known in advance that the ratio of the occurrence probabilities of event A to event B is a:b, the setting unit 108 increases the data by data sampling to set the ratio of data belonging to event A to data belonging to event B in the mini-batch to 1:1. Then, the setting unit 108 reflects the ratio of the occurrence probabilities of event A to event B assumed during estimation in g as follows:

[0084] Loss(all)=Loss(A)+gλLoss(B) g=b / a

[0085] Even if the ratio of data belonging to event A to data belonging to event B is 1:1 due to data sampling, the value of g corrects the proportion of the contribution of event B. For example, if the ratio of the occurrence probability of data belonging to event A to the occurrence probability of data belonging to event B at the time of estimation is assumed to be 2:1, then a = 2, b = 1, and g = 1 / 2. In this case, the value of g is set so that the contribution of event B is 1 / 3 of the total.

[0086] [Variation 6] In the above embodiment, an example was described in which there were two events, but if there were three or more events, the following may be done: The following example is an example in which the ratio of occurrence probabilities of events A, B, C, and D at the time of estimation is assumed to be a:b:c:d.

[0087] Loss(all)=g A λ A Loss(A)+g B λ B Loss(B)+g C λ C Loss(C)+g D λ D Loss(D) λ i =exp(logdet(Σ i )) / {exp(logdet(Σ A ))+exp(logdet(Σ B ))+exp(logdet(Σ C ))+exp(logdet(Σ D )) g i =r i / {a+b+c+d} (where i represents A, B, C, or D)

[0088] In the above formula, g A , g B , g C , g D Each of these corresponds to g in Modification 4 or Modification 5. i represents the ratio of the occurrence probability of the event. Loss(A), Loss(B), Loss(C), and Loss(D) are values ​​output from the evaluation function when data belonging to A, B, C, and D, respectively, are input to the evaluation function. Σ A , Σ B , Σ C , Σ D Each of A, B, C, and D is a covariance matrix calculated from the data belonging to each of A, B, C, and D.

[0089] [Variation 7] Although this reduces efficiency slightly, it is also possible to omit increasing the amount of data by sampling and configure the number of pieces of data used in a mini-batch at a ratio of 99:1. In this case, data is probabilistically acquired from the training data group so that, for example, the number of pieces of data belonging to event A in the mini-batch is 507 or 506, and the number of pieces of data belonging to event B is 5 or 6. Calculations can then be performed so that the overall ratio of data belonging to event A to data belonging to event B is 99:1. However, in this case, the covariance matrix may not be obtained correctly, resulting in unstable calculations.

[0090] [Variation 8] For each mini-batch, the covariance matrix Σ A , Σ B Instead of calculating the covariance matrix, the covariance matrix may be calculated using data in a set of mini-batches for one epoch. In this case, when repeated learning is performed, the covariance matrix calculated for all data in the previous epoch is used as the covariance matrix Σ A , Σ B is calculated.

[0091] [Modification 9] In the above, the average of the covariance matrices calculated for each mini-batch is calculated as the overall covariance matrix Σ A , Σ B It may also be possible to use the following.

[0092] [Modification 10] In the above embodiment, the weight λ and Loss(all) are expressed by the above formulas (1) and (2), but the present invention is not limited to this. For example, the weight λ and Loss(all) may be calculated by the following formulas (1A) and (2A).

[0093] λ=exp(logdet(Σ B )) / exp(logdet(Σ A )) =exp(logdet(Σ B ) -logdet(Σ A)) (1A) Loss(all)=λLoss(A)+Loss(B) (2B)

[0094] In the above case, the setting unit 108 sets the second covariance matrix Σ B The value obtained from the first covariance matrix Σ A is set as a weight λ for the first evaluation function, and an overall evaluation function including the first evaluation function with the weight λ and the second evaluation function is set.

[0095] Next, an example will be described in which this embodiment is applied to a technique for detecting an abnormality in a device using an autoencoder. Figures 5 and 6 are diagrams for explaining the example. Figure 5 is a diagram for explaining the processing flow when training an autoencoder AE1, which is a training model. Figure 6 is a diagram for explaining the processing flow when performing estimation processing using a trained autoencoder AE2.

[0096] In this anomaly detection method, normal data x - The autoencoder AE2 learned only from the abnormal data x + It is assumed that the reconstruction error for the input of the trained autoencoder AE2 will be large. Then, the input data is judged to be normal or abnormal depending on the size of the reconstruction error. That is, if the reconstruction error when the target data is input to the trained autoencoder AE2 exceeds a threshold set by pre-training, it is judged to be abnormal, and if it is equal to or less than the threshold, it is judged to be normal.

[0097] [Regarding Data] In this embodiment, the target data is acoustic data emitted from a device. 990 pieces of training data are prepared when the device is operating under operating condition A, and 10 pieces of training data are prepared when the device is operating under operating condition B. The duration of these training data is 10 seconds. These acoustic data are loaded into a computer, and the acoustic data is divided into chronologically consecutive frames, with 1024 points in the acoustic data being one frame, while being shifted by a step width of 512 points. Each frame obtained from the acoustic data is then frequency transformed using a 1024-point FFT (Fast Fourier Transform). The frequency transformation result is then further transformed into a 128-point Mel spectrum.

[0098] The converted Mel spectrum is divided into time series units, each consisting of five consecutive frames, with some overlapping time, by shifting each frame in the time direction. This five-frame packet is used as a basic unit for learning and estimation. This packet is the normal data x - and abnormal data x + It is used as.

[0099] [Learning of Autoencoder] As described above, assume that 990 10-second training data pieces containing recorded normal operation sounds under operating condition A and 10 10-second training data pieces containing recorded normal operation sounds under operating condition B are provided. No abnormal data is provided during training.

[0100] As shown in FIG. 5, given normal data x - 6, a system is constructed in which, at the time of evaluation, 10 seconds of data, the data of which it is unknown whether it belongs to operating condition A or operating condition B and the data of which it is unknown whether it is normal or abnormal, is input and the operation sound represented by the data is judged to be normal or abnormal.

[0101] As shown in Fig. 5, the autoencoder AE1 includes an encoder E1 and a decoder D1. In this embodiment, the autoencoder AE1 is used to estimate whether input data is normal or abnormal. Specifically, as shown in Fig. 5, normal data x - The autoencoder AE1 is trained using only the data x - ' and the training data x - Learning is performed so that the MSE (Mean Squared Error) between the normal data x - includes data belonging to operating condition A and data belonging to operating condition B. The value Loss(A) output from the first evaluation function and the value Loss(B) output from the second evaluation function are expressed by the following equations: Note that Encode() represents the output from encoder E1, and Decode() represents the output from decoder D1.

[0102] Loss(A / B)=MSE(x - , x - ') However x - '=Decode(Encode(x - ))

[0103] Then, after the final epoch of mini-batch training, the error covariance matrix Σ A , Σ B Specifically, Σ is calculated separately for each of the operating conditions A and B. A , Σ B is calculated. A , Σ B may be calculated using the training data within the mini-batch, or may be calculated using all of the training data under operating conditions A and B used in the epoch as described in the above modification 9. Also, similar to the above embodiment, Loss(all) and λ are calculated by the following equations.

[0104] Loss(all)=Loss(A)+λLoss(B) λ=exp(logdet(Σ A ) -logdet(ΣB ))

[0105] This will be explained in more detail below.

[0106] The data processing described above is performed on 990 pieces of normal acoustic data belonging to operating condition A and 10 pieces of normal acoustic data belonging to operating condition B. Then, by performing random sampling as described above, 256 packets of data belonging to operating condition A and 256 packets of data belonging to operating condition B are extracted as a mini-batch, totaling 512 packets. Note that, among the multiple packets belonging to operating condition A in the mini-batch, the i-th packet is designated as A. i In addition, among the multiple packets in a mini-batch that belong to operating condition B, the i-th packet is expressed as B i It is expressed as:

[0107] Note that one packet of data is a concatenation of 128-dimensional mel spectra for five consecutive frames, resulting in a 640-dimensional vector. i and vector B i The j-th element of corresponds to the j-th frequency bin value. The frequency bin value represents the intensity of a predetermined frequency region in the frequency analysis result.

[0108] As shown in FIG. 5, this 640-dimensional vector A i or B i Normal data x corresponding to - is input to the autoencoder AE1 before training. As shown in FIG. 5, the normal data x - is restored by the decoder D1 through the bottleneck layer from the encoder E1. AE represents a latent vector. The decoder D1 receives normal data x - Restored data x - ' is output. This restored data x - ' is the restored vector A i ' or B i '. As shown in FIG. 5, the restored data x - ' and normal data x- The autoencoder AE1 is trained to minimize the MSE, which is the error between the individual input vectors A i or B i and individual restoration vectors A i ' or B i The error between and is expressed by the following formula:

[0109] Loss(A)=sum(loss(A i )) [0<=i<512] Loss(B)=sum(loss(B i )) [0<=i<512]

[0110] Here, loss (A i ) and loss(B i ) loss() is defined as follows:

[0111] loss (A i ) = D(A i , A i ') A i '=Dec(Enc(A i )) Loss (B i ) = D (B i , B i ') B i '=Dec(Enc(B i ))

[0112] However, A i ' is a 640-dimensional A i is a decoded vector obtained by encoding (Enc()) and decoding (Dec()) using an autoencoder with the above as input, and the error D is defined as a squared error expressed by the following equation.

[0113] D (A i , A i ') = MSE(A i , A i ') = sum((A i [j]-A i '[j])^2) [0<=j<640]

[0114] covariance matrix Σ A , Σ B is a 640-dimensional vector A with N = 512 elements in the mini-batch. i , Bi The covariance matrix Σ A We will only show how to calculate the covariance matrix Σ B The same is true.

[0115] N A's i Among them, the i-th one is A i and A is a 640-dimensional vector. i The jth element of A i If we express it as [j], the covariance matrix Σ A is a 640x640 dimensional matrix. i and the jth element of A i The error dA between the jth element of i [j] is expressed by the following equation: i The mean error μ calculated from [j] dAi is expressed by the following equation: i and the average error μ dAi Based on this, the covariance matrix Σ corresponding to the operating condition A is calculated by the following equation: A is calculated.

[0116] dA i [j] = (A i [j]-A i '[j]) μ dAi = sum (dA i [j]) / N [0<=i<N, 0<=j<640]

[0117] Here, the above covariance matrix is ​​calculated as an unbiased variance, divided by N-1, which reduces the degree of freedom by one.

[0118] In this embodiment, the covariance matrix is ​​an unbiased variance, and is divided by N-1, which reduces the degree of freedom by one. However, in another embodiment, the sample variance may be calculated by dividing by N instead of N-1 (in the example in Non-Patent Document 1 mentioned above, the sample variance is defined as being obtained by dividing by N, which is the general method, but using the unbiased variance divided by N-1 is preferable because it provides better performance).

[0119] And, the Σ obtained above A , Σ BUsing this, the overall evaluation function is calculated by the following equation:

[0120] Loss(all)=Loss(A)+λLoss(B) λ=exp(logdet(Σ A )-logdet(Σ B ))

[0121] Here, logdet(Σ A ), logdet(Σ B ) is the covariance matrix Σ of multiple data in the current mini-batch A , Σ B is the value of the logarithmic determinant of

[0122] Note that the number of data items belonging to operating condition B increases due to overlapping sampling, resulting in 256 items in the mini-batch. Therefore, Loss(B) for operating condition B is calculated based on the data in the mini-batch, and the covariance matrix Σ B can be calculated stably. Loss(A) under operating condition A is also calculated using the same number of 256 pieces of data. However, the data under operating condition B is randomly sampled with overlap allowed, so the amount of information is not very large. Therefore, the data under operating condition B may not contribute to learning and may cause overlearning.

[0123] In this example, similar to the above embodiment, the weight λ is calculated using the ratio of the values ​​of the logarithmic determinants of the covariance matrices, and the evaluation function is corrected by the weight λ. This makes it possible to train the autoencoder AE1 using an evaluation function that minimizes the error when the ratio between the occurrence probability of data belonging to operating condition A and the occurrence probability of data belonging to operating condition B is normalized to 1:1.

[0124] Specifically, the weight λ is calculated using the ratio of the error variance for the data belonging to operating condition A to the error variance for the data belonging to operating condition B. Therefore, for example, when using the squared error criterion Mahalanobis distance, the occurrence probability of the data belonging to operating condition A and the occurrence probability of the data belonging to operating condition B are normalized to 1:1, and it becomes possible to perform learning that minimizes the error by increasing the weight for data with a large error.

[0125] In addition, the evaluation function Loss(all)=Σ A -1 ・loss(A) + Σ B -1 In loss (B), to calculate the Mahalanobis distance, the inverse matrix of the 640x640 dimensional covariance matrix is ​​Σ A -1 , Σ B -1 This calculation is required twice for each learning epoch. Even if the calculation is simplified as described later (modified embodiments 1 and 2 described later), this calculation is not practical due to the high calculation cost.

[0126] In contrast to this, the method proposed in this example and this embodiment, λ=exp(logdet(Σ A )-logdet(Σ B )) is used, the value can be calculated with a very small amount of calculation by simply calculating the value of the determinant instead of calculating the inverse matrix. The correction of the evaluation function in this example and this embodiment corresponds to correcting the contribution ratio of Loss(A) to Loss(B) using a magnification expressed by a determinant so that it approaches the ratio of the contribution ratios after applying the inverse matrix. Note that the magnification of the forward matrix corresponds to the reciprocal of the magnification of both inverse columns.

[0127] [Detection of abnormality by estimation] Acoustic data to be evaluated is input to the trained autoencoder AE2 obtained by the above-mentioned learning method. As shown in FIG. 6, the autoencoder AE2 receives packets x of normal acoustic data. - and abnormal acoustic data packet x +These pieces of data belong to either operating condition A or operating condition B. Based on the output vector from the trained autoencoder AE2, it is determined whether the input data is a normal sound or an abnormal sound.

[0128] The acoustic data to be evaluated is subjected to the data processing described above and converted into data in units of one packet. With one packet as the basic unit, one packet of data is input to the trained autoencoder AE2. Then, as shown in Fig. 6, the MSE, which is the squared error between the input packet x and the reconstructed packet x' encoded and decoded by the trained autoencoder AE2, is calculated.

[0129] Next, the normal data packet x calculated during learning - Error covariance matrix Σ for A , Σ B Inverse matrix Σ A -1 , Σ B -1 The error MD() in the Mahalanobis distance scale obtained by multiplying the squared error MSE by the squared error is calculated as the degree of anomaly. - The value of the frequency bin where the error variance is large in the input is evaluated as small, and the packet x of normal data is evaluated as small. - The value of the frequency bin in which the variance of the error in the input is small is evaluated as being large. This makes it possible to evaluate the error using the Mahalanobis distance. The score representing the degree of abnormality is calculated by the following formula.

[0130] Score=min(MD(x, x', Σ A -1 ), MD(x, x', Σ B -1 )) x'=Decode(Encode(x))

[0131] If the score representing the degree of abnormality exceeds a threshold value set in advance during learning, it is determined to be abnormal, and if the degree of abnormality is equal to or less than the threshold value, it is determined to be normal.

[0132] [Modification 1] (Reduction of the amount of calculation by simplified approximation of the covariance matrix used during estimation and learning 1) The covariance matrix of the error in the above-described embodiment is a 640-dimensional vector A i and A i ' is a 640x640 dimensional covariance matrix of the error between

[0133] However, originally A i is a concatenation of 128-dimensional mel spectra for five consecutive frames, so the covariance may be calculated for five frames of 128 orders each, as a block diagonal matrix for every 128 dimensions in the 640 × 640 dimensions.

[0134] 7 is a diagram illustrating a block diagonal matrix obtained by simplified approximation of a covariance matrix. As shown in Fig. 7, a 640 x 640-dimensional covariance matrix M1 has five 128 x 128-dimensional blocks arranged diagonally, and the elements of the non-diagonal blocks are set to 0. This simplification corresponds to calculations that take into account the relationship between each frequency bin in the mel spectrum within a frame, but ignore the relationship between frequency bins across frames.

[0135] This reduces the number of inverse matrix calculations required during estimation from a 640 x 640-dimensional inverse matrix to just five 128 x 128-dimensional inverse matrix calculations.The anomaly score value during estimation is calculated using the Mahalanobis distance measure calculated by multiplying the error matrix from the left by the inverse matrix of a matrix in which five 128 x 128-dimensional blocks are arranged diagonally.

[0136] [Modification 2] (Reduction of the amount of calculation by simplified approximation of the covariance matrix used during estimation and learning 2) The block diagonal matrix of the above modification 1 is further improved to reduce the vector A i Instead of interpreting M as having N 640-dimensional packets, it is also possible to interpret M as having 5N 128-dimensional frames and calculate a 128 x 128-dimensional covariance matrix. Figure 8 is a diagram illustrating a covariance matrix obtained by a simplified approximation of the covariance matrix. As shown in Figure 8, a 128 x 128-dimensional covariance matrix M2 may be calculated.

[0137] As a result, during estimation, the calculation of a 640 x 640-dimensional inverse matrix that would normally be required can be simplified to the calculation of a 128 x 128-dimensional inverse matrix. Since the calculation of an inverse matrix is ​​generally on the order of the cube of the dimension n, reducing n = 640 to n = 128 can dramatically reduce the amount of calculation.

[0138] Processing just five consecutive frames results in n = 640, but if the number of input unit frames is further increased to 128 frames, n = 128^2, which means that the inverse matrix of a matrix of size 128^2 x 128^2 must be calculated.In contrast, by using this modified embodiment 2, it is only necessary to calculate the inverse matrix of a 128 x 128-dimensional matrix.

[0139] In the above embodiment, the learning device 10 executes the model learning process and the estimation process, but the present invention is not limited to this. For example, the learning device may execute the model learning process, and the estimation device may execute the estimation process.

[0140] In the above embodiment, the processes that the CPU 11 reads and executes each program may be executed by various processors other than the CPU 11. Examples of processors in this case include dedicated electrical circuits, such as programmable logic devices (PLDs) (such as field-programmable gate arrays (FPGAs)) whose circuit configuration can be changed after manufacture, and application-specific integrated circuits (ASICs) that are processors having a circuit configuration specifically designed to execute specific processes. Each process may be executed by one of these various processors, or by a combination of two or more processors of the same or different types (e.g., multiple FPGAs, or a combination of a CPU and an FPGA). The hardware structure of these various processors is, more specifically, an electrical circuit that combines circuit elements such as semiconductor elements.

[0141] In the above embodiment, the program is pre-stored (also referred to as "installed") in the ROM 12 or the storage 14, but this is not limiting. The customer number prediction program may be provided in a form stored on a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.

[0142] All publications, patent applications, and technical standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, or technical standard was specifically and individually indicated to be incorporated by reference.

[0143] The following additional notes are provided regarding the above-described embodiments.

[0144] (Supplementary Item 1) A system including a memory and at least one processor connected to the memory, wherein the processor: acquires a first data group for learning and a second data group for learning that is configured with less data than the number of data belonging to the first data group for learning; calculates a first covariance matrix that is a covariance matrix of output values ​​of a first evaluation function used when performing machine learning using the first data group for learning, when each of a plurality of first learning data belonging to the first data group for learning is input to the first evaluation function; calculates a second covariance matrix that is a covariance matrix of output values ​​of a second evaluation function used when performing machine learning using the second data group for learning, when each of a plurality of second learning data belonging to the second data group for learning is input to the second evaluation function; calculates a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and sets an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; and generating a trained model by training a model for training based on the first group of data for training, the second group of data for training, and the overall evaluation function.

[0145] (Supplementary Item 2) A non-transitory storage medium storing a program executable by a computer to execute a learning process, wherein the learning process includes: acquiring a first group of learning data and a second group of learning data configured with a number of pieces of data less than that belonging to the first group of learning data; calculating a first covariance matrix that is a covariance matrix of output values ​​of a first evaluation function used when executing machine learning using the first group of learning data, when each of a plurality of first learning data belonging to the first group of learning data is input to the first evaluation function used when executing machine learning using the second group of learning data; calculating a second covariance matrix that is a covariance matrix of output values ​​of the second evaluation function used when executing machine learning using the second group of learning data, when each of a plurality of second learning data belonging to the second group of learning data is input to the second evaluation function used when executing machine learning using the second group of learning data; calculating a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and setting an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; a non-transitory storage medium for generating a trained model by training a training model based on the first group of training data, the second group of training data, and the overall evaluation function.

[0146] 10 Learning device 100 Data storage unit 102 Learning acquisition unit 104 Calculation unit 106 Setting unit 108 Learning unit 110 Model storage unit 112 Acquisition unit 114 Estimation unit

Claims

1. An acquisition unit for learning that acquires a first data group for learning and a second data group for learning that is composed of a number of data less than the number of data belonging to the first data group for learning; a calculation unit that calculates a first covariance matrix that is a covariance matrix of an output value of a first evaluation function used when performing machine learning using the first data group for learning, when each of a plurality of first learning data belonging to the first data group for learning is input to the first evaluation function; and a calculation unit that calculates a second covariance matrix that is a covariance matrix of an output value of a second evaluation function used when performing machine learning using the second data group for learning, when each of a plurality of second learning data belonging to the second data group for learning is input to the second evaluation function; a setting unit that calculates a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and sets an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; a learning unit that generates a trained model by training a model for learning based on the first group of data for learning, the second group of data for learning, and the overall evaluation function.

2. The learning device described in claim 1, wherein the setting unit sets a value obtained by dividing the value obtained from the first covariance matrix by the value obtained from the second covariance matrix as the weight for the second evaluation function, and sets an overall evaluation function including the first evaluation function and the weighted second evaluation function.

3. The learning device described in claim 1, wherein the setting unit sets a value obtained by dividing the value obtained from the second covariance matrix by the value obtained from the first covariance matrix as the weight for the first evaluation function, and sets an overall evaluation function including the weighted first evaluation function and the second evaluation function.

4. The learning device according to claim 1 or claim 2, wherein the calculation unit: obtains a plurality of first learning data by sampling the first learning data group while allowing overlap; obtains a plurality of second learning data by sampling the second learning data group while allowing overlap; calculates the first covariance matrix which is a covariance matrix of output values ​​of the first evaluation function when each of the plurality of first learning data is input to the first evaluation function; and calculates the second covariance matrix which is a covariance matrix of output values ​​of the second evaluation function when each of the plurality of second learning data is input to the second evaluation function.

5. The learning device according to claim 1 or claim 2, wherein the setting unit sets a value obtained by dividing a first occurrence probability representing the probability that data belonging to the first data group will appear at the time of estimation and a second occurrence probability representing the probability that data belonging to the second data group will appear at the time of estimation by the first occurrence probability as a weight for the second evaluation function.

6. An estimation device comprising: an acquisition unit that acquires target data; and an estimation unit that estimates a label of the target data by inputting the target data to a trained model obtained by the learning device described in claim 1.

7. acquiring a first data group for learning and a second data group for learning that is composed of less data than the number of data belonging to the first data group for learning; calculating a first covariance matrix that is a covariance matrix of an output value of a first evaluation function used when performing machine learning using the first data group for learning, when each of a plurality of first learning data belonging to the first data group for learning is input to the first evaluation function; calculating a second covariance matrix that is a covariance matrix of an output value of the second evaluation function used when performing machine learning using the second data group for learning, when each of a plurality of second learning data belonging to the second data group for learning is input to the second evaluation function; calculating a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and setting an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; generating a trained model by training a learning model based on the first data group for learning, the second data group for learning, and the overall evaluation function. A learning method in which a computer performs a process.

8. acquiring a first data group for learning and a second data group for learning that is composed of less data than the number of data belonging to the first data group for learning; calculating a first covariance matrix that is a covariance matrix of an output value of a first evaluation function used when performing machine learning using the first data group for learning, when each of a plurality of first learning data belonging to the first data group for learning is input to the first evaluation function; calculating a second covariance matrix that is a covariance matrix of an output value of the second evaluation function used when performing machine learning using the second data group for learning, when each of a plurality of second learning data belonging to the second data group for learning is input to the second evaluation function used when performing machine learning using the second data group for learning; calculating a weight for at least one of the first evaluation function and the second evaluation function based on a value obtained from the first covariance matrix and a value obtained from the second covariance matrix, and setting an overall evaluation function including the weight, the first evaluation function, and the second evaluation function; generating a trained model by training a learning model based on the first data group for learning, the second data group for learning, and the overall evaluation function. A learning program that allows a computer to carry out processing.

Citation Information

Patent Citations

  • Learning apparatus, determining apparatus, learning method, determining method, learning program and determining program

    JP2020038485A

  • Abnormality detection device, abnormality detection method, and program

    WO2020017285A1