The present invention relates to a process analysis device, a process analysis method, and a process analysis program.
A production line in a factory or the like is composed of multiple mechanisms such as conveyors and robot arms. When an abnormality occurs in any mechanism of this production line, the production of the product will be stopped, possibly causing great damage. For this reason, in factories and the like, maintenance workers regularly patrol the production line to check for the occurrence of an abnormality or the sign of such abnormality.
When the occurrence of an abnormality or its sign is detected in a production line, the true cause of the abnormality may exist in a mechanism prior to the mechanism in which the abnormality was detected. Thus, it is important to understand the causal relationship of each mechanism in the production line in order to identify the true cause of the abnormality. However, because the number of mechanisms constituting a production line is large and the operating conditions of each mechanism may change from day to day, it is difficult to accurately grasp the causal relationship of all mechanisms.
Thus, conventionally, a skilled maintenance worker grasps the causal relationship between multiple mechanisms constituting the production line based on their own experience and intuition, and detects an abnormality that has occurred in the production line or a sign of it. In order to enable unskilled maintenance works to perform such maintenance work, it has been desired to develop a technique for visualizing the causal relationship between multiple mechanisms constituting a production line.
For example, the system disclosed in Patent Literature 1 acquires domain knowledge when constructing a causal relationship model. Then, the constructed causal relationship model and the domain knowledge are compared, and if there is a contradiction between the two, the causal relationship model is reconstructed.
However, since the system described in Patent Literature 1 is based on the use of domain knowledge, which makes it difficult a non-skilled person to use, and it is also difficult to use it for newly occurring phenomena. The present invention has been made to solve the above problems, and its object is to provide a process analysis device, a process analysis method, and a process analysis program, which can easily identify the cause of the abnormality occurring in a production line, for example, even for unskilled people.
A process analysis device according to the present invention includes: a normal data acquisition unit that acquires a plurality of first state data relating to the normal state of a plurality of mechanisms constituting a production line; an abnormality data acquisition unit that acquires a plurality of second state data relating to the state of the plurality of mechanisms when an abnormality occurs; a normal period analysis unit that identifies a connection state between the plurality of mechanisms as a first connection state by analyzing the acquired plurality of first state data; an abnormal period analysis unit that identifies a connection state between the plurality of mechanisms as a second connection state by analyzing the acquired plurality of second state data; a normal period relationship identification unit that identifies a causal relationship between the plurality of mechanisms in a process carried out on the production line as a normal period causal relationship based on the first connection state; an abnormal period relationship identification unit that identifies a causal relationship between the plurality of mechanisms in a process carried out on the production line as an abnormal period causal relationship based on the second connection state; and a special causal relationship identification unit that compares the normal period causal relationship with the abnormal period causal relationship and identifies the causal relationship between the plurality of mechanisms involved in the occurrence of an abnormality as a special causal relationship.
In the above process analysis device, the normal period analysis unit and the abnormal period analysis unit respectively may be configured to: (1) calculate a feature amount from each state data, and (2) calculate a correlation coefficient or a partial correlation coefficient between each of the feature amount so as to identify the connection state between the plurality of mechanisms. The special causal relationship identification unit: calculates a degree of divergence between the feature amount in each of the mechanisms of the normal period causal relationship and the feature amount in each of the mechanisms of the abnormal period causal relationship; selects, as a node, a mechanism in which the degree of divergence is larger than a predetermined value; selects, as an edge, the connection between the mechanisms when the connection state between the mechanisms satisfies a predetermined condition when comparing the normal period causal relationship and the abnormal period causal relationship; and identifies the special causal relationship from the selected node and edge.
The above process analysis device may be configured to further include: a control program acquisition unit that acquires a control program for controlling the operation of the production line; a control program analysis unit that identifies an order relationship of the plurality of mechanisms by analyzing the acquired control program; and a constraint model generation unit that generates a constraint model of the plurality of mechanisms based on the order relationship of the plurality of mechanisms. The special causal relationship identification unit identifies the special causal relationship based on the constraint model.
The above process analysis device may further include: a mechanism data acquisition unit that acquires mechanism data relating to at least one of the relative positional relationship of devices included in each of the plurality of mechanisms and the order in which the devices are involved in the process; and a mechanism data analysis unit that identifies a process model that indicates the order relationship of the plurality of mechanisms by analyzing the acquired mechanism data and modelling the process carried out on the production line. The constraint model generation unit generates the constraint model based on the order relationship of the plurality of mechanisms and the process model.
In the above process analysis device, the control program analysis unit may identify the order relationship of the plurality of mechanisms based on log data acquired by operating the production line using the control program.
In the above process analysis device, the control program analysis unit may identify the order relationship of the plurality of mechanisms by: (1) constructing an abstract syntax tree from the control program, (2) extracting variables and conditional branches relating to each of the mechanisms from the constructed abstract syntax tree, (3) acquiring log data when the production line is operated normally using the control program, and (4) referring to the acquired log data and ordering each of the variables based on an execution result of the conditional branches.
The above process analysis device may further include: a first experimental planning data acquisition unit that acquires first experimental planning data for determining an adjustment amount of adjustment items of the production line for achieving a predetermined quality in operating the production line; and a control causal relationship generating unit that generates, as a control causal relationship, a causal relationship between the adjustment items and the mechanism as well as the causal relationship between the plurality of mechanisms based on the first experimental planning data and the constraint model.
The above process analysis device may further include: a quality adjustment causal relationship identification unit that compares the control causal relationship with the special causal relationship and identifies a quality adjustment causal relationship including the causal relationship between the plurality of mechanisms involved in the occurrence of an abnormality and the causal relationship between the mechanisms and the adjustment items.
The above process analysis device may further include: a second experimental planning data acquisition unit that acquires second experimental planning data for determining a relationship between the adjustment amount of the adjustment items identified by the quality adjustment causal relationship and the quality; and a quality prediction model generation unit that generates a quality prediction model that identifies the relationship between the adjustment amount of the adjustment items in the production line and the quality based on the second experimental planning data.
The above process analysis device may further include an adjustment amount calculation unit that calculates an adjustment amount of the adjustment items for achieving a desired quality based on the quality prediction model.
In the above process analysis device, each of the state data may indicate at least one of torque, speed, acceleration, temperature, current, voltage, air pressure, pressure, flow rate, position, dimensions, area, light intensity, and ON/OFF state.
In a process analysis method according to the present invention, a computer executes: a step of acquiring a plurality of first state data relating to the normal state of a plurality of mechanisms constituting a production line; a step of acquiring a plurality of second state data relating to the state of the plurality of mechanisms when an abnormality occurs; a step of identifying a connection state between the plurality of mechanisms as a first connection state by analyzing the acquired plurality of first state data; a step of identifying a connection state between the plurality of mechanisms as a second connection state by analyzing the acquired plurality of second state data; a step of identifying a causal relationship between the plurality of mechanisms in a process carried out on the production line as a normal period causal relationship based on the first connection state; a step of identifying a causal relationship between the plurality of mechanisms in a process carried out on the production line as an abnormal period causal relationship based on the second connection state; and a step of comparing the normal period causal relationship and the abnormal period causal relationship and identifying the causal relationship between the plurality of the mechanisms involved in the occurrence of an abnormality as a special causal relationship.
In a process analysis program according to the present invention, a computer is caused to execute: a step of acquiring a plurality of first state data relating to the normal state of a plurality of mechanisms constituting a production line; a step of acquiring a plurality of second state data relating to the state of the plurality of mechanisms when an abnormality occurs; a step of identifying a connection state between the plurality of mechanisms as a first connection state by analyzing the acquired plurality of first state data; a step of identifying a connection state between the plurality of mechanisms as a second connection state by analyzing the acquired plurality of second state data; a step of identifying a causal relationship between the plurality of mechanisms in a process carried out on the production line as a normal period causal relationship based on the first connection state; a step of identifying a causal relationship between the plurality of mechanisms in a process carried out on the production line as an abnormal period causal relationship based on the second connection state; and a step of comparing the normal period causal relationship and the abnormal period causal relationship and identifying the causal relationship between the plurality of the mechanisms involved in the occurrence of an abnormality as a special causal relationship.
According to the present invention, for example, even an unskilled person can easily identify the cause of an abnormality occurring in a production line.
An embodiment of a process analysis device according to the present invention will be described below with reference to the drawings.
<1. Application Example>
First, an example of a situation to which the present invention is applied will be described with reference to
As shown in
Further, the process analysis device 1 according to this embodiment acquires a control program 221 for controlling the operation of the production line 3. The control program 221 may include any kind of program that controls the operation of each mechanism 31 constituting the production line 3. The control program 221 may be composed of one program, or may be composed of multiple programs. Moreover, in this embodiment, the operation of the production line 3 is controlled by a PLC (programmable logic controller) 2. Thus, the process analysis device 1 acquires multiple state data 222 and the mechanism data 223, and the control program 221 from a PLC 2.
Next, the process analysis device 1 according to this embodiment identifies the strength of relationship between the multiple mechanisms 31 in the production line 3 by statistically analyzing the acquired multiple state data 222. The strength of relationship is an example of a “connection state” in the present invention. Moreover, the process analysis device 1 according to this embodiment identifies the order relationship of the multiple mechanisms 31 in the production line 3 by analyzing the acquired control program 221 and mechanism data 223. Then, the process analysis device 1 according to this embodiment identifies the causal relationship between the multiple mechanisms 31 in the process executed in the production line 3 based on the strength of relationship and the order relationship identified.
As described above, in this embodiment, the control program 221 is used to identify the order relationship between the multiple mechanisms 31 in the process of analyzing the causal relationship between the multiple mechanisms 31. Since the control program 221 defines the operation of each mechanism 31, the order relationship of each mechanism 31 can be identified more accurately by using the control program 221. Thus, according to this embodiment, it is possible to accurately model the causal relationship between the multiple mechanisms 31 constituting the production line 3.
Further, as will be described later, when identifying the strength of relationship between the mechanisms 31 using the state data 222, two causal relationships are acquired, using the state data 222 when the production line 3 is operated normally and using the state data 222 when the production line 3 is operated in the state when an abnormality occurs, and by comparing these causal relationships, an event causal relationship model is generated that extracts only the mechanism 31 involved in the occurrence of an abnormality.
<2. Hardware Configuration of Process Analysis Device>
Next, an example of the hardware configuration of the process analysis device 1 according to this embodiment will be described using
As shown in
The control unit 11 includes a CPU (Central Processing Unit), which is a hardware processor, RAM (Random Access Memory), ROM (Read Only Memory), etc., and controls each component according to information processing. The storage unit 12 is, for example, an auxiliary storage device such as a hard disk drive or solid state drive, and stores a process analysis program 121 and the like executed by the control unit 11.
The process analysis program 121 is a program for causing the process analysis device 1 to execute the later-described processings (
The communication interface 13 is, for example, a wired LAN (Local Area Network) module, a wireless LAN module, or the like, and is an interface for performing wired or wireless communication via a network. The process analysis device 1 may perform data communication with the PLC 2 via the network by using the communication interface 13. Moreover, the type of network may be appropriately selected from, for example, the Internet, wireless communication network, mobile communication network, telephone network, dedicated network, and the like.
The input device 14 is, for example, a device for performing input such as a mouse and a keyboard. Also, the output device 15 is, for example, a device for outputting such as a display and a speaker. An operator may operate the process analysis device 1 via the input device 14 and the output device 15.
The drive 16 is, for example, a CD drive, a DVD drive, or the like, and is a drive device for reading programs stored in a storage medium 91. The type of the drive 16 may be appropriately selected according to the type of the storage medium 91. The above process analysis program 121 may be stored in this storage medium 91.
The storage medium 91 is a medium for storing information such as programs by electric, magnetic, optical, mechanical or chemical actions, such that the information such as programs of computers or other devices and machines may be read. The process analysis device 1 may acquire the above process analysis program 121 from the storage medium 91.
Here, in
Regarding the specific hardware configuration of the process analysis device 1, components may be omitted, replaced, and added as appropriate according to the embodiment. For example, the control unit 11 may include multiple processors. The process analysis device 1 may be composed of multiple information processing devices. Further, the process analysis device 1 may be an information processing device designed exclusively for the service provided, or may be a general-purpose server device, a PC (Personal Computer), or the like.
<3. PLC>
Next, an example of the hardware configuration of the PLC 2 which controls operation/movement of the production line 3 is illustrated using
As shown in
The control unit 21 includes a CPU, RAM, ROM, etc., and is configured to execute various types of information processing based on programs and data. The storage unit 22 is composed of, for example, RAM, ROM, etc., and stores the control program 221, the state data 222, the mechanism data 223, log data 224, and the like. The control program 221 is a program for controlling the operation of the production line 3. The state data 222 is data relating to the state of each mechanism 31. The mechanism data 223 is data relating to at least one of the relative positional relationship of the devices included in each of the multiple mechanisms 31 and the order in which the devices are involved in the process. Moreover, as the mechanism data 223, for example, a device list, a sensor list for monitoring the operation of the device, information indicating the order of processes, information indicating the installation position of the sensor, and the like may be used. Further, the log data 223 is data indicating a log of the operation of the production line 3.
The input/output interface 23 is an interface for connecting with an external device, and is appropriately configured according to the external device to be connected. In this embodiment, the PLC 2 is connected to the production line 3 via the input/output interface 23. Moreover, when different state data may be acquired for a single device, the single target device may be regarded as the multiple mechanisms 31 or may be regarded as a single mechanism 31. Thus, the number of input/output interfaces 23 may be the same as the number of mechanisms 31 constituting the production line 3 or may be different from the number of mechanisms 31 constituting the production line 3.
The communication interface 24 is, for example, a wired LAN module, a wireless LAN module, or the like, and is an interface for performing wired or wireless communication. The PLC 2 may perform data communication with the process analysis device 1 through the communication interface 24.
Further, regarding the specific hardware configuration of the PLC 2, components may be appropriately omitted, replaced, and added according to the embodiment. For example, the control unit 21 may include multiple processors. The storage unit 22 may be composed of RAM and ROM included in the control unit 21. The storage unit 22 may be composed of an auxiliary storage device such as a hard disk drive or solid state drive. Further, the PLC 2 may be replaced with a general-purpose desktop PC, tablet PC, or the like, according to the object to be controlled, in addition to an information processing device designed exclusively for the service provided.
<4. Software Configuration of Process Analysis Device>
Next, an example of the software configuration of the process analysis device 1 according to this embodiment will be described using
The control unit 11 of the process analysis device 1 expands the process analysis program 121 stored in the storage unit 12 to RAM. Then, the control unit 11 interprets and executes out the process analysis program 121 expanded in the RAM by the CPU to control each component. As a result, as shown in
<4-1. Constraint Model Generation Module>
<4-1-1. Configuration of Constraint Model Generation Module>
First, the constraint model generation module 101 will be described. As shown in
The first acquisition unit 111 acquires the control program 221 for controlling the operation of the production line 3. The first analysis unit 113 identifies the order relationship of the multiple mechanisms 31 by analyzing the acquired control program 221. In this embodiment, the first analysis unit 113 uses the log data 224 acquired by executing the control program 221 to identify the order relationship of the multiple mechanisms 31. As described above, the second acquisition unit 112 acquires data relating to the relative positional relationship and the like of the devices included in each of the multiple mechanisms 31. The second analysis unit 114 identifies the process model by analyzing the acquired mechanism data 223. Then, the first relationship identification unit 115 identifies causal relationship between the mechanisms 31 in the process carried out on the production line 3 based on the identified order relationship and process model respectively.
Each functional configuration 111 to 115 of the process analysis device 1 will be described in detail in operation examples to be described later. In this embodiment, an example in which each software module of the process analysis device 1 is implemented by a general-purpose CPU is described. However, some or all of the above software modules may be implemented by one or more dedicated hardware processors. Further, regarding the software configuration of the process analysis device 1, software modules may be appropriately omitted, replaced, and added according to the embodiment. This also applies to modules 102 to 105 to be described later.
<4-1-2. Operation of Constraint Model Generation Module>
Next, an operation example of the constraint model generation module 101 will be described with reference to
[Step S101]
In the next step S101, the control unit 11 operates as the first acquisition unit 111 and acquires the control program 221 from the PLC 2. The control program 221 may be written using at least one of at least one of, for example, a ladder diagram language, a function block diagram language, a structured text language, an instruction list language, a sequential function chart language, and C language so as to be executed by the PLC 2. When the acquisition of the control program 221 is completed, the control unit 11 advances the processing to the next step S102.
[Step S102]
In the next step S102, the control unit 11 operates as the second acquisition unit 112 and acquires the above mechanism data 223 from the PLC 2. When the acquisition of the mechanism data 223 is completed, the control unit 11 advances the processing to the next step S103. Moreover, step S102 may be executed in parallel with the above step S101, or may be executed before the above step S101.
[Step S103]
In step S103, the control unit 11 operates as the first analysis unit 113 and identifies the order relationship of the multiple mechanisms 31 in the production line 3 by analyzing the control program 221 acquired in step S101. In this embodiment, the control unit 11 identifies the order relationship of the multiple mechanisms 31 based on the log data 223 acquired by operating the production line 3 using the control program 221. When the analysis processing of the control program 221 is completed, the control unit 11 advances the processing to the next step S104. Moreover, step S103 may be executed at any timing after the above step S101. For example, when the above step S102 is executed before the above step S101, step S103 may be executed before the above step S102.
<Control Program Analysis Processing>
Here, the processing of analyzing the control program 221 will be described in detail with reference to
(Step S1401)
First, in step S1401, the control unit 11 parses the acquired control program 221 and constructs an abstract syntax tree from the control program 221. Known parsing methods by top-down parsing or bottom-up parsing may be used to construct the abstract syntax tree. For example, the construction of an abstract syntax tree may use a parser that handles strings according to a particular formal grammar. When the construction of the abstract syntax tree is completed, the control unit 11 advances the processing to the next step S1402.
To be specific, among the tokens (lexical texts) used in the program, the control unit 11 omits tokens such as parentheses that are not necessary for interpreting the meaning of the program and extracts tokens that are relating to the interpretation of the meaning of the program. Then, the control unit 11 associates an operator such as a conditional branch with a node, and an operand such as a variable with a leaf. By parsing the control program 221 in this manner, the control unit 11 may construct an abstract syntax tree illustrated in
(Step S1402)
In the next step S1402, the control unit 11 extracts variables (V1 to V4) relating to each mechanism 31 and operators including conditional branches and assignment operations from the abstract syntax tree constructed in step S1401. For example, when the abstract syntax tree 2211 shown in
(Steps S1403 and S1404)
In the next step S1403, the control unit 11 arranges the variables and operators extracted in step S1402 in order, and limits the target object whose execution order is to be monitored to the parts relating to the variables (v1 to v4) corresponding to each mechanism 31 whose causal relationship is to be identified. In the above example, the control unit 11 further extracts (“if”, “v1”, and “v2”) from (“if”, “v1”, “=”, “a”, “v2”, “=”, and “−a”).
Then, in the next step S1404, by randomly selecting conditional branches and executing the control program 221 by trial, the ordering of the limited variables is initialized. To be specific, the control unit 11 may initialize the ordering of the variables by monitoring the order in which the limited variables are used in the trial execution of the control program 221.
When such initialization is completed, the control unit 11 advances the processing to the next step S1405.
(Step S1405)
In the next step S1405, the control unit 11 acquire the log data 223 indicating the execution result when the production line 3 is operated normally using the control program 221 from the PLC 2. For example, when collecting the above state data 222, the PLC 2 may also create the log data 223 indicating execution result of the control program 221. In this case, the log data 223 records time stamps, values of variables used, and the like. Further, for example, the control program 221 may be provided with a debug mode for collecting information such as how often each line of code is executed, which lines of code are executed, computation time consumed by each section of code, and so on. In this case, the PLC 2 may create the log data 223 that records each piece of information by executing the control program 221 in debug mode. The control unit 11 may acquire the log data 223 created in this way from the PLC 2. When the acquisition of the log data 223 is completed, the control unit 11 advances the processing to the next step S1406.
(Step S1406)
In the next step S1406, the control unit 11 refers to the log data 223 acquired in step S1405, and identifies the order relationship of each mechanism 31 in the production line 3 by ordering the above variables (v1 to v4) based on the execution result of the conditional branches.
When the order relationship of the multiple mechanisms 31 is identified as described above, the analysis processing of the control program 221 according to this embodiment is completed, and the control unit 11 advances the processing to the next step S104.
[Step S104]
In step S104, the control unit 11 operates as the second analysis unit 114, and identifies a process model 252 by analyzing the mechanism data 223 acquired in step S102, as shown in
[Step S105]
Returning to
In this embodiment, the control unit 11 identifies the causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3 based on the order relationship of the mechanisms 31 identified in the above step S1406 and the process model 252 identified in the above step S104. For example, whether or not there is a relationship between the mechanisms 31 may be identified by the product of the order relationship of each mechanism 31 and the process model 252. Then, a constraint model is generated by layering and ordering the nodes based on the presence or absence of the relationship.
[Step S106]
At the next step S106, the control unit 11 outputs the constraint model created in step S105. For example, the control unit 11 outputs the created constraint model in an image format to the output device 15 such as a display. With the above, the control unit 11 ends the processing according to this operation example.
<4-2. Event Causal Relationship Generation Module>
<4-2-1. Configuration of Event Causal Relationship Generation Module>
Next, the event causal relationship generation module 102 will be described. As shown in
The third acquisition unit 116 acquires multiple state data 222 relating to the state of the multiple mechanisms 31 constituting the production line 3. At this time, the acquired state data 222 is data when the production line 3 is operated normally. Similarly to the third acquisition unit 116, the fourth acquisition unit 117 also acquires multiple state data 222 relating to the state of the mechanisms 31, but the fourth acquisition unit 117 acquires state data when an abnormality occurs in the production line 3. The third analysis unit 118 and the fourth analysis unit 119 both identify the strength of relationship between the multiple mechanisms 31 by statistically analyzing the acquired multiple state data 222.
The second relationship identification unit 120 identifies a normal period causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3 based on the analysis result of the third analysis unit 118 and the above constraint model. The third relationship identification unit 120 identifies an abnormal period causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3 based on the analysis result of the fourth analysis unit 119 and the above constraint model. The fourth relationship identification unit 122 generates an event causal model, that is, a causal relationship specializing in identifying the cause of an abnormality (event) that has occurred from the normal period causal relationship and the abnormal period causal relationship generated by the second relationship identification unit 120 and the third relationship identification unit 121.
<4-2-2. Operation Example of the Event Causal Relationship Generation Module>
Next, an operation example of the event causal relationship generation module 102 will be described with reference to
[Step S201]
First, in step S201, the control unit 11 operates as the third acquisition unit 116 and acquires the multiple state data 222 relating to the status of each mechanism 31 from the PLC 2. Each mechanism 31 may be composed of, for example, a conveyor, a robot arm, a servomotor, a cylinder (molding machine, etc.), a suction pad, a cutter device, a sealing device, or a part of the device. Moreover, each mechanism 31 may be a composite device such as a printer, a mounting machine, a reflow furnace, or a substrate inspection device. Further, in addition to the devices accompanying certain physical actions as described above, each mechanism 31 may include, for example, devices for performing internal processing such as a device for detecting certain information by various sensors, a device for acquiring data from various sensors, a device for detecting certain information based on the acquired data, and a device for processing the acquired data. As a specific example, in a production line equipped with an optical sensor that detects marks given to an object flowing on a conveyor, the optical sensor and the device that uses information detected by the optical sensor may be treated as each mechanism 31. Each state data 222 may be, for example, data indicating at least one of torque, speed, acceleration, temperature, current, voltage, air pressure, pressure, flow rate, position, dimensions (height, length, width), area, light intensity, and ON/OFF state. Such state data 222 may be acquired by known measuring devices such as sensors and cameras. For example, flow rate may be acquired by a float sensor. Also, the position, size, and area may be acquired by an image sensor.
Moreover, the state data 222 may be composed of data acquired from one or more measuring devices. The state data 222 may be data acquired from the measuring device as it is, or data that may be acquired by applying some processing to the data acquired from the measuring device, such as position data acquired from image data. Each state data 222 is acquired corresponding to each mechanism 31.
Each measuring device is appropriately arranged so as to be able to monitor each mechanism 31 of the production line 3. The PLC 2 operates the production line 3 and collects each state data 222 from each measuring device. The control unit 11 acquires the state data 222 relating to the state of each mechanism 31 when the production line 3 is operated normally from the PLC 2. Thereby, the control unit 11 may acquire multiple state data 222. When the acquisition of the multiple state data 222 of normal period state is completed, the control unit 11 advances the processing to the next step S202.
[Step S202]
In step S202, the control unit 11 operates as the fourth acquisition unit 117 and acquires multiple state data 222 relating to the state of each mechanism 31 from the PLC 2. The difference from the operation of the third acquisition unit 116 in step S201 is that the state data 222 relating to the state of each mechanism 31 when the production line 3 is operated when an abnormality occurs is acquired. When the acquisition of the multiple state data 222 of abnormal period state is completed, the control unit 11 advances the processing to the next step S203.
[Step S203]
In step S203, the control unit 11 operates as the third analysis unit 118, and identifies the strength of relationship between the multiple mechanisms 31 in the production line 3 by statistically analyzing the multiple state data 222 acquired in step S201. When the analysis processing of the multiple state data 222 is completed, the control unit 11 advances the processing to the next step S204. Moreover, this step S203 may be executed at any timing after the above step S201. For example, the step S203 may be executed before the above step S202.
<Analysis Processing of State Data>
Here, the process of statistically analyzing the multiple state data 222 will be described in detail with reference to
(Step S2301)
First, in step S2301, the control unit 11 calculates a feature amount 2221 from each state data 222 acquired in step S201. The type of the feature amount 2221 may not be particularly limited, and may be appropriately selected according to the embodiment. Moreover, the method of calculating the feature amount 2221 may be determined as appropriate according to the embodiment.
As a specific example, in this embodiment, the control unit 11 calculates the feature amount 2221 from the state data 222 by the following method. First, the control unit 11 divides the acquired state data 222 for each frame in order to define the processing range for calculating the feature amount 2221. The length of each frame may be set as appropriate according to the embodiment.
For example, the control unit 11 may divide each state data 222 into frames having a certain length of time. However, the production line 3 does not necessarily operate at regular time intervals. Thus, if each state data 222 is divided into frames of a certain length of time, there is a possibility that the operation of each mechanism 31 reflected in each frame may deviate.
Thus, the control unit 11 may divide the state data 222 into frames for each takt time. The takt time is the time required for the production line 3 to produce a predetermined number of products. This takt time may be identified based on a signal that controls the production line 3, for example, a control signal that the PLC 2 controls the operation of each mechanism 31 of the production line 3.
The relationship between the control signal and the takt time will be described with reference to
Thus, the control unit 11 may acquire this control signal from the PLC 2 and set the time from the rise (“on”) of the acquired control signal to the next rise (“on”) as the takt time. Then, as illustrated in
Next, the control unit 11 calculates the value of the feature amount 2221 from each frame of the state data 222. In a case where the state data 222 is continuous value data such as measurement data, the control unit 11 may, for example, calculate amplitude, maximum value, minimum value, average value, variance value, standard deviation, instantaneous value (one point sample) or the like in the frame as the feature amount 2221. Moreover, in a case where the state data 222 is discrete value data such as detection data, the control unit 11, for example, may calculate the “on” time, the “off” time, the duty ratio, the number of “on” times, the number of “off” times, or the like in each frame as the feature amount 2221. Thereby, when the calculation of each feature amount 2221 is completed, the control unit 11 advances the processing to the next step S2302.
(Step S2302)
Returning to
Moreover, rij indicates the element of the i-th row and the j-th column of a matrix 2222. xi and xj correspond to data indicating the feature amount 2221 calculated from each state data 222. Xi and Xj denote sample means of xi and xj respectively. n indicates the number of each feature amount 2221 used for correlation calculation.
Moreover, the inverse matrix of the matrix R (rij) is expressed as R−1 (rij), where rij indicates the i-th row and j-th column element of the inverse matrix of the matrix 2222.
As a result, the control unit 11 may acquire the matrix 2222 with the correlation coefficient or the partial correlation coefficient as each element. The correlation coefficient and partial correlation coefficient between the each of the feature amount 2221 indicate the strength of relationship between the corresponding mechanisms 31. That is, the strength of relationship between corresponding mechanisms 31 is identified by each element of the matrix 2222. When the calculation of the correlation coefficient or partial correlation coefficient between each of the feature amount 2221 is completed, the control unit 11 advances the processing to the next step S2303.
(Step S2303)
In the next step S2303, the control unit 11 constructs undirected graph information 2223 indicating the strength of relationship between the corresponding mechanisms 31 based on the correlation coefficient or partial correlation coefficient between each of the feature amount 2221.
For example, the control unit 11 creates a node corresponding to each mechanism 31. Then, in a case where the value of the correlation coefficient or the partial correlation coefficient calculated between two mechanisms 31 is equal to or larger than a threshold value, the control unit 11 connects two corresponding nodes with an edge. On the other hand, in a case where the value of the correlation coefficient or partial correlation coefficient calculated between two mechanisms 31 is smaller than the threshold value, the control unit 11 does not connect the two corresponding nodes with an edge. Moreover, the threshold value may be a fixed value defined in the process analysis program 121, or may be a set value that may be changed by an operator or the like. Further, the thickness of the edge may be determined according to the value of the corresponding correlation coefficient or partial correlation coefficient.
As a result, the undirected graph information 2223 as illustrated in
Further, in the example of
[Step S204]
Returning to
In this embodiment, the control unit 11 creates directed graph information indicating the causal relationship between the mechanisms 31 by applying the order relationship of the mechanisms 31 identified in the above constraint model to the undirected graph information 2223 constructed in the above step S2303. At this time, the control unit 11 identifies an order (transition) in which the occurrence probability in the order relationship of each mechanism 31 is lower than a threshold value, and deletes the edge corresponding to the identified order from the edges forming the undirected graph information 2223. Moreover, the threshold value may be a fixed value defined in the process analysis program 121 or a set value that may be changed by an operator.
Moreover, in the example of
Further, in the example of
[Step S205]
In step S205, the control unit 11 operates as the fourth analysis unit 119, and identifies the strength of relationship between the multiple mechanisms 31 in the production line 3 by statistically analyzing the multiple state data 222 of abnormal period acquired in step S202. Except that the state data 222 to be used is different from that of the third analysis unit 118, the processing in step S205 is the same as that in step S203, so detailed description will be omitted. Since the fourth analysis unit 119 uses the state data of abnormal period, for example, undirected graph information 2226 as shown in
[Step S206]
In step S206, the control unit 11 operates as the third relationship identification unit 121. That is, based on the above constraint model and the strength of relationship between the multiple mechanisms 31 in the production line 3 identified in step S205, the control unit 11 identifies the abnormal period causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3. Since the processing procedure is the same as the method shown in step S204, detailed description is omitted. For example, directed graph information 123 as shown in
[Step S207]
In step S207, the control unit 11 operates as the fourth relationship identification unit 122. That is, the control unit 11 generates an event causal model from the directed graph information 122 of normal period shown in
(Generation Processing of Event Causal Model)
Here, a method for generating the event causal model will be described in detail with reference to
(Step S2701)
First, in step S2701, the control unit 11 calculates the degree of divergence between the feature amount of normal period acquired in step S203 and the feature amount of abnormal period acquired in step S205. The degree of divergence indicates the degree of difference between corresponding feature amount in the states of normal period and abnormal period. The degree of divergence may be calculated using, for example, the average difference, the median difference, the KL distance, or the like. For example, the degree of divergence as shown in
(Step S2702)
In step S2702, the control unit 11 selects an edge by comparing the directed graph information 122 of normal period acquired in step S204 with the directed graph information 123 of the feature amount of abnormal period acquired in step S206. For example, an edge whose strength has changed significantly between the graph information 122 and 123, or an edge that exists in one but does not exist in the other may be selected.
(Step S2703)
In step S2703, the control unit 11 selects nodes. Here, nodes whose degree of divergence calculated in step S2701 is larger than a predetermined threshold value are selected. Thus, an event causal model 125 when an abnormality occurs is generated from the selected edges and nodes, as shown in
(Step S2704)
In step S2704, the control unit 11 orders the abnormality cause candidates from the event causal model generated in S2703. An example of this cause order is shown in
<4-3. Control Causal Model Generation Module>
<4-3-1. Configuration of Control Causal Relationship Generation Module>
Next, the control causal relationship module 103 will be described. The control causal relationship model 103 creates a new causal relationship by applying the experimental planning data used when determining conditions for starting up the production line 3 to the above constraint model. Here, this new causal relationship is called a control causal relationship model. As shown in
The fifth acquisition unit 123 acquires first experimental planning data 225 when starting up the production line 3. The first experimental planning data 225 is data relating to an experimental planning when determining conditions for operating the production line 3, and is, for example, data for starting up the production line 3 while changing the adjustment amount of various adjustment items in order to achieve a desired quality. Such first experimental planning data is stored in, for example, the process analysis device 1 or an external database. The first experimental planning data 225 corresponds to, for example, state data, quality data, and adjustment item data of each mechanism when the production line 3 of each mechanism 31 is operated, and these include multiple results of changes in adjustment item data. Here, the quality data corresponds to, for example, characteristic inspection results such as image inspection results and resistance values. The adjustment item data corresponds to, for example, set speed, set temperature, arm angle, and the like. The first experimental planning data 225 described here does not necessarily need to be acquired by operating the production line 3 to implement the experimental planning, and data of a production line that has been operated under a plurality of conditions in the past may also be used.
The fifth analysis unit 124 identifies the strength of relationship between the multiple mechanisms 31 by statistically analyzing the acquired first experimental planning data 225. The fifth relationship identification unit 125 identifies causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3 based on the analysis result of the fifth analysis unit 124 and the constraint model described.
<4-3-2. Operation Example of the Control Causal Relationship Generation Module>
Next, an operation example of the control causal relationship generation module will be described with reference to
[Step S301]
First, in step S301, the control unit 11 operates as the fifth acquisition unit 123 and acquires the feature amount of each state from the above first experimental planning data 225. When the acquisition of the feature amount is completed, the control unit 11 advances the processing to the next step S302.
[Step S302]
In steps S302 and S303, the control unit 11 operates as the fifth analysis unit 124, and identifies the strength of relationship between the multiple mechanisms 31 in the production line 3 by statistically analyzing the feature amount acquired in step S301. That is, the presence or absence of directed edge is determined and an undirected graph is generated. In determining whether or not there is a directed edge, a partial correlation coefficient is derived and threshold value processing is performed to determine whether or not there is conditional independence. The analysis performed here may be performed by the same method as the analysis processing of the above state data 222.
[Step S303]
In step S304, the control unit 11 operates as the fifth relationship identification unit 125. That is, the control unit 11 identifies the causal relationship between the multiple mechanisms 31 in the process carried out on the production line 3 based on the above constraint model described and the strength of relationship between the multiple mechanisms 31 in the production line 3 identified in step S302.
In this embodiment, by applying the order relationship of each mechanism 31 identified in the above constraint model to the undirected graph information constructed in the above step S302, the control unit 11 creates directed graph information 2227 indicating the causal relationship between the mechanisms 31 as shown in
Finally, a directed edge is added based on an orientation rule as needed. The orientation rule means, for example, when a certain partially directed graph is given, an edge is added according to the following three rules.
Thus, a control causal relationship model is generated.
<4-4. Quality Adjustment Causal Model Generation Module>
<4-4-1. Configuration of Quality Adjustment Causal Model Generation Module>
Next, the quality adjustment causal relationship module 103 will be described. The quality adjustment causal relationship model is created from the above control causal relationship model and event causal relationship model, and has a function of narrowing down adjustment items when an abnormality occurs. As shown in
<4-4-2. Operation Example of the Quality Adjustment Causal Relationship Generation Module>
Next, an operation example of the quality adjustment causal relationship generation module will be described with reference to
[Step S401]
In step S401, the control unit 11 operates as the sixth acquisition unit 126 and acquires the above control causal relationship model and event causal relationship model from the storage unit 12. When the acquisition of these models is completed, the control unit 11 advances the processing to the next step S402.
[Step S402]
In step S402, the control unit 11 operates as the sixth relationship identification unit 127 and generates a quality adjustment causal relationship model from the control causal relationship model and the event causal relationship model. This will be described with reference to
Next, as shown in
As another example, for example, when an event causal relationship model and a control causal relationship model as shown in
<4-5. Quality Prediction Model Generation Module>
<4-5-1. Configuration of Quality Prediction Model Generation Module>
Next, the quality prediction model module will be described. The quality prediction model module 105 is a module that generates a quality prediction model based on the adjustment items identified by the above quality adjustment causal relationship model. As shown in
<4-5-2. Operation Example of the Quality Prediction Model Module>
Next, an operation example of the quality prediction model module will be described with reference to
[Step S501]
In step S501, the control unit 11 operates as the experimental planning generation unit 128. Here, first, the adjustment items are extracted from the quality adjustment causal relationship model generated by the above quality adjustment causal model generation module 104. In the example of
[Step S502]
In step S502, the control unit 11 operates as the experimental data acquisition unit 129. Here, based on the experimental planning generated in step S501, the production line 3 is operated, and the relationship between the adjustment amount of the adjustment items and the quality of the product is acquired as data. In that case, first, the adjustment items are extracted from the quality adjustment causal relationship model generated by the above quality adjustment causal model generation module 104. In the example of
[Step S503]
In step S503, the control unit 11 operates as the quality prediction model generation unit 130. Here, based on the second experimental data generated in step S502, a quality prediction model is generated. The quality prediction model is the modelling of the relationship between the adjustment amount and quality of adjustment items, and is created using, for example, multiple regression model, support vector regression, or the like.
[Step S504]
When the quality prediction model is generated in this way, it is used to derive the optimal adjustment amount that maximizes the quality of the selected adjustment items. For this derivation, for example, Newton's method, Nelder-Mead method, or the like may be used.
<5. Features>
As described above, according to this embodiment, the following effects can be acquired.
<6. Variation>
Although one embodiment of the present invention has been described in detail above, the present invention is not limited to the above embodiment, and various improvements and modifications may be made without departing from the scope of the invention. It should be noted that the following modified examples and the above embodiment may be appropriately combined.
<6-1>
In
<6-2>
In the above embodiment, although the control program 221 and the mechanism data 223 are analyzed in the constraint model generation module 101, it is also possible to generate a causal relationship using only the analysis of the control program 221 and apply this to the event causal relationship generation module 102. That is, in
<6-3>
In the event causal generation module 102 of the above embodiment, the constraint model generated in the constraint model generation module 101 is used to generate the event causal relationship, but the constraint model need not always be used.
<6-4>
In the above embodiment, the event causal model is generated by the event causal generation module 102 shown in
In the event causal generation module 102 of the above embodiment, although the causal relationship is generated using the state data of normal period and the state data of abnormal period, but for example, it is also possible to generate only the causal relationship using the state data of abnormal period. In this case, no causal relationship using the state data of normal period is constructed, but the degree of divergence is calculated from the feature amount calculated by the third analysis unit 118 and the feature amount calculated by the third analysis unit 118, and a node is selected based on the degree of divergence. Then, based on the node, an induced subgraph is generated. This is the event causal relationship model. An induced subgraph is a type of subgraph, one in which some vertices are extracted from a certain graph and the presence or absence of an edge between the vertices matches that of the original graph. For example, the nodes with degree of divergence higher than the predetermined threshold value are selected from the abnormal causal model, and a graph is created in which the nodes and edges included between these nodes are the same as the original abnormal causal model, and used as the event causal relationship model.
<6-5>
In generating the quality prediction model, it is also possible to utilize data acquired at times other than when an abnormality occurs in order to increase the accuracy of the model. That is, in the above embodiment, the model is generated by changing the adjustment amount of the adjustment items that affect the occurrence of an abnormality, but the model may also be generated by changing the adjustment amount by adding adjustment items that have nothing to do with the occurrence of an abnormality.
Number | Date | Country | Kind |
---|---|---|---|
2020-191815 | Nov 2020 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2021/033820 | 9/14/2021 | WO |