Normal model generation program, normal model generation device, and normal model generation method

Generating pattern data based on normal cycle intervals through pattern segmentation and cycle determination, and using Gaussian process regression to generate normal models, solves the problem of high computing load caused by abnormal data in the existing technology, and improves the efficiency and accuracy of anomaly detection.

CN118575189APending Publication Date: 2024-08-30MITSUBISHI ELECTRIC CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202280086916.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-06-27
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

When the existing technology learns a normal model, there is a problem of excessive computational load due to the existence of abnormal data, especially when the main body of the job has multiple modes.

Method used

Through pattern segmentation and cycle determination, pattern data based on normal cycle intervals is generated, reducing the normal model learning calculation load for each pattern, and using Gaussian process regression to generate a normal model.

Benefits of technology

It effectively reduces the normal model learning calculation load of each mode and improves the efficiency and accuracy of anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118575189A
    Figure CN118575189A
Patent Text Reader

Abstract

A normal model generation program causes a computer to function as a pattern division unit (12), a loop division unit (13), a loop determination unit (14), and a normal model generation unit (15), the computer acquiring time-series sensor data generated by detecting the state of a work subject by a sensor; in the present invention, a job subject that performs a job having a series of a plurality of patterns that are repeatedly executed is provided, a pattern division unit (12) generates pattern data obtained by pattern division of sensor data, a loop division unit (13) generates loop data indicating a loop interval on the basis of the pattern data, and a loop determination unit (14) determines a loop interval based on the loop data and the pattern data. A normal model generation unit (15) determines a normal cycle interval, and generates a normal model for each of the plurality of patterns on the basis of pattern data included in the normal cycle interval.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a normal model generation program, a normal model generation device and a normal model generation method. Background Art

[0002] Among the methods for detecting abnormalities of working subjects such as equipment, operators, and working robots, there is a method that compares the time-series sensor data that detects the state of the working subject with the normal sensor data collected when the working subject is normal. For example, Patent Document 1 discloses a device that divides sensor data output by a device having multiple modes distinguished by operating states according to each mode based on an event signal from the device, and detects abnormalities by comparing with a normal model, which is obtained by learning using data selected for each mode. In the following, segmentation according to each mode is referred to as mode segmentation.

[0003] Patent Document 1: Japanese Patent Application Publication No. 2015-172945 Summary of the invention

[0004] In the technology described in Patent Document 1, when learning the normal model, if the learning data includes abnormal data, normal data is selected for each pattern by comparing feature vectors of each pattern, which results in a large calculation load.

[0005] The present invention is proposed in view of the above-mentioned problems, and its purpose is to pattern-segment the time-series sensor data that detects the state of an operation subject that performs operations with multiple modes, thereby reducing the computational load of learning a normal model for each mode.

[0006] In order to achieve the above-mentioned purpose, the normal model generation program of the present invention enables a computer to function as a pattern segmentation unit, a loop segmentation unit, a loop determination unit, and a normal model generation unit, and the computer obtains time-series sensor data generated by detecting the state of a work subject using a sensor, and the work subject performs a repeatedly executed work with a series of multiple patterns. The pattern segmentation unit generates pattern data obtained by pattern segmentation of the sensor data. The loop segmentation unit generates loop data representing a loop interval in which a series of multiple patterns repeatedly appear based on the pattern data. The loop determination unit determines a normal loop interval based on the loop data and the pattern data. The normal model generation unit generates normal models for each of the multiple patterns based on the pattern data contained in the normal loop interval.

[0007] Effects of the Invention

[0008] According to the present invention, the time-series sensor data for detecting the state of the operation subject is pattern-segmented, and a normal model is generated based on the pattern data contained in the normal cycle interval, thereby reducing the computational load of learning the normal model for each pattern. The operation subject performs operations with multiple patterns. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] Figure 1 It is a block diagram showing an example of a functional structure of a normal model generation device according to an embodiment.

[0010] Figure 2 This is a diagram showing an example of sensor data according to the embodiment.

[0011] Figure 3 This is a diagram showing an example of pattern data generated when no normal model is stored according to the embodiment.

[0012] Figure 4 This is a diagram showing an example of pattern data generated when a normal model is stored according to the embodiment.

[0013] Figure 5 This is a diagram showing an example of loop data according to the embodiment.

[0014] Figure 6 It is a diagram showing an example of determination result data according to the embodiment.

[0015] Figure 7 This is a diagram showing an example of a template included in a normal model according to an embodiment.

[0016] Figure 8 This is a diagram showing an example of threshold values ​​included in the normal model according to the embodiment.

[0017] Fig. 9 This is a diagram showing an example of abnormality detection result data according to the embodiment.

[0018] Fig.10 : is a flowchart showing the learning process involved in the embodiment.

[0019] Fig.11 This is a flowchart showing an abnormality detection process according to an embodiment of the present invention.

[0020] Fig.12 It is a diagram showing an example of the hardware configuration of the normal model generation device according to the embodiment.

[0021] Fig.13A It is a block diagram showing a functional configuration example of a learning device according to a modification example.

[0022] Fig. 13B It is a block diagram showing a functional configuration example of an abnormality detection device according to a modification example. DETAILED DESCRIPTION

[0023] Below, the normal model generation program, normal model generation device and normal model generation method involved in the present embodiment are described in detail with reference to the accompanying drawings. In addition, the same reference numerals are given to the same or corresponding parts in the figures. In the present embodiment, the following example is described, that is, based on the time-series sensor data generated by detecting the state of the operating subject using a sensor, an abnormality is detected, and the operating subject repeatedly performs an operation with a series of multiple modes. For a series of multiple modes, the number and order of the modes are determined. The operating subject can be one or more machines, or one or more people, or a combination of them.

[0024] like Figure 1 As shown, the abnormality detection system 100 has: a sensor 2, which detects the state of an operation subject, and the operation subject performs a series of multiple patterns of repeated operations; and a normal model generation device 1, which detects abnormalities based on the time-series sensor data generated by the sensor 2. The normal model generation device 1 has: a sensor data acquisition unit 11, which acquires sensor data from the sensor 2; a pattern segmentation unit 12, which generates pattern data by segmenting the sensor data according to the pattern; a cycle segmentation unit 13, which generates cycle data representing a period of a cycle in which a series of multiple patterns repeatedly appear based on the pattern data; a cycle determination unit 14, which determines a normal cycle period based on the cycle data and the pattern data; and a normal model generation unit 15, which generates a normal model based on the pattern data contained in the normal cycle period. In the following, segmenting sensor data according to the pattern is referred to as pattern segmentation, and a period of a cycle in which a series of multiple patterns repeatedly appear is referred to as a cycle period.

[0025] In addition, the normal model generating device 1 has: a normal model storage unit 16, which stores the normal model; an abnormality detection unit 17, which detects abnormalities for each interval of the pattern data based on the pattern data and the normal model, and generates abnormality detection data representing the interval of the pattern data where the abnormality is detected; and an output unit 18, which outputs the abnormality detection data.

[0026] use Figure 2The sensor data acquired by the sensor data acquisition unit 11 from the sensor 2 is described below. The sensor data is, for example, data of physical quantities obtained by the sensor 2 detecting the state of the operating subject, such as temperature, pressure, speed, voltage, motion, etc. The sensor 2 is one or more sensors that detect the state of the operating subject. The sensor data obtained from one sensor is one-dimensional time series data, and the sensor data obtained from multiple sensors is multi-dimensional time series data. Figure 2 In the example, the sensor data is 7-dimensional time series data. Figure 2 The vertical axis of the graph shown is the value of the physical quantity, and the horizontal axis is time. The value of the physical quantity is standardized in such a way that the mean value is 0 and the standard deviation is 1 for each dimension.

[0027] Back to Figure 1 The sensor data acquisition unit 11 sends the acquired sensor data to the pattern division unit 12. The pattern division unit 12 performs pattern division on the sensor data received from the sensor data acquisition unit 11 to generate pattern data. The pattern division unit 12 periodically assigns a series of multiple patterns to each interval obtained by dividing the sensor data to generate pattern data.

[0028] use Figure 3 The pattern data generated by the pattern segmentation unit 12 when the normal model storage unit 16 does not store a normal model will be described. When the normal model storage unit 16 does not store a normal model, the pattern segmentation unit 12 performs pattern segmentation on the sensor data using predetermined parameters to generate pattern data.

[0029] As predetermined parameters, the pattern segmentation unit 12 uses, for example, the expected length (time) of one cycle, i.e., the expected cycle length, and the number of patterns contained in one cycle. The pattern segmentation unit 12 calculates the expected length (time) of one pattern, i.e., the expected pattern length, by dividing the expected cycle length by the number of patterns. The pattern segmentation unit 12 generates pattern data by segmenting the sensor data into a plurality of intervals having the expected pattern lengths and periodically assigning a series of a plurality of patterns. Figure 3 In the example, nine patterns a to i are periodically assigned to the intervals obtained by dividing the sensor data by the expected pattern length. Figure 3 In , the patterns a to i are shown in light and dark colors, but the sensor data is included in the interval of each pattern of the pattern data.

[0030] use Figure 4The pattern data generated by the pattern segmentation unit 12 when the normal model storage unit 16 stores the normal model will be described. When the normal model storage unit 16 stores the normal model, the pattern segmentation unit 12 performs pattern segmentation on the sensor data by comparing with the template of each pattern included in the normal model to generate pattern data. The details of the normal model will be described later.

[0031] The mode segmentation unit 12 uses, for example, FF-BS (Forward filtering-Backward sampling) to segment the sensor data into multiple intervals based on the templates of each mode included in the normal model, and classifies the sensor data in each segmented interval into the corresponding mode, thereby generating mode data. The details of the method for generating mode data using FF-BS are described in, for example, paragraphs 0036 to 0040 of document WO2019 / 229943, where the level data column is equivalent to the mode data. Figure 4 In the example of , the corresponding nine patterns a to i are periodically assigned to the intervals obtained by dividing the sensor data using FF-BS. Figure 4 In, with Figure 3 Similarly, the patterns a to i are expressed in light and dark colors, but the sensor data is included in the interval of each pattern of the pattern data.

[0032] Since the pattern segmentation unit 12 performs pattern segmentation on the sensor data using the normal model, pattern segmentation can be performed even when no event signal is obtained from the operator.

[0033] In the method for generating pattern data (level data sequence) implemented by a conventional FF-BS, all combinations of two patterns assigned to adjacent intervals need to be considered. For example, in the case of a method for generating pattern data of 9 patterns a to i, when pattern a is assigned to the preceding interval, the 9 patterns a to i can be assigned to the succeeding interval. However, in the present embodiment, the 9 patterns a to i are periodically assigned to the pattern data, so for example, when pattern a is assigned to the preceding interval, pattern b is assigned to the succeeding interval. That is, since the combination of two patterns that can be assigned to adjacent intervals is already determined, the calculation load of the pattern division unit 12 can be greatly reduced.

[0034] Back to Figure 1 The pattern segmentation unit 12 sends the generated pattern data to the loop segmentation unit 13 and the abnormality detection unit 17. The loop segmentation unit 13 identifies the loop interval in the sensor data based on the pattern data received from the pattern segmentation unit 12. The loop segmentation unit 13 generates loop data representing the identified loop interval.

[0035] The loop segmentation unit 13 first calculates the coefficient of variation of the length (time) of the multiple intervals to which the pattern is assigned for each of the multiple patterns included in the pattern data. The coefficient of variation is a value obtained by dividing the standard deviation by the average value. Next, the loop segmentation unit 13 detects the pattern as a non-operating mode when there is a pattern whose calculated coefficient of variation is the largest and exceeds a predetermined reference value among the multiple patterns. As for the detection method of the non-operating mode, it is assumed that the length of the multiple intervals to which the pattern is assigned has reproducibility during operation (the fluctuation of the length of the interval is small), but has no reproducibility in the non-operating state where the operation is not performed (the fluctuation of the length of the interval is large). The detection method of the non-operating mode is not limited to this. For example, when the value of the sensor data does not change when the operation body is in the non-operating state, the non-operating mode can also be detected based on the change of the value of the sensor data. That is, the pattern assigned to the interval where the value of the sensor data does not change is set as the non-operating mode. Alternatively, when the sensor data when the operation body is in the non-operating state has reproducibility, it can also be compared with a pre-generated template of the non-operating mode to detect the non-operating mode.

[0036] When a non-working mode is detected, the loop segmentation unit 13 uses the end time of the interval assigned with the non-working mode determined in the mode data as the time for switching the loop interval, and determines the loop interval. When a non-working mode is not detected, the loop segmentation unit 13 selects a predetermined mode, uses the end time of the interval assigned with the mode as the time for switching the loop interval, and determines the loop interval.

[0037] use Figure 5 The loop data generated by the loop dividing unit 13 will be described. Figure 5 The cycle data shown is for Figure 4 The mode data shown detects mode i as a non-operating mode and determines cycle intervals 0 to 5.

[0038] Back to Figure 1 , the loop segmentation unit 13 sends the pattern data and the generated loop data to the loop determination unit 14. The loop determination unit 14 determines the normal loop interval based on the pattern data and the loop data received from the loop segmentation unit 13. First, the loop determination unit 14 divides the pattern data by loop interval based on the loop data. Next, the loop determination unit 14 determines whether each loop interval is normal or abnormal based on the plurality of pattern data divided by the loop interval. The loop determination unit 14 determines that the loop interval that meets the predetermined determination condition is normal.

[0039] The judgment condition is that the length of each interval of all pattern data included in the cycle interval falls within the standard range set for each mode. The standard range can be set, for example, to "the deviation value is greater than or equal to 30 and less than or equal to 70", "greater than or equal to 30% and less than or equal to 70%", etc. based on the lengths of multiple intervals assigned to the mode. However, the standard range is not applied to the mode determined as a non-operating mode.

[0040] The cycle determination unit 14 generates determination result data indicating the determination result of whether each cycle section is normal or abnormal. Figure 6 The determination result data generated by the circulation determination unit 14 will be described. Figure 6 The judgment result data shown is obtained by Figure 5 The cycle data shown will Figure 4 The pattern data shown is divided into cycle intervals, and the result is obtained by judging whether each cycle interval is normal or abnormal based on the plurality of pattern data divided into cycle intervals. For example, since the length of the interval of pattern c in cycle interval 2 is not within the standard range, cycle interval 2 is judged to be abnormal.

[0041] Back to Figure 1 , the cycle determination unit 14 sends the pattern data, cycle data and the generated determination result data to the normal model generation unit 15. The normal model generation unit 15 generates a normal model based on the cycle data received from the cycle determination unit 14 and the pattern data included in the normal cycle interval shown by the determination result data, and stores it in the normal model storage unit 16. In addition, the normal model storage unit 16 can also be a structure possessed by an external device or system.

[0042] The pattern segmentation unit 12, the loop segmentation unit 13, the loop determination unit 14 and the normal model generation unit 15 repeatedly perform the above-mentioned processing to learn the normal model. The normal model generation unit 15 ends the generation of the normal model when the generated normal model satisfies the predetermined learning end condition. The learning end condition refers to, for example, that the learning model generated by the normal model generation unit 15 is consistent with the normal model stored in the normal model storage unit 16. The "consistency" here may not be completely consistent, for example, it may also be that the similarity is greater than or equal to a certain value. The learning end condition is not limited to this, and may also be specified by the number of times the pattern segmentation unit 12, the loop segmentation unit 13, the loop determination unit 14 and the normal model generation unit 15 repeatedly perform the above-mentioned processing.

[0043] Specifically, the normal model generation unit 15 uses Gaussian process regression to calculate the parameters of the Gaussian distribution of sensor data in the intervals classified into each mode, that is, the template. The details of the calculation method of the template using Gaussian process regression are recorded in, for example, paragraphs 0030 to 0035 of document WO2019 / 229943, and the standard mode is equivalent to the template. In addition, the normal model generation unit 15 calculates multiple thresholds corresponding to each mode based on the lengths of multiple intervals classified into each mode. For example, the normal model generation unit 15 can calculate statistics such as the average value, percentage value, and deviation value of the lengths of multiple intervals classified into each mode as a threshold. In addition, the interval of the mode determined as the non-working mode does not belong to the object of abnormal detection, so no threshold is set. The normal model generation unit 15 stores the templates and thresholds corresponding to each of the multiple modes as normal models in the normal model storage unit 16.

[0044] use Figure 7 and Figure 8 The normal model stored in the normal model storage unit 16 will be described. Figure 7 is an example of a template corresponding to each of the multiple modes included in the normal model. The template is the parameter of the Gaussian distribution of the sensor data in the interval classified into each mode. That is, the template is calculated as the average value and variance of the sensor data at each time in the interval classified into each mode. Figure 7 In the example, the template is represented by a time series graph. Figure 8 is an example of a threshold value included in the normal model. Figure 8 In the example of , the threshold is the average value of the lengths of the multiple intervals to which the mode is assigned for each of the multiple modes. In addition, mode i is determined as a non-operating mode and no threshold is set. Figure 8 In , one threshold is set for each mode, but, for example, the threshold may be a value indicating a lower limit and an upper limit.

[0045] Back to Figure 1, the anomaly detection unit 17 detects anomalies for each interval of the pattern data based on the pattern data received from the pattern segmentation unit 12 and the normal model stored in the normal model storage unit 16. The anomaly detection unit 17 compares the length of each interval of the pattern data with the threshold of the normal model corresponding to the pattern assigned to each interval, and detects whether each interval is abnormal by whether it exceeds the threshold. Alternatively, the anomaly detection unit 17 may also compare the sensor data contained in each interval of the pattern data with the template of the normal model corresponding to the pattern assigned to each interval, and detect the anomaly by using the similarity as an anomaly measure. Alternatively, the anomaly detection unit 17 may also perform both comparison with the threshold and comparison with the template to detect whether each interval is abnormal. In the case where the anomaly detection unit 17 does not use the threshold for anomaly detection, the threshold may not be included in the normal model.

[0046] The abnormality detection unit 17 does not detect abnormalities in the intervals assigned to the non-working mode. This can prevent the detection of abnormalities (false detection) that may occur when the operating body is in a non-working state, and can suppress the reduction of abnormality detection performance. In the case of an interval in which pattern data in which an abnormality is detected exists, the abnormality detection unit 17 generates abnormality detection data representing the interval in which the pattern data in which the abnormality is detected exists.

[0047] use Fig. 9 The abnormality detection data generated by the abnormality detection unit 17 is described. Fig. 9 In the example, since the length of the interval of pattern c in the pattern data exceeds the threshold, the interval of pattern c is detected as abnormal. Fig. 9 In the example, anomaly detection is determined only by the length (time) of the interval contained in the pattern data, but anomalies can also be detected by using the similarity between the sensor data and the template contained in each interval of the pattern data as an anomaly measure.

[0048] Back to Figure 1 , the abnormality detection unit 17 sends the generated abnormality detection data to the output unit 18. The output unit 18 outputs the abnormality detection data received from the abnormality detection unit 17. The output method of the abnormality detection data may be, for example, a screen display or a sound output. Alternatively, it may be sent to a user terminal used by the user.

[0049] As described above, the process performed by the normal model generation device 1 includes a learning phase in which a normal model is learned based on sensor data, and an abnormality detection phase in which an abnormality is detected and output based on the sensor data.

[0050] Here, use Fig.10The flow of the learning process performed by the normal model generation device 1 in the learning phase will be described. Fig.10 The sensor data acquisition unit 11 acquires sensor data from the sensor 2 (step S11 ). At this time, the sensor data acquisition unit 11 acquires a batch of sensor data by batch processing. The sensor data acquisition unit 11 sends the acquired sensor data to the pattern division unit 12 .

[0051] For example, Figure 2 The sensor data shown is seven-dimensional time series data representing physical quantities obtained by the sensor 2 detecting the state of the working body. Figure 2 The vertical axis of the graph shown is the value of the physical quantity, and the horizontal axis is time. In addition, the value of the physical quantity is standardized in such a manner that the average value is 0 and the standard deviation is 1 for each dimension.

[0052] Back to Fig.10 When the normal model storage unit 16 does not store a normal model (step S12; NO), the pattern segmentation unit 12 performs pattern segmentation on the sensor data received from the sensor data acquisition unit 11 using predetermined parameters to generate pattern data (step S13).

[0053] exist Figure 3 An example of pattern data generated in step S13 is shown in FIG. As predetermined parameters, the pattern segmentation unit 12 uses, for example, the expected length (time) of one cycle, i.e., the expected cycle length, and the number of patterns included in one cycle. The pattern segmentation unit 12 calculates the expected length (time) of one pattern, i.e., the expected pattern length, by dividing the expected cycle length by the number of patterns. Figure 3 In the example of , the pattern division unit 12 periodically assigns nine patterns a to i to sections obtained by dividing the sensor data by the pattern expected length. Although not shown in the figure, the section of each pattern of the pattern data includes the sensor data.

[0054] When the normal model storage unit 16 stores a normal model (step S12; YES), the pattern segmentation unit 12 performs pattern segmentation on the sensor data received from the sensor data acquisition unit 11 by comparing it with the templates of each pattern included in the normal model, and generates pattern data (step S14). The pattern segmentation unit 12 sends the generated pattern data to the loop segmentation unit 13.

[0055] exist Figure 4An example of the pattern data generated in step S14 is shown in FIG. The pattern segmentation unit 12 uses, for example, FF-BS to segment the sensor data into a plurality of intervals based on the templates of each pattern included in the normal model, and classifies the sensor data in each segmented interval into a corresponding pattern, thereby generating pattern data. Figure 4 In the example of , nine patterns a to i corresponding to sections obtained by dividing sensor data using FF-BS are periodically allocated, and although not shown in the figure, the section of each pattern of the pattern data includes sensor data.

[0056] Back to Fig.10 , the loop segmentation unit 13 detects the non-working mode from the multiple modes included in the pattern data (step S15). When a non-working mode exists (step S16; YES), the loop segmentation unit 13 uses the end time of the interval assigned to the non-working mode detected in the pattern data as the time for switching the loop interval, and determines the loop interval divided by the end time of the non-working mode (step S17). When a non-working mode does not exist (step S16; NO), the loop segmentation unit 13 selects a predetermined mode, uses the end time of the interval assigned to the mode as the time for switching the loop interval, and determines the loop interval divided by the end time of the predetermined mode (step S18). The loop segmentation unit 13 generates loop data representing the determined loop interval (step S19). The loop segmentation unit 13 sends the pattern data and the generated loop data to the loop determination unit 14.

[0057] For example, in Figure 5 In the cycle data shown, for Figure 4 The mode data shown detects mode i as a non-working mode and determines the cycle interval.

[0058] Back to Fig.10 The loop determination unit 14 determines the normal loop interval based on the pattern data and loop data received from the loop segmentation unit 13 (step S20). In step S20, the loop determination unit 14 determines the loop interval that meets the determination condition as a normal loop interval, and the determination condition is that the length of each interval of all pattern data contained in the loop interval falls within the standard range set for each pattern. The loop determination unit 14 generates determination result data indicating the determination result obtained by determining whether each loop interval is normal or abnormal (step S21). The loop determination unit 14 sends the pattern data, loop data and the generated determination result data to the normal model generation unit 15.

[0059] For example, Figure 6 The judgment result data shown is obtained by Figure 5 The cycle data shown will Figure 4The pattern data shown is divided into cycle intervals, and a result is obtained by determining whether each cycle interval is normal or abnormal based on a plurality of pattern data divided into cycle intervals.

[0060] Back to Fig.10 The normal model generation unit 15 generates a normal model based on the pattern data included in the normal cycle section indicated by the cycle data and the determination result data (step S22).

[0061] Specifically, the normal model generation unit 15 uses Gaussian process regression to calculate the parameters of the Gaussian distribution of the sensor data in the intervals classified into each mode, that is, the template. In addition, the normal model generation unit 15 calculates multiple thresholds corresponding to each mode based on the lengths of multiple intervals classified into each mode. For example, statistics such as the average value, percentage value, and deviation value of the lengths of multiple intervals classified into each mode can be calculated as a threshold. In addition, the interval of the mode determined as the non-working mode does not belong to the object of abnormality detection, so no threshold is set. The normal model generation unit 15 stores the templates and thresholds corresponding to each of the multiple modes as normal models in the normal model storage unit 16.

[0062] use Figure 7 and Figure 8 The normal model stored in the normal model storage unit 16 will be described. Figure 7 is an example of a template corresponding to each of the multiple patterns included in the normal model. Figure 7 In the example of , the template is the parameters of the Gaussian distribution of the sensor data in the section classified into each mode. That is, the template is calculated as the average value and variance of the sensor data at each time in the section classified into each mode. Figure 8 is an example of a threshold value included in the normal model. Figure 8 In the example of , the threshold is the average value of the lengths of the plurality of intervals to which the plurality of modes are assigned for each of the plurality of modes. In addition, mode i is determined as a non-operating mode, and no threshold is set.

[0063] Back to Fig.10 , the normal model generation unit 15 determines whether the learning end condition is satisfied (step S23). The learning end condition refers to, for example, whether the learning model generated by the normal model generation unit 15 is consistent with the normal model stored in the normal model storage unit 16. If the learning end condition is not satisfied (step S23; NO), the process returns to step S14, and steps S14 to S23 are repeatedly executed. If the learning end condition is satisfied (step S23; YES), the process ends.

[0064] Next, use Fig.11The flow of the abnormality detection process performed by the normal model generation device 1 in the abnormality detection phase is described. Fig.11 The sensor data acquisition unit 11 acquires sensor data from the sensor 2 (step S31 ). At this time, the sensor data acquisition unit 11 sequentially acquires sensor data from the sensor 2 . The sensor data acquisition unit 11 sends the acquired sensor data to the pattern division unit 12 .

[0065] The pattern segmentation unit 12 performs pattern segmentation on the sensor data received from the sensor data acquisition unit 11 by comparing with the templates of each pattern included in the normal model, and generates pattern data (step S32 ). The pattern segmentation unit 12 sends the generated pattern data to the abnormality detection unit 17 .

[0066] The abnormality detection unit 17 detects abnormalities for each interval of the pattern data based on the pattern data received from the pattern segmentation unit 12 and the normal model stored in the normal model storage unit 16 (step S33). In step S33, the abnormality detection unit 17 compares the length of each interval of the pattern data with the threshold of the normal model corresponding to the pattern assigned to each interval, and detects whether each interval is abnormal based on whether it exceeds the threshold. Alternatively, the abnormality detection unit 17 detects whether each interval is abnormal by comparing the sensor data contained in each interval of the pattern data with the template of the normal model corresponding to the pattern assigned to each interval. Alternatively, the abnormality detection unit 17 can also perform both comparison with the threshold and comparison with the template to detect whether each interval is abnormal.

[0067] The abnormality detection unit 17 does not detect abnormalities in the section to which the non-operating mode is assigned. This can prevent abnormality detection (false detection) that may occur when the operator is in a non-operating state, and can suppress a decrease in abnormality detection performance.

[0068] If there is no section of pattern data in which an abnormality is detected (step S34; NO), the process returns to step 31, and steps S31 to S34 are repeatedly executed. If there is a section of pattern data in which an abnormality is detected (step S34; YES), the abnormality detection unit 17 generates abnormality detection data indicating the section of pattern data in which an abnormality is detected (step S35).

[0069] use Fig. 9 The abnormality detection data generated by the abnormality detection unit 17 is described. Fig. 9 In the example, the section of pattern c in the pattern data is detected as abnormal.

[0070] Back to Fig.11The abnormality detection unit 17 sends the generated abnormality detection data to the output unit 18. The output unit 18 outputs the abnormality detection data received from the abnormality detection unit 17 (step S36), and the process ends.

[0071] exist Fig.11 In the flowchart of , if an abnormality is detected, the abnormality detection data is output and the process is terminated, but even if an abnormality is detected, the structure of steps S31 to S36 can be repeatedly executed. In this case, for example, the process is terminated when the power of the normal model generation device 1 is turned off or when it is switched to the learning stage.

[0072] In the above description, it is explained that after executing Fig.10 After the learning process shown, execute Fig.11 For example, after initially storing the normal model in the normal model storage unit 16, a learning process may be performed in parallel with the abnormality detection process to update the normal model periodically or at a timing specified by the user.

[0073] According to the normal model generation device 1 involved in the implementation method, the time-series sensor data obtained by detecting the state of the working subject is pattern-segmented, and a normal model is generated based on the pattern data contained in the normal cycle interval, thereby reducing the computational load of learning the normal model for each pattern. The working subject performs a job with multiple patterns.

[0074] use Fig.12 The hardware structure of the normal model generating device 1 is described. Fig.12 As shown, the normal model generation device 1 includes a temporary storage unit 111, a storage unit 112, a calculation unit 113, an input unit 114, a transceiver unit 115, and a display unit 116. The temporary storage unit 111, the storage unit 112, the input unit 114, the transceiver unit 115, and the display unit 116 are connected to the calculation unit 113 via a bus (BUS).

[0075] The calculation unit 113 is, for example, a CPU (Central Processing Unit) and executes the processing of the pattern division unit 12 , the loop division unit 13 , the loop determination unit 14 , the normal model generation unit 15 and the abnormality detection unit 17 of the normal model generation device 1 according to the control program stored in the storage unit 112 .

[0076] The temporary storage unit 111 is, for example, a RAM (Random-Access Memory) and loads the control program stored in the storage unit 112 into the temporary storage unit 111 , and is used as a work area for the calculation unit 113 .

[0077] The storage unit 112 is a non-volatile memory such as a flash memory, a hard disk, a DVD-RAM (Digital Versatile Disc-Random Access Memory), or a DVD-RW (Digital Versatile Disc-ReWritable). The storage unit 112 stores in advance a program for causing the calculation unit 113 to perform the processing of the normal model generation device 1, and in accordance with the instruction of the calculation unit 113, supplies the data stored in the program to the calculation unit 113, and stores the data supplied from the calculation unit 113. The normal model storage unit 16 is configured in the storage unit 112.

[0078] The input unit 114 is an input device such as a keyboard or a pointing device, or an interface device that connects the input device such as a keyboard or a pointing device to a bus. Information input by the user is supplied to the calculation unit 113 via the input unit 114. In a configuration in which the user switches between the learning phase and the abnormality detection phase of the normal model generation device 1, the user inputs a switching instruction to the input unit 114.

[0079] The transceiver 115 is a network terminal device or a wireless communication device connected to the network and a serial interface or a LAN (Local Area Network) interface connected thereto. The transceiver 115 functions as the sensor data acquisition unit 11. In a configuration in which the output unit 18 sends abnormality detection data to a user terminal, the transceiver 115 functions as the output unit 18.

[0080] The display unit 116 is a display device such as a CRT (Cathode Ray Tube) or an LCD (Liquid Crystal Display). For example, the display unit 116 displays an operation screen for user input information. In a configuration in which the user switches between the learning phase and the abnormality detection phase of the normal model generation device 1, the display unit 116 displays a screen for inputting a switching instruction. In a configuration in which the output unit 18 displays abnormality detection data on a screen, the display unit 116 functions as the output unit 18.

[0081] Figure 1 The processing of the sensor data acquisition unit 11, pattern segmentation unit 12, loop segmentation unit 13, loop determination unit 14, normal model generation unit 15, normal model storage unit 16, abnormality detection unit 17 and output unit 18 of the normal model generation device 1 shown is executed by using the temporary storage unit 111, calculation unit 113, storage unit 112, input unit 114, transceiver unit 115 and display unit 116 as resources for processing through a control program.

[0082] In addition, the above-mentioned hardware configuration and flowchart are just examples and can be changed and modified arbitrarily.

[0083] The parts of the normal model generation device 1 that are the core of the processing, such as the calculation unit 113, the temporary storage unit 111, the storage unit 112, the input unit 114, the transceiver unit 115, and the display unit 116, can be implemented using a common computer system without relying on a dedicated system. For example, a computer program for executing the above-mentioned actions can be stored in a computer-readable recording medium such as a floppy disk, a CD-ROM (Compact Disc-Read Only Memory), or a DVD-ROM (Digital Versatile Disc-Read Only Memory) and distributed, and the computer program can be installed in a computer to form a normal model generation device 1 that executes the above-mentioned processing. In addition, the computer program can be pre-stored in a storage device of a server device on a communication network represented by the Internet, and downloaded by a common computer system to form the normal model generation device 1.

[0084] Furthermore, when the function of the normal model generation device 1 is realized by sharing the load between the OS (Operating System) and the application program, or by cooperative operation between the OS and the application program, only the application program portion may be stored in a recording medium or a storage device.

[0085] In addition, the computer program may be superimposed on a carrier wave and provided via a communication network. For example, the computer program may be published on a forum (BBS, Bulletin Board System) on a communication network and provided via a communication network. Furthermore, the computer program may be started and executed like other application programs under the control of the OS, thereby enabling the aforementioned processing to be performed.

[0086] In the above-mentioned embodiment, the case where the number and order of a series of multiple patterns included in the cyclic interval have been determined is described, but it can also be set as a structure in which only the order of a series of multiple patterns included in the cyclic interval has been determined. In this case, in the method for generating pattern data of FF-BS executed by the pattern segmentation unit 12, for example, when pattern a is assigned to the previous interval, pattern a or pattern b is assigned to the subsequent interval. In addition, there is the following situation, that is, the number of patterns of a series of multiple patterns included in one cyclic interval is greater than or equal to 1, and is different for each cyclic interval. Below, the number and order of patterns of a series of multiple patterns included in one cyclic interval are referred to as pattern symbol strings. The cycle determination unit 14 adds the following conditions to the determination conditions for determining the cyclic interval as normal. The added condition is that the pattern symbol string of the cyclic interval is consistent with the standard pattern symbol string. The standard pattern symbol string is, for example, set to the pattern symbol string with the highest appearance frequency among the pattern symbol strings included in each cyclic interval.

[0087] In the above embodiment, Fig.10 In the learning process shown, steps S14 to S23 are repeatedly executed, but after the second time, when there is already cyclic data, in step S14, the sensor data divided by the cyclic interval can also be pattern-segmented to generate pattern data. In this case, steps S16 to S19 can also be not executed before the predetermined release condition is met. The predetermined release condition is, for example, that the pattern data generated in step S14 is similar to the existing pattern data (the similarity is greater than or equal to a certain value), and after the last execution of steps S16 to S19, steps S14 to S23 are repeatedly executed greater than or equal to a certain number of times. As described above, by fixing the cyclic data for a certain period of time, the template of the normal model is easy to converge. When the template converges to a certain extent, if the cyclic interval is re-determined and steps S14 to S23 are repeatedly executed, the accuracy of the normal model can be improved and the processing speed can be accelerated.

[0088] In the above-described embodiment, the pattern segmentation unit 12 performs pattern segmentation on the sensor data using the normal model. However, when an event signal is obtained from the operator, the pattern segmentation may be performed based on the event signal.

[0089] In the above-mentioned embodiment, the normal model generating device 1 has a sensor data acquiring unit 11, a pattern segmentation unit 12, a loop segmentation unit 13, a loop determination unit 14, a normal model generating unit 15, a normal model storage unit 16, an abnormality detection unit 17 and an output unit 18, but the normal model generating device 1 may also be a structure having only the sensor data acquiring unit 11, the pattern segmentation unit 12, the loop segmentation unit 13, the loop determination unit 14 and the normal model generating unit 15.

[0090] In the above embodiment, the normal model generation device 1 has a learning phase and an abnormality detection phase, but it is not limited thereto, and the normal model generation device 1 can also be implemented by a learning device that generates a normal model based on sensor data and an abnormality detection device that detects anomalies based on sensor data and outputs an abnormality. Fig.13A and Fig. 13B The learning device 3 and the abnormality detection device 4 according to this modification will be described.

[0091] like Fig.13A As shown, the learning device 3 includes: a sensor data acquisition unit 11, which acquires sensor data from the sensor 2; a pattern segmentation unit 12, which generates pattern data obtained by pattern segmenting the sensor data; a loop segmentation unit 13, which generates, based on the pattern data, loop data representing a loop interval in which a series of multiple patterns repeatedly appear; a loop determination unit 14, which determines a normal loop interval based on the loop data and the pattern data; a normal model generation unit 15, which generates a normal model based on the pattern data contained in the normal loop interval; and a normal model storage unit 16, which stores the normal model.

[0092] like Fig. 13B As shown, the abnormality detection device 4 includes: a sensor data acquisition unit 11, which acquires sensor data from the sensor 2; a pattern segmentation unit 12, which generates pattern data obtained by pattern segmenting the sensor data; a normal model storage unit 16, which stores the normal model; an abnormality detection unit 17, which detects abnormalities for each interval of the pattern data based on the pattern data and the normal model, and generates abnormality detection data representing the interval of the pattern data where the abnormality is detected; and an output unit 18, which outputs the abnormality detection data. The abnormality detection device 4 stores the normal model generated by the learning device 3 in the normal model storage unit 16.

[0093] In addition, the present invention can be set to various embodiments and variations without departing from the broad spirit and scope of the present invention. In addition, the above-mentioned embodiments are used to illustrate the present invention and are not intended to limit the scope of the present invention. That is, the scope of the present invention is not represented by the embodiments, but by the claims. Moreover, various variations implemented within the scope of the claims and within the scope of the inventive meaning equivalent thereto are deemed to be included within the scope of the present invention.

[0094] Description of the label

[0095] 1 Normal model generating device, 2 Sensor, 3 Learning device, 4 Abnormal detection device, 11 Sensor data acquiring unit, 12 Pattern segmentation unit, 13 Loop segmentation unit, 14 Loop determination unit, 15 Normal model generating unit, 16 Normal model storage unit, 17 Abnormal detection unit, 18 Output unit, 100 Abnormal detection system, 111 Temporary storage unit, 112 Storage unit, 113 Calculation unit, 114 Input unit, 115 Transceiver unit, 116 Display unit, a~i modes.

Claims

1. A normal model generation program, which causes a computer to function as a pattern division unit, a loop division unit, a loop determination unit, and a normal model generation unit, the computer obtaining time-series sensor data generated by detecting the state of an operation subject using a sensor, the operation subject performing a series of operations having a plurality of patterns that are repeatedly executed, The pattern segmentation unit generates pattern data by pattern segmenting the sensor data. The loop segmentation unit generates loop data representing a series of loop sections in which a plurality of patterns repeatedly appear based on the pattern data. The cycle determination unit determines a normal cycle section based on the cycle data and the pattern data. The normal model generation unit generates a normal model for each of the plurality of patterns based on the pattern data included in the normal cycle section.

2. The normal model generation program according to claim 1, further causing the computer to function as an abnormality detection unit, The abnormality detection unit compares the pattern data with the normal model, detects abnormality for each section of the pattern data, and generates abnormality detection data indicating the section of the pattern data in which the abnormality is detected.

3. The normal model generation program according to claim 1 or 2, wherein: The pattern segmentation unit generates the pattern data by periodically assigning the series of the plurality of patterns to each section obtained by segmenting the sensor data using the normal model including the templates of the plurality of patterns.

4. The normal model generation program according to any one of claims 1 to 3, wherein: The loop segmentation unit detects the non-working mode from the multiple patterns included in the pattern data based on the length of the pattern interval or the change in the value of the sensor data included in the pattern, determines the loop interval divided by the end time of the non-working mode, and generates the loop data.

5. The normal model generation program according to any one of claims 1 to 4, wherein: The pattern segmentation unit, the loop segmentation unit, the loop determination unit, and the normal model generation unit each repeatedly perform the processes of generating the pattern data, generating the loop data, determining the normal loop interval, and generating the normal model until a predetermined learning end condition is satisfied.

6. The normal model generation program according to claim 5, wherein: In the repetition of the processing of the pattern segmentation unit, the loop segmentation unit, the loop determination unit, and the normal model generation unit, If the loop data already exists, the loop dividing unit does not generate the loop data until a predetermined release condition is satisfied.

7. The normal model generation program according to claim 5 or 6, wherein: In the repetition of the processing of the pattern segmentation unit, the loop segmentation unit, the loop determination unit, and the normal model generation unit, When the cycle data already exists, the pattern division unit performs pattern division on the sensor data divided into cycle sections indicated by the cycle data to generate the pattern data.

8. A normal model generating device, comprising: a sensor data acquisition unit that acquires time-series sensor data generated by detecting the state of a work subject using a sensor, the work subject performing a series of multiple patterns of work that is repeatedly executed; a pattern segmentation unit, which generates pattern data by pattern segmenting the sensor data; a loop segmentation unit that generates, based on the pattern data, loop data representing a series of loop intervals in which a plurality of patterns repeatedly appear; a circulation determination unit that determines a normal circulation interval based on the circulation data and the pattern data; as well as The normal model generating unit generates a normal model for each of the plurality of patterns based on the pattern data included in the normal cycle section.

9. The normal model generating device according to claim 8, further comprising: an abnormality detection unit that compares the normal model with the pattern data, detects an abnormality for each section of the pattern data, and generates abnormality detection data indicating the section of the pattern data in which the abnormality is detected; and An output unit outputs the abnormality detection data.

10. A normal model generation method, which is performed by a normal model generation device, the normal model generation device obtains time-series sensor data generated by detecting the state of an operation subject using a sensor, the operation subject performs a series of multiple patterns of operations that are repeatedly performed, In this normal model generation method, generating pattern data obtained by pattern segmenting the sensor data, Based on the pattern data, generating cycle data representing a series of cycle intervals in which a plurality of patterns repeatedly appear, Based on the cycle data and the pattern data, a normal cycle interval is determined. A normal model for each of the plurality of patterns is generated based on the pattern data included in the normal cycle section.

11. The normal model generation method according to claim 10, wherein: The normal model and the pattern data are compared, an abnormality is detected for each section of the pattern data, and abnormality detection data indicating the section of the pattern data in which the abnormality is detected is generated.

Citation Information

Patent Citations

  • Operation analysis device

    CN112136087A

  • Abnormality cause estimation device, abnormality cause estimation method, and program

    CN113330379A

  • Learning apparatus, learning method, computer program and recording medium

    US20220188570A1