Data processing device and program
The data processing device improves abnormality cause inference accuracy by labeling and converting negative labels to positive labels, using advanced models to handle unknown causes and unforeseen abnormalities, ensuring precise identification of equipment issues.
Patent Information
- Application Number
- JP2021113695
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-07-08
- Publication Date
- 2024-10-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technologies face challenges in accurately inferring the cause of abnormalities in monitored equipment due to non-unique identification of causes and occurrence of unforeseen abnormalities during training, leading to insufficient inference accuracy.
A data processing device that assigns positive and negative labels to time-series sensor data, converts negative labels to positive labels, and trains a model to improve inference accuracy by using techniques such as convolutional neural networks, autoencoders, and latent variable analysis.
Enhances the accuracy of inferring the cause of abnormalities by effectively handling unknown causes and unforeseen abnormalities, improving the model's ability to identify the correct cause even when new data is encountered.
Smart Images

Figure 2024153954000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a data processing device and a program. [Background technology]
[0002] There is known an inference technique that uses time-series sensor data acquired from a monitored device (e.g., a machine tool) as input data, trains a training model using labels indicating the cause of an abnormality that has occurred in the device as correct answer data, and infers the cause of the abnormality. According to this inference technique, a high inference accuracy can be achieved by training a training model for the causes of all abnormalities.
[0003] On the other hand, depending on the device being monitored, it may not be possible to uniquely identify the cause of an anomaly, or an anomaly may occur that did not occur during training. In such cases, it may be difficult to achieve sufficient inference accuracy. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2020-141395 A Summary of the Invention [Problem to be solved by the invention]
[0005] The present disclosure provides techniques for improving the accuracy of inferring the cause of anomalies. [Means for solving the problem]
[0006] A data processing device according to an aspect of the present disclosure has, for example, the following configuration. At least one memory; At least one processor; The at least one processor is configured to be capable of assigning a positive label to data measured in the device when an abnormality occurs, indicating that the cause of the abnormality is a specific cause, or to assign a negative label to data measured in the device when an abnormality occurs, indicating that the cause of the abnormality is not the specific cause. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 is a diagram illustrating an example of a system configuration of an anomaly cause inference system. [Diagram 2] FIG. 2 is a diagram illustrating an example of a hardware configuration of a training device or an inference device. [Figure 3A] FIG. 13 is a diagram illustrating a specific example of processing by a label assignment unit. [Figure 3B] FIG. 13 is a diagram illustrating an example of a user interface of a label assignment unit. [Figure 4] FIG. 11 is a first diagram showing a specific example of processing by the training unit. [Diagram 5] FIG. 11 is a first diagram showing a specific example of processing by the inference unit. [Figure 6] 1 is a first flowchart showing the flow of an anomaly cause inference process. [Figure 7] FIG. 2 is a second diagram showing a specific example of processing by the training unit. [Figure 8] FIG. 3 is a third diagram showing a specific example of processing by the training section. [Figure 9] FIG. 2 is a second diagram showing a specific example of the processing of the inference unit. [Figure 10] 11 is a second flowchart showing the flow of anomaly cause inference processing. [Figure 11] FIG. 4 is a fourth diagram showing a specific example of processing by the training section. [Figure 12] FIG. 1 is a first diagram showing an example of a partial training dataset. [Figure 13] FIG. 5 is a fifth diagram showing a specific example of processing by the training section. [Figure 14] FIG. 2 is a second diagram showing an example of a partial training dataset. [Figure 15] FIG. 13 is a diagram illustrating an example of a function used in a comparison / update unit. [Figure 16] FIG. 3 is a third diagram showing a specific example of the processing of the inference unit. [Figure 17] 13 is a third flowchart showing the flow of anomaly cause inference processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, each embodiment will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0009] [First embodiment] <System configuration of anomaly cause inference system> First, a description will be given of a system configuration of an anomaly cause inference system including a training device or an inference device according to the first embodiment. Fig. 1 is a diagram showing an example of the system configuration of the anomaly cause inference system.
[0010] Of these, Fig. 1(a) is an example of a system configuration of an anomaly cause inference system 100A in the training phase. As shown in Fig. 1(a), the anomaly cause inference system 100A in the training phase includes a machine tool 110 and a training device 120. The training device 120 is also a data processing device.
[0011] The machine tool 110 is a device to be monitored, and while in operation, it measures time-series sensor data indicating the state of each part and transmits it to the training device 120.
[0012] A training program is installed in the training device 120, and in the training phase, the training device 120 functions as a label assignment unit 121 and a training unit 122 by executing the program.
[0013] Label assignment unit 121 is an example of an assignment unit, and sequentially reads out time-series sensor data for a predetermined time range measured when an abnormality occurs from time-series data storage unit 123 based on instructions from a user (not shown), and assigns a label indicating the cause of the abnormality. Note that time-series sensor data indicating the state of each part of machine tool 110 transmitted from machine tool 110 is assumed to be stored in advance in time-series data storage unit 123.
[0014] Furthermore, the labeling unit 121 stores the time-series sensor data to which the labels have been added in the training data storage unit 124 as a training data set.
[0015] The training unit 122 reads out a training data set from the training data storage unit 124, and trains a training model using the read out training data set. The trained model trained by the training unit 122 is notified to the inference device 130.
[0016] On the other hand, Fig. 1(b) shows an example of a system configuration of an anomaly cause inference system 100B in the inference phase. As shown in Fig. 1(b), the anomaly cause inference system 100B in the inference phase includes a machine tool 110 and an inference device 130. The inference device 130 is also a data processing device.
[0017] Of these, the machine tool 110 is the same as that shown in Fig. 1(a), and therefore a description thereof will be omitted. An inference program is installed in the inference device 130, and in the inference phase, the inference device 130 functions as an inference unit 131 by executing the program.
[0018] A trained model trained by the training unit 122 in the training phase is applied to the inference unit 131. The inference unit 131 reads time series data from the time series data storage unit 132, and inputs the read time series data to the trained model to execute the trained model and output an anomaly cause inference result. Note that the time series data input to the model may be data obtained by performing a fast Fourier transform (FFT) on the time series data, or data obtained by performing other preprocessing on the time series data.
[0019] <Hardware configuration of training device or inference device> Next, the hardware configuration of the training device 120 or the inference device 130 will be described. Fig. 2 is a diagram showing an example of the hardware configuration of the training device or the inference device. As shown in Fig. 2, the training device 120 or the inference device 130 has, as components, a processor 201, a main storage device (memory) 202, an auxiliary storage device 203, a network interface 204, and a device interface 205. The training device 120 or the inference device 130 is realized as a computer in which these components are connected via a bus 206.
[0020] In the example of FIG. 2, the training device 120 or the inference device 130 is shown as having one of each of the components, but the training device 120 or the inference device 130 may have a plurality of the same components. In the example of FIG. 2, one training device 120 or the inference device 130 is shown, but the training program or the inference program may be installed in a plurality of training devices or inference devices, and each of the plurality of training devices or inference devices may be configured to execute the same or different parts of the processing of the training program or the inference program. In this case, the training device or the inference device may take the form of distributed computing in which the entire processing is executed by each of the training devices or the inference devices communicating via the network interface 204 or the like. In other words, the training device 120 or the inference device 130 may be configured as a system in which one or more computers execute instructions stored in one or more storage devices to realize functions. In addition, the configuration may be such that various data transmitted from the machine tool 110 is processed by one or more training devices or inference devices provided on the cloud, and the processing results are transmitted to the customer.
[0021] Various calculations of the training device 120 or the inference device 130 may be executed in parallel using one or more processors, or using multiple training devices or inference devices communicating via the communication network 210. Furthermore, various calculations may be distributed to multiple computing cores in the processor 201 and executed in parallel. Furthermore, a part or all of the processes, means, etc. disclosed herein may be executed by an external device 220 (at least one of a processor and a storage device) provided on a cloud that can communicate with the training device 120 or the inference device 130 via the communication network 210. In this way, the training device 120 or the inference device 130 may take the form of parallel computing using one or more computers.
[0022] The processor 201 may be an electronic circuit (a processing circuit, processing circuitry, CPU, GPU, FPGA, ASIC, or the like). The processor 201 may also be a semiconductor device including a dedicated processing circuit. The processor 201 is not limited to an electronic circuit using electronic logic elements, and may be realized by an optical circuit using optical logic elements. The processor 201 may also include a calculation function based on quantum computing.
[0023] Processor 201 performs various calculations based on various data and commands input from each device, etc., in the internal configuration of training device 120 or inference device 130, and outputs calculation results and control signals to each device, etc. Processor 201 controls each component of training device 120 or inference device 130 by executing an OS (Operating System), applications, etc.
[0024] Furthermore, processor 201 may refer to one or more electronic circuits arranged on one chip, or to one or more electronic circuits arranged on two or more chips or devices. When multiple electronic circuits are used, the electronic circuits may communicate with each other by wire or wirelessly.
[0025] The main memory device 202 is a memory device that stores instructions executed by the processor 201 and various data, and the various data stored in the main memory device 202 is read by the processor 201. The auxiliary memory device 203 is a memory device other than the main memory device 202. Note that these memory devices refer to any electronic components capable of storing various data, and may be semiconductor memories. The semiconductor memories may be either volatile or non-volatile memories. The memory device for saving various data in the training device 120 or the inference device 130 may be realized by the main memory device 202 or the auxiliary memory device 203, or may be realized by an internal memory built into the processor 201.
[0026] Furthermore, a plurality of processors 201 may be connected (coupled) to one main memory device 202, or a single processor 201 may be connected. Alternatively, a plurality of main memory devices 202 may be connected (coupled) to one processor 201. When the training device 120 or the inference device 130 is configured with at least one main memory device 202 and a plurality of processors 201 connected (coupled) to the at least one main memory device 202, a configuration in which at least one of the plurality of processors 201 is connected (coupled) to at least one main memory device 202 may be included. This configuration may also be realized by the main memory devices 202 and the processors 201 included in a plurality of training devices 120 or inference devices 130. Furthermore, a configuration in which the main memory device 202 is integrated with the processor (for example, a cache memory including an L1 cache and an L2 cache) may be included.
[0027] The network interface 204 is an interface for connecting to the communication network 210 wirelessly or by wire. An appropriate interface, such as one conforming to an existing communication standard, is used for the network interface 204. The network interface 204 may exchange various data with the machine tool 110 and other external devices 220 connected via the communication network 210. The communication network 210 may be any one of a wide area network (WAN), a local area network (LAN), a personal area network (PAN), etc., or a combination thereof, and may be any network that exchanges information between a computer and the machine tool 110 and other external devices 220. An example of a WAN is the Internet, an example of a LAN is IEEE802.11 or Ethernet, and an example of a PAN is Bluetooth (registered trademark) or NFC (Near Field Communication).
[0028] The device interface 205 is an interface such as a USB that directly connects to an external device 230 .
[0029] The external device 230 is a device connected to a computer. The external device 230 may be an input device, for example. The input device is, for example, a device such as a camera, a microphone, a motion capture device, various sensors, a keyboard, a mouse, or a touch panel, and provides acquired information to the computer. The external device 230 may also be a device having an input unit, a memory, and a processor, such as a personal computer, a tablet terminal, or a smartphone.
[0030] Moreover, the external device 230 may be, for example, an output device. The output device may be, for example, a display device such as an LCD (Liquid Crystal Display), a CRT (Cathode Ray Tube), a PDP (Plasma Display Panel), or an organic EL (Electro Luminescence) panel, or may be a speaker that outputs sound or the like. The output device may also be a device that includes an output unit, a memory, and a processor, such as a personal computer, a tablet terminal, or a smartphone.
[0031] Furthermore, the external device 230 may be a storage device (memory). For example, the external device 230 may be a network storage or the like, or the external device 230 may be a storage such as a HDD.
[0032] Furthermore, external device 230 may be a device having some of the functions of the components of training device 120 or reasoning device 130. In other words, the computer may transmit or receive some or all of the processing results of external device 230.
[0033] <Specific example of label assignment processing> Next, a diagram showing a specific example of the processing of the label assignment unit 121. Fig. 3A is a diagram showing a specific example of the processing of the label assignment unit 121. As shown in Fig. 3A, the label assignment unit 121 sequentially reads out time-series sensor data for a predetermined time range from the time-series data storage unit 123 based on an instruction from a user (not shown).
[0034] 3A, time series data 300 is an example of time series data that the label assignment unit 121 reads out from the time series data storage unit 123. As shown in FIG 3A, the time series data 300 includes at least an "identifier", "data", and "label" as information items.
[0035] In "identifier", an identifier that identifies the time-series sensor data for a predetermined time range measured when an abnormality occurs is stored. In "data", the time-series sensor data for a predetermined time range measured when an abnormality occurs is read out and stored. The example in FIG. 3A shows how "waveform data 1a", "waveform data 2a", "waveform data 3a", ... "waveform data na" are read out and stored as time-series sensor data for a predetermined time range.
[0036] "Label" stores the label assigned by the label assignment unit 121. Since the time-series data 300 is time-series data before the label is assigned by the label assignment unit 121, the "Label" item is blank.
[0037] Label assignment unit 121 assigns a label indicating the cause of anomaly to the time-series sensor data stored in "data" of time-series data 300. Note that in this embodiment, for the sake of simplicity, it is assumed that, among the anomalies that occur in machine tool 110, there are three types of anomalies whose causes have been identified, and these are referred to as "anomaly X," "anomaly Y," and "anomaly Z," respectively.
[0038] For this reason, when the cause of the abnormality is identified, the labeling unit 121 assigns the following label to the abnormality. "X is abnormal", "It is abnormal Y", "It is abnormal Z", In the case of the training device 120 according to the present embodiment, when the cause of the abnormality is not specified, the label assignment unit 121 assigns, in addition to the positive label, "Not anomaly X", "Not abnormal Y" "Not abnormal Z", It is also possible to assign negative labels such as (labels indicating that the cause of the abnormality is not a specific one that has already been identified).
[0039] The negative label may also include a label indicating that the abnormality is not one of a plurality of specific abnormality causes that have already been identified, such as "neither abnormality X nor abnormality Y." In other words, the negative label may be a label indicating that the abnormality is not one specific abnormality cause, or a label indicating that the abnormality is not one of two or more specific abnormality causes. For example, a label indicating "neither abnormality X nor abnormality Y" also indicates "not abnormality X," and is therefore conceptually included in a label indicating that the abnormality is not a specific abnormality X, and similarly, is conceptually included in a label indicating that the abnormality is not a specific abnormality Y. In this way, a label indicating that the abnormality is not one of the two or more specific abnormality causes also indicates that the abnormality is not one specific abnormality cause among the two or more specific abnormality causes, and is therefore also a label indicating that the abnormality is not one specific abnormality cause.
[0040] The label assignment unit 121 may automatically generate these negative labels from the positive labels by taking the logical negation of each positive label, or may automatically generate a negative label indicating that none of the multiple abnormality causes occurs by combining multiple negative labels. The label assignment unit 121 may display the automatically generated negative labels in a label selection area, which will be described later.
[0041] The training data set 310 in Fig. 3A shows that the label "abnormal X" is assigned to "waveform data 1a", the label "abnormal Y" is assigned to "waveform data 2a", and the label "not abnormal X" is assigned to "waveform data 3a". The training data set 310 in Fig. 3A also shows that the label "not abnormal Y" is assigned to "waveform data na".
[0042] Next, a description will be given of a display screen provided to the user when the label assignment unit 121 assigns a label. Fig. 3B is a diagram showing an example of a user interface of the label assignment unit 121. Fig. 3B shows how a label is assigned to time-series sensor data named "sensor data 1".
[0043] As shown in FIG. 3B, the display screen 320 displays a plurality of labels and includes a label selection area that accepts label selection from the user. The label selection area in this embodiment includes an area 321-1 that displays positive labels and an area 321-2 that displays negative labels. The display screen 320 may include the name of a device and a period (start time, end time) during which the sensor data to be labeled was acquired. The user reads out time-series sensor data of a predetermined time range measured when an abnormality occurs from the time-series sensor data via the display screen 320, and inputs the corresponding abnormality cause. As a result, the label assignment unit 121 assigns a label indicating the input abnormality cause to the time-series sensor data of the predetermined time range measured when an abnormality occurs.
[0044] The label selection area includes check boxes for specifying the location where an abnormality has occurred in the machine tool 110 and the symptoms of the abnormality (i.e., the label corresponding to the abnormality cause). As described above, in this embodiment, there are three types of abnormality causes and six types of labels that can be assigned, so six labels are displayed: "abnormal X", "abnormal Y", "abnormal Z", "not abnormal X", "not abnormal Y", and "not abnormal Z". Each negative label may be automatically generated by the label assignment unit 121 by taking the logical negation of each positive label. The training unit handles these labels as "X", "Y", "Z", "NOTX", "NOTY", and "NOTZ". The user selects a label (cause of abnormality) that he / she wants to assign to the sensor data from among these multiple labels and presses the setting button. As a result, the label assignment unit 121 can assign any of the selected labels. In FIG. 3B, the label "not abnormal Z" is selected, so the check box is turned on.
[0045] In addition, the label selection of this embodiment allows multiple label selections. That is, by selecting the label "X is abnormal" and the label "Y is abnormal", the label assignment unit 121 may assign a label meaning "X is abnormal" or "Y is abnormal" to the sensor data. Similarly, by selecting the label "Y is not abnormal" and the label "Z is not abnormal", the label assignment unit 121 may assign a label meaning "neither Y nor Z is abnormal" to the sensor data. In addition to the above-mentioned positive and negative labels, the label selection of this embodiment may assign an unknown label indicating that the cause of the abnormality is unknown to the sensor data. The sensor data to which the unknown label is assigned may not be used for training the training model 422 described later, or may be used for training by replacing the unknown label with a positive label as described later.
[0046] <Specific examples of training department processing> Next, a specific example of the processing of the training unit 122 will be described. Fig. 4 is a first diagram showing a specific example of the processing of the training unit. As shown in Fig. 4, the training unit 122 has a positive label generation unit 421, a training model 422, and a comparison / update unit 423.
[0047] The positive label generation unit 421 reads the training dataset 310 from the training data storage unit 124 , and generates an extended training dataset 410 based on the training dataset 310 .
[0048] Specifically, the positive label generating unit 421 extracts negative labels from the "labels" included in the training data set 310 and changes them to positive labels. That is, the positive label generating unit 421 reassigns one or more corresponding positive labels to the training data to which a negative label has been assigned, instead of the negative label. For example, when "not abnormal X" assigned to "waveform data 3a" is extracted as a negative label, the positive label generating unit 421 generates "abnormal Y" and "abnormal Z" as positive labels and assigns them to "waveform data 3a". When "not abnormal Y" assigned to "waveform data na" is extracted as a negative label, the positive label generating unit 421 generates "abnormal X" and "abnormal Z" as positive labels and assigns them to "waveform data na". The positive label generating unit 421 may also extract unknown labels from the "labels" included in the training data set 310 and change them to positive labels. That is, the positive label generating unit 421 may reassign each positive label to the training data to which an unknown label was assigned, instead of the unknown label. For example, the positive label generating unit 421 may generate positive labels such as "abnormal X", "abnormal Y", and "abnormal Z" and assign them to the waveform data to which an unknown label was assigned.
[0049] This allows all of the "labels" contained in the extended training dataset 410 to be changed to positive labels.
[0050] In addition, the positive label generation unit 421 inputs the time-series sensor data stored in “data” from the generated extended training dataset 410 to the training model 422, and inputs the positive labels stored in “label” to the comparison / update unit 423.
[0051] The training model 422 is configured by, for example, a Convolutional Neural Network (CNN), and executes processing using time-series sensor data as input, and outputs output data. In this embodiment, the output data output by the training model 422 is the probability of anomaly X, the probability of anomaly Y, and the probability of anomaly Z.
[0052] The comparison / update unit 423 compares the output data output from the training model 422 with the positive labels stored in the "label" field of the extended training dataset 410, and calculates an error. The comparison / update unit 423 also updates the model parameters of the training model 422 based on the calculated error.
[0053] In addition, the comparison / update unit 423 updates the model parameters of the training model 422 so that, for example, the probability of abnormality X in the output data output from the training model 422 in response to the input of “waveform data 1a” approaches 1.0.
[0054] Similarly, the comparison / update unit 423 updates the model parameters of the training model 422 so that, for example, the probability of abnormality Y in the output data output from the training model 422 in response to the input of “waveform data 2a” approaches 1.0.
[0055] In addition, in the comparison / update unit 423, for example, among the output data output from the training model 422 in response to the input of the “waveform data 3a”, After updating the model parameters of the training model 422 so that the probability of anomaly Y approaches 1.0, Update the model parameters of the training model 422 so that the probability of anomaly Z approaches 1.0.
[0056] Similarly, in the comparison / update unit 423, for example, in response to the input of “waveform data na”, among the output data output from the training model 422, After updating the model parameters of the training model 422 so that the probability of anomaly X approaches 1.0, Update the model parameters of the training model 422 so that the probability of anomaly Z approaches 1.0.
[0057] However, the method of updating the model parameters by the comparison / update unit 423 is not limited to this. For example, in the case of "waveform data 3a", the comparison / update unit 423 may update the model parameters of the training model 422 so that the probability of abnormality Y and the probability of abnormality Z in the output data output from the training model 422 approach 0.5, respectively.
[0058] Similarly, in the case of “waveform data na”, the comparison / update unit 423 may update the model parameters of the training model 422 so that the probability of abnormality X and the probability of abnormality Z in the output data output from the training model 422 each approach 0.5.
[0059] <Specific example of inference processing> Next, a description will be given of a specific example of the processing of the inference unit 131. Fig. 5 is a first diagram showing a specific example of the processing of the inference unit 131. As shown in Fig. 5, the inference unit 131 has a trained model 521 and an output unit 522.
[0060] The trained model 521 is a model generated in the training phase by the training unit 122 training the training model 422 using the extended training data set 410. The inference unit 131 reads out the time-series sensor data stored in the time-series data storage unit 132 and inputs the data as inference data 510 to the trained model 521, whereby the trained model 521 infers the cause of anomaly.
[0061] 5, inference data 510 includes at least an "identifier" and "data" as information items. An identifier for identifying time-series sensor data that is the subject of inference of the cause of an abnormality is stored in the "identifier". Furthermore, the time-series sensor data that is the subject of inference of the cause of an abnormality is stored in the "data".
[0062] The example in Figure 5 shows that the inference unit 131 sequentially inputs "waveform data 1b," "waveform data 2b," "waveform data 3b," ... "waveform data nb" included in the "data" of the inference data 510 into the trained model 521.
[0063] The output unit 522 outputs the anomaly cause inference result output from the trained model 521 as inference result data 530. As shown in Fig. 5, in the inference result data 530, "anomaly cause inference result" is added to the information item of the inference data 510, and the anomaly cause inference result output from the output unit 522 is stored.
[0064] The example of Fig. 5 shows how the cause of the abnormality in "waveform data 1b" is inferred to be "abnormality X," the cause of the abnormality in "waveform data 2b" is inferred to be "abnormality Y," and the cause of the abnormality in "waveform data 3b" is inferred to be "abnormality Y." The example of Fig. 5 also shows how the cause of the abnormality in "waveform data nb" is inferred to be "abnormality Z."
[0065] <Flow of abnormality cause inference process> Next, a description will be given of the flow of an anomaly cause inference process by the anomaly cause inference systems 100A and 100B. Fig. 6 is a first flowchart showing the flow of an anomaly cause inference process, in which steps S601 to S606 are executed in the training phase, and steps S607 to S610 are executed in the inference phase.
[0066] In step S601, the training apparatus 120 acquires time-series sensor data for a predetermined time range measured from the machine tool 110 when an abnormality occurs.
[0067] In step S602, the training device 120 assigns a label indicating the cause of anomaly to the acquired time-series sensor data, and generates a training data set.
[0068] In step S603, the training device 120 changes negative labels to positive labels in the generated training data set to generate an extended training data set.
[0069] In step S604, the training device 120 trains the training model using the generated extended training data set.
[0070] In step S605, the training device 120 determines whether or not the end condition of the training process is satisfied. If it is determined in step S605 that the end condition of the training process is not satisfied (NO in step S605), the training device 120 returns to step S604 and continues the training process.
[0071] On the other hand, if it is determined in step S605 that the end condition for the training process is met (YES in step S605), the process proceeds to step S606.
[0072] In step S606, the training device 120 transmits the generated trained model to the reasoning device 130.
[0073] Next, in step S607, the inference device 130 acquires time-series sensor data of the inference target from the machine tool 110.
[0074] In step S608, the inference device 130 infers the cause of the abnormality by inputting the acquired time-series sensor data as inference data into the trained model.
[0075] In step S609, the inference device 130 outputs the anomaly cause inference result.
[0076] In step S610, inference device 130 determines whether or not to end the inference process, and if it is determined that the inference process is to be continued (NO in step S610), the process returns to step S607.
[0077] On the other hand, if it is determined in step S610 that the inference process is to be ended (YES in step S610), the anomaly cause inference process is ended.
[0078] <Summary> As is clear from the above description, the training device 120 according to the first embodiment has the following features: When an abnormality occurs, time-series sensor data measured in the machine tool 110 to be monitored is acquired. If the cause of the anomaly has been identified for the acquired time-series sensor data, a positive label indicating the cause of the anomaly is assigned; if the cause of the anomaly has not been identified, a negative label indicating that it is not one of the anomaly causes already identified is assigned. For time-series sensor data that has been labeled negatively, change it to a positive label and then train the training model.
[0079] As a result, the training device 120 according to the first embodiment makes it possible to train on time-series sensor data for which the cause of an abnormality is unknown.
[0080] Moreover, the inference device 130 according to the first embodiment · New time-series sensor data is input to a pre-trained model that has been trained by changing negatively labeled time-series sensor data to positive labels, and the model outputs the anomaly cause inference results.
[0081] As a result, according to the inference device 130 of the first embodiment, even when time-series sensor data is input when an abnormality occurs that did not occur during training, it is possible to accurately infer the cause of the abnormality.
[0082] That is, according to the first embodiment, it is possible to improve the accuracy of inferring the cause of anomaly.
[0083] [Second embodiment] In the above first embodiment, a case has been described in which a negative label included in the training data set 310 is changed to a plurality of positive labels, and a training model is trained so that the probability of each positive label when time-series sensor data is input is an appropriate value. In contrast, in the second embodiment, a training model is trained so that the probability of each label (positive label, negative label) included in the training data set 310 is an appropriate value. The second embodiment will be described below, focusing on the differences from the above first embodiment.
[0084] <Specific examples of training department processing> First, a specific example of the processing of the training unit 122 of the training device 120 according to the second embodiment will be described. The training unit 122 of the training device 120 according to the second embodiment performs processing separately for a case where a training model is trained based on positive labels included in the training data set 310 and a case where a training model is trained based on negative labels included in the training data set 310.
[0085] 7 is a second diagram showing a specific example of the processing of the training unit, and is a diagram showing a specific example of the processing when training a training model based on positive labels included in the training dataset 310. As shown in FIG. 7, the training unit 122 has a classification unit 721, a training model 722, and a comparison / update unit 723.
[0086] The classification unit 721 reads out the training data set 310 from the training data storage unit 124 and generates a positive training data set 710 based on the training data set 310 that has been read out.
[0087] Specifically, the classification unit 721 extracts positive labels from among the "labels" included in the training dataset 310, and stores them together with the corresponding "identifier" and "data" in the positive training dataset 710. The example in Fig. 7 shows how "abnormal X" assigned to "waveform data 1a" and "abnormal Y" assigned to "waveform data 2a" are extracted as positive labels and stored in the positive training dataset 710.
[0088] In addition, the classification unit 721 inputs the time-series sensor data stored in “data” from the generated positive training dataset 710 to the training model 722 and the comparison / update unit 723, and also inputs the positive labels stored in “label” to the comparison / update unit 723.
[0089] The training model 722 is configured by, for example, an autoencoder. The training model 722 calculates a latent variable (z) by executing processing using time-series sensor data as input, and based on the calculated latent variable, The restored time series sensor data (z→x') and The probability (z→X,z→Y,z→Z) of each abnormality cause (abnormality X, abnormality Y, abnormality Z) The probability of each anomaly cause (not anomaly X, not anomaly Y, not anomaly Z) (z→NOTX, z→NOTY, z→NOTZ), Output.
[0090] The comparison / update unit 723 compares the output of the training model 722, The restored time series sensor data (z→x') and The time-series sensor data stored in “data” of the positive training dataset 710; The comparison / update unit 723 compares the following output from the training model 722: The probability (z→X,z→Y,z→Z) of each abnormality cause (abnormality X, abnormality Y, abnormality Z) Among the positive training dataset 710, the positive labels stored in “label” and Compare.
[0091] Furthermore, the comparison / update unit 723 calculates an error based on the result of each comparison, and updates the model parameters of the training model 722 based on the calculated error.
[0092] In addition, in the comparison / update unit 723, when, for example, "waveform data 1a" is input, the following is output from the training model 722: The restored time series of sensor data is close to "waveform data 1a", and -The probability of "X being abnormal" approaches 1.0. Update the model parameters of the training model 722.
[0093] Similarly, in the comparison / update unit 723, when, for example, “waveform data 2a” is input, the following is output from the training model 722: The restored time series of sensor data is close to "waveform data 2a", and -The probability of "being abnormal Y" approaches 1.0. Update the model parameters of the training model 722.
[0094] 8 is a third diagram showing a specific example of the processing by the training unit, and is a diagram showing a specific example of the processing when training a training model based on negative labels included in the training dataset 310. As shown in FIG. 8, the training unit 122 has a classification unit 821, a training model 722, and a comparison / update unit 823.
[0095] The classification unit 821 reads the training data set 310 from the training data storage unit 124 and generates a negative training data set 810 based on the training data set 310 that has been read.
[0096] Specifically, the classification unit 821 extracts negative labels from among the "labels" included in the training data set 310, and stores them together with the corresponding "identifier" and "data" in the negative training data set 810. The example in Fig. 8 shows how "not abnormal X" assigned to "waveform data 3a" and "not abnormal Y" assigned to "waveform data na" are extracted as negative labels and stored in the negative training data set 810.
[0097] In addition, the classification unit 821 inputs the time-series sensor data stored in “data” from the generated negative training dataset 810 to the training model 722 and the comparison / update unit 823, and also inputs the negative labels stored in “label” to the comparison / update unit 823.
[0098] The training model 722 is configured by, for example, an autoencoder, as described with reference to Fig. 7. The training model 722 calculates a latent variable (z) by executing processing using time-series sensor data as input, and based on the calculated latent variable, The restored time series sensor data (z→x') and The probability (z→X,z→Y,z→Z) of each abnormality cause (abnormality X, abnormality Y, abnormality Z) The probability of each anomaly cause (not anomaly X, not anomaly Y, not anomaly Z) (z→NOTX, z→NOTY, z→NOTZ), Output.
[0099] The comparison / update unit 823 compares the output of the training model 722, The restored time series sensor data (z→x') and Among the negative training dataset 810, the time-series sensor data stored in "data" and In addition, the comparison / update unit 823 compares The probability (z→NOTX, z→NOTY, z→NOTZ) of each anomaly cause (not anomaly X, not anomaly Y, not anomaly Z) output from the training model 722, The negative labels stored in "label" in the negative training dataset 810, Furthermore, the comparison / update unit 823 calculates an error based on the result of each comparison, and updates the model parameters of the training model 722 based on the calculated error.
[0100] In addition, in the comparison / update unit 823, when, for example, "waveform data 3a" is input, the following is output from the training model 722: The restored time series of sensor data is close to "waveform data 3a", and -The probability of "not being abnormal X" approaches 1.0. Update the model parameters of the training model 722.
[0101] Similarly, in the comparison / update unit 823, when, for example, “waveform data na” is input, the following is output from the training model 722: The restored time series of sensor data is adjusted so that it approaches the "waveform data na", and -The probability of "not being abnormal Y" approaches 1.0. Update the model parameters of the training model 722.
[0102] In the above description, the training data set 310 is divided into a positive training data set 710 and a negative training data set 810, and each data set is used to train the training model 722 in sequence. However, the method of training the training model 722 is not limited to this, and the training model 722 may be trained using the training data set 310 without dividing the training data set into the positive training data set 710 and the negative training data set 810.
[0103] <Specific example of inference processing> Next, a description will be given of a specific example of the processing by the inference unit 131. Fig. 9 is a second diagram showing a specific example of the processing by the inference unit 131. As shown in Fig. 9, the inference unit 131 has a trained model 921 and an output unit 922.
[0104] The trained model 921 is a model generated by the training unit 122 training the training model 722 using the positive training data set 710 and the negative training data set 810 in the training phase. The inference unit 131 reads out the time-series sensor data stored in the time-series data storage unit 132, and inputs it to the trained model 921 as inference data 510. As a result, the trained model 921 outputs the restored time-series sensor data. In addition, the trained model 921 outputs the probability (z→X, z→NOTX, z→Y, z→NOTY, z→Z, z→NOTZ) of each anomaly cause (abnormal X, not abnormal X, abnormal Y, not abnormal Y, abnormal Z, not abnormal Z).
[0105] The output unit 922 outputs the anomaly cause showing the maximum probability among the probabilities of each anomaly cause output by the trained model 921 as an anomaly cause inference result, as inference result data 530.
[0106] The example of Fig. 9 shows how "It is abnormality X" is output as the anomaly cause inference result for "waveform data 1b," "It is abnormality Y" is output as the anomaly cause inference result for "waveform data 2b," and "It is not abnormality X" is output as the anomaly cause inference result for "waveform data 3b." The example of Fig. 9 also shows how "It is not abnormality Y" is output as the anomaly cause inference result for "waveform data nb."
[0107] <Flow of abnormality cause inference process> Next, the flow of the anomaly cause inference process by the anomaly cause inference systems 100A and 100B will be described. Fig. 10 is a second flowchart showing the flow of the anomaly cause inference process. The difference from the first flowchart described using Fig. 6 is steps S1001 to S1003.
[0108] In step S1001, the training device 120 extracts positive labels from the generated training data set to generate a positive training data set.
[0109] In step S1002, the training device 120 extracts negative labels from the generated training data set to generate a negative training data set.
[0110] In step S1003, the training device 120 trains a training model using the generated positive training data set and negative training data set.
[0111] <Summary> As is clear from the above description, the training device 120 according to the second embodiment has the following features: A training dataset including time-series sensor data with positive labels and time-series sensor data with negative labels is read and classified into a positive training dataset and a negative training dataset. A training model is trained that calculates latent variables by inputting the time-series sensor data included in the positive training dataset, restores and outputs the input time-series sensor data from the calculated latent variables, and outputs positive labels. A training model is trained that calculates latent variables by inputting the time-series sensor data included in the negative training dataset, restores and outputs the input time-series sensor data from the calculated latent variables, and outputs a negative label.
[0112] As a result, the training device 120 according to the first embodiment makes it possible to train on time-series sensor data for which the cause of an abnormality is unknown.
[0113] Moreover, the inference device 130 according to the second embodiment New time-series sensor data is input to a trained model that has been trained using a positive training dataset and a negative training dataset, and the anomaly cause inference result is output.
[0114] As a result, according to the inference device 130 of the second embodiment, even when time-series sensor data is input when an abnormality occurs that did not occur during training, it is possible to accurately infer the cause of the abnormality.
[0115] That is, according to the second embodiment, it is possible to improve the accuracy of inferring the cause of anomaly.
[0116] [Third embodiment] In the first and second embodiments, the anomaly cause inference result is output based on the probability of each anomaly cause output from the trained model. In contrast, in the third embodiment, a latent variable is extracted from the trained model, and an anomaly cause latent variable is determined to be similar to the latent variable of which anomaly cause, thereby outputting the anomaly cause inference result. The third embodiment will be described below, focusing on the differences from the first and second embodiments. Note that the sensor data to which the unknown label is assigned may not be used for training the training model 1122, but may be used for training by including it in each partial training data set as described later. The way in which the sensor data to which the unknown label is assigned is used for training the training model 1122 may be selected according to the purpose.
[0117] <Specific examples of training department processing> First, a specific example of the processing of the training unit 122 of the training device 120 according to the third embodiment will be described. Fig. 11 is a fourth diagram showing a specific example of the processing of the training unit. As shown in Fig. 11, the training unit 122 has a partial label generation unit 1121, a training model 1122, a similarity function calculation unit 1123, and a comparison / update unit 1124.
[0118] The partial label generation unit 1121 extracts time-series sensor data to which a positive label indicating the same abnormality cause is assigned from among the "labels" included in the training data set 310, and generates partial training data sets 1110_1 to 1110_3. Details of the partial training data sets 1110_1 to 1110_3 will be described later with reference to FIG.
[0119] Moreover, the partial label generation unit 1121 extracts pairs of time-series sensor data stored in "data" from the generated partial training data set, and sequentially inputs them to the training model 1122 and also sequentially inputs them to the comparison / update unit 1124. Moreover, the partial label generation unit 1121 inputs positive labels stored in "label" from the generated partial training data set to the comparison / update unit 1124. Note that in the example of FIG. 11, one of the pairs of extracted time-series sensor data from the time-series sensor data stored in "data" of the partial training data set is represented as x_i and the other as x_j.
[0120] When the time-series sensor data x_i and the time-series sensor data x_j are input in sequence, the training model 1122 calculates pairs of latent variables (x_i→z_i) and latent variables (x_j→z_j). When the time-series sensor data x_i and the time-series sensor data x_j are input in sequence, the training model 1122 outputs restored time-series sensor data (z_i→x'_i) and restored time-series sensor data (z_j→x'_j) in sequence.
[0121] The similarity function calculation unit 1123 extracts pairs of latent variables (x_i→z_i) and latent variables (x_j→z_j) from the training model 1122, and calculates the similarity. The similarity in this embodiment is designed to approach 1 as the two latent variables (vectors) become more similar, and to approach 0 as the two latent variables become more dissimilar, but it should be noted that this is just an example. The similarity function calculation unit 1123 also outputs the calculated similarity to the comparison / update unit 1124.
[0122] If the labels indicating the anomaly causes stored in the "label" of the partial training data set are the same, the comparison / update unit 1124 recognizes the similarity as "1" as correct answer data. Furthermore, the comparison / update unit 1124 compares the similarity output from the similarity function calculation unit 1123 with the similarity of the correct answer data.
[0123] In addition, the comparison / update unit 1124 The restored time series sensor data (z_i→x'_i) and the restored time series sensor data (z_j→x'_j) output from the training model 1122, -A pair of time-series sensor data stored in "data" from the partial training dataset, Furthermore, the comparison / update unit 1124 calculates an error based on the result of each comparison, and updates the model parameters of the training model 1122 based on the calculated error.
[0124] In addition, in the comparison / update unit 1124, for example, "waveform data 1a" and "waveform data 5a" are input in sequence, and are output in sequence from the training model 1122. ·The similarity between latent variable (x_i → z_i) and latent variable (x_j → z_j) is close to "1", and The restored time series sensor data (z_i → x'_i) and the restored time series sensor data (z_j → x'_j) are made to approach the original "waveform data 1a" and "waveform data 5a", respectively. The model parameters of the training model 1122 are updated.
[0125] Fig. 12 is a first diagram showing an example of partial training data sets. The example of Fig. 12 shows how partial training data sets 1110_1 to 1110_3 (examples of first partial training data sets) are generated by the partial label generation unit 1121.
[0126] Among these, the partial training data set 1110_1 indicates a partial training data set generated by extracting time-series sensor data that is a positive label and is assigned the label "abnormal X". This partial training data set 1110_1 may include sensor data that is assigned an unknown label.
[0127] Similarly, the partial training data set 1110_2 indicates a partial training data set generated by extracting time-series sensor data that is a positive label and is assigned the label "abnormal Y." This partial training data set 1110_2 may include sensor data that is assigned an unknown label.
[0128] Similarly, the partial training data set 1110_3 indicates a partial training data set generated by extracting time-series sensor data that is a positive label and is assigned the label "abnormal Z". This partial training data set 1110_3 may include sensor data that is assigned an unknown label.
[0129] 13 is a fifth diagram showing a specific example of the processing of the training unit 122. As shown in FIG. 13, the training unit 122 includes a partial label generation unit 1321, a training model 1122, a similarity function calculation unit 1123, and a comparison / update unit 1124.
[0130] The partial label generation unit 1321 extracts pairs of time-series sensor data to which labels indicating different abnormality causes are assigned from among the "labels" included in the training data set 310, and generates partial training data sets 1310_1 to 1310_6. Details of the partial training data sets 1310_1 to 1310_6 will be described later with reference to FIG.
[0131] Furthermore, the partial label generation unit 1321 sequentially inputs pairs of time-series sensor data (x_i, x_j) stored in "data" of the generated partial training data set to the training model 1122, and also sequentially inputs them to the comparison / update unit 1124. Furthermore, the partial label generation unit 1321 inputs labels indicating the causes of anomalies stored in "label" of the generated partial training data set to the comparison / update unit 1124.
[0132] When the time-series sensor data x_i and the time-series sensor data x_j are input in sequence, the training model 1122 calculates pairs of latent variables (x_i→z_i) and latent variables (x_j→z_j). When the time-series sensor data x_i and the time-series sensor data x_j are input in sequence, the training model 1122 outputs restored time-series sensor data (z_i→x'_i) and restored time-series sensor data (z_j→x'_j) in sequence.
[0133] The similarity function calculation unit 1123 extracts pairs of latent variables (x_i → z_i) and latent variables (x_j → z_j) from the training model 1122, and calculates the similarity. The similarity function calculation unit 1123 also outputs the calculated similarity to the comparison / update unit 1124.
[0134] If the labels indicating the anomaly causes stored in the "label" of the partial training data set are different, the comparison / update unit 1124 recognizes the similarity as "0" as correct answer data. In addition, the comparison / update unit 1124 compares the similarity output from the similarity function calculation unit 1123 with the similarity of the correct answer data.
[0135] In addition, the comparison / update unit 1124 The restored time series sensor data (z_i→x'_i) and the restored time series sensor data (z_j→x'_j) output from the training model 1122, Among the partial training datasets, the time series sensor data pairs stored in "data" and Furthermore, the comparison / update unit 1124 calculates an error based on the result of each comparison, and updates the model parameters of the training model 1122 based on the calculated error.
[0136] In addition, in the comparison / update unit 1124, for example, "waveform data 1a" and "waveform data 3a" are input in sequence, and are output in sequence from the training model 1122. ·The similarity between latent variable (x_i → z_i) and latent variable (x_j → z_j) approaches "0", and The restored time series sensor data (z_i → x'_i) and the restored time series sensor data (z_j → x'_j) are made to approach the original "waveform data 1a" and "waveform data 3a", respectively. The model parameters of the training model 1122 are updated.
[0137] Fig. 14 is a second diagram showing an example of the partial training data set. The example of Fig. 14 shows how the partial training data sets 1310_1 to 1310_6 (examples of the second partial training data set) are generated by the partial label generation unit 1321.
[0138] Among these, the partial training data set 1310_1 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "X is abnormal" and a negative label = "X is not abnormal" are respectively assigned. This partial training data set 1310_1 may include sensor data to which an unknown label is assigned.
[0139] Similarly, the partial training data set 1310_2 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "abnormal Y" and a negative label = "not abnormal Y" are respectively assigned. This partial training data set 1310_2 may include sensor data to which an unknown label is assigned.
[0140] Similarly, the partial training data set 1310_3 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "Abnormal Z" and a negative label = "Not abnormal Z" are respectively assigned. This partial training data set 1310_3 may include sensor data to which an unknown label is assigned.
[0141] Similarly, the partial training data set 1310_4 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "X is abnormal" and a positive label = "Y is abnormal" are respectively assigned. This partial training data set 1310_4 may include sensor data to which an unknown label is assigned.
[0142] Similarly, the partial training data set 1310_5 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "abnormal X" and a positive label = "abnormal Z" are respectively assigned. This partial training data set 1310_5 may include sensor data to which an unknown label is assigned.
[0143] Similarly, the partial training data set 1310_6 indicates a partial training data set generated by extracting a pair of time-series sensor data to which a positive label = "abnormal Y" and a positive label = "abnormal Z" are respectively assigned. This partial training data set 1310_6 may include sensor data to which an unknown label is assigned.
[0144] In the example of FIG. 14, due to space limitations, three pairs of time-series sensor data are shown, but it goes without saying that the number of pairs of time-series sensor data may be three or more.
[0145] <Example of comparison / update section> Next, a detailed description will be given of the comparison / update unit 1124 included in the training unit 122 in Fig. 11 and Fig. 13. As described in Fig. 11 and Fig. 13, the training unit 122 compares the similarity output from the similarity function calculation unit 1123 with the correct answer data recognized based on the "label" of the partial training data set.
[0146] Here, the comparison / update unit 1124 reduces the similarity output from the similarity function calculation unit 1123 to a binary classification problem of whether it is high (1) or low (0), and applies the binary cross-entropy used in binary classification as the loss function.
[0147] If the similarity between the latent variable (x_i → z_i) and the latent variable (x_j → z_j) output from the training model 1122 is sigmoid(t) (t is η-|z_i-z_j|, η is a constant such as 2.0), and the correct data is y_ij ("1" if the causes of anomalies are the same, and "0" if the causes of anomalies are different), the loss function in this embodiment can be expressed by the following equation 1. (Formula 1) Loss function = -(y_ij × log(sigmoid(t)) + (1-y_ij) × log(sigmoid(-t))) Note that log(sigmoid(x)) is a function defined by log(1 / (1+exp(-x))) as shown in FIG. 15. FIG. 15 is a diagram showing an example of a function used in the comparison / update unit, with the horizontal axis representing the input (x) and the vertical axis representing the output (log(sigmoid(x))). Note that the above formula 1 is an example of a loss function. The loss function may be designed to have a small value when the latent variables z_i and z_j of the sensor data x_i and x_j that should be classified into the same abnormality cause are similar and a large value when they are different, and to have a large value when the latent variables z_i and z_j of the sensor data x_i and x_j that should be classified into different abnormality causes are similar and a small value when they are different.
[0148] <Specific example of inference processing> Next, a specific example of the process of the inference unit 131 of the inference device 130 according to the third embodiment will be described. Fig. 16 is a third diagram showing a specific example of the process of the inference unit. As shown in Fig. 16, the inference unit 131 has a trained model 1621 and a determination unit 1622.
[0149] The trained model 1621 is a model generated by the training unit 122 executing processing using the partial training data sets 1110_1 to 1110_3 and 1310_1 to 1310_6. The inference unit 131 reads out the time-series sensor data stored in the time-series data storage unit 132 and inputs it to the trained model 1621 as inference data 510, whereby the trained model 1621 calculates a latent variable (x→z).
[0150] The determination unit 1622 determines at which position in the latent space 1610 the latent variable (x→z) extracted from the trained model 1621 is plotted. In the latent space 1610, latent variables of the time-series sensor data in which the cause of anomaly has been identified are distributed, and the determination unit 1622 determines which of the causes of anomaly is distributed closest to the plotted position, thereby determining the cause of anomaly. The determination unit 1622 also outputs the identified cause of anomaly as an anomaly cause inference result.
[0151] The method of identifying the cause of the abnormality by the determination unit 1622 is arbitrary. For example, the training data set 310 may be input in advance to the trained model 1621 to plot latent variables (x→z) in the latent space 1610 and perform clustering for each cause of the abnormality. The determination unit 1622 may then identify the cause of the abnormality by determining into which class the latent variable (x→z) extracted by inputting the inference data 510 to the trained model 1621 is classified.
[0152] <Flow of abnormality cause inference process> Next, the flow of the anomaly cause inference process by the anomaly cause inference systems 100A and 100B will be described. Fig. 17 is a third flowchart showing the flow of the anomaly cause inference process. The differences from the first flowchart described using Fig. 6 are steps S1701 to S1703 and S1704 to S1705.
[0153] In step S1701, the training device 120 extracts, from the generated training data set, time-series sensor data to which labels indicating the same anomaly cause are assigned or time-series sensor data to which labels indicating different anomaly causes are assigned. The training device 120 also generates a partial training data set based on the extracted time-series sensor data.
[0154] In step S1702, the training device 120 uses the generated partial training data set to train the training model so that the similarity of the latent variables approaches a predetermined similarity and so that the restored time series of sensor data approaches the input time series of sensor data.
[0155] In step S1703, the training device 120 determines whether or not the end condition of the training process is satisfied. If it is determined in step S1703 that the end condition of the training process is not satisfied (NO in step S1703), the training device 120 returns to step S1702 and continues the training process.
[0156] On the other hand, if it is determined in step S1703 that the end condition for the training process is met (YES in step S1703), the process proceeds to step S606.
[0157] In step S1704, the inference device 130 inputs the acquired time-series sensor data as inference data into the trained model, thereby calculating latent variables.
[0158] In step S1705, inference device 130 identifies the cause of the anomaly according to the position in the latent space where the calculated latent variable is plotted.
[0159] <Summary> As is clear from the above description, the training device 120 according to the third embodiment has the following features: The training dataset is read, and a partial training dataset is generated that includes time series data labeled with the same anomaly cause and time series data labeled with different anomaly causes. A pair of latent variables is calculated by inputting the time-series sensor data included in the partial training dataset, and a training model is trained so that the similarity between the calculated pairs of latent variables approaches the ground truth data corresponding to the partial training dataset.
[0160] As a result, the training device 120 according to the first embodiment makes it possible to train on time-series sensor data for which the cause of an abnormality is unknown.
[0161] Moreover, the inference device 130 according to the third embodiment New time-series sensor data is input to a pre-trained model that has been trained using a partial training dataset, and latent variables are calculated. The cause of the anomaly is identified based on where the calculated latent variable is plotted in the latent space.
[0162] As a result, according to the inference device 130 of the third embodiment, even when time-series sensor data is input when an abnormality occurs that did not occur during training, it is possible to accurately infer the cause of the abnormality.
[0163] That is, according to the third embodiment, it is possible to improve the accuracy of inferring the cause of anomaly.
[0164] [Other embodiments] In this specification (including the claims), when the expression "at least one of a, b, and c" or "at least one of a, b, or c" (including similar expressions) is used, it includes any of a, b, c, ab, ac, bc, or abc. It may also include multiple instances of any element, such as aa, abb, aabbcc, etc. Furthermore, it also includes the addition of elements other than the enumerated elements (a, b, and c), such as having d, as in abcd.
[0165] In addition, in this specification (including claims), when expressions such as "data as input / based on / according to / in response to" (including similar expressions) are used, unless otherwise specified, it includes cases where various data itself is used as input, and cases where various data that have been processed in some way (e.g., noise-added, normalized, intermediate representation of various data, etc.) are used as input. In addition, when it is stated that a result is obtained "based on / according to / in response to data," it includes cases where the result is obtained based only on the data, and may also include cases where the result is obtained by being influenced by other data, causes, conditions, and / or states other than the data. In addition, when it is stated that "data is output," it includes cases where various data itself is used as output, and cases where various data that have been processed in some way (e.g., noise-added, normalized, intermediate representation of various data, etc.) are output.
[0166] In addition, when the terms "connected" and "coupled" are used in this specification (including the claims), they are intended as open-ended terms including any of direct connection / coupling, indirect connection / coupling, electrically connection / coupling, communicatively connection / coupling, functionally connection / coupling, physically connection / coupling, etc. The terms should be interpreted appropriately depending on the context in which the terms are used, but any connection / coupling form that is not intentionally or naturally excluded should be interpreted as being included in the terms without any restriction.
[0167] In addition, in this specification (including claims), when the expression "A configured to B" is used, it may include that the physical structure of element A has a configuration capable of performing operation B, and the permanent or temporary setting / configuration of element A is configured / set to actually perform operation B. For example, when element A is a general-purpose processor, it is sufficient that the processor has a hardware configuration capable of performing operation B, and is configured to actually perform operation B by setting a permanent or temporary program (instruction). In addition, when element A is a dedicated processor or dedicated arithmetic circuit, it is sufficient that the circuit structure of the processor is implemented to actually perform operation B, regardless of whether control instructions and data are actually attached.
[0168] In addition, when terms implying inclusion or possession (such as "comprising / including" and "having") are used in this specification (including the claims), they are intended to be open-ended terms that include cases in which something other than the object indicated by the object of the term is contained or possessed. When the object of such terms implying inclusion or possession is an expression that does not specify a quantity or suggests a singular number (an expression using the article "a" or "an"), the expression should be construed as not being limited to a specific number.
[0169] In addition, even if expressions such as "one or more" or "at least one" are used in some places in this specification (including the claims) and expressions that do not specify a quantity or suggest a singular number (expressions using the articles "a" or "an") are used in other places, the latter expressions are not intended to mean "one." In general, expressions that do not specify a quantity or suggest a singular number (expressions using the articles "a" or "an") should be interpreted as not necessarily being limited to a specific number.
[0170] In addition, when a particular advantage / result is described in this specification for a particular configuration of an embodiment, it should be understood that the same effect can also be obtained for one or more other embodiments having the same configuration, unless there is a specific reason to the contrary. However, it should be understood that the presence or absence of the effect generally depends on various causes, conditions, and / or states, and that the effect is not necessarily obtained by the configuration. The effect is merely obtained by the configuration described in the embodiment when various causes, conditions, and / or states are satisfied, and the effect is not necessarily obtained in the invention according to the claim that specifies the configuration or a similar configuration.
[0171] In addition, in this specification (including claims), when a plurality of pieces of hardware perform a predetermined process, each piece of hardware may cooperate to perform the predetermined process, or a portion of the hardware may perform all of the predetermined process. Also, a portion of the hardware may perform a portion of the predetermined process, and another piece of hardware may perform the remainder of the predetermined process. In this specification (including claims), when an expression such as "one or more pieces of hardware perform a first process, and the one or more pieces of hardware perform a second process" is used, the hardware performing the first process and the hardware performing the second process may be the same or different. In other words, it is sufficient that the hardware performing the first process and the hardware performing the second process are included in the one or more pieces of hardware. The hardware may include an electronic circuit, or a device including an electronic circuit.
[0172] Furthermore, in this specification (including the claims), when multiple storage devices (memories) store data, each of the multiple storage devices (memories) may store only a portion of the data, or may store the entire data.
[0173] Although the embodiments of the present disclosure have been described in detail above, the present disclosure is not limited to the above-mentioned individual embodiments. Various additions, modifications, replacements, partial deletions, etc. are possible within the scope of the conceptual idea and intent of the present invention derived from the contents defined in the claims and their equivalents. For example, the numerical values used in the explanations in all the above-mentioned embodiments are shown as examples and are not limited to these. In addition, the order of each operation in the embodiments is shown as an example and is not limited to these.
Claims
1. At least one memory; At least one processor; The at least one processor is configured to be able to assign a positive label indicating that the cause of the abnormality is a specific cause to data measured in the device when the abnormality occurs, and to assign a negative label indicating that the cause of the abnormality is not the specific cause. Data processing device.
2. The data processing apparatus according to claim 1 , wherein the data to which the labels including the positive labels or the negative labels have been assigned are used as a training dataset for training a training model.
3. The at least one processor further comprises: In the generated training data set, changing negative labels to positive labels, and training a training model using the training data set including data to which the changed positive labels have been assigned; The data processing apparatus according to claim 2 , configured to execute the following:
4. The at least one processor further comprises: Classifying the generated training data set into a positive training data set consisting of data assigned with a positive label and a negative training data set consisting of data assigned with a negative label; training a training model by inputting data included in the positive training data set to output positive labels, and training a training model by inputting data included in the negative training data set to output negative labels; The data processing device according to claim 2 or 3, configured to be able to execute the following:
5. 5. The data processing device according to claim 4, wherein a training model is trained such that input data is restored from latent variables calculated by inputting data included in the positive training dataset and a positive label is output, and a training model is trained such that input data is restored from latent variables calculated by inputting data included in the negative training dataset and a negative label is output.
6. The at least one processor further comprises: In the generated training data set, a first partial training data set is generated which is composed of pairs of data to which positive labels having the same cause of anomaly are assigned, and a second partial training data set is generated which is composed of pairs of data to which positive labels having different causes of anomaly are assigned, or pairs of data to which positive labels and negative labels having different causes of anomaly are assigned, training a training model such that, when data included in the first partial training data set is input, the input data is restored and the similarity of the calculated latent variables is increased, and training a training model such that, when data included in the second partial training data set is input, the input data is restored and the similarity of the calculated latent variables is decreased; The data processing apparatus according to claim 2 , configured to execute the following:
7. The data processing apparatus according to claim 1 , wherein the at least one processor automatically generates a negative label indicating that a cause of the anomaly is not the specific cause based on the positive label indicating that a cause of the anomaly is the specific cause.
8. At least one processor, A program for enabling the execution of either assigning a positive label to data measured in an apparatus when an abnormality occurs, indicating that the cause of the abnormality is a specific cause, or assigning a negative label to indicate that the cause of the abnormality is not the specific cause.
9. The program according to claim 8 , wherein the data to which the labels including the positive labels or the negative labels have been assigned is used as a training dataset for training a training model.
10. At least one memory; At least one processor; The at least one processor inputting data to be inferred into a trained model trained using a training dataset in which data measured in a monitored device when an anomaly occurs, the data being assigned a positive label indicating the cause of the anomaly to data for which the cause of the anomaly has been identified, and a negative label indicating that the cause of the anomaly is not the specific cause to data for which the cause of the anomaly has been identified is assigned; A cause of an anomaly in the data to be inferred is inferred based on the data output from the trained model. Data processing device.
Citation Information
Patent Citations
Radio wave investigation system
JP2020141395A
