Learning device, industrial system, inference device, learning method, and inference method
The learning device integrates base and adaptive models to enhance inference accuracy in new environments by using preliminary and target device data, addressing the challenge of reduced accuracy in existing technologies.
Patent Information
- Application Number
- JP2024534598
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Existing machine learning technologies for industrial systems face challenges in generating accurate inference results in new environments where data was not previously acquired, leading to reduced accuracy.
A learning device that utilizes a base model trained on preliminary data from a similar device and an adaptive model trained on target device data, with an error model integrating their inference results to enhance accuracy in new environments.
The learning device generates accurate inference results even in new environments by weighting and integrating the base and adaptive model outputs, improving inference accuracy and reducing the need for extensive data collection and labeling.
Smart Images

Figure 0007555526000031 
Figure 0007555526000019 
Figure 0007555526000015
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a learning device, an industrial system, an inference device, a learning method, and an inference method. [Background technology]
[0002] In recent years, machine learning technology has been used in industrial systems for status monitoring or anomaly detection. The data that the learning model learns (machine learning) is signals (sensor data) acquired by sensors attached to industrial equipment in the industrial system, and inferences are made based on the sensor data acquired by the sensors during operation of the industrial system.
[0003] When generating a learning model (machine learning model), the learning device needs to perform machine learning using a large amount of learning data, which requires a lot of time and effort. For this reason, a technology is being considered in which the learning device generates a learning model by performing machine learning using learning data collected in advance by operating other industrial systems, and the generated learning model is used in multiple different industrial systems of the same type. This technology eliminates the need to prepare learning data for each industrial system and perform machine learning for each industrial system to generate a learning model, thereby reducing the time and effort required to prepare a learning model.
[0004] Patent Document 1 discloses a method for constructing an inference model capable of appropriately executing a predetermined inference in a new environment. The inference device of Patent Document 1 provides target data to each of a plurality of inference models derived to execute a predetermined inference from local learning data obtained under different environments, and causes each inference model to execute the predetermined inference, thereby acquiring an inference result of each inference model. Then, the inference device determines the value of each integrated parameter according to the environmental data, weights the inference result of each inference model using the determined value of each integrated parameter, and integrates the weighted inference results to generate an inference result in the target environment. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent Publication No. 2021-22079 Summary of the Invention [Problem to be solved by the invention]
[0006] However, the technology of Patent Document 1 does not acquire data in the new target environment, and therefore has the problem that it is not possible to generate appropriate inference results with good inference accuracy for a new environment that differs from the environment in which data was acquired in advance.
[0007] The present disclosure has been made in consideration of the above, and aims to obtain a learning device that can generate a learning model that can generate appropriate inference results with high inference accuracy even in a new environment that is different from the environment in which data has been acquired in advance. [Means for solving the problem]
[0008] In order to solve the above problems and achieve the object, the learning device of the present disclosure includes an adaptive model learning unit that generates an adaptive model that learns the relationship between target data, which is data measured by a target device that is a target of learning and inference, when the target device operates, and a first target label, which is a label of the target data. The learning device of the present disclosure also includes an inference error acquisition unit that infers a second target label corresponding to the target data using a base model that learns the relationship between spare data, which is data measured by a spare device that is a device of the same type as the target device and a spare device that is a target of learning, when the spare device operates, and a spare label, which is a label of the spare data, and calculates an error between the first target label and the second target label as a base model inference error, and infers a third target label corresponding to the target data using the adaptive model, and calculates an error between the first target label and the third target label as an adaptive model inference error. The learning device disclosed herein also includes an error model generation unit that generates an error model used in integrating a base model inference result, which is an output when new target data, which is data newly measured by the target device when the target device is newly operated, is input to the base model, and an adaptive model inference result, which is an output when the new target data is input to the adaptive model, by learning based on the target data, the base model inference error, and the adaptive model inference error. The error model learns the relationship between the magnitude of the base model inference error, the magnitude of the adaptive model inference error, and the target data, and when new target data is input, outputs an error model inference result, which is data corresponding to the weighting of the base model inference result and the adaptive model inference result at the time of integration. Effect of the Invention
[0009] The learning device according to the present disclosure has the advantage of being able to generate a learning model that is capable of generating appropriate inference results with high inference accuracy even in a new environment that is different from the environment in which data has been acquired in advance. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram showing a configuration example of a learning device according to a first embodiment; [Diagram 2] FIG. 1 is a diagram showing a configuration example of a spare sensor unit according to a first embodiment; [Diagram 3] FIG. 1 is a diagram showing a configuration example of a target sensor unit according to a first embodiment; [Figure 4] FIG. 1 is a diagram for explaining an operation of a base model learning unit according to the first embodiment; [Diagram 5] FIG. 1 is a diagram for explaining an operation of an adaptive model learning unit according to the first embodiment; [Figure 6] FIG. 1 is a diagram illustrating a configuration example of an inference error acquisition unit according to a first embodiment; [Figure 7] FIG. 1 is a diagram for explaining an operation of an error model generating unit according to a first embodiment; [Figure 8] FIG. 1 is a diagram showing a configuration example of an inference device according to a first embodiment. [Figure 9] FIG. 1 is a diagram for explaining the operation of an error model generating unit and a dimensional reduction unit according to the first embodiment; [Figure 10] FIG. 2 is a diagram showing a second configuration example of the inference device according to the first embodiment. [Figure 11] 1 is a flowchart showing an example of an operation of the learning device according to the first embodiment. [Figure 12] 1 is a flowchart showing an example of an operation of the inference device according to the first embodiment. [Figure 13] FIG. 1 is a diagram illustrating a configuration example of an error model generating unit according to a first embodiment; [Figure 14] FIG. 13 is a diagram showing a third example of a configuration of the inference device according to the first embodiment. [Figure 15] FIG. 13 is a diagram illustrating a configuration example of an error model generating unit according to a second embodiment. [Figure 16] FIG. 13 is a diagram illustrating a configuration example of an error model generating unit according to a third embodiment. [Figure 17] FIG. 13 is a diagram showing a configuration example of an inference device according to a third embodiment. [Figure 18] FIG. 13 is a diagram illustrating a configuration example of an error model generating unit according to a fourth embodiment. [Figure 19] FIG. 13 is a diagram showing a configuration example of an inference device according to a fourth embodiment. [Figure 20]FIG. 13 is a diagram showing a configuration example of an adaptive domain model inference unit and a domain threshold value determination unit included in the error model generation unit according to the fourth embodiment; [Figure 21] FIG. 13 is a diagram showing a configuration of a servo control device which is a first example of an industrial device according to a fifth embodiment. [Figure 22] FIG. 13 is a diagram showing a configuration of a laser cutting apparatus which is a second example of an industrial apparatus according to a fifth embodiment. [Diagram 23] FIG. 13 is a diagram showing a configuration of a robot device which is a third example of an industrial device according to a fifth embodiment. [Figure 24] FIG. 1 is a diagram showing a configuration example in which a processing circuit included in an inference device according to a first embodiment is realized by a processor and a memory. [Diagram 25] FIG. 1 is a diagram showing a configuration example of a processing circuit included in the inference device according to the first embodiment when the processing circuit is configured with dedicated hardware. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] A learning device, an industrial system, an inference device, a learning method, and an inference method according to embodiments of the present disclosure will be described in detail below with reference to the drawings.
[0012] Embodiment 1 FIG. 1 is a diagram illustrating a configuration example of a learning device 100 according to the first embodiment. The learning device 100 includes a base model learning unit 105, an adaptive model learning unit 106, an inference error acquisition unit 107, and an error model generation unit 108. FIG. 1 illustrates a spare device 101 that is a learning target, a target device 103 that is a learning and inference target, a spare sensor unit 102, and a target sensor unit 104. The spare sensor unit 102 may be disposed inside the spare device 101. The target sensor unit 104 may be disposed inside the target device 103.
[0013] The spare device 101 and the target device 103 are different devices (industrial devices) of the same type, and the spare sensor unit 102 and the target sensor unit 104 are configured to include sensors of the same type. In the first embodiment, "same type" means having similar functions. Therefore, in the first embodiment, "same type" refers to devices having similar functions, and "same type" refers to sensors that can measure a certain physical quantity with the same accuracy.
[0014] The spare device 101 is an industrial device that acquires spare data (spare data 203 described later) used for learning by a base model learning unit (spare model learning unit) 105. The target device 103 is an industrial device that acquires target data (target data 303 described later) used for learning by an adaptive model learning unit (target model learning unit) 106. The spare device 101 and the target device 103 are, for example, processing devices that process a processing target (workpiece).
[0015] The spare data 203 is data measured by the spare sensor unit 102 in the spare device 101 when the spare device 101 is in operation. The target data 303 is data measured by the target sensor unit 104 in the target device 103 when the target device 103 is in operation.
[0016] In the first embodiment, the amount of the preliminary data 203 is greater than the amount of the target data 303. Therefore, in the first embodiment, the preliminary device 101 is an industrial device that is trained using a large amount of preliminary data 203, and the target device 103 is an industrial device that is trained using a smaller amount of target data 303 than the preliminary data 203.
[0017] The spare device 101 is used for learning using the spare data 203, and the target device 103 executes processing on a processing target that will become a product. When the target device 103 is operated, a learning model trained using the spare data 203 and a learning model trained using the target data 303 are used.
[0018] A sensor included in the standby sensor unit 102 measures the state of the standby device 101 or the state of an object to be processed by the standby device 101. A sensor included in the object sensor unit 104 measures the state of the object device 103 or the state of an object to be processed by the object device 103.
[0019] The spare sensor unit 102 transmits the measured data to the base model learning unit 105 as spare data 203. In addition, a spare label (a spare label 401 described later) corresponding to the spare data 203 is attached to the spare data 203, and the spare label 401 is input to the base model learning unit 105. The spare data 203 and the spare label 401 are used for machine learning by the base model learning unit 105.
[0020] The target sensor unit 104 transmits the measured data as target data 303 to the adaptive model learning unit 106. In addition, a target label (a target label 501 described later) corresponding to the target data 303 is attached to the target data 303, and this target label 501 is input to the adaptive model learning unit 106. The target data 303 and the target label 501 are used for machine learning by the adaptive model learning unit 106. The target label 501 is a first target label.
[0021] The base model training unit 105 generates a base model (a base model 403 described later) by learning the relationship between the preliminary data 203 and the preliminary labels 401. The adapted model training unit 106 generates an adapted model (an adapted model 503 described later) by learning the relationship between the target data 303 and the target labels 501.
[0022] The inference error acquisition unit 107 infers a target label corresponding to the target data 303 , and calculates the error between the inferred target label and a target label 501 that actually corresponds to the target data 303 .
[0023] Specifically, the inference error acquisition unit 107 calculates the error (base model inference error 603 described later) between the target label inferred by inputting the target data 303 into the base model (backup model) 403 and the target label 501 corresponding to the target data 303.
[0024] In addition, the inference error acquisition unit 107 calculates the error (adapted model inference error 606 described later) between the target label inferred by inputting the target data 303 into the adapted model (target model) 503 and the target label 501 corresponding to the target data 303.
[0025] The error model generation unit 108 generates an error model (error model 701 described later) to be used for integrating the result of inference using the base model 403 (base model inference result Br described later) and the result of inference using the adapted model 503 (adapted model inference result Ar described later).
[0026] The error model 701 is a model that calculates an error model inference result for target data (new target data 801 described later). The error model inference result is information indicating the relationship between the magnitude of error when inferring using the base model 403 and the magnitude of error when inferring using the adapted model 503. In other words, the error model inference result is information indicating the relationship between the magnitude of the base model inference result Br, which is the inference result when new target data 801 is input to the base model 403, and the magnitude of the adapted model inference result Ar, which is the inference result when new target data 801 is input to the adapted model 503. The error model inference result corresponds to a predicted value of the error of the base model inference result Br and a predicted value of the error of the adapted model inference result Ar.
[0027] The error model inference result is used to determine the weighting to be set for the base model inference result Br and the weighting to be set for the adaptive model inference result Ar when the base model inference result Br and the adaptive model inference result Ar are integrated. That is, the error model generation unit 108 generates an error model 701 for inferring the weighting to be used when the inference results of each inference model are integrated.
[0028] The error model 701 calculates an error model inference result such that the smaller the error when calculated using the adapted model 503, the higher the priority of the adapted model 503. Furthermore, in an area where there is no pre-trained data, the error model 701 calculates an error model inference result such that the priority of the base model 403 is higher because the base model 403 has been trained using a larger amount of data.
[0029] The learning device 100 is connected to the standby device 101 when acquiring the backup data 203 from the standby device 101 and generating the base model 403. In addition, the learning device 100 is connected to the target device 103 when acquiring the target data 303 from the target device 103 and generating an adapted model 503.
[0030] For example, the learning device 100 generates a base model 403 using the spare device 101 at a manufacturer that produces the spare device 101 and the target device 103. After that, the learning device 100, an inference device 800 described below, and the target device 103 are purchased, and the learning device 100 generates an adapted model 503 and an error model 701 using the target device 103 at the purchaser. Then, the inference device 800 infers the state of the target device 103, etc., using the base model 403, adapted model 503, and error model 701 at the purchaser.
[0031] Alternatively, spare device 101, target device 103, learning device 100, and inference device 800 may be purchased, and learning device 100 may learn base model 403 using spare device 101 at the place of purchase.
[0032] The learning device 100 may learn the base model 403 and the adapted model 503 at any location. The learning device 100 may also acquire the preliminary data 203 measured by the preliminary sensor unit 102 via another external device. The learning device 100 may also acquire the target data 303 measured by the target sensor unit 104 via another external device.
[0033] Furthermore, the learning device 100 may store a base model 403 that has been trained in advance by another learning device. In this case, the learning device 100 does not need to include the base model training unit 105.
[0034] 2 is a diagram showing a configuration example of the spare sensor unit 102 according to the first embodiment. The spare sensor unit 102 includes a sensor 201 that measures the state of the spare device 101 or the state of an object to be processed by the spare device 101, and outputs the measured signal as spare data 203. The spare data 203 is, for example, data detected (measured) by a current sensor, data detected by an optical sensor, data detected by a force sensor, etc.
[0035] The spare sensor unit 102 may include a feature extraction unit 202. Fig. 2 shows a case where the spare sensor unit 102 includes the feature extraction unit 202. The feature extraction unit 202 extracts features from a signal measured by the sensor 201, and outputs a set of the extracted features as spare data 203.
[0036] 3 is a diagram showing a configuration example of the target sensor unit 104 according to the first embodiment. The target sensor unit 104 includes a sensor 301 that measures the state of the target device 103 or the state of a processing target of the target device 103, and outputs the measured signal as target data 303.
[0037] The target sensor unit 104 may include a feature extraction unit 302. Fig. 3 shows a case where the target sensor unit 104 includes the feature extraction unit 302. The feature extraction unit 302 extracts features from a signal measured by the sensor 301, and outputs a set of the extracted features as target data 303.
[0038] Here, the feature amount is an amount indicating the feature of the sensor signal. The feature amount is, for example, a statistical amount such as the average value, variance value, standard deviation value, kurtosis, skewness, median value, percentile value, maximum value, minimum value, crest factor, and number of peaks of the sensor signal. The feature amount may also be the result of frequency analysis of the sensor signal, the result of filter bank analysis of the sensor signal (result of summarizing the results of frequency analysis in a specific frequency range), the result of cepstrum analysis of the sensor signal, or the like. The feature amount extraction units 202 and 302 can use a general feature amount extraction method.
[0039] The backup device 101 may be one specific device, or a plurality of devices may be used as the backup device 101 to acquire the backup data 203.
[0040] 4 is a diagram for explaining the operation of the base model learning unit 105 according to the first embodiment. The base model learning unit 105 receives the preliminary data 203 and the preliminary label 401 attached to the preliminary data 203.
[0041] For example, if data collected by a current sensor when a ball screw is operated is preliminary data 203, a label indicating the state of the ball screw, etc. is preliminary label 401. Also, if data collected by an optical sensor when a laser cutting device processes an object to be processed is preliminary data 203, a label indicating the processing result of the object to be processed, etc. is preliminary label 401. Also, if data collected by a force sensor when a robot device tightens a screw is preliminary data 203, a label indicating the tightening result of the screw, etc. is preliminary label 401.
[0042] The base model learning unit 105 generates a base model 403 indicating the relationship between the preliminary data 203 and the preliminary labels 401 by learning the relationship between the preliminary data 203 and the preliminary labels 401 attached to the preliminary data 203. The base model 403 is a model for inferring the preliminary labels 401 from the preliminary data 203. The base model learning unit 105 outputs the generated base model 403.
[0043] 5 is a diagram for explaining the operation of the adaptive model training unit 106 according to the first embodiment. The adaptive model training unit 106 receives the target data 303 and a target label 501 attached to the target data 303. The target label 501 is data similar to the preliminary label 401.
[0044] The adapted model learning unit 106 generates an adapted model 503 by learning the relationship between the target data 303 and the target label 501 attached to the target data 303. The adapted model 503 is a model for inferring the target label 501 from the target data 303. The adapted model learning unit 106 outputs the generated adapted model 503.
[0045] Here, the spare label 401 and the target label 501 may be attached by a person by observing the state of the apparatus (the spare apparatus 101 and the target apparatus 103) or the state of the processing target. Also, the spare label 401 and the target label 501 may be attached automatically based on the observation result by the spare sensor unit 102 or the target sensor unit 104. Also, the spare label 401 and the target label 501 may be attached automatically based on the observation result by a sensor or system other than the spare sensor unit 102 or the target sensor unit 104 that observes the state of the apparatus or the processing target.
[0046] A general regression model or classification model can be used for the base model 403 and the adapted model 503. The type of model is selected for the base model 403 and the adapted model 503 according to the application or purpose. An example of the base model 403 and the adapted model 503 is a neural network. Other examples of the base model 403 and the adapted model 503 include a recurrent neural network, a deep neural network, a linear regression model, a Gaussian process regression model, a support vector regression model, a linear discriminant model, a support vector machine, a logistic regression, a mixture distribution model, a Bayesian estimation, a decision tree (classification tree, regression tree), etc.
[0047] 6 is a diagram illustrating an example of the configuration of the inference error acquiring unit 107 according to the embodiment 1. The inference error acquiring unit 107 includes a base model inference unit 601, a base model error calculation unit 602, an adapted model inference unit 604, and an adapted model error calculation unit 605.
[0048] The base model inference unit 601 inputs the target data 303, instead of the preliminary data 203, to the base model 403, and infers a base model inference result Br (second target label) corresponding to the target data 303. The base model inference result Br is the state of the device or the state of the processing target, and is an inferred target label.
[0049] The base model error calculation unit 602 calculates the error between the base model inference result Br and the target label 501 as the base model inference error 603 .
[0050] The adapted model inference unit 604 inputs the target data 303 to the adapted model 503, and infers an adapted model inference result Ar (third target label) corresponding to the adapted model 503. The adapted model inference result Ar is the state of the device or the state of the processing target, and is an inferred adapted label.
[0051] The adapted model error calculation unit 605 calculates the error between the adapted model inference result Ar and the target label 501 as an adapted model inference error 606 .
[0052] 7 is a diagram for explaining the operation of the error model generating unit 108 according to the first embodiment. The target data 303, the base model inference error 603, and the adaptive model inference error 606 are input to the error model generating unit 108. The error model generating unit 108 generates an error model 701 by performing learning based on the target data 303, the base model inference error 603, and the adaptive model inference error 606.
[0053] The error model 701 is a model that calculates an error model inference result from new target data 801, which is new target data. The error model 701 includes, for example, a model that calculates information corresponding to the error of the inference result when the base model 403 is applied to the new target data 801 (a base error model inference result Eb1 described later), and a model that calculates information corresponding to the error of the inference result when the adaptive model 503 is applied to the new target data 801 (an adaptive error model inference result Ea1 described later). Note that the error model 701 is not limited to a model that calculates two error model inference results, and may be a model that calculates one error model inference result.
[0054] 8 is a diagram illustrating an example of a configuration of an inference device 800 according to the first embodiment. The inference device 800 includes a base model inference unit 802, an adapted model inference unit 803, an error model inference unit 804, and an integration unit 805, and further stores a base model 403, an adapted model 503, and an error model 701. At least one of the base model 403, the adapted model 503, and the error model 701 may be stored in an external device.
[0055] The inference device 800 receives new target data 801, which is a signal newly measured by the target sensor unit 104 in the target device 103, from the target sensor unit 104. The new target data 801 is data newly measured by the target sensor unit 104 in the target device 103 when the target device 103 newly operates. The target device 103 newly operates when the learning of the adaptive model 503 and the error model 701 for the target device 103 is completed and the target device 103 processes or transports an actual product.
[0056] When inference device 800 receives new target data 801, it estimates an object label (new target label) corresponding to new target data 801, and outputs it as inference result 806. That is, inference device 800 outputs inference result 806 corresponding to new target data 801.
[0057] In the inference device 800, new target data 801 is input to a base model inference unit 802, an adapted model inference unit 803, and an error model inference unit 804. The base model inference unit 802 has the same function as the base model inference unit 601. The base model inference unit 802 inputs the new target data 801 to the base model 403, and calculates a base model inference result Br, which is a result of inference in the base model 403. That is, the base model inference unit 802 estimates the base model inference result Br as a target label corresponding to the new target data 801 by the base model 403, and thereby acquires the base model inference result Br.
[0058] Moreover, the adapted model inference unit 803 has the same function as the adapted model inference unit 604. By inputting new target data 801 to the adapted model 503, the adapted model inference unit 803 calculates an adapted model inference result Ar which is a result of inference in the adapted model 503. That is, the adapted model inference unit 803 estimates the adapted model inference result Ar as an adaptation label corresponding to the new target data 801 by the adapted model 503, and thereby acquires the adapted model inference result Ar.
[0059] Moreover, the error model inference unit 804 inputs new target data 801 to the error model 701, and calculates an error model inference result E1, which is a result of inference by the error model 701. That is, the error model inference unit 804 estimates the error model inference result E1 as integration weighting information corresponding to the new target data 801, using the error model 701, and thereby acquires the error model inference result E1.
[0060] When the base model 403 is more reliable than the adapted model 503, the error model inference unit 804 calculates an error model inference result E1 in which the base model inference result Br is weighted more heavily than the adapted model inference result Ar.
[0061] On the other hand, when the base model 403 is less reliable than the adapted model 503, the error model inference unit 804 calculates an error model inference result E1 in which the base model inference result Br is weighted less than the adapted model inference result Ar.
[0062] Examples of the error model inference result E1 are the base error model inference result Eb1 and the adaptive error model inference result Ea1, which will be described later. The error model inference result E1 corresponds to the base model inference error 603 and the adaptive model inference error 606 for the new target data 801, for example.
[0063] The integrating unit 805 calculates an inference result 806 by weighting and integrating the base model inference result Br and the adaptive model inference result Ar based on the error model inference result E1. The integrating unit 805 weights the inference result with a higher reliability, between the base model inference result Br and the adaptive model inference result Ar, more heavily than the inference result with a lower reliability. The integrating unit 805 outputs the inference result 806 to a display device (not shown) or the like.
[0064] At least one of learning device 100 and inference device 800 may be disposed in target device 103. In addition, at least one of spare device 101 and target device 103 may be connected to a network, and at least one of learning device 100 and inference device 800 may be partially or entirely disposed on a processing circuit on the network or on a processing circuit on the Internet cloud.
[0065] When learning the error model 901, the learning device 100 may learn the error model (error model 901 described later) after performing dimensional compression on the target data 303. In this case, the learning device 100 includes a dimensional compression unit (dimensional compression unit 902 described later) that performs dimensional compression on the target data 303.
[0066] 9 is a diagram for explaining the operations of the error model generating unit 108 and the dimensionality reducing unit 902 according to the first embodiment. The dimensionality reducing unit 902 performs dimensionality compression on the target data 303. The dimensionality reducing unit 902 outputs the target data 303 subjected to dimensionality compression to the error model generating unit 108. Details of the dimensionality reduction will be described later.
[0067] The error model generation unit 108 generates an error model 901 by performing learning based on the target data 303 dimensionally compressed by the dimensionality compression unit 902, the base model inference error 603, and the adapted model inference error 606. The error model 901 is a model that calculates an inference result 806 from new target data 801, similar to the error model 701.
[0068] Fig. 10 is a diagram showing a second configuration example of inference device 1000 according to the first embodiment. Among the components in Fig. 10, components that achieve the same functions as inference device 800 shown in Fig. 8 are given the same reference numerals, and duplicated explanations will be omitted. Fig. 10 shows the configuration of inference device 1000, which is an example of inference device 800.
[0069] Inference device 1000 includes a dimensionality reduction unit 902 in addition to the components included in inference device 800. Dimensionality reduction unit 902 included in inference device 1000 has the same function as dimensionality reduction unit 902 included in learning device 100.
[0070] Moreover, the inference device 1000 includes an error model inference unit 1001, which is an example of the error model inference unit 804, and stores an error model 901, which is an example of the error model 701. Note that the error model 901 may be stored in an external device.
[0071] In the inference device 1000, new target data 801 is input to a base model inference unit 802, an adapted model inference unit 803, and a dimensionality reduction unit 902. Upon receiving the new target data 801, the dimensionality reduction unit 902 performs dimensionality reduction on the new target data 801. The dimensionality reduction unit 902 outputs the new target data 801 after dimensionality reduction to an error model inference unit 1001.
[0072] In this way, the dimensionality reduction unit 902 applies the same process of dimensionality reduction to the new target data 801 as that performed on the target data 303 when the error model 901 was learned, to perform dimensionality reduction. The error model inference unit 1001 inputs the dimensionality reduced new target data 801 to the error model 901, thereby calculating the error model inference result E2, which is the result of inference by the error model 901. That is, the error model inference unit 1001 estimates the error model inference result E2 as integration weighting information corresponding to the dimensionality reduced new target data 801 by the error model 901, thereby acquiring the error model inference result E2. Examples of the error model inference result E2 are the base error model inference result Eb1, the adaptive error model inference result Ea1, etc.
[0073] In general, when a learning model is trained, the greater the dimension of the data to be trained, the greater the amount of calculation required for training and inference. Also, the greater the dimension of the data to be trained, the greater the number of pieces of data required for training.
[0074] In the first embodiment, the learning device 100 learns the error model 901 using the dimensionally compressed target data 303, thereby reducing the amount of calculations required for learning and inference, enabling high-speed learning and inference, and further reducing the amount of data required for learning.
[0075] The dimension compression unit 902 can apply, for example, a dimension reduction technique using principal component analysis as the dimension compression process. In another example, the dimension compression unit 902 can apply, for example, a general dimension reduction technique such as dimension reduction using linear discriminant analysis (LDA), kernel principal component analysis, t-distributed stochastic neighbor embedding (t-SNE), non-negative matrix factorization (NMF), an autoencoder, or uniform manifold approximation and projection (UMAP), as the dimension compression process.
[0076] In addition, if the target data 303 is time series data, the dimensionality reduction unit 902 can apply dimensionality reduction by extracting features, and can further apply the above-mentioned general dimensionality reduction method to the target data 303 from which features have been extracted.
[0077] In industrial systems, multiple industrial devices with the same configuration are often manufactured. When creating a learning model taking into account the individual differences of the industrial devices, it was previously necessary to acquire and label a large amount of data for each individual industrial device before training the learning model.
[0078] The learning device 100 of the first embodiment acquires a large amount of data (acquires the preliminary data 203) and labels the data for the standby device 101, which is an industrial device, and then learns the base model 403. The learning device 100 also acquires a smaller amount of data (acquires the target data 303) for the target device 103 than the amount of data acquired for the standby device 101 and labels the data, and then learns the adaptive model 503 and the error model 701. That is, in the first embodiment, a large amount of data is acquired and labeled for learning the base model 403, but when the adaptive model 503 and the error model 701 are learned, less data is acquired and labeled than when the base model 403 is learned. As a result, the learning device 100 can provide highly accurate learning models (the base model 403, the adaptive model 503, and the error model 701) that prevent accuracy degradation due to individual differences, even if there are individual differences in the devices (the standby device 101 and the target device 103), the sensors 201 and 301, the processing target, and the like.
[0079] The learning device 100 of the first embodiment is preferably applied to a case where a large amount of preliminary data 203 is acquired for the preliminary device 101, and a smaller amount of target data 303 than the preliminary data 203 is acquired for the target device 103.
[0080] According to the first embodiment, the number of times of acquiring and labeling the learning data (target data 303) for the target device 103 can be reduced, and the number of steps required for building a learning model can be reduced.
[0081] When the learning device 100 of the first embodiment is applied to the target device 103, the base model 403 may be trained in advance. By storing the pre-trained base model 403, the learning device 100 does not need to store the preliminary data 203 and the preliminary label 401. This allows the learning device 100 to be configured with a smaller storage capacity than when learning is performed using the preliminary data 203, the preliminary label 401, the target data 303, and the target label 501.
[0082] The amount of calculation required for learning a model depends on the number of data to be learned. The data used by learning device 100 when learning adapted model 503 and error model 701 are target data 303 and target label 501. Therefore, in embodiment 1, the amount of calculation can be reduced compared to the case where learning is performed using preliminary data 203, preliminary label 401, target data 303, and target label 501, and therefore inference device 800 can be constructed at high speed.
[0083] In an industrial system, it is easy to acquire a large amount of data from the standby device 101, but there are cases where only a small amount of data can be acquired from the target device 103. In the first embodiment, a large amount of data is acquired from the standby device 101, but the learning device 100 and the inference device 800 can be realized by acquiring a minimum amount of data from the target device 103, so that the embodiment can be applied even when it is difficult to acquire a large amount of data from the target device 103.
[0084] 11 is a flowchart showing an example of the operation of the learning device 100 according to the embodiment 1. The learning device 100 learns the base model 403, the adapted model 503, and the error model 701 by executing the processes of steps S1 to S11 shown in FIG.
[0085] The learning device 100 acquires the preliminary data 203 from the preliminary device 101 (step S1). The learning device 100 assigns a preliminary label 401 to the preliminary data 203 (step S2). Note that the process of assigning the preliminary label 401 to the preliminary data 203 may be performed by another device or a person. The base model learning unit 105 of the learning device 100 learns the relationship between the preliminary data 203 and the preliminary label 401, and generates a base model 403 (step S3).
[0086] The learning device 100 acquires the target data 303 from the target device 103 (step S4). The learning device 100 assigns a target label 501 to the target data 303 (step S5). Note that the process of assigning the target label 501 to the target data 303 may be performed by another device or a person. The adapted model learning unit 106 of the learning device 100 learns the relationship between the target data 303 and the target label 501, and generates the adapted model 503 (step S6). Note that either the processes of steps S1 to S3 or the processes of steps S4 to S6 may be performed first.
[0087] The inference error acquisition unit 107 of the learning device 100 infers information corresponding to the target data 303 using the base model 403. That is, the inference error acquisition unit 107 inputs the target data 303 to the base model 403 and calculates the base model inference result Br (step S7). The inference error acquisition unit 107 calculates the base model inference error 603, which is the error between the base model inference result Br and the target label 501 (step S8).
[0088] The inference error acquiring unit 107 infers information corresponding to the target data 303 using the adapted model 503. That is, the inference error acquiring unit 107 inputs the target data 303 to the adapted model 503 and calculates the adapted model inference result Ar (step S9). The inference error acquiring unit 107 calculates the adapted model inference error 606, which is the error between the adapted model inference result Ar and the target label 501 (step S10). Note that either the processing of steps S7 and S8 or the processing of steps S9 and S10 may be executed first.
[0089] The error model generating unit 108 of the learning device 100 generates an error model 701 based on the target data 303, the base model inference error 603, and the adaptive model inference error 606 (step S11).
[0090] 12 is a flowchart showing an example of the operation of inference device 800 according to embodiment 1. Inference device 800 calculates inference result 806 by executing the operations of steps S21 to S25 shown in FIG.
[0091] The inference device 800 reads the base model 403, the adapted model 503, and the error model 701 learned by the learning device 100. The inference device 800 acquires new target data 801 from the target device 103 (step S21).
[0092] A base model inference unit 802 of an inference device 800 infers information corresponding to new target data 801 using the base model 403. That is, the base model inference unit 802 inputs the new target data 801 to the base model 403 and calculates the base model inference result Br (step S22).
[0093] Furthermore, the adapted model inference unit 803 of the inference device 800 infers information corresponding to the new target data 801 using the adapted model 503. That is, the adapted model inference unit 803 inputs the new target data 801 to the adapted model 503 and calculates the adapted model inference result Ar (step S23).
[0094] The error model inference unit 804 of the inference device 800 infers information corresponding to the new target data 801 using the error model 701. That is, the error model inference unit 804 inputs the new target data 801 to the error model 701 and calculates the error model inference result E1 (step S24). Note that the processing of steps S22, S23, and S24 may be performed in any order.
[0095] The integration unit 805 of the inference device 800 integrates the base model inference result Br and the adapted model inference result Ar based on the error model inference result E1 to calculate an inference result 806 (step S25).
[0096] Next, a detailed description will be given of configuration examples of the error model generating unit 108 and the inference device 800. As a premise, the base model 403, which has learned a larger number of pieces of preliminary data 203 than the target data 303, can obtain accurate inference results for a wider range of new target data 801 than the adapted model 503, which has learned only a smaller number of pieces of target data 303 than the preliminary data 203. On the other hand, due to individual differences between the preliminary device 101 and the target device 103, the tendency of the new target data 801 acquired from the target device 103 has changed from the preliminary data 203, and depending on the new target data 801, the adapted model 503 can obtain more accurate estimation results than the base model 403.
[0097] It is not lost in generality if the label values used in training the learning model are normalized and treated as falling within the range of 0 to 1. In this case, if the range of the label is 0 to 1, the range of the magnitude of the error will also be 0 to 1. For this reason, in the following, unless otherwise specified, it is assumed that the range of the label is normalized to 0 to 1.
[0098] Fig. 13 is a diagram illustrating an example of the configuration of the error model generating unit 1300 according to the first embodiment. In Fig. 13, the configuration of the error model generating unit 1300, which is an example of the error model generating unit 108, is illustrated.
[0099] The error model generation unit 1300 includes a base error information setting unit 1301 , a base error model learning unit 1302 , an adaptive error information setting unit 1304 , and an adaptive error model learning unit 1305 .
[0100] The error model generation unit 1300 receives the target data 303, the base model inference error 603, and the adaptive model inference error 606. The error model generation unit 1300 performs learning based on the target data 303, the base model inference error 603, and the adaptive model inference error 606 to generate the base error model 1303 and the adaptive error model 1306 as the error model 701.
[0101] The base error information setting unit 1301 is set in advance by a user with information (base error information) that specifies that the magnitude of the inference error by the base model 403 for the new target data 801 used during inference is smaller than the magnitude of the inference error by the adapted model 503. The base error information is information that indicates the relationship between information on a lattice point in a space (data space) and information on a label at this lattice point. Note that a default value set in advance in the base error information setting unit 1301 may be used as the base error information.
[0102] Information (adaptive error information) that specifies that the magnitude of the inference error by the adapted model 503 for the new target data 801 used during inference is to be larger than the magnitude of the inference error by the base model 403 is set in advance in the adaptive error information setting unit 1304 by the user. The adaptive error information is information that indicates the relationship between information on a lattice point in space and information on the label at this lattice point. Note that a default value set in advance in the adaptive error information setting unit 1304 may be used as the adaptive error information.
[0103] The base error information setting unit 1301 sets the base error information set by the user in the base error model learning unit 1302. That is, the base error information setting unit 1301 sets in the base error model learning unit 1302 base error information indicating that inference using the new target data 801, inference by the base model 403 is more accurate than inference by the adapted model 503.
[0104] The base error information setting unit 1301 arranges data points in a lattice pattern (at the vertices of a cube) for a spatial region in which the preliminary data 203 and the target data 303 acquired from the preliminary sensor unit 102 and the target sensor unit 104 are distributed.
[0105] Then, the base error information setting unit 1301 generates base error information by setting the value set in the base error information. Specifically, the base error information setting unit 1301 generates base error information by setting a value such as "0" as a label of the magnitude of error for each data point so as to indicate that the magnitude of error is small. That is, the base error information setting unit 1301 generates base error information indicating that the error of inference using the base model 403 is small. This is because the base model 403 is trained using a large amount of data. In this case, the label of the magnitude of error for the data points arranged in a lattice pattern may be a value smaller than half the range of the magnitude of the inference error by the base model 403 and the adapted model 503. For example, if the range of the label is 0 to 1, the base error information setting unit 1301 can set a value less than 0.5 (for example, "0") as the label of the error.
[0106] The base error model learning unit 1302 learns the relationship between the magnitude of the base model inference error 603 and the target data 303. In other words, the base error model learning unit 1302 learns the magnitude of the base model inference error 603 when the target data 303 is input to the base model 403.
[0107] During this learning, the base error model learning unit 1302 adds the data of the base error information to the learning data and learns. At this time, the base error model learning unit 1302 performs learning by giving a smaller weight to the data of the base error information than the data of the target data 303 and the base model inference error 603. This is because the data of the base error information is data set by assumption, and has a lower reliability than the data of the target data 303 and the base model inference error 603 that are actually acquired. For example, when one data point has data of the target data 303 and the base model inference error 603, the data of the target data 303 and the base model inference error 603 are learned with a larger weight than the data of the base error information.
[0108] As a result, when the base error model learning unit 1302 learns the base error model 1303, in the region of space in which the target data 303 is distributed, it learns the relationship between the target data 303 and the base model inference error 603 in priority to the base error information.
[0109] Furthermore, when learning the base error model 1303, the base error model learning unit 1302 learns base error information in a space where the target data 303 does not exist. That is, when learning the base error model 1303, the base error model learning unit 1302 learns information that the magnitude of the error (a value less than 0.5) set in the data of the base error information is small in a space where the target data 303 does not exist. In other words, the base error model learning unit 1302 calculates the base error model 1303 by learning that in a space where the target data 303 does not exist, the value of the base model inference error 603 corresponding to the target data 303 is a small value corresponding to the value (a value less than 0.5) set in the base error information.
[0110] The adaptive error information setting unit 1304 sets the adaptive error information set by the user in the adaptive error model learning unit 1305. That is, the adaptive error information setting unit 1304 sets in the adaptive error model learning unit 1305 adaptive error information indicating that inference using the new target data 801, inference by the adaptive model 503 is less accurate than inference by the base model 403.
[0111] The adaptive error information setting unit 1304 arranges data points in a lattice pattern in a spatial region in which the preliminary data 203 and the target data 303 acquired from the preliminary sensor unit 102 and the target sensor unit 104 are distributed.
[0112] Then, the base error information setting unit 1301 generates base error information by setting the value set in the base error information. Specifically, the adaptive error information setting unit 1304 generates adaptive error information by setting a value such as "1" as a label of the magnitude of error for each data point so as to indicate that the magnitude of the error is large. That is, the adaptive error information setting unit 1304 generates adaptive error information indicating that the error of the inference using the adapted model 503 is large. This is because the adapted model 503 performs learning using a small amount of data. In this case, the error label for the data points arranged in a lattice pattern may be a value larger than half the range of the magnitude of the inference error by the base model 403 and the adapted model 503. For example, if the range of the label is 0 to 1, the adaptive error information setting unit 1304 can set a value of 0.5 or more (for example, "1") as the error label.
[0113] The adaptive error model learning unit 1305 learns the relationship between the magnitude of the adaptive model inference error 606 and the target data 303. In other words, the adaptive error model learning unit 1305 learns the magnitude of the adaptive model inference error 606 when the target data 303 is input to the adaptive model 503.
[0114] During this learning, the adaptive error model learning unit 1305 adds the data of the adaptive error information to the learning data and learns. At this time, the adaptive error model learning unit 1305 performs learning by giving a smaller weight to the data of the adaptive error information than the data of the target data 303 and the adaptive model inference error 606. This is because the data of the adaptive error information is data set by assumption, and has a lower reliability than the data of the target data 303 and the adaptive model inference error 606 that are actually acquired. For example, when one data point has data of the target data 303 and the adaptive model inference error 606, the data of the target data 303 and the adaptive model inference error 606 are learned with a larger weight than the data of the adaptive error information.
[0115] As a result, when the adaptive error model learning unit 1305 learns the adaptive error model 1306, in the region of space in which the target data 303 is distributed, it learns the relationship between the target data 303 and the adaptive model inference error 606 in priority to the adaptive error information.
[0116] Furthermore, when learning the adaptive error model 1306, the adaptive error model learning unit 1305 learns adaptive error information in a space where the target data 303 does not exist. That is, when learning the adaptive error model 1306, the adaptive error model learning unit 1305 learns information that the magnitude of the error (a value of 0.5 or more) set in the data of the adaptive error information is large in a space where the target data 303 does not exist. In other words, the adaptive error model learning unit 1305 calculates the adaptive error model 1306 by learning that in a space where the target data 303 does not exist, the value of the adaptive model inference error 606 corresponding to the target data 303 is a large value corresponding to the value (a value of 0.5 or more) set in the adaptive error information.
[0117] Fig. 14 is a diagram showing a third example of a configuration of inference device 1400 according to the first embodiment. Among the components in Fig. 14, components that achieve the same functions as those in inference device 800 shown in Fig. 8 are given the same reference numerals, and duplicated explanations will be omitted. Fig. 14 shows the configuration of inference device 1400, which is an example of inference device 800.
[0118] Like inference device 800, inference device 1400 includes a base model inference unit 802 and an adapted model inference unit 803. Like inference device 800, inference device 1400 stores base model 403 and adapted model 503.
[0119] The inference device 1400 also includes an error model inference unit 1401, which is an example of the error model inference unit 804, and an integration unit 1402, which is an example of the integration unit 805. The inference device 1400 also stores a base error model 1303 and an adaptive error model 1306, which are examples of the error model 701. At least one of the base model 403, the adaptive model 503, the base error model 1303, and the adaptive error model 1306 may be stored in an external device.
[0120] The error model inference unit 1401 includes a base error model inference unit 1403 and an adaptive error model inference unit 1404. The base error model 1303 is used in the base error model inference unit 1403, and the adaptive error model 1306 is used in the adaptive error model inference unit 1404.
[0121] In the inference device 1400 , new object data 801 is input to a base model inference section 802 , an adaptive model inference section 803 , a base error model inference section 1403 , and an adaptive error model inference section 1404 .
[0122] The base error model inference unit 1403 inputs new target data 801 to the base error model 1303, and calculates a base error model inference result Eb1, which is the result of inference in the base error model 1303. That is, the base error model inference unit 1403 estimates the base error model inference result Eb1 as integration weighting information corresponding to the new target data 801, using the base error model 1303, and thereby obtains the base error model inference result Eb1.
[0123] The adaptive error model inference unit 1404 inputs new target data 801 to the adaptive error model 1306, and calculates an adaptive error model inference result Ea1, which is the result of inference by the adaptive error model 1306. That is, the adaptive error model inference unit 1404 estimates the adaptive error model inference result Ea1 using the adaptive error model 1306 as integration weighting information corresponding to the new target data 801, and thereby acquires the adaptive error model inference result Ea1.
[0124] The integrating unit 1402 calculates an inference result 806 by weighting and integrating the base model inference result Br and the adaptive model inference result Ar based on the base error model inference result Eb1 and the adaptive error model inference result Ea1. That is, the integrating unit 1402 determines the inference result 806 from the base error model inference result Eb1, the adaptive error model inference result Ea1, the base model inference result Br, and the adaptive model inference result Ar. The integrating unit 1402 outputs the inference result 806 to a display device (not shown) or the like. The inference device 1400 may include a dimensionality reduction unit 902.
[0125] The base error model inference result Eb1 corresponds to a predicted value of the magnitude of the base model inference error 603 (the inferred value of the error by the base model 403) for the new target data 801. The adaptive error model inference result Ea1 corresponds to a predicted value of the magnitude of the adaptive model inference error 606 (the inferred value of the error by the adaptive model 503) for the new target data 801.
[0126] One example of a method for determining the inference result p, which is the inference result 806, is to calculate a weighted average of the base model inference result Br and the adaptive model inference result Ar using the base error model inference result Eb1 and the adaptive error model inference result Ea1.
[0127] Here, the base error model inference result Eb1 is the base error model inference result e b Let Ea1 be the adaptive error model inference result e t Let the base model inference result Br be the base model inference result p b Let the adaptation model inference result Ar be the adaptation model inference result p t In this case, if the inference result 806 is taken as an inference result p, the integration unit 1402 determines the inference result p by, for example, the following formula (1).
[0128]
number
[0129] Another example of a method for determining the inference result p is the base error model inference result e b is the adaptive error model inference result e t If p is smaller than p, the integration unit 1402 integrates the base model inference result p b In this method, the base error model inference result e b is the adaptive error model inference result e t If p is larger than p, the integration unit 1402 integrates the adapted model inference result p t is the inference result 806. Also, the base error model inference result e b and the adaptive error model inference result e t and are the same size, the integration unit 1402 integrates the base model inference result p b and the adaptive model inference result p t The average value of these is taken as the inference result 806.
[0130] In this way, the integration unit 1402 integrates the base model inference result p b and the adaptive model inference result p t For the error (base model inference result p b and the adaptive model inference result p t ) based on the predicted magnitude of the error model inference result e b and the adaptive error model inference result e t The inference result 806 is determined by using the base model inference result p b and the adaptive model inference result p t Among them, an inference result 806 that prioritizes an inference result that is considered to have a smaller error can be determined.
[0131] When the new target data 801 is included in the distribution of the target data 303, the error model inference unit 1401 infers the base error model inference result e having the magnitude of the error learned by the base error model 1303. b The adaptive error model 1306 outputs the adaptive error model inference result e having the magnitude of the error learned. t will be output.
[0132] Here, consider a case where the new target data 801 is data with a different property from the target data 303, such that it falls outside the distribution of the target data 303. As described above, when learning the base error model 1303, the error model generation unit 1300 has learned information that in the region of space where the target data 303 is distributed, the relationship between the target data 303 and the base model inference error 603 is given priority, and in the space where the target data 303 does not exist, the error set in the data of the base error information is small. Also, when learning the adaptive error model 1306, the error model generation unit 1300 has learned information that in the region of space where the target data 303 is distributed, the relationship between the target data 303 and the adaptive model inference error 606 is given priority, and in the space where the target data 303 does not exist, the error set in the data of the adaptive error information is large.
[0133] From these facts, if the new target data 801 is data with different properties from the target data 303, such that it deviates from the distribution of the target data 303, the base error model inference result e b The value of is the adaptive error model inference result e t Therefore, when the new target data 801 is out of the distribution of the target data 303, the integration unit 1402 calculates the inference result 806 according to the formula (1) to obtain the base model inference result p b The adaptation model inference result p t It will take precedence over.
[0134] Therefore, if the inference device 1400 can predict that the new target data 801 exists in a region of space in which the target data 303 is distributed and that the magnitude of error in the inference result of the adapted model 503 is smaller than the magnitude of error in the inference result of the base model 403, it can obtain an inference result 806 that prioritizes the inference result of the adapted model 503 over the inference result of the base model 403.
[0135] In addition, if the inference device 1400 predicts that the new target data 801 does not exist in the region of space in which the target data 303 is distributed, or that the magnitude of error in the inference result of the adapted model 503 is greater than the magnitude of error in the inference result of the base model 403, it obtains an inference result 806 that prioritizes the inference result of the base model 403.
[0136] In other words, in the inference device 1400, the adapted model 503 is mainly responsible for inferring data that is included in the target data 303 on which the new target data 801 was learned and that is considered to be able to be inferred accurately. Also, in the inference device 1400, the base model 403, which has learned more data than the adapted model 503, is mainly responsible for inferring data that the adapted model 503 has not learned and data for which the inference of the adapted model 503 has a larger error than the inference of the base model 403.
[0137] However, it is generally known that in the use of learning models, small differences in input to the learning model may have a large effect on the output from the learning model. For example, when a learning model is used to predict the operation results of an industrial system having industrial equipment, even in the same type of industrial system, differences in the data obtained may occur due to individual differences in the industrial system, such as the degree of deterioration of the drive unit, differences in frictional force due to the state of lubricating oil or grease, differences in ambient temperature, installation errors of sensors that obtain data to be input to the learning model, and sensitivity differences. Therefore, when a learning model generated by performing machine learning using data collected by a machine of a certain industrial system is mounted on another machine as an inference device, the difference between the learning data and the obtained data may cause a large error in the output from the learning model, resulting in an inaccurate inference result.
[0138] The inference device 1400 of the first embodiment calculates the base error model inference result e corresponding to the inference error using the base model 403. b and the adaptive error model inference result e corresponding to the inference error using the adaptive model 503 tBased on this, the base model inference result Br and the adapted model inference result Ar are weighted and integrated. This allows the inference device 1400 to give priority to the adapted model 503 when the adapted model 503 is more reliable than the base model 403, and to give priority to the base model 403 when the base model 403 is more reliable than the adapted model 503. Therefore, the inference device 1400 can generate appropriate inference results with good inference accuracy.
[0139] According to the inference device 800 of embodiment 1, it is possible to obtain highly accurate inference results for the target device 103, compared to the case of inference using only the base model 403, the case of inference using only the adapted model 503, and the case of integrating the inference results of the base model 403 and the adapted model 503 using a preset weight (fixed value).
[0140] In this way, the learning device 100 and the inference device 800 of embodiment 1 make it possible to improve the inference accuracy of a learning model when the learning model learned from data collected in another similar industrial system is used in a target industrial system.
[0141] As described above, in the first embodiment, the error model generation unit 108 of the learning device 100 generates the error model 701 used to integrate the base model inference result Br and the adaptive model inference result Ar by learning the relationship between the magnitude of the base model inference error 603, the magnitude of the adaptive model inference error 606, and the target data 303. Therefore, the learning device 100 can generate a learning model capable of generating appropriate inference results with high inference accuracy even for a new environment different from the environment in which data was acquired in advance.
[0142] Furthermore, when new target data 801 is input, the error model 701 outputs an error model inference result E1, which is data corresponding to the weighting of the base model inference result Br and the adaptive model inference result Ar at the time of integration. This allows the inference device 800 to integrate the base model inference result Br and the adaptive model inference result Ar by weighting them based on the error model inference result E1. Therefore, the inference device 800 can calculate an appropriate inference result with good inference accuracy even for a new environment different from the environment in which data was acquired in advance.
[0143] Embodiment 2 Next, a second embodiment will be described with reference to Fig. 15. In the second embodiment, weighting is performed using an anomaly detection model.
[0144] Fig. 15 is a diagram illustrating an example of a configuration of an error model generating unit 1500 according to the second embodiment. In Fig. 15, the configuration of the error model generating unit 1500, which is an example of the error model generating unit 108, is illustrated.
[0145] The error model generation unit 1500 includes an anomaly detection model learning unit 1507 , a base error information setting unit 1501 , a base error model learning unit 1502 , an adaptive error information setting unit 1504 , and an adaptive error model learning unit 1505 .
[0146] Similar to the error model generation unit 1300, the error model generation unit 1500 receives the target data 303, the base model inference error 603, and the adaptive model inference error 606. The error model generation unit 1500 performs learning based on the target data 303, the base model inference error 603, and the adaptive model inference error 606 to generate a base error model 1503 and an adaptive error model 1506 as an error model 701.
[0147] The anomaly detection model learning unit 1507 regards the target data 303 as normal data and learns the anomaly detection model. The method of anomaly detection and the method of generating the anomaly detection model will be described later. The anomaly detection model is a model that judges whether the data (grid points) of the base error information is abnormal or normal. In other words, the anomaly detection model is a model that judges whether the grid points are in the space where the target data 303 was present or not.
[0148] When the base error information data is normal, grid points which are the base error information data exist in the space in which the target data 303 exists. On the other hand, when the base error information data is abnormal, grid points which are the base error information data do not exist in the space in which the target data 303 exists.
[0149] In the second embodiment, when the data of the base error information is normal, the target data 303 exists in the space where the data is distributed, and therefore the normal base error information is deleted. On the other hand, when the data of the base error information is abnormal, the target data 303 does not exist in the space where the data is distributed, and therefore the base error information is used as is. As a result, when the data of the base error information is normal, the target data 303 is adopted, and when the data of the base error information is abnormal, the base error information is adopted. The anomaly detection model learning unit 1507 outputs the anomaly detection model to the base error model learning unit 1502 and the adaptive error model learning unit 1505.
[0150] Similar to the base error information setting unit 1301, the base error information setting unit 1501 sets in the base error model learning unit 1502 base error information that specifies that the magnitude of the inference error by the base model 403 for the new target data 801 used during inference will be smaller than the magnitude of the inference error by the adapted model 503.
[0151] Similar to the base error information setting unit 1301, the base error information setting unit 1501 arranges data points in a lattice pattern in a spatial region in which the data acquired from the spare sensor unit 102 and the target sensor unit 104 are distributed.
[0152] Then, like the base error information setting unit 1301, the base error information setting unit 1501 generates base error information in which the label of the error magnitude for each data point is set to a value less than 0.5 (for example, "0") to indicate that the magnitude of the error is small.
[0153] Furthermore, the base error information setting unit 1501 judges the data of the base error information using the anomaly detection model generated by the anomaly detection model learning unit 1507, and deletes the base error information judged to be normal from the original base error information. That is, the base error information setting unit 1501 judges whether a lattice point corresponding to the base error information exists in the space in which the target data 303 is distributed, and if so, deletes this base error information. As a result, the base error information is no longer used in the space in which the target data 303 is distributed.
[0154] The base error model learning unit 1502 learns the relationship between the magnitude of the base model inference error 603 and the target data 303. During this learning, the base error model learning unit 1502 adds base error information data, from which some data has been deleted, to the learning data.
[0155] As a result, when learning the base error model 1503, the base error model learning unit 1502 learns the relationship between the target data 303 and the base model inference error 603 in the spatial region in which the target data 303 is distributed.
[0156] Furthermore, when learning the base error model 1503, the base error model learning unit 1502 learns base error information in a space where the target data 303 does not exist. That is, when learning the base error model 1503, the base error model learning unit 1502 learns information that the magnitude of the error (value less than 0.5) set in the data of the base error information is small in a space where the target data 303 does not exist. In other words, the base error model learning unit 1502 calculates the base error model 1503 by learning that in a space where the target data 303 does not exist, the value of the base model inference error 603 corresponding to the target data 303 is a small value corresponding to the value (value less than 0.5) set in the base error information.
[0157] The adaptive error information setting unit 1504, like the adaptive error information setting unit 1304, sets adaptive error information in the adaptive error model learning unit 1505, which specifies that the magnitude of the inference error by the adaptive model 503 for the new target data 801 used during inference will be greater than the magnitude of the inference error by the base model 403.
[0158] Similar to the adaptive error information setting unit 1304, the adaptive error information setting unit 1504 arranges data points in a lattice pattern in a spatial region in which the data acquired from the spare sensor unit 102 and the target sensor unit 104 are distributed.
[0159] Then, similar to the adaptive error information setting unit 1304, the adaptive error information setting unit 1504 generates adaptive error information in which a value of 0.5 or more (for example, "1") is set as a label for the magnitude of error for each data point to indicate that the magnitude of the error is large.
[0160] Furthermore, the adaptive error information setting unit 1504 judges the data of the adaptive error information using the anomaly detection model generated by the anomaly detection model learning unit 1507, and deletes the adaptive error information judged to be normal from the original adaptive error information. That is, the adaptive error information setting unit 1504 judges whether or not a lattice point corresponding to the adaptive error information exists in the space in which the target data 303 is distributed, and if it exists, deletes this adaptive error information. As a result, the adaptive error information is no longer used in the space in which the target data 303 is distributed.
[0161] The adaptive error model learning unit 1505 learns the relationship between the magnitude of the adaptive model inference error 606 and the target data 303. During this learning, the adaptive error model learning unit 1505 adds data of the adaptive error information from which some data has been deleted to the learning data.
[0162] As a result, when the adaptive error model learning unit 1505 learns the adaptive error model 1506, the adaptive error model learning unit 1505 learns the relationship between the target data 303 and the adaptive model inference error 606 in the spatial region in which the target data 303 is distributed.
[0163] Furthermore, when learning the adaptive error model 1506, the adaptive error model learning unit 1505 learns adaptive error information in a space where the target data 303 does not exist. That is, when learning the adaptive error model 1506, the adaptive error model learning unit 1505 learns information that the magnitude of the error (a value of 0.5 or more) set in the data of the adaptive error information is large in a space where the target data 303 does not exist. In other words, the adaptive error model learning unit 1505 calculates the adaptive error model 1506 by learning that in a space where the target data 303 does not exist, the value of the adaptive model inference error 606 corresponding to the target data 303 is a large value corresponding to the value (a value of 0.5 or more) set in the adaptive error information.
[0164] Even if the error model generation unit 1500 learns the base error model 1503 and the adaptive error model 1506 in this manner, the configuration of the inference device 1400 is the same as the configuration described in Fig. 14. In the second embodiment, the inference device 1400 uses the base error model 1503 and the adaptive error model 1506 instead of the base error model 1303 and the adaptive error model 1306, respectively.
[0165] There are various methods for anomaly detection, but in order to identify the spatial region in which data is distributed, it is preferable that the anomaly detection model learning unit 1507 uses a method equivalent to novelty detection, which finds data points that are far from the spatial region in which the learned data is distributed. Examples of anomaly detection methods used by the anomaly detection model learning unit 1507 include the Mahalanobis-Taguchi System (MT method), the K-Nearest Neighbor algorithm (K-NN), the Local Outlier Factor (LOF), the One-Class Support Vector Machine (SVM), the Gaussian Mixture Model (GMM), and a method that uses an autoencoder.
[0166] As described above, in the second embodiment, the error model generating unit 1500 including the anomaly detection model learning unit 1507 generates the base error model 1503 and the adaptive error model 1506, so that the inference device 1400 can obtain an inference result with high accuracy. That is, the inference device 1400 can obtain an inference result with high accuracy in the target device 103, compared to the case where inference is performed using only the base model 403, the case where inference is performed using only the adaptive model 503, and the case where the inference result of the base model 403 and the inference result of the adaptive model 503 are integrated using a weight (fixed value) set in advance.
[0167] In addition, the learning device 100 equipped with the error model generation unit 1500 and the inference device 1400 can improve the inference accuracy of a learning model that has been trained using data collected in other similar industrial systems when the learning model is used in a target industrial system.
[0168] Thus, according to the second embodiment, when the data of the base error information is normal, the anomaly detection model deletes the base error information. Also, when the data of the adaptive error information is normal, the anomaly detection model deletes the adaptive error information. As a result, when learning the base error model 1503, the base error model learning unit 1502 learns the relationship between the target data 303 and the base model inference error 603 in the spatial region where the target data 303 is distributed. Also, when learning the adaptive error model 1506, the adaptive error model learning unit 1505 learns the relationship between the target data 303 and the adaptive model inference error 606 in the spatial region where the target data 303 is distributed.
[0169] Furthermore, when inferring the base error model inference result Eb1, the inference device 1400 performs inference based on the relationship between the target data 303 and the base model inference error 603 in the spatial region where the target data 303 is distributed. Furthermore, when inferring the adaptive error model inference result Ea1, the inference device 1400 performs inference based on the relationship between the target data 303 and the adaptive model inference error 606 in the spatial region where the target data 303 is distributed. Therefore, the learning device 100 can generate a learning model that can generate appropriate inference results with high inference accuracy even for a new environment different from the environment where data was acquired in advance. Furthermore, the inference device 1400 can calculate appropriate inference results with high inference accuracy even for a new environment different from the environment where data was acquired in advance.
[0170] Embodiment 3 Next, the third embodiment will be described with reference to Fig. 16 and Fig. 17. In the third embodiment, a prior distribution is set before learning, so that it is learned that in a space without data points, the base model inference error 603 is small and the adaptive model inference error 606 is large. In addition, the base model inference result Br and the adaptive model inference result Ar are weighted and integrated using the standard deviation (standard deviation Sdb described later) of the base error model inference result (base error model inference result Eb2 described later) and the standard deviation (standard deviation Sda described later) of the adaptive error model inference result (adaptive error model inference result Ea2 described later).
[0171] Fig. 16 is a diagram illustrating an example of a configuration of an error model generating unit 1600 according to the third embodiment. In Fig. 16, the configuration of the error model generating unit 1600, which is an example of the error model generating unit 108, is illustrated.
[0172] The error model generation unit 1600 includes a base prior information setting unit 1601 , a base error model learning unit 1602 , an adaptive prior information setting unit 1604 , and an adaptive error model learning unit 1605 .
[0173] Similar to the error model generation units 1300 and 1500, the error model generation unit 1600 receives the target data 303, the base model inference error 603, and the adaptive model inference error 606. The error model generation unit 1600 performs learning based on the target data 303, the base model inference error 603, and the adaptive model inference error 606 to generate the base error model 1603 and the adaptive error model 1606 as the error model 701.
[0174] The base error model 1603 and adaptive error model 1606 generated by the error model generation unit 1600 are Gaussian Process Regression (GPR) models. In the Gaussian Process Regression model, the output value (data properties) in a space without data points can be adjusted by setting a prior distribution before learning. The prior distribution is knowledge that is set in advance. Specifically, the prior distribution is information that corresponds to the base error information and adaptive error information, and the properties of data in an area without data are set.
[0175] A prior distribution (base prior distribution) that specifies that the magnitude of an inference error by the base model 403 for new target data 801 used during inference is smaller than the magnitude of an inference error by the adapted model 503 is set in advance in the base prior information setting unit 1601 by the user. Note that a default value set in advance in the base prior information setting unit 1601 may be used as the base prior distribution.
[0176] A prior distribution (adaptive prior distribution) that specifies that the magnitude of an inference error by the adapted model 503 for new target data 801 used during inference is greater than the magnitude of an inference error by the base model 403 is set in the adaptive prior information setting unit 1604 by a user in advance. Note that a default value set in advance in the adaptive prior information setting unit 1604 may be used as the adaptive prior distribution.
[0177] The base prior information setting unit 1601 sets the base prior distribution set by the user in the base error model learning unit 1602. That is, the base prior information setting unit 1601 sets in the base error model learning unit 1602 base error information indicating that inference using the new target data 801, inference by the base model 403 is more accurate than inference by the adapted model 503.
[0178] For example, before the base error model learning unit 1602 learns the base error model 1603, the base prior information setting unit 1601 sets a prior distribution with a small average value such as "0.1" to the Gaussian process regression model on which the base error model 1603 is based. This reduces the error of inference using the base error model 1603. Here, the base prior information setting unit 1601 sets the average value of the prior distribution so that the magnitude of the inference error by the base model 403 is smaller than the magnitude of the inference error by the adapted model 503.
[0179] For example, the average value of the prior distribution set by the base prior information setting unit 1601 may be a value smaller than half the range of the magnitude of the inference error by the base model 403 or the adapted model 503. For example, if the range of the label is 0 to 1, the base prior information setting unit 1601 can set a value less than 0.5 as the average value of the prior distribution.
[0180] The base error model learning unit 1602 generates a base error model 1603 by learning the relationship between the magnitude of the base model inference error 603 and the target data 303 using a Gaussian process regression model in which a prior distribution is set by the base prior information setting unit 1601.
[0181] As a result, when learning the base error model 1603, the base error model learning unit 1602 preferentially learns the relationship between the target data 303 and the base model inference error 603 in the region of space where the target data 303 is distributed. Furthermore, the base error model learning unit 1602 learns information that the magnitude of the error (a value less than 0.5 set in the prior distribution) is small in a space where the target data 303 does not exist. In other words, the base error model learning unit 1602 calculates the base error model 1603 by learning that in a space where the target data 303 does not exist, the value of the base model inference error 603 corresponding to the target data 303 is a small value corresponding to the value (a value less than 0.5) set in the prior distribution.
[0182] For example, before the adaptive error model learning unit 1605 learns the adaptive error model 1606, the adaptive prior information setting unit 1604 sets a prior distribution with a large average value such as "0.9" to the Gaussian process regression model on which the adaptive error model 1606 is based. This increases the error of inference using the adaptive error model 1606. Here, the adaptive prior information setting unit 1604 sets the average value of the prior distribution so that the magnitude of the inference error by the adaptive model 503 is larger than the magnitude of the inference error by the base model 403.
[0183] For example, the average value of the prior distribution set by the adaptive prior information setting unit 1604 may be a value larger than half the range of the magnitude of the inference error by the base model 403 or the adapted model 503. For example, if the range of the label is 0 to 1, the adaptive prior information setting unit 1604 can set a value of 0.5 or more as the average value of the prior distribution.
[0184] The adaptive error model learning unit 1605 generates an adaptive error model 1606 by learning the relationship between the magnitude of the adaptive model inference error 606 and the target data 303 using a Gaussian process regression model for which a prior distribution has been set by the adaptive prior information setting unit 1604.
[0185] As a result, when learning the adaptive error model 1606, the adaptive error model learning unit 1605 preferentially learns the relationship between the target data 303 and the adaptive model inference error 606 in a space region where the target data 303 is distributed. Also, the adaptive error model learning unit 1605 learns information that the magnitude of the error (a value of 0.5 or more set in the prior distribution) is large in a space where the target data 303 does not exist. In other words, the adaptive error model learning unit 1605 calculates the adaptive error model 1606 by learning that in a space where the target data 303 does not exist, the value of the adaptive model inference error 606 corresponding to the target data 303 is a large value corresponding to the value (a value of 0.5 or more) set in the prior distribution.
[0186] Next, a description will be given of the configuration of an inference device (the inference device 1700 described later) corresponding to the error model generating unit 1600. Note that it is also possible to use the inference device 1400 as the inference device corresponding to the error model generating unit 1600.
[0187] Fig. 17 is a diagram showing an example of the configuration of an inference device 1700 according to the third embodiment. Among the components in Fig. 17, components that achieve the same functions as those in inference device 1400 shown in Fig. 14 are given the same reference numerals, and duplicated explanations will be omitted. Fig. 17 shows the configuration of inference device 1700, which is an example of inference device 800.
[0188] Compared to inference device 1400, inference device 1700 includes an error model inference unit 1701 instead of error model inference unit 1401, and an integration unit 1702 instead of integration unit 1402. Error model inference unit 1701 is an example of error model inference unit 804, and integration unit 1702 is an example of integration unit 805. Inference device 1700 also stores base error model 1603 and adaptive error model 1606, which are examples of error model 701. At least one of base error model 1603 and adaptive error model 1606 may be stored in an external device.
[0189] The error model inference unit 1701 includes a base error model inference unit 1703 and an adaptive error model inference unit 1704. The base error model 1603 is used in the base error model inference unit 1703, and the adaptive error model 1606 is used in the adaptive error model inference unit 1704.
[0190] In the inference device 1700 , new object data 801 is input to a base model inference section 802 , an adaptive model inference section 803 , a base error model inference section 1703 , and an adaptive error model inference section 1704 .
[0191] The base error model inference unit 1703 inputs the new target data 801 to the base error model 1603, and calculates a base error model inference result Eb2, which is the result of inference in the base error model 1603. That is, the base error model inference unit 1703 estimates the base error model inference result Eb2 as integration weighting information corresponding to the new target data 801, using the base error model 1603, and thereby acquires the base error model inference result Eb2.
[0192] The adaptive error model inference unit 1704 inputs new target data 801 to the adaptive error model 1606, and calculates an adaptive error model inference result Ea2, which is the result of inference by the adaptive error model 1606. That is, the adaptive error model inference unit 1704 estimates the adaptive error model inference result Ea2 as integration weighting information corresponding to the new target data 801, using the adaptive error model 1606, and thereby acquires the adaptive error model inference result Ea2.
[0193] The integrating unit 1702 calculates an inference result 806 by weighting and integrating the base model inference result Br and the adaptive model inference result Ar based on the base error model inference result Eb2 and the adaptive error model inference result Ea2. That is, the integrating unit 1702 determines the inference result 806 from the base error model inference result Eb2, the adaptive error model inference result Ea2, the base model inference result Br, and the adaptive model inference result Ar. The integrating unit 1702 outputs the inference result 806 to a display device (not shown) or the like. The inference device 1700 may include a dimensionality reduction unit 902.
[0194] The base error model 1603 and the adaptive error model 1606 are Gaussian process regression models, and during inference, a standard deviation indicating the range in which the inference values are distributed can be calculated along with the inference values. The smaller the standard deviation indicating the range in which the inference values are distributed, the more reliable the inference results are.
[0195] Specifically, the base error model 1603 calculates the base error model inference result Eb2, which is an inference value, and the standard deviation Sdb of the base error model inference result Eb2. The adaptive error model 1606 calculates the adaptive error model inference result Ea2, which is an inference value, and the standard deviation Sda of the adaptive error model inference result Ea2. The standard deviation Sdb is the first standard deviation, and the standard deviation Sda is the second standard deviation.
[0196] Here, the base error model inference result Eb2 is the base error model inference result e b Let the base error model inference result e b The standard deviation Sdb of b In addition, the adaptive error model inference result Ea2 is the adaptive error model inference result e t Let the adaptive error model inference result e t Standard deviation Sda of t Let the base model inference result Br be the base model inference result p b Let the adaptation model inference result Ar be the adaptation model inference result p t Let us assume that.
[0197] In this case, the base error model inference unit 1703 of the error model inference unit 1701 receives the new target data 801 as input and generates the base error model inference result e b and the base error model inference result e b Standard deviation of σ b In addition, the adaptive error model inference unit 1704 of the error model inference unit 1701 receives the new target data 801 as input and outputs the adaptive error model inference result e t and the adaptive error model inference result e t Standard deviation of σ t and output.
[0198] Base error model inference result e b corresponds to a predicted value of the magnitude of the base model inference error (the inferred value of the error by the base model 403) for the new target data 801. bStandard deviation of σ b is the base error model inference result e b This value indicates the reliability of the
[0199] Adaptive error model inference results t corresponds to a predicted value of the adaptive model inference error (the inferred value of the error by the adaptive model 503) for the new target data 801, and the adaptive error model inference result e t Standard deviation of σ t is the adaptive error model inference result e t This value indicates the reliability of the
[0200] The integration unit 1702 integrates the base model inference result p b , the adaptive model inference result p t ,Base error model inference result e b ,Base error model inference result e b Standard deviation of σ b , Adaptive error model inference result e t , and the adaptive error model inference result e t Standard deviation of σ t The inference result 806 is determined from the base error model inference result e b ,Base error model inference result e b Standard deviation of σ b , Adaptive error model inference result e t , and the adaptive error model inference result e t Standard deviation of σ t By the adaptive model inference result p t and the base model inference result p b Specifically, the integration unit 1702 calculates a weighted average of the base error model inference result e b and standard deviation σ b and the adaptive error model inference result e t and standard deviation σ t By adding with, the adaptive model inference result p t and the base model inference result p bIn this method, if the inference result 806 is taken as an inference result p, the integration unit 1702 determines the inference result p by, for example, the following formula (2).
[0201]
number
[0202] Another example of a method for determining the inference result p is the base error model inference result e b and the base error model inference result e b Standard deviation of σ b The sum of these is the adaptive error model inference result e t and the adaptive error model inference result e t Standard deviation of σ t If the sum of the base model inference result p b In this method, the base error model inference result e b and the base error model inference result e b Standard deviation of σ b The sum of these is the adaptive error model inference result e t and the adaptive error model inference result e t Standard deviation of σ t If the sum of p is larger than the sum of p t is the inference result 806. Also, the base error model inference result e b and the base error model inference result e b Standard deviation of σ b The sum of these is the adaptive error model inference result e t and the adaptive error model inference result e t Standard deviation of σ t If the sum of the base model inference result p b and the adaptive model inference result p t The average value of these is taken as the inference result 806.
[0203] In this way, the integration unit 1702 integrates the base model inference result p b , the adaptive model inference result p tFor the base error model inference result e b ,Base error model inference result e b Standard deviation of σ b , Adaptive error model inference result e t , and the adaptive error model inference result e t Standard deviation of σ t The inference result 806 is determined by using the base model inference result p b and the adaptive model inference result p t Among them, an inference result 806 that prioritizes an inference result that is predicted to have a small error can be determined.
[0204] Base error model inference result e b and the adaptive error model inference result e t correspond to the magnitude of the error learned by the base error model 1603 and the adaptive error model 1606, respectively. b Standard deviation of σ b and the adaptive error model inference result e t Standard deviation of σ t are the base error model inference results e b and the adaptive error model inference result e t is an indication of how reliable it is.
[0205] Generally, in Bayesian process regression inference, the larger the standard deviation, the less reliable the predicted value is. Inference device 1700 evaluates the error of the inference result and its reliability together to determine the base model inference result p b and the adaptive model inference result p t Thus, reasoning apparatus 1700 can determine inference results 806 that are more accurate than if the reliability were not available.
[0206] Furthermore, when training the base error model 1603, the error model generation unit 1600 trains the relationship between the target data 303 and the base model inference error 603 in the region of space where the target data 303 is distributed, and has learned information that the magnitude of the error is small in the space where the target data 303 does not exist. Furthermore, when training the adaptive error model 1606, the error model generation unit 1600 trains the relationship between the target data 303 and the adaptive model inference error 606 in the region of space where the target data 303 is distributed, and has learned information that the magnitude of the error is large in the space where the target data 303 does not exist.
[0207] From these facts, if the new target data 801 is data with different properties from the target data 303, such that it deviates from the distribution of the target data 303, the base error model inference result e b The value of is the adaptive error model inference result e t Therefore, in the case where the new target data 801 is out of the distribution of the target data 303, the integration unit 1702 uses the base model inference result p b The adaptation model inference result p t It takes precedence over the base error model inference result e b Standard deviation of σ b and the adaptive error model inference result e t Standard deviation of σ t The inference result is determined taking into account the above.
[0208] Therefore, when inferring data that the adapted model 503 has not learned, or when inferring data in which the inference of the adapted model 503 has a larger error than the inference of the base model 403, the inference result of the base model 403, which has learned more data than the adapted model 503, is given priority.
[0209] In this way, the inference device 1700 of embodiment 3 can obtain inference results in the target device 103 with higher accuracy than any of the following cases: inference using only the base model 403, inference using only the adapted model 503, and integrating the inference results of the base model 403 and the adapted model 503 using a preset weight (fixed value).
[0210] In addition, the learning device 100 and the inference device 1700 equipped with the error model generation unit 1600 can improve the inference accuracy of a learning model that has been trained using data collected in other similar industrial systems when the learning model is used in a target industrial system.
[0211] Thus, according to the third embodiment, the learning device 100 sets a prior distribution before learning, and thereby learns that in a space without data points, the base model inference error 603 is small and the adapted model inference error 606 is large. Then, the inference device 1700 infers that in a space without data points, the base model inference error 603 is small and the adapted model inference error 606 is large. Therefore, the inference device 1700 can generate an appropriate inference result 806 with good inference accuracy using the base model 403 for an environment (space without data points) different from the environment in which data was acquired in advance.
[0212] In addition, the inference device 1700 calculates the base error model inference result e b Standard deviation of σ b and the adaptive error model inference result e t Standard deviation of σ t The inference device 1700 weights and integrates the base model inference result Br and the adaptive model inference result Ar using the above. b and the adaptive error model inference result e t Reliability (standard deviation σ b and standard deviation σ t ), the base model inference result Br and the adapted model inference result Ar can be appropriately integrated.
[0213] Embodiment 4 Next, the fourth embodiment will be described with reference to Fig. 18 to Fig. 20. In the fourth embodiment, a model (adaptation domain model 1804 described later) is generated by learning a domain in which the magnitude of the adapted model inference error 606 is smaller than the magnitude of the base model inference error 603, and the base model inference result Br and the adapted model inference result Ar are weighted and integrated using the adaptation domain model 1804.
[0214] Fig. 18 is a diagram illustrating an example of the configuration of an error model generating unit 1800 according to the fourth embodiment. In Fig. 18, the configuration of the error model generating unit 1800, which is an example of the error model generating unit 108, is illustrated.
[0215] The error model generation unit 1800 includes a data extraction unit 1801 and an adaptive domain learning unit 1803. The target data 303, the base model inference error 603, and the adaptive model inference error 606 are input to the error model generation unit 1800. The error model generation unit 1800 performs learning based on the target data 303, the base model inference error 603, and the adaptive model inference error 606 to generate an adaptive domain model 1804 as the error model 701.
[0216] The data extraction unit 1801 compares the magnitude of the base model inference error 603 with the magnitude of the adapted model inference error 606 for each data. The data extraction unit 1801 extracts sensor data corresponding to data in which the magnitude of the adapted model inference error 606 is smaller than the magnitude of the base model inference error 603 from the target data 303, and sets the extracted sensor data as successful adaptation data 1802.
[0217] The adaptation domain learning unit 1803 learns the domain (space on data) in which the successful adaptation data 1802 is distributed (exists), thereby generating an adaptation domain model 1804. Therefore, the adaptation domain model 1804 is a model that learns the distribution of sensor data that the adaptation model 503 was able to infer more accurately than the base model 403. In other words, the adaptation domain model 1804 is a model that can infer a domain in which the magnitude of the adaptation model inference error 606 is predicted to be smaller than the magnitude of the base model inference error 603.
[0218] Here, the adaptive domain model 1804 may be a general outlier detection model, and among outlier detection models, it is preferable that it is a novelty detection model that evaluates and determines whether newly given data belongs to a domain. The adaptive domain model 1804 does not detect outliers in the adaptive model inference error 606, but infers a domain where the magnitude of the adaptive model inference error 606 is predicted to be smaller than the magnitude of the base model inference error 603 using a method of outlier detection using a general outlier detection model.
[0219] Next, an inference device 1900 corresponding to the error model generating unit 1800 will be described. Fig. 19 is a diagram showing an example of the configuration of the inference device 1900 according to the fourth embodiment. Among the components in Fig. 19, components that achieve the same functions as those in the inference device 800 shown in Fig. 8 are given the same reference numerals, and duplicated explanations will be omitted. Fig. 19 shows the configuration of the inference device 1900, which is an example of the inference device 800.
[0220] Like inference device 800, inference device 1900 includes a base model inference unit 802 and an adapted model inference unit 803. Like inference device 800, inference device 1900 stores base model 403 and adapted model 503.
[0221] The inference device 1900 also includes an adaptation domain model inference unit 1901, which is an example of the error model inference unit 804, and an integration unit 1902 instead of the integration unit 805. The inference device 1900 also stores an adaptation domain model 1804, which is an example of the error model 701. The adaptation domain model 1804 is used by the adaptation domain model inference unit 1901. At least one of the base model 403, the adaptation model 503, and the adaptation domain model 1804 may be stored in an external device.
[0222] In the inference device 1900 , new object data 801 is input to a base model inference section 802 , an adapted model inference section 803 , and an adapted domain model inference section 1901 .
[0223] The adaptation domain model inference unit 1901 inputs the new target data 801 to the adaptation domain model 1804, and calculates an adaptation domain model inference result Aa, which is the result of inference by the adaptation domain model 1804. That is, the adaptation domain model inference unit 1901 estimates the adaptation domain model inference result Aa corresponding to the new target data 801 using the adaptation domain model 1804, thereby acquiring the adaptation domain model inference result Aa. The adaptation domain model inference result Aa is information indicating whether or not the new target data 801 is within an adaptation domain, which is a domain in which the magnitude of the adaptation model inference error 606 is smaller than the magnitude of the base model inference error 603.
[0224] As described above, the adaptive domain model 1804 is a model that has learned sensor data (successful adaptation data 1802) corresponding to data in which the adaptive model inference error 606 is smaller than the base model inference error 603. Therefore, when the adaptive domain model inference unit 1901 infers an error corresponding to the input new target data 801, the adaptive domain model inference result Aa serves as an index of whether the data is likely to be judged more accurately by the adaptive model 503 than by the base model 403.
[0225] The integrating unit 1902 integrates the base model inference result Br and the adaptation model inference result Ar based on the adaptation domain model inference result Aa, and outputs the inference result 806. For example, the integrating unit 1902 determines a weight for integrating the base model inference result Br and the adaptation model inference result Ar based on the adaptation domain model inference result Aa, and integrates the base model inference result Br and the adaptation model inference result Ar using this weight.
[0226] Here, the adaptive domain model inference result Aa is the adaptive domain model inference result p a The weight is γ. Let the base model inference result Br be the base model inference result p bLet the adaptation model inference result Ar be the adaptation model inference result p t In this case, if the inference result 806 is the inference result p, the integration unit 1902, for example, a The weight γ is determined based on the above, and the inference result p is determined by the following equation (3).
[0227]
number
[0228] In this way, the integration unit 1902 calculates the base model inference result p b and the adaptive model inference result p t The inference result p obtained by integrating these is taken as an inference result 806. The method of determining the weight γ will be described later.
[0229] As another example of a method for determining the inference result p, the integration unit 1902 may a Based on the adaptive model inference result p t or the base model inference result p b is used as the inference result 806. In this method, the integration unit 1902 judges whether the new target data 801 belongs to the area in which the adaptation success data 1802 is distributed. If the new target data 801 belongs to the area in which the adaptation success data 1802 is distributed, the integration unit 1902 outputs the adapted model inference result p t is the inference result 806, and if the new target data 801 does not belong to the area in which the adaptation success data 1802 is distributed, the base model inference result p b is the inference result 806.
[0230] Moreover, the error model generating unit 1800 may further include an adaptive domain model inference unit 2001 and a domain threshold determination unit 2002 shown in Fig. 20. Fig. 20 is a diagram showing an example of configurations of the adaptive domain model inference unit 2001 and the domain threshold determination unit 2002 included in the error model generating unit 1800 according to the fourth embodiment.
[0231] The adaptation domain model inference unit 2001 inputs the adaptation success data 1802 to the adaptation domain model 1804 learned by the adaptation domain learning unit 1803, and calculates a domain score (domain prediction result) using the adaptation domain model 1804. That is, the adaptation domain model inference unit 2001 inputs the adaptation success data 1802 to the adaptation domain model 1804 and acquires the output value obtained as the domain score. The domain score is data that numerically indicates whether or not the adaptation success data 1802 belongs to the adaptation domain.
[0232] Here, as an example, a case will be described in which the higher the region score, the higher the possibility that the new target data 801 belongs to the region in which the successful adaptation data 1802 is distributed. The region threshold determination unit 2002 arranges the region scores in descending order of value, and determines the region score at a pre-specified position as the region threshold, which is the threshold value of the region. In this way, the region threshold is determined excluding some data with low region scores.
[0233] The region threshold determination unit 2002 can determine, for example, a value lower than the median of the region score (e.g., the 20th percentile value) as the region threshold. This process is the same as specifying a ratio of the adaptation success data 1802 to the number of data, arranging the region scores in descending order, and determining the region score value at the specified ratio as the region threshold. When the median of the region score is determined as the region threshold, adaptation success data 1802 lower than the median of the region score is excluded from the adaptation success data 1802. Also, when the 20th percentile value of the region score is determined as the region threshold, adaptation success data 1802 with a region score lower than the 20th percentile value is excluded from the adaptation success data 1802.
[0234] The region threshold is the boundary between adaptation success data 1802 and adaptation failure data. In other words, the region threshold is a threshold for determining whether the data is adaptation success data 1802 or adaptation failure data. The adaptation failure data is sensor data in which the magnitude of the adaptation model inference error 606 is greater than the magnitude of the base model inference error 603. The region threshold determination unit 2002 outputs the region threshold to the inference device 1900. This allows the inference device 1900 to calculate weighting using the region threshold. The inference device 1900, for example, calculates the base model inference result p b and the adaptive model inference result p t In order to determine the weight γ when integrating b is transformed using the domain threshold. b The method for converting is described later.
[0235] As described above, the adaptation domain model 1804 is an outlier detection model that learns the domain in which the adaptation success data 1802 is distributed. The adaptation domain model 1804 is used to determine whether or not the new target data 801 is included in the learning data. In this adaptation domain model 1804, depending on the type of model or the parameters of the model used, outliers may be included in the adaptation success data 1802, and it may be impossible to properly calculate the domain score. Therefore, the error model generating unit 1800 determines the domain threshold value excluding some data with low domain scores, thereby preventing the inference accuracy of the domain score from being deteriorated by outliers.
[0236] Here, in the vicinity of the distribution of the adaptation success data 1802, it is expected that the adaptation model 503 can perform inference with higher accuracy than the base model 403. On the other hand, depending on the type of model or algorithm used in the adaptation region model 1804, the region threshold may be determined at the boundary where the data of the adaptation success data 1802 is distributed, and outliers may not be properly excluded. The region inside the boundary where the data of the adaptation success data 1802 is distributed is the adaptation success data 1802, and the region outside is the adaptation failure data.
[0237] Therefore, the error model generating unit 1800 can determine the area threshold around the distribution of the adaptation success data 1802 by using the area threshold expansion amount (parameter) set by the user as a parameter for expanding the range of the area in which the adaptation success data 1802 is distributed. That is, the error model generating unit 1800 can expand the boundary for excluding outliers by the area threshold expansion amount. This allows the integrating unit 1902 to prioritize the inference result of the adapted model 503 over the base model 403, making it possible to improve the accuracy of the inference result 806.
[0238] In addition, when the threshold extension amount is a negative value, the error model generation unit 1800 reduces the boundary for excluding outliers. In this way, the error model generation unit 1800 adjusts the region threshold based on the threshold extension amount. That is, the error model generation unit 1800 adjusts the position of the boundary defined by the region threshold based on the threshold extension amount.
[0239] The region threshold determination unit 2002 determines, for example, as the final region threshold, a value obtained by subtracting a constant defined as a region threshold expansion amount from the region threshold determined from the adaptation region model 1804 and adaptation success data 1802 as described above.
[0240] As another example of a method for determining the domain threshold, the integration unit 1902 may a Add the threshold expansion amount of the region to the sum (expanded adaptive region model inference result p a ) may be compared to a domain threshold.
[0241] In this way, the region threshold determination unit 2002 adjusts the region threshold using the threshold expansion amount in advance to obtain the adaptive region model inference result p a may be expanded, and the integration unit 1902 may expand the adaptive domain model inference result p a By adding the threshold expansion amount to the adaptive domain model inference result p a The integration unit 1902 adjusts the threshold expansion amount to expand the base model inference result p b and the adaptive model inference result p tIt is possible to adjust the degree to which either of these is to be prioritized.
[0242] In addition, depending on the type of outlier detection model used as the adaptive domain model 1804, the adaptive model inference result p t The value range of p is various. Therefore, the integration unit 1902 integrates the base model inference result p b and the adaptive model inference result p t In order to determine the weight γ when integrating b In some cases, it may be necessary to convert the domain score. A method of converting the domain score is to use a monotonic saturation function. Specifically, the adaptive domain model 1804 converts the base model inference result p b As a method for converting, a saturated linear function, a sigmoid function, a hyperbolic tangent function (tanh function), etc. can be used.
[0243] Below, the base model inference result p b An example of the conversion method of the base model inference result p b The function that converts the value of d to the weight γ is the score conversion function f. Here, the new target data 801 given at the time of inference is d new Let p be the adaptive domain model inference result for some data D. a P a (D) and the area threshold is b th Let the threshold expansion amount be b ex In addition, the threshold expansion amount b ex If you do not use b ex = 0. In this case, the weight γ is expressed, for example, by the following equation (4).
[0244]
number
[0245] In addition, when a sigmoid function is used as the score conversion function f, the score conversion function f is expressed by the following formula (5). Here, the slope a of the sigmoid function sigis an adjustment parameter, which is determined in advance according to the characteristics of the model to be used or the characteristics of the data to be learned. The characteristics of the data include the distribution, sparseness, and density of the preliminary data 203 and the target data 303.
[0246]
number
[0247] In addition, when a saturated linear function is used for the score conversion function f, the score conversion function f is expressed by the following formula (6). Here, the slope a lin is an adjustment parameter that is determined in advance according to the characteristics of the model to be used or the properties of the data to be learned.
[0248]
number
[0249] In this way, depending on the score conversion function f used, additional parameters exist, and the values of these parameters are set in advance according to the characteristics of the model used or the nature of the data to be learned.
[0250] The error model generating unit 1800 determines the threshold expansion amount b ex By this, it is possible to widen or narrow the area of the data space in which the adapted model 503 is prioritized during inference. ex When the threshold expansion amount b is a positive value, the region of the data space in which the adapted model 503 is prioritized is expanded, and when the threshold expansion amount b is a negative value, the region of the data space in which the adapted model 503 is prioritized is narrowed. ex By adjusting the inequality, it is possible for the inference device 1900 to perform accurate inference.
[0251] For example, when a large amount of target data 303 is distributed in a space where almost no preliminary data 203 has been acquired, the error model generating unit 1800 uses the threshold expansion amount b exBy increasing the size of the region determined by the adapted model 503, the region can be enlarged.
[0252] In addition, the error model generating unit 1800 uses a threshold expansion amount b ex By adjusting the above, it is possible to adjust the region determined by the base model 403 and the region determined by the adapted model 503 for the data-small space.
[0253] The error model generating unit 1800, in accordance with an instruction from a user, for example, sets a threshold expansion amount b ex In this case, if the inference device 1900 cannot perform accurate inference, the error model generating unit 1800 may, for example, increase the threshold expansion amount b ex By reducing the size of the region determined by the adapted model 503, the size of the region is reduced.
[0254] It is also inferred that the base model 403, which has been trained using a larger amount of preliminary data 203 than the target data 303, will be able to obtain accurate inference results for a wider range of new target data 801 than the adapted model 503, which has been trained using a smaller amount of target data 303 than the preliminary data 203. For this reason, when the new target data 801 does not belong to the area in which the successful adaptation data 1802 is distributed, the inference device 1900 uses the adapted model inference result p t The base model inference result p b It is desirable to give priority to the following.
[0255] In this way, the inference device 1900 of embodiment 4 can obtain inference results in the target device 103 with higher accuracy than any of the following cases: inference using only the base model 403, inference using only the adapted model 503, and integrating the inference results of the base model 403 and the adapted model 503 using a preset weight (fixed value).
[0256] Furthermore, the inference device 1900 can obtain inference results with higher accuracy than when the adaptation success data 1802 is not extracted from the target data 303 and the adaptation domain model 1804 is made to learn the domain in which the target data 303 is distributed.
[0257] In addition, the learning device 100 and the inference device 1900 equipped with the error model generation unit 1800 can improve the inference accuracy of a learning model that has been trained using data collected in other similar industrial systems when the learning model is used in a target industrial system.
[0258] Thus, according to the fourth embodiment, the learning device 100 generates an adaptation domain model 1804 that learns a domain in which successful adaptation data 1802 in which the adaptive model inference error 606 is smaller than the base model inference error 603 is distributed. Then, the inference device 1900 uses the adaptation domain model 1804 to weight and integrate the base model inference result Br and the adaptive model inference result Ar based on the adaptation domain model inference result Aa indicating whether or not the new target data 801 is within an adaptation domain in which the adaptive model inference error 606 is smaller than the base model inference error 603. Therefore, the inference device 1900 can appropriately integrate the base model inference result Br and the adaptive model inference result Ar.
[0259] Embodiment 5. Next, a fifth embodiment will be described with reference to Figures 21 to 23. In the fifth embodiment, a configuration example of an industrial device to which the learning device 100 and the inference devices 800, 1000, 1400, 1700, and 1900 described in the first to fourth embodiments are applied will be specifically described. The industrial system described in the fifth embodiment has at least one of the learning device 100 and the inference devices 800, 1000, 1400, 1700, and 1900 described in the first to fourth embodiments, and an industrial device.
[0260] The configuration of the industrial device described below is an example of a device configuration that utilizes the learning device 100 and inference devices 800, 1000, 1400, 1700, and 1900 described in the first to fourth embodiments. The example of the industrial device configuration described below does not limit other usage forms, and can be used in a form that matches the characteristics of the industrial system to which the first to fourth embodiments are applied or the purpose of using the learning model.
[0261] Specific examples of industrial devices that an industrial system has include servo control devices, machine tools, laser processing devices, electric discharge processing devices, robot devices, transport devices, etc. The inference results by the inference devices 800, 1000, 1400, 1700, 1900 of the first to fourth embodiments are used in control devices, PCs (Personal Computers) that monitor or record the status of the devices, servers, etc., that are associated with these industrial devices.
[0262] As described below, the learning device 100 and the inference devices 800, 1000, 1400, 1700, and 1900 of the first to fourth embodiments are devices that are used when measuring the state of each industrial device in an industrial system or the state of a processing target with a sensor and performing learning and inference based on the measured data, and can be used in industrial devices. Note that, although the following describes a case where the inference device 800 is applied to an industrial system, the inference devices 1000, 1400, 1700, and 1900, or the learning device 100, may also be applied to the industrial system.
[0263] The state of learning device 100 in embodiment 5 is information that expresses the state of learning device 100 in data, and information that measures the state of learning device 100. Examples of the state of learning device 100 include information on the drive unit, generated sound or light, information on a specific part, the degree of wear on a tool, and images taken of all or part of learning device 100. Information on the drive unit includes whether the drive unit is abnormal or normal, the magnitude of the current flowing through the drive unit, the magnitude of the voltage applied to the drive unit, etc. Information on the specific part includes the temperature, position, speed, acceleration, angle, angular velocity, angular acceleration, pressure, etc. of the specific part.
[0264] The state of the processing target is a value that measures the state of the processing target being processed, such as the acceleration or angular velocity that can be obtained by an acceleration sensor or gyro sensor attached to the processing target. In addition, the state of the processing target can be the intensity or wavelength of light if the processing involves light emission, the temperature of the processing target if the processing involves heat generation, the volume or frequency of the sound if the processing involves sound generation, an image of the whole or part of the processing target, etc.
[0265] The items or values measured by the measuring unit are usually selected to be related to the items to be predicted in the model output. Therefore, it is necessary to devise the type of sensor in the measuring unit depending on the items to be predicted by the model or the type of processing device. In addition, the sensors used in the measuring unit may be a combination of multiple sensors depending on the purpose.
[0266] Next, a specific example of a servo control device will be described. In a servo control device, machine learning is used to diagnose the deteriorated or defective state of a drive system such as a motor, an amplifier, a gear, a ball screw, etc., to determine the quality of a servo operation result, etc. Furthermore, when the servo control device is mounted on a processing device, machine learning is used to determine the quality of processing, to diagnose deterioration of a tool, etc.
[0267] Here, the deterioration diagnosis of a ball screw will be described as an example. Fig. 21 is a diagram showing the configuration of a servo control device 2100 which is a first example of an industrial device according to the fifth embodiment. The servo control device 2100 of the industrial system includes a control unit 2101, a driver 2102, a current sensor 2103, an encoder 2104, a motor 2105, a coupling 2106, and a ball screw 2107.
[0268] The ball screw 2107 is attached to the motor 2105 via a coupling 2106, and converts the rotational motion of the motor 2105 into linear motion. A load 2108 is attached to the ball screw 2107. The servo control device 2100 controls the position of the load 2108.
[0269] The encoder 2104 is a sensor that detects the rotation angle of the motor 2105. The rotation angle detected by the encoder 2104 is read by the control unit 2101. The control unit 2101 calculates a command value for a current to be output to the motor 2105 based on the target position of the transported object 2108 and the detected rotation angle, and outputs this command value to the driver 2102.
[0270] The driver 2102 outputs a current to the motor 2105 according to the current command value to rotate the motor 2105 and control the position of the transported object 2108. The current sensor 2103 measures the current output by the driver 2102. Here, the current value of the current measured by the current sensor 2103 can also be replaced with a current command value from the control unit 2101 to the driver 2102. The current sensor 2103 outputs the measured current value as current detection data to an external device such as the learning device 100 or the inference device 800.
[0271] The ball screw 2107 is configured to include a rotating screw portion, a nut portion attached to the screw portion, and a ball portion disposed between the screw portion and the nut portion. The ball portion is a number of spherical balls. The ball portion is sandwiched between the nut portion and the screw portion, and is disposed so that the nut portion moves smoothly when the screw portion rotates. The transported object 2108 is attached to the nut portion, and moves due to the rotation of the screw portion.
[0272] When the ball screw 2107 is operated repeatedly, the ball part is damaged, or the lubricating oil injected between the ball part and the nut part or between the ball part and the screw part becomes insufficient. In such cases, the ball screw 2107 cannot operate smoothly, the transported object 2108 vibrates, noise is generated, and the position of the transported object 2108 cannot be accurately controlled. In such cases, it is necessary to inject lubricating oil and replace the ball screw 2107. However, even if an operator observes the operation of the ball screw 2107, it is difficult to estimate the degree of deterioration. Furthermore, the driving part is covered for safety reasons, and there are cases in which the ball screw 2107 cannot be directly observed. Therefore, the learning device 100 learns a learning model based on the current value (current detection data) acquired by the current sensor 2103, and the inference device 800 estimates the degree of deterioration of the ball screw 2107.
[0273] In this method, the servo control device 2100 is made to perform various operations. Then, under various circumstances that reproduce normal and abnormal states of the servo control device 2100, the learning device 100 collects current detection data measured by the current sensor 2103 and performs machine learning to associate the measured current detection data with the degree of deterioration of the ball screw 2107. In this way, the learning device 100 can create a learning model that estimates the degree of deterioration of the ball screw 2107 from the current detection data measured by the current sensor 2103.
[0274] Here, an example of using the learning device 100 and the inference device 800 will be described using two servo control devices 2100 as an example. To distinguish between the first and second servo control devices 2100, the first servo control device is referred to as servo control device 2100A, and the second servo control device is referred to as servo control device 2100B. Additionally, the reference symbols of the components included in the first servo control device 2100A have an A suffix attached, and the reference symbols of the components included in the second servo control device 2100B have an B suffix attached.
[0275] Consider a case where a learning model that has learned data acquired from a servo control device 2100A estimates the degree of deterioration of a ball screw 2107B based on data (current detection data) measured by a current sensor 2103B of the servo control device 2100B. In this case, between the servo control device 2100A and the servo control device 2100B, there are individual differences in the motors 2105A, 2105B, the ball screws 2107A, 2107B, the transported objects 2108A, 2108B, and the like, and installation errors of the transported objects 2108A, 2108B. For this reason, a difference occurs between the current detection data measured by the current sensor 2103A and the current detection data measured by the current sensor 2103B, and the judgment accuracy of the learning model deteriorates.
[0276] Next, the correspondence between the learning device 100, the servo control device 2100A, and the servo control device 2100B of the first to fourth embodiments will be described. Regarding the standby device 101 and the target device 103 applied to the learning device 100 of the first to fourth embodiments, the standby device 101 corresponds to the servo control device 2100A, and the target device 103 corresponds to the servo control device 2100B. In addition, the standby sensor unit 102 corresponds to the current sensor 2103A, and the target sensor unit 104 corresponds to the current sensor 2103B.
[0277] The servo control device 2100A, which is the backup device 101, reproduces various states of the ball screw 2107A. In this case, current detection data collected by the current sensor 2103A while operating the ball screw 2107A becomes the backup data 203. Then, a label indicating the state of the ball screw 2107A corresponding to the collected backup data 203 becomes the backup label 401. Then, the base model learning unit 105 generates a base model 403 that has learned the relationship between the backup data 203 and the backup label 401.
[0278] Furthermore, the servo control device 2100B, which is the target device 103, reproduces various states within a range in which the ball screw 2107B does not break down. In this case, the ball screw 2107B is operated and current detection data collected by the current sensor 2103B becomes the target data 303. Then, a label indicating the state of the ball screw 2107B corresponding to the collected target data 303 becomes the target label 501. Then, the adaptive model learning unit 106 generates an adapted model 503 that has learned the relationship between the target data 303 and the target label 501.
[0279] The inference error acquisition unit 107 infers a target label by inputting the target data 303 into the base model 403, and acquires the base model inference result Br. The inference error acquisition unit 107 calculates the error between the base model inference result Br and the target label 501, thereby acquiring the base model inference error 603.
[0280] Moreover, the inference error acquiring unit 107 infers a target label by inputting the target data 303 to the adapted model 503, and acquires the adapted model inference result Ar. The inference error acquiring unit 107 calculates the error between the adapted model inference result Ar and the target label 501, and acquires the adapted model inference error 606.
[0281] The error model generation unit 108 learns the error model 701 based on the target data 303 , the base model inference error 603 , and the adapted model inference error 606 .
[0282] The servo control device 2100B, which is the target device 103, only needs to reproduce various states within the range in which the ball screw 2107B does not break down and acquire data, so data can be collected without causing the target device 103 to break down.
[0283] Next, the correspondence between the inference device 800 and the servo control device 2100B will be explained. The inference device 800 is utilized when the servo control device 2100B is in operation. Current detection data acquired by the current sensor 2103B becomes new target data 801 in response to the operation of the servo control device 2100B.
[0284] A base model inference unit 802 of the inference device 800 inputs new target data 801 to the base model 403 to obtain a base model inference result Br, which is the inference result. Moreover, an adapted model inference unit 803 inputs the new target data 801 to the adapted model 503 to obtain an adapted model inference result Ar, which is the inference result. An error model inference unit 804 inputs the new target data 801 to the error model 701 to obtain an error model inference result E1, which is the inference result. Then, an integration unit 805 integrates the base model inference result Br and the adapted model inference result Ar based on the error model inference result E1 to obtain an inference result 806.
[0285] In this way, the learning device 100 and the inference device 800 are applicable to the servo control device 2100. According to the learning device 100 and the inference device 800, when a learning model that has learned data collected by the servo control device 2100A is used in the servo control device 2100B, the inference accuracy of the learning model can be improved.
[0286] Next, a specific example of a laser processing device will be described. Laser processing devices include laser cutting devices, laser drilling devices, additional processing devices, laser marking devices, laser welding devices, etc. In laser processing devices, machine learning is used to determine the quality of processing results, adjust processing conditions, diagnose the deterioration state of the drive unit, diagnose the defective state of the drive unit, etc.
[0287] In the following, a pass / fail judgment in a laser cutting apparatus will be described as an example. Fig. 22 is a diagram showing a configuration of a laser cutting apparatus 2200 which is a second example of the industrial apparatus according to the fifth embodiment.
[0288] The laser cutting apparatus 2200 included in the industrial system is an apparatus that uses a laser (laser light) to cut an object to be processed (workpiece) 2207. The laser cutting apparatus 2200 includes a control device 2201, a laser oscillator 2202, an optical path 2203, a processing head 2204, a drive unit 2205, and an optical sensor 2206.
[0289] The control device 2201 controls the laser oscillator 2202 and the drive unit 2205 based on the specified processing conditions. The laser emitted from the laser oscillator 2202 is transmitted to the processing head 2204 via an optical path 2203. Here, the optical path 2203 is composed of an optical system using mirrors or composed of optical fibers depending on the type and characteristics of the laser used.
[0290] The processing head 2204 is equipped with an optical system that irradiates the transmitted laser onto the processing object 2207. The processing head 2204 also sprays processing gas from a nozzle toward a processing point of the processing object 2207. A driving unit 2205 changes the relative position between the processing head 2204 and the processing object 2207.
[0291] The control device 2201 controls the relative positions of the processing head 2204 and the processing object 2207 by the drive unit 2205, moves the processing head 2204 so as to trace a path specified in a processing program, and commands the laser oscillator 2202 to irradiate the laser at an appropriate timing. The processing head 2204 cuts the processing object 2207 by irradiating the laser that is focused near the surface of the processing object 2207.
[0292] When the laser is irradiated, the workpiece 2207 is heated and emits light, so the state of the processing can be acquired by using time series data (time series data of light detection value) of the optical sensor 2206 that captures the light emitted from the workpiece 2207. There are normal and abnormal processing results during laser cutting. Abnormal processing includes defective processing such as dross where the molten material adheres to the back surface of the workpiece 2207, scratches that cause unevenness on the cut surface, and burning where the molten material blows up without penetrating the cut part.
[0293] In laser cutting, it is not easy to check the results of the processing until the processing is completed and the cut material is removed. Therefore, even if a processing defect occurs, the processing may continue, and the material to be processed 2207 may be wasted. In addition, if a processing defect occurs such as a molten material blowing up due to burning, the molten material may adhere to the nozzle and the processing gas may not flow normally, or the molten material may adhere to the optical system inside the processing head 2204, making it impossible to transmit the laser.
[0294] When collecting learning data, it is preferable that the optical sensor 2206 obtains time series data corresponding to various processing results by changing the processing parameters in various ways. Then, the type of processing result (dross, etc.) is attached as a label to each of the time series data. When a label is attached to the time series data of the optical sensor 2206, the processing result and the time are associated from the time series data of the processing position and the processing result for the processing position, and then the time of the optical sensor 2206 and the time of the processing result are associated, so that the processing result, i.e., the label, and the sensor information, i.e., the time series data of the optical sensor 2206 are associated. In this association, time series data having a certain time width is cut out from the time series data, and a data pair in which the cut-out time series data and the label are associated is obtained. The learning model can learn the relationship between this data pair, i.e., the relationship between the cut-out time series data and the label, and can learn the relationship between the time series data of the optical sensor 2206 and the processing result.
[0295] After the learning of the learning model is completed, the laser cutting processing device 2200 can obtain a prediction of the processing result as an output during processing by inputting the time series data of the optical sensor 2206 that captures the light emission of the processing object 2207 into the learning model. Furthermore, if the predicted processing result is not good, the processing can be stopped or the processing parameters can be changed.
[0296] Here, an example of use of the learning device 100 and the inference device 800 will be described using two laser cutting apparatuses 2200 as an example. To distinguish between the first and second laser cutting apparatuses 2200, the first laser cutting apparatus is referred to as laser cutting apparatus 2200A, and the second laser cutting apparatus is referred to as laser cutting apparatus 2200B. In addition, the reference numerals of the components included in the first laser cutting apparatus 2200A have an A suffix attached, and the reference numerals of the components included in the second laser cutting apparatus 2200B have an B suffix attached.
[0297] Consider a case where a learning model that has learned data acquired from the laser cutting apparatus 2200A predicts the processing result of the processing object 2207B based on data (light detection value) measured by the optical sensor 2206B of the laser cutting apparatus 2200B. In this case, there are individual differences between the laser oscillators 2202A and 2202B, the optical systems of the processing heads 2204A and 2204B, the optical sensors 2206A and 2206B, the processing objects 2207A and 2207B, etc., between the laser cutting apparatus 2200A and the laser cutting apparatus 2200B. For this reason, a difference occurs in the data that can be acquired by the optical sensor 2206A and the optical sensor 2206B, and the judgment accuracy of the learning model deteriorates.
[0298] Next, the correspondence relationship between the learning device 100, the laser cutting apparatus 2200A, and the laser cutting apparatus 2200B of the first to fourth embodiments will be described. Regarding the spare device 101 and the target device 103 applied to the learning device 100 of the first to fourth embodiments, the spare device 101 corresponds to the laser cutting apparatus 2200A, and the target device 103 corresponds to the laser cutting apparatus 2200B. In addition, the spare sensor unit 102 corresponds to the optical sensor 2206A, and the target sensor unit 104 corresponds to the optical sensor 2206B.
[0299] The laser cutting apparatus 2200A, which is the standby apparatus 101, reproduces the state of processing corresponding to various processing results by processing the processing object 2207A by changing the processing conditions in various ways. In this case, the data collected by the optical sensor 2206A becomes the preliminary data 203. Then, the label indicating the processing result of the processing object 2207A corresponding to the collected preliminary data 203 becomes the preliminary label 401. Then, the base model learning unit 105 generates the base model 403 by learning the relationship between the preliminary data 203 and the preliminary label 401.
[0300] Moreover, the laser cutting apparatus 2200B, which is the target device 103, reproduces processing states corresponding to various processing results by changing the processing conditions in various ways and processing the processing target 2207B. In this case, the data collected by the optical sensor 2206B becomes the target data 303. At this time, in order to prevent a breakdown of the laser cutting apparatus 2200B, which is the target device 103, data is acquired within a range that does not cause a processing defect that may cause a breakdown or malfunction of the laser cutting apparatus 2200B. Then, a label indicating the processing result of the processing target 2207B corresponding to the collected target data 303 becomes the target label 501. Then, the adapted model learning unit 106 generates an adapted model 503 that has learned the relationship between the target data 303 and the target label 501.
[0301] In the following, the process in which the inference error acquisition unit 107 acquires the base model inference error 603 and the adaptive model inference error 606, and the process in which the error model generation unit 108 learns the error model 701 are similar to those in the case in which the inference device 800 is applied to the servo control device 2100, so their explanations are omitted.
[0302] The laser cutting processing apparatus 2200B, which is the target apparatus 103, only needs to acquire data within a range that does not cause processing defects that could lead to breakdowns or malfunctions, so data can be collected without causing breakdowns in the target apparatus 103.
[0303] Next, the correspondence between the inference device 800 and the laser cutting processing device 2200B will be explained. The inference device 800 is utilized during processing by the laser cutting processing device 2200B. The light detection value acquired by the light sensor 2206B during processing by the laser cutting processing device 2200B becomes new target data 801.
[0304] Hereinafter, the process in which the inference device 800 calculates the inference result 806 from the new target data 801 is the same as when the inference device 800 is applied to the servo control device 2100, so a description thereof will be omitted.
[0305] In this way, the learning device 100 and the inference device 800 are applicable to the laser cutting processing apparatus 2200. According to the learning device 100 and the inference device 800, when a learning model that has learned data collected by the laser cutting processing apparatus 2200A is used by the laser cutting processing apparatus 2200B, it is possible to improve the inference accuracy of the learning model.
[0306] In addition, in laser cutting, differences occur in the data acquired by the optical sensor 2206A due to individual differences in the object 2207, not just individual differences in the device or sensor, and this may cause the inference accuracy of the learning model to deteriorate. Therefore, the learning device 100 and the inference device 800 can be similarly applied to the case where the laser cutting device 2200A that collected the preliminary data 203 processes an object that has similar properties to the object 2207A that collected the preliminary data 203, but is different from the object 2207A. Here, properties similar to the object 2207A mean that the main components are the same but the proportion of additives is different, the surface condition is different, or the thickness is different by several to 20 percent.
[0307] Next, a specific example of a robot device will be described. There are various types of robot devices, such as vertical multi-joint type, horizontal multi-joint type, rectangular coordinate type, and parallel link type. In the robot device, machine learning is used to diagnose the deterioration state of the drive system of the robot device, diagnose the defective state of the drive system, judge the quality of the work performed by the robot device, judge collisions during robot operation, etc. Furthermore, when the robot device is used for machining operations, machine learning is used to judge the quality of machining, diagnose deterioration of tools, etc.
[0308] In the following, an example of determining whether an assembly operation is good or bad by a vertical articulated robot device will be described. Fig. 23 is a diagram showing a configuration of a robot device 2300 which is a third example of an industrial device according to the fifth embodiment.
[0309] The robot device 2300 in the industrial system is a device that changes the position and angle of a part 2313 placed on a workbench 2312, tightens screws, and assembles the part 2313 with other parts.
[0310] The robot device 2300 includes a control unit 2301, a base 2302, a first axis 2303, a first arm 2304, a second axis 2305, a second arm 2306, a third axis 2307, a third arm 2308, a fourth axis 2309, a hand unit 2310, a force sensor 2311, and a workbench 2312.
[0311] In the robot device 2300, a first shaft 2303 that rotates about a vertical axis is attached to a fixed base 2302. A first arm 2304 is attached to the rotating part of the first shaft 2303, and a second shaft 2305 that rotates about a horizontal axis is attached to the tip of the first arm 2304.
[0312] A second arm 2306 is attached to the rotating part of the second shaft 2305, and a third shaft 2307 that rotates around a horizontal axis is attached to the tip of the second arm 2306. A third arm 2308 is attached to the rotating part of the third shaft 2307, and a fourth shaft 2309 that rotates around an axis in the extension direction of the third arm 2308 is attached to the tip of the third arm 2308. A hand unit 2310 is attached to the rotating part of the fourth shaft 2309, and a force sensor 2311 is attached to the hand unit 2310.
[0313] The hand unit 2310 is equipped with a mechanism for clamping an object, a mechanism for attaching a tool, etc. The force sensor 2311 measures the magnitude of the force or moment acting on the hand unit 2310. The control unit 2301 controls the rotation angle of the first axis 2303, the rotation angle of the second axis 2305, the rotation angle of the third axis 2307, the rotation angle of the fourth axis 2309, and the operation of the hand unit 2310 based on the measurement result (force detection data) by the force sensor 2311. The force detection data is data indicating the magnitude of the force or moment.
[0314] Consider judging the quality of a screw tightening operation during an assembly operation of a part 2313. In the screw tightening operation, the robot device 2300 attaches a tool to the hand unit 2310, presses the tool against a screw at a specified position of the part 2313, and rotates the tool. At this time, if the tool is not in an appropriate position with respect to the screw and is not pressed against the screw with an appropriate force, the screw may not rotate well or may not be tightened with the specified torque, resulting in failure to tighten the screw.
[0315] Therefore, the learning model machine-learns the force or moment acting on the hand unit 2310 measured by the force sensor 2311 when tightening a screw. At this time, the screw is tightened repeatedly while changing the position or pressing force of the hand unit 2310, the degree of tool deterioration, etc., to collect data on successful cases and data on unsuccessful cases for machine learning.
[0316] When the robot device 2300 tightens a screw, the learning model judges whether the tightening of the screw has been successful or not. By the learning model judging success or failure, in the event of failure, the action can be redone or the part 2313 can be automatically discarded, thereby making it possible to make the robot device 2300 autonomous.
[0317] Here, an example of use of the learning device 100 and the inference device 800 will be described using two robot devices 2300 as an example. In order to distinguish between the first and second robot devices 2300, the first robot device 2300 will be referred to as robot device 2300A, and the second robot device 2300 will be referred to as robot device 2300B. In addition, the reference numerals of the components included in the first robot device 2300A will have an A suffix attached, and the reference numerals of the components included in the second robot device 2300B will have an B suffix attached.
[0318] Consider a case where a learning model that has learned data acquired from a robot device 2300A predicts the result of a screw tightening operation based on data (force detection data) measured by a force sensor 2311B of a robot device 2300B. In this case, there are individual differences between the robot devices 2300A and 2302B, the bases 2302A and 2302B, the axes, the mounting errors of the tools, the hand units 2310A and 2310B, the tools, the force sensors 2311A and 2311B, etc., between the robot devices 2300A and 2300B. For this reason, a difference occurs between the force detection data measured by the force sensor 2311A and the force detection data measured by the force sensor 2311B, and the judgment accuracy of the learning model deteriorates.
[0319] Next, the correspondence between the learning device 100, the robot device 2300A, and the robot device 2300B of the first to fourth embodiments will be described. Regarding the spare device 101 and the target device 103 applied to the learning device 100 of the first to fourth embodiments, the spare device 101 corresponds to the robot device 2300A, and the target device 103 corresponds to the robot device 2300B. In addition, the spare sensor unit 102 corresponds to the force sensor 2311A, and the target sensor unit 104 corresponds to the force sensor 2311B.
[0320] The robot device 2300A, which is the standby device 101, repeatedly tightens the screw while changing the position or pressing force of the hand unit 2310A, the degree of deterioration of the tool, and the like, to obtain data of the force sensor 2311A corresponding to various results. That is, the robot device 2300A reproduces machining states corresponding to various machining results. In this case, the data collected by the force sensor 2311A becomes the preliminary data 203. Then, a label indicating the tightening result of the screw corresponding to the collected preliminary data 203 becomes the preliminary label 401. Then, the base model learning unit 105 generates a base model 403 that has learned the relationship between the preliminary data 203 and the preliminary label 401.
[0321] Moreover, the robot device 2300B, which is the target device 103, can acquire data of the force sensor 2311B corresponding to various results by repeatedly tightening the screw while changing the position or pressing force of the hand unit 2310B, the deterioration degree of the tool, and the like. That is, the robot device 2300B reproduces the machining state corresponding to various machining results. In this case, the data collected by the force sensor 2311B becomes the target data 303. At this time, in order to prevent the robot device 2300B from breaking down or the part 2313B from becoming unusable, data is acquired within a range that does not cause a defect that causes a breakdown or malfunction of the robot device 2300B and a defect that makes the part 2313B unusable. Then, a label indicating the tightening result of the screw corresponding to the collected target data 303 becomes the target label 501. Then, the adapted model learning unit 106 generates an adapted model 503 that has learned the relationship between the target data 303 and the target label 501.
[0322] In the following, the process in which the inference error acquisition unit 107 acquires the base model inference error 603 and the adaptive model inference error 606, and the process in which the error model generation unit 108 learns the error model 701 are similar to those in the case in which the inference device 800 is applied to the servo control device 2100, so their explanations are omitted.
[0323] The robotic device 2300B, which is the target device 103, only needs to acquire data to the extent that does not cause any defects that would cause a breakdown or malfunction, or that would render the part 2313B unusable. This allows data collection to be performed without causing breakdowns in the target device 103 and while preventing any defects that would render the part 2313B unusable.
[0324] Next, the correspondence between the inference device 800 and the robot device 2300B will be explained. The inference device 800 is used when machining the robot device 2300B. The light detection value acquired by the force sensor 2311B when machining the robot device 2300B becomes new target data 801.
[0325] Hereinafter, the process in which the inference device 800 calculates the inference result 806 from the new target data 801 is the same as when the inference device 800 is applied to the servo control device 2100, so a description thereof will be omitted.
[0326] In this way, the learning device 100 and the inference device 800 are applicable to the robot device 2300. According to the learning device 100 and the inference device 800, when a learning model that has learned data collected by the robot device 2300A is used by the robot device 2300B, it is possible to improve the inference accuracy of the learning model.
[0327] Thus, according to the fifth embodiment, the learning device 100 and the inference device 800 can be applied to an industrial system, so that the industrial system can obtain a highly accurate inference result 806.
[0328] Next, we will explain the hardware configurations of the learning device 100 and the inference devices 800, 1000, 1400, 1700, and 1900. Since the learning device 100 and the inference devices 800, 1000, 1400, 1700, and 1900 have similar hardware configurations, we will explain the hardware configuration of the inference device 800 according to the first embodiment here.
[0329] FIG. 24 is a diagram showing an example of a configuration in which processing circuit 2400 included in inference device 800 according to the first embodiment is realized by processor 2401 and memory 2402.
[0330] When the processing circuit 2400 is composed of a processor 2401 and a memory 2402, each function of the processing circuit 2400 of the inference device 800 is realized by software, firmware, or a combination of software and firmware. The software, firmware, etc. are written as a program and stored in the memory 2402. In the processing circuit 2400, each function is realized by the processor 2401 reading and executing the program stored in the memory 2402. That is, the processing circuit 2400 includes the memory 2402 for storing an inference program that results in the processing of the inference device 800 being executed. It can also be said that this inference program causes a computer to execute the procedure and method of the inference device 800.
[0331] In the case of the learning device 100, the processing circuit 2400 includes a processor 2401 and a memory 2402 for storing a learning program that results in the processing of the learning device 100. This learning program can also be said to cause a computer to execute the procedures and methods of the learning device 100.
[0332] Here, the processor 2401 may be a CPU (Central Processing Unit), a processing device, an arithmetic device, a microprocessor, a microcomputer, or a DSP (Digital Signal Processor), etc. The memory 2402 may be, for example, a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Programmable ROM), or an EEPROM (Electrically EPROM), etc. The memory 2402 may also be a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, or a DVD (Digital Versatile Disc), etc.
[0333] Fig. 25 is a diagram showing a configuration example of a processing circuit 2500 included in the inference device 800 according to the first embodiment when the processing circuit 2500 is configured with dedicated hardware. When the processing circuit 2500 is configured with dedicated hardware, the processing circuit 2500 shown in Fig. 25 is, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination of these. The inference device 800 may be realized by the processing circuit 2500 for each function, or a plurality of functions may be realized collectively by the processing circuit 2500.
[0334] In addition, the processing circuit 2500 may be partially realized by dedicated hardware and partially realized by software or firmware. In this manner, the processing circuit 2500 can realize each of the above-described functions by dedicated hardware, software, firmware, or a combination of these.
[0335] The location where the processing circuits 2400 and 2500 are installed is not limited to inside an industrial system. For example, the processing circuits 2400 and 2500 may be installed at a location separate from an industrial device and connected to the industrial device via a network. Also, for example, a control device, a numerical control device, etc. provided in an industrial machine may be realized by the processing circuit.
[0336] The configurations shown in the above embodiments are merely examples, and may be combined with other known technologies, or the embodiments may be combined with each other. Also, parts of the configurations may be omitted or modified without departing from the spirit of the invention. [Explanation of symbols]
[0337] 100 Learning device, 101 Spare device, 102 Spare sensor unit, 103 Target device, 104 Target sensor unit, 105 Base model learning unit, 106 Adaptation model learning unit, 107 Inference error acquisition unit, 108, 1300, 1500, 1600, 1800 Error model generation unit, 201, 301 Sensor, 202, 302 Feature extraction unit, 203 Spare data, 303 Target data, 401 Spare label, 403 Base model, 501 Target label, 503 Adaptation model, 601, 802 Base model inference unit, 602 Base model error calculation unit, 603 Base model inference error, 604, 803 Adaptation model inference unit, 605 Adaptation model error calculation unit, 606 Adaptation model inference error, 701, 901 Error model, 800, 1000, 1400, 1700, 1900 Inference device, 801 New target data, 804, 1001, 1401, 1701 Error model inference unit, 805, 1402, 1702, 1902 Integration unit, 806 Inference result, 902 Dimension reduction unit, 1301 Base error information setting unit, 1302, 1502, 1602 Base error model learning unit, 1303, 1503, 1603 Base error model, 1304, 1504 Adaptive error information setting unit, 1305, 1505, 1605 Adaptive error model learning unit, 1306, 1506, 1606 Adaptive error model, 1403, 1703 Base error model inference unit, 1404, 1704 Adaptive error model inference unit, 1501 Base error information setting unit, 1507 anomaly detection model learning unit, 1601 base prior information setting unit, 1604 adaptation prior information setting unit, 1801 data extraction unit, 1802 adaptation success data, 1803 adaptation domain learning unit, 1804 adaptation domain model, 1901 adaptation domain model inference unit, 2001 adaptation domain model inference unit, 2002 domain threshold determination unit, 2100, 2100A, 2100B servo control device, 2101, 2301 control unit, 2102 driver, 2103, 2103A, 2103B current sensor, 2104 encoder, 2105, 2105A, 2105B motor, 2106 coupling, 2107, 2107A, 2107B ball screw, 2108, 2108A, 2108B Transported object, 2200, 2200A, 2200B laser cutting processing device, 2201 control device, 2202, 2202A, 2202B laser oscillator, 2203 optical path, 2204,2204A, 2204B machining head, 2205 drive unit, 2206, 2206A, 2206B optical sensor, 2207, 2207A, 2207B machining target, 2300, 2300A, 2300B robot device, 2302, 2302A, 2302B pedestal, 2310, 2310A, 2310B hand unit, 2311, 2311A, 2311B force sensor, 2312 work table, 2313, 2313B parts, 2400, 2500 processing circuit, 2401 processor, 2402 memory, Aa adaptive region model inference result, Ar adaptive model inference result, Br base model inference result, E1, E2 error model inference result, Ea1, Ea2 Adaptive error model inference result, Eb1, Eb2 base error model inference result, Sda, Sdb standard deviation.
Claims
1. an adaptive model learning unit that generates an adaptive model that learns a relationship between target data, which is data measured by a target device that is a target of learning and inference when the target device is operating, and a first target label, which is a label of the target data; an inference error acquisition unit that infers a second target label corresponding to the target data using a base model that has learned a relationship between preliminary data, which is data measured by a spare device that is a different device of the same type as the target device and is a target for learning when the spare device is operating, and a spare label, which is a label of the preliminary data, and calculates an error between the first target label and the second target label as a base model inference error, and that infers a third target label corresponding to the target data using the adapted model and calculates an error between the first target label and the third target label as an adapted model inference error; an error model generation unit that generates an error model used in integrating a base model inference result, which is an output when new target data, which is data newly measured by the target device when the target device is newly operated, is input to the base model, and an adaptive model inference result, which is an output when the new target data is input to the adaptive model, by learning based on the target data, the base model inference error, and the adaptive model inference error; Equipped with the error model is a model that learns the relationship between the magnitude of the base model inference error, the magnitude of the adaptive model inference error, and the target data, and when the new target data is input, outputs an error model inference result that is data corresponding to weighting of the base model inference result and the adaptive model inference result at the time of the integration. A learning device characterized by:
2. A base model learning unit that generates the base model based on the preliminary data and the preliminary labels.
2. The learning device according to claim 1 .
3. Further comprising a dimensional compression unit that compresses the dimensionality of the target data, The error model generation unit generates the error model by learning a relationship between the dimensionally reduced target data, the base model inference error, and the adaptive model inference error.
2. The learning device according to claim 1 .
4. The error model generation unit a base error model learning unit that generates a base error model that learns the relationship between the magnitude of the base model inference error and the target data; a base error information setting unit that sets, before the base error model is learned, base error information indicating that the magnitude of the base model inference error is smaller than the magnitude of the adaptive model inference error in the base error model learning unit; an adaptive error model learning unit that generates an adaptive error model that learns a relationship between the magnitude of the adaptive model inference error and the target data; an adaptation error information setting unit that sets, before the adaptation error model is learned, adaptation error information indicating that the magnitude of the adaptation model inference error is larger than the magnitude of the base model inference error in the adaptation error model learning unit; having The base error model learning unit generates the base error model based on the base error information, the adaptive error model learning unit generates the adaptive error model based on the adaptive error information.
2. The learning device according to claim 1 .
5. The error model generation unit a base error model learning unit that generates a base error model that learns the relationship between the magnitude of the base model inference error and the target data; a base prior information setting unit that sets, before the base error model is learned, a prior distribution indicating that the magnitude of the base model inference error is smaller than the magnitude of the adaptive model inference error, as a base prior distribution, to the base error model learning unit; an adaptive error model learning unit that generates an adaptive error model that learns a relationship between the magnitude of the adaptive model inference error and the target data; an adaptation prior information setting unit that sets, before the adaptation error model is learned, a prior distribution indicating that the magnitude of the adaptation model inference error is larger than the magnitude of the base model inference error, as an adaptation prior distribution, in the adaptation error model learning unit; having the base error model and the adaptive error model are Gaussian process regression models; The base error model learning unit generates the base error model based on the base prior distribution; The adaptive error model learning unit generates the adaptive error model based on the adaptive prior distribution.
2. The learning device according to claim 1 .
6. The error model generation unit a data extraction unit that compares the base model inference error with the adapted model inference error, and extracts, from the target data, target data corresponding to data whose magnitude of the adapted model inference error is smaller than that of the base model inference error, as successful adaptation data; an adaptation domain learning unit that generates an adaptation domain model by learning a data space in which the adaptation success data is distributed based on the adaptation success data; having The adaptation domain model is a model that, when new target data is input, outputs an adaptation domain model inference result indicating whether or not the new target data is within an adaptation domain, which is a domain in which the magnitude of the adaptation model inference error is smaller than the magnitude of the base model inference error.
2. The learning device according to claim 1 .
7. The error model generation unit an adaptation domain model inference unit that inputs the adaptation success data into the adaptation domain model to calculate a domain score that indicates whether the adaptation success data belongs to the adaptation domain as a numerical value; a region threshold determination unit that determines a value smaller than the median of the region score as a region threshold corresponding to a boundary between the adaptation success data and adaptation failure data that is data other than the adaptation success data; Further comprising 7. The learning device according to claim 6.
8. The preliminary data is greater than the target data.
2. The learning device according to claim 1 .
9. A learning device according to any one of claims 1 to 8; The target device; having 1. An industrial system comprising:
10. an adaptive model inference unit that calculates an adaptive model inference result that is an inference result by the adaptive model by inputting new target data, which is data newly measured by a target device when the target device is newly operated, into an adaptive model that has learned a relationship between target data, which is data measured by the target device when the target device is operated as a target of learning and inference, and a first target label, which is a label of the target data; a base model inference unit that calculates a base model inference result, which is an inference result by the base model, by inputting the new target data into a base model that has learned a relationship between spare data, which is data measured by a spare device that is a different device of the same type as the target device and is a learning target when the spare device is operating, and spare labels, which are labels of the spare data; an error model inference unit that calculates an error model inference result, which is an inference result by the error model, by inputting the new target data into an error model that has learned a relationship with the target data, the magnitude of a base model inference error, which is the error between the first target label and the second target label when a second target label corresponding to the target data is inferred using the base model, and the magnitude of an adapted model inference error, which is the error between the first target label and the third target label when a third target label corresponding to the target data is inferred using the adapted model; an integration unit that calculates an integrated inference result by weighting the base model inference result and the adaptive model inference result based on the error model inference result; Equipped with The error model inference unit inputs the new target data into the error model, thereby calculating the error model inference result corresponding to the predicted value of the error of the base model inference result and the predicted value of the error of the adaptive model inference result, and outputs the error model inference result to the integration unit. An inference device comprising:
11. A dimensionality reduction unit that reduces the dimension of the new target data, the error model is a model that learns a relationship between the dimensionally reduced target data, the base model inference error, and the adapted model inference error; The error model inference unit calculates the error model inference result by inputting the dimensionally compressed new target data into the error model.
11. The inference device according to claim 10.
12. The error model is a base error model that has learned the relationship between the magnitude of the base model inference error and the target data; an adaptive error model that has learned the relationship between the magnitude of the adaptive model inference error and the target data; Including, The error model inference unit a base error model inference unit that inputs the new target data into the base error model to calculate a base error model inference result, which is an inference result based on the base error model; an adaptive error model inference unit that inputs the new target data into the adaptive error model to calculate an adaptive error model inference result, which is an inference result by the adaptive error model; Including, The base error model inference unit is By inputting the new target data into the base error model, the base error model inference result corresponding to a predicted value of an error of the base model inference result is calculated, and output to the integration unit; The adaptive error model inference unit By inputting the new target data into the adaptive error model, the adaptive error model inference result corresponding to a predicted value of the error of the adaptive model inference result is calculated, and output to the integration unit; The integration unit includes: calculating an integrated inference result by weighting the base model inference result and the adaptive model inference result based on the base error model inference result and the adaptive error model inference result; 11. The inference device according to claim 10.
13. the base error model is a model generated based on a prior distribution indicating that the magnitude of the base model inference error is smaller than the magnitude of the adapted model inference error; the adaptive error model is a model generated based on a prior distribution indicating that the magnitude of the adaptive model inference error is greater than the magnitude of the base model inference error, The base error model inference unit is By inputting the new target data into the base error model, a first standard deviation which is the standard deviation of the base error model inference result is calculated, and output to the integration unit together with the base error model inference result; The adaptive error model inference unit By inputting the new target data into the adaptive error model, a second standard deviation which is the standard deviation of the adaptive error model inference result is calculated, and outputted to the integration unit together with the adaptive error model inference result; the integration unit calculates a weighted average of the adaptive model inference result and the base model inference result by a sum of the base error model inference result and the first standard deviation and a sum of the adaptive error model inference result and the second standard deviation; 13. The inference device according to claim 12.
14. The error model is an adaptation domain model that learns a data space in which the adaptation success data is distributed based on adaptation success data, which is target data corresponding to data in which the magnitude of the adaptation model inference error is smaller than the magnitude of the base model inference error among the target data; The error model inference unit an adaptive domain model inference unit that inputs the new target data into the adaptive domain model, calculates an adaptive domain model inference result indicating whether the new target data is within an adaptive domain, which is a domain in which the magnitude of the adaptive model inference error is smaller than the magnitude of the base model inference error, and outputs the result to the integration unit; The integration unit includes: calculating an integrated inference result by weighting the base model inference result and the adaptive model inference result based on the adaptive domain model inference result; 11. The inference device according to claim 10.
15. The integration unit includes: a domain threshold value that is set as a boundary between the adaptation success data and adaptation failure data that is data other than the adaptation success data, the boundary value being smaller than a median value of a domain score that indicates whether the adaptation success data belongs to the adaptation domain or not, and the adaptation domain model inference result, and a calculation of an integrated inference result by weighting the base model inference result and the adaptation model inference result; 15. The inference device according to claim 14.
16. The integration unit includes: adjusting the domain threshold based on a threshold expansion amount used when expanding the domain threshold, and calculating an integrated inference result by weighting the base model inference result and the adaptive model inference result based on the adjusted domain threshold and the adaptive domain model inference result; 16. The inference device according to claim 15.
17. An inference device according to any one of claims 10 to 16, The target device; having 1. An industrial system comprising:
18. an adaptive model learning step in which the learning device generates an adaptive model that has learned a relationship between target data, which is data measured by a target device that is a target of learning and inference when the target device is operating, and a first target label, which is a label of the target data; an inference error acquisition step in which the learning device infers a second target label corresponding to the target data using a base model that has learned a relationship between preliminary data, which is data measured by a spare device that is a device of the same type as the target device and is a target of learning when the spare device is operating, and a spare label, which is a label of the preliminary data, and calculates an error between the first target label and the second target label as a base model inference error, and infers a third target label corresponding to the target data using the adaptive model, and calculates an error between the first target label and the third target label as an adaptive model inference error; an error model generation step in which the learning device generates an error model used for integrating a base model inference result, which is an output when new target data, which is data newly measured by the target device when the target device is newly operated, is input to the base model, and an adaptive model inference result, which is an output when the new target data is input to the adaptive model, by learning based on the target data, the base model inference error, and the adaptive model inference error; Including, the error model is a model that learns the relationship between the magnitude of the base model inference error, the magnitude of the adaptive model inference error, and the target data, and when the new target data is input, outputs an error model inference result that is data corresponding to weighting of the base model inference result and the adaptive model inference result at the time of the integration. A learning method comprising:
19. an adaptive model inference step in which the inference device inputs new target data, which is data newly measured by the target device when the target device is newly operated, into an adaptive model that has learned the relationship between target data, which is data measured by the target device that is the subject of learning and inference when the target device is operating, and a first target label, which is the label of the target data, to calculate an adaptive model inference result, which is an inference result by the adaptive model; a base model inference step in which the inference device inputs the new target data into a base model that has learned the relationship between spare data, which is data measured by a spare device that is a different device of the same type as the target device and is a learning target when the spare device is operating, and spare labels, which are labels of the spare data, to calculate a base model inference result, which is an inference result by the base model; an error model inference step in which the inference device calculates an error model inference result, which is an inference result by the error model, by inputting the new target data into an error model that has learned a relationship with the target data, the magnitude of a base model inference error, which is the error between the first target label and the second target label when a second target label corresponding to the target data is inferred using the base model, and the magnitude of an adapted model inference error, which is the error between the first target label and the third target label when a third target label corresponding to the target data is inferred using the adapted model; an integration step in which the inference device calculates an integrated inference result by weighting the base model inference result and the adaptive model inference result based on the error model inference result; Including, In the error model inference step, the inference device inputs the new target data into the error model to calculate the error model inference result corresponding to a predicted value of an error of the base model inference result and a predicted value of an error of the adaptive model inference result.
13. An inference method comprising:
Citation Information
Patent Citations
Learning management device, learning management server, and learning management method
JP2019211969A
Learning device, imaging device, ai information providing device, learning method and learning program
JP2020166744A
Inference device, inference method, and inference program
JP2021022079A
Learning data generation device, learning data generation method and learning data generation program
JP2023074197A
Information processing system
JP2024025133A
Cited By
Simulation device, simulation method, and simulation program
WO2026196667A1
