Measuring action parameter adjustment device, machine learning device and system

By constructing a learning model through a machine learning device and adjusting the measurement action parameters, the deviation problem existing in the position measurement of the measurement object in the existing technology is solved, and a more efficient and accurate adjustment of the measurement action parameters is achieved.

CN110340884BActive Publication Date: 2024-09-20FANUC LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910271366.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-01-08
Filing Date
2019-04-04
Publication Date
2024-09-20
Estimated Expiration
2039-04-04

AI Technical Summary

Technical Problem

The existing technology has deviations in the position measurement of the measurement object. Especially when the installation position, size, and variety of the object are deviated, it is difficult to effectively adjust the measurement action parameters, resulting in collision or position deviation between the sensor and the object. Affect measurement accuracy and efficiency.

Method used

A machine learning device is used to construct a learning model by observing and measuring action parameters and required time data as state variables, and adjust the measured action parameters to adapt to the characteristics of different environments and objects, thereby realizing automatic adjustment of action parameters.

Benefits of technology

Even when the object is deviated, the measurement action parameters can be effectively adjusted to improve measurement accuracy and efficiency, avoid collisions between the sensor and the object, and shorten measurement time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110340884B_ABST
    Figure CN110340884B_ABST
Patent Text Reader

Abstract

The present invention provides a measuring action parameter adjustment device, a machine learning device and a system, wherein the measuring action parameter adjustment device can effectively measure the setting position of a measuring object even when the setting position, size or variety of the measuring object is deviated, and the measuring action parameter adjustment device is provided with a machine learning device. The machine learning device observes measuring action parameter data representing measuring action parameters of a measuring action and measuring time data representing the time required for the measuring action as state variables representing the current state of an environment, and performs learning or decision-making using a learning model obtained by modeling the adjustment of the measuring action parameters based on the state variables.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a measuring action parameter adjustment device, a machine learning device and a system. Background Art

[0002] In the past, Fig.11 As shown in the example, a contact type touch sensor or a non-contact type visual sensor is installed in the mechanical part of the machine, and the sensor is moved by moving the mechanical part, so as to measure the position of the measurement object. In the example shown in Figure 11, when a contact type sensor is used, the position of the measurement object is measured based on the coordinate value of the mechanical part when the contact sensor and the workpiece are detected to be in contact, and when a non-contact sensor is used, the position of the measurement object is measured based on the coordinate value of the mechanical part when the distance between the object and the non-contact sensor changes, that is, when the non-contact sensor is close to the end of the measurement object.

[0003] When a sensor installed in a mechanical part of a machine is used to detect the position of a measurement object, it is necessary to determine in advance the position of the mechanical part when the measurement operation starts or the speed at which the mechanical part moves during the measurement operation. As a conventional technique for determining the position and speed, for example, Japanese Patent Publication No. 2010-217182 discloses the following technique: before measurement, the sensor is brought into contact with the measurement object, and the position of the mechanical part when the measurement operation starts is determined based on the measurement position at that time.

[0004] Although the technology disclosed in Japanese Patent Publication No. 2010-217182 is effective when there is no deviation in the size or setting position of the measurement object, there will be deviations in the actual position where the contact sensor contacts or the position where the non-contact sensor detects the change in distance even for the same type of measurement object. For example, when measuring the position of the measurement object that is set to have a hole at the bottom and the hole is engaged with the protrusion set on the table, it is considered ideal to always set it at the same position, but in fact, there is a gap between the hole and the protrusion, and there is a slight deviation in the setting position of the measurement object. In addition, there are also cases where the shape of the measurement object itself has deviations, or the positions of different types of measurement objects are measured by the same measurement mechanism. In order to cope with such a situation, in the technology disclosed in Japanese Patent Publication No. 2010-217182, it is assumed that the situation with the largest deviation is the case and only the measurement action start position with a margin is uniformly set, which makes it difficult to shorten the time according to the situation.

[0005] In addition, the time from when the contact sensor contacts the object to be measured to when a digital signal is detected, or the time from when the end of the non-contact sensor is close to the object to be measured to when a digital signal is detected, has deviations due to individual differences even if the sensors are of the same type. If the moving speed of the sensor is not set in consideration of the deviation, there are problems such as the (contact) sensor colliding with the object to be measured, causing damage to the sensor, the mechanism, or the object to be measured, or the setting position of the object to be measured deviating. In addition, the position of the object to be measured, which causes the speed of the sensor movement in the measurement operation to be measured as a non-constant speed, has deviations. Therefore, the speed of the sensor movement in the measurement operation is set to a constant slow speed in consideration of the whole, but there are other problems such as time delay. Summary of the invention

[0006] Therefore, a measurement action parameter adjustment device, a machine learning device, and a system are desired that can effectively measure the setting position of a measurement object even when there are deviations in the setting position, size, or type of the measurement object.

[0007] One embodiment of the present invention provides a measurement action parameter adjustment device for adjusting measurement action parameters of a measurement action performed by a measurement device, wherein the measurement device measures the setting position of a measurement object, and the measurement action parameter adjustment device comprises: a machine learning device, which observes measurement action parameter data representing the measurement action parameters of the measurement action and measurement time data representing the time required for the measurement action as state variables representing the current state of an environment, and performs learning or decision-making based on the state variables using a learning model obtained by modeling the adjustment of the measurement action parameters.

[0008] Another embodiment of the present invention provides a machine learning device that observes measurement action parameter data representing measurement action parameters of a measurement action performed by a measuring device and measurement time data representing the time required for the measurement action as state variables representing the current state of an environment, and performs learning or decision-making based on the state variables using a learning model obtained by modeling the adjustment of the measurement action parameters, wherein the measuring device measures the setting position of a measuring object.

[0009] Another aspect of the present invention provides a system in which a plurality of devices are connected to each other via a network, wherein the plurality of devices include at least the first measurement operation parameter adjustment device described in the first aspect.

[0010] Another aspect of the present invention provides a method for performing learning or decision-making related to adjustment of measurement action parameters of a measurement action performed by a measuring device, the method comprising the following steps of adjusting or making decisions on the measurement action parameters: observing measurement action parameter data representing the measurement action parameters of the measurement action and measurement time data representing the time required for the measurement action as state variables representing the current state of the environment, and performing learning or decision-making based on the state variables using a learning model obtained by modeling the adjustment of the measurement action parameters.

[0011] According to the present invention, even when there is a deviation in the setting position, size, or type of the measurement object, the setting position of the measurement object can be effectively measured by learning the deviation through the machine learning device. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other objects and features of the present invention will become apparent from the following description of embodiments with reference to the accompanying drawings.

[0013] Figure 1 This is a schematic hardware configuration diagram of a measurement operation parameter adjustment device according to one embodiment.

[0014] Figure 2 This is a schematic functional block diagram of a measurement operation parameter adjustment device according to one embodiment.

[0015] Figure 3 This is a schematic functional block diagram showing one embodiment of a measurement operation parameter adjustment device.

[0016] Figure 4 This is a flowchart schematically showing one method of machine learning.

[0017] Figure 5A is a diagram illustrating a neuron.

[0018] Figure 5B is a diagram illustrating a neural network.

[0019] Figure 6 This is a diagram showing an example of a system having a three-layer structure including a cloud server, a fog server, and an edge computer.

[0020] Figure 7 This is a schematic functional block diagram showing one embodiment of a system incorporating a measurement operation parameter adjustment device.

[0021] Figure 8 This is a schematic functional block diagram showing another embodiment of a system incorporating a measurement operation parameter adjustment device.

[0022] Fig. 9 yes Figure 8 The schematic hardware structure diagram of the computer shown.

[0023] Fig.10 This is a schematic functional block diagram showing another embodiment of a system incorporating a measurement operation parameter adjustment device.

[0024] Fig.11 This is a diagram for explaining the operation of measuring the installation position of the measurement object performed by the measurement device. DETAILED DESCRIPTION

[0025] The following, with the attached Figure 1 Embodiments of the present invention will now be described.

[0026] Figure 1 1 is a schematic hardware structure diagram showing the main parts of a measuring action parameter adjustment device according to an embodiment. The measuring action parameter adjustment device 1 can be installed as a control device for controlling a manufacturing machine such as a robot, or a personal computer installed in a manufacturing machine, etc. In addition, the measuring action parameter adjustment device 1 can be installed as a computer such as a unit computer, an edge computer, a fog computer, a host computer, a cloud server, etc. connected to a manufacturing machine, etc. via a wired / wireless network. In this embodiment, an example is shown in which the measuring action parameter adjustment device 1 is installed as a personal computer installed in a manufacturing machine, etc.

[0027] The CPU 11 included in the measurement operation parameter adjustment device 1 of the present embodiment is a processor that controls the entire measurement operation parameter adjustment device 1. The CPU 11 reads the system program stored in the ROM 12 via the bus 20, and controls the entire measurement operation parameter adjustment device 1 according to the system program. Temporary calculation data, display data displayed on a display device 70 such as a display, and various data input by an operator via an input device 71 such as a keyboard, a mouse, or a touch panel are temporarily stored in the RAM 13.

[0028] The nonvolatile memory 14 is configured as a memory such that, for example, it is backed up by a battery (not shown) and can maintain the storage state even when the power supply of the measurement action parameter adjustment device 1 is turned off. The nonvolatile memory 14 stores programs inputted via the input device 71, various data obtained from the measurement action parameter adjustment device 1 or the robot holding the sensor, etc., from the measurement device 2 (for example, the position of the measurement device 2 in the coordinate system measured by the measurement device 2, the position of the sensor of the measurement device 2 at the start of the measurement action, the moving speed of the sensor of the measurement device 2 during the measurement action, the time from the start of the measurement action until the sensor detects the measurement object during the measurement action, the type of the measurement object, the state information of the sensor or the measurement object inputted by the operator, etc.). The programs or various data stored in the nonvolatile memory 14 can be expanded in the RAM 13 when executed / used. In addition, various system programs such as well-known analysis programs (including system programs for controlling exchanges with the machine learning device 100 described later) are pre-written in the ROM 12.

[0029] The interface 21 is an interface for connecting the measurement action parameter adjustment device 1 to the machine learning device 100. The machine learning device 100 has: a processor 101 that controls the entire machine learning device 100 in a unified manner, a ROM 102 that stores system programs, etc., a RAM 103 that is used for temporary storage in various processes related to machine learning, and a non-volatile memory 104 that is used to store learning models, etc. The machine learning device 100 can observe various information that can be obtained by the measurement action parameter adjustment device 1 through the interface 21 (for example, the position of the measurement device 2 in the coordinate system measured by the measurement device 2, the position of the sensor of the measurement device 2 when the measurement action starts, the moving speed of the sensor of the measurement device 2 during the measurement action, the time from the start of the measurement action until the sensor detects the measurement object during the measurement action, the type of the measurement object, the state information of the sensor or the measurement object input by the operator, etc.). In addition, the measurement action parameter adjustment device 1 receives the adjustment instruction of the measurement action parameter output from the machine learning device 100, and sets the measurement action parameter based on the measurement device 2.

[0030] Figure 2 This is a schematic functional block diagram of the measurement operation parameter adjustment device 1 and the machine learning device 100 according to one embodiment. Figure 2 The functional blocks shown are Figure 1 This is realized by the CPU 11 included in the measurement operation parameter adjustment device 1 and the processor 101 of the machine learning device 100 executing respective system programs to control the operations of the respective parts of the measurement operation parameter adjustment device 1 and the machine learning device 100 .

[0031] The measurement action parameter adjustment device 1 of this embodiment includes a measurement action parameter setting unit 34 that controls the measurement device 2 according to the measurement action parameter adjustment command output from the machine learning device 100. The measurement action parameter setting unit 34 is a functional unit that adjusts the measurement action parameters used in the measurement action performed by the measurement device 2. The measurement action parameter setting unit 34 can set at least the measurement action start position and the measurement action speed when the measurement device 2 measures the position of the measurement object.

[0032] On the other hand, the machine learning device 100 included in the measurement action parameter adjustment device 1 includes software (learning algorithm, etc.) and hardware (processor 101, etc.) for self-learning the adjustment of the measurement action parameter of the measurement action with respect to the time taken for the measurement action by so-called machine learning. The content learned by the machine learning device 100 included in the measurement action parameter adjustment device 1 corresponds to the model structure representing the correlation between the time taken for the measurement action and the adjustment of the measurement action parameter of the measurement action.

[0033] like Figure 2 As shown in the functional block, the machine learning device 100 possessed by the measurement action parameter adjustment device 1 comprises: a state observation unit 106, which observes a state variable S representing the current state of the environment, wherein the state variable S includes measurement action parameter data S1 representing the measurement action parameters of the measurement action and measurement time data S2 representing the time taken for the measurement action; a judgment data acquisition unit 108, which acquires judgment data D, wherein the judgment data D includes measurement action judgment data D1 for judging whether a measurement action performed according to the measurement action parameters of the adjusted measurement action is good or not; and a learning unit 110, which uses the state variable S and the judgment data D to associate the time taken for the measurement action with the adjustment of the measurement action parameters of the measurement action for learning.

[0034] The measurement operation parameter data S1 among the state variables S observed by the state observation unit 106 can be acquired as measurement operation parameters of the measurement operation performed in the measurement device 2 .

[0035] The measurement operation parameters of the measurement operation include, for example, the position of the sensor when the measurement device 2 starts the measurement operation, the moving speed of the sensor during the measurement operation performed by the measurement device 2, etc. These measurement operation parameters can be obtained from the current parameters set to the measurement device 2, the parameters obtained by analyzing the program for operating the measurement device 2, the measurement operation parameters set to the measurement device 2 one learning cycle ago and stored in the non-volatile memory 14 or the like, etc.

[0036] As for the measurement action parameter data S1, the machine learning device 100 can directly use the measurement action parameters of the measurement action adjusted in the learning cycle for the time spent on the measurement action in the previous learning cycle based on the learning result of the learning unit 110. When such a method is adopted, the machine learning device 100 temporarily stores the measurement action parameters of the measurement action in the RAM 103 according to the learning cycle, and the state observation unit 106 can also obtain the measurement action parameters of the measurement action in the previous learning cycle from the RAM 103 as the measurement action parameter data S1 of the current learning cycle.

[0037] The measurement time data S2 among the state variables S observed by the state observation unit 106 can be obtained as the time taken from the start of the measurement operation executed by the measurement device 2 and stored in the nonvolatile memory 14 to the detection of the measurement object by the sensor.

[0038] The determination data acquisition unit 108 may use the determination result of whether the measurement action is appropriate when the measurement action is performed according to the measurement action parameters of the adjusted measurement action as the measurement action determination data D1. For example, when the measurement action is performed using the adjusted measurement action parameters, the following data may be used as the measurement action determination data D1: whether the moving distance of the sensor during the measurement action is less than a predetermined threshold value set in advance (appropriate), whether the moving distance of the sensor during the measurement action is greater than a predetermined threshold value set in advance (no), whether the measurement object or the mechanism of the measurement device 2 or the sensor is further damaged during the measurement action (no), and whether the measurement object is further moved during the measurement action (no).

[0039] In addition, the judgment data acquisition unit 108 is a necessary structure during the learning stage of the learning unit 110, but it is not necessarily a necessary structure after the learning of associating the time taken for the measurement operation by the learning unit 110 with the adjustment of the measurement operation parameters of the measurement operation is completed. For example, when the machine learning device 100 after learning is shipped to a customer, the judgment data acquisition unit 108 can be removed and shipped.

[0040] When considering the learning cycle of the learning unit 110, the state variable S simultaneously input to the learning unit 110 becomes a variable based on data one learning cycle before the determination data D is acquired. In this way, during the period and environment in which the machine learning device 100 of the measurement operation parameter adjustment device 1 performs learning, the acquisition of the measurement time data S2, the execution of the measurement operation of the measurement device 2 based on the measurement operation parameter data S1 adjusted based on each acquired data, and the acquisition of the determination data D are repeatedly performed.

[0041] The learning unit 110 learns the adjustment of the measurement action parameters of the measurement action for the time taken for the measurement action according to any learning algorithm generally referred to as machine learning. The learning unit 110 may repeatedly perform learning based on a data set, the data set including the state variable S and the judgment data D. In the process of repeatedly performing the learning cycle of the measurement action parameters of the measurement action for the time taken for the measurement action, as described above, the state variable S is obtained from the time taken for the measurement action before a learning cycle and the measurement action parameters of the measurement action adjusted before a learning cycle, and the judgment data D is set as the result of the determination of the suitability of the measurement action performed based on the measurement action parameters of the adjusted measurement action.

[0042] By repeating such a learning cycle, the learning unit 110 can identify features that imply the correlation between the time spent on the measuring action and the adjustment of the measuring action parameters of the measuring action. At the beginning of the learning algorithm, the correlation between the time spent on the measuring action and the adjustment of the measuring action parameters of the measuring action is actually unknown, but the learning unit 110 gradually identifies features and explains the correlation as the learning proceeds. If the correlation between the time spent on the measuring action and the adjustment of the measuring action parameters of the measuring action is interpreted as reaching a certain credible level, the learning results repeatedly output by the learning unit 110 can be used to select (i.e., make decisions) on how to adjust the measuring action parameters of the measuring action for the current state (i.e., the time spent on the measuring action). That is, as the learning algorithm proceeds, the learning unit 110 can make the correlation of the behavior of how to adjust the measuring action parameters of the measuring action for the time spent on the measuring action gradually approach the optimal solution.

[0043] The decision unit 122 adjusts the measurement action parameters of the measurement action according to the results learned by the learning unit 110, and outputs the adjusted measurement action parameters of the measurement action to the measurement action parameter setting unit 34. The decision unit 122 is in a stage where the learning performed by the learning unit 110 is in a state that can be used for adjusting the measurement action parameters. If the time taken for the measurement action is input to the machine learning device 100, the measurement action parameters of the measurement action (at least one of the position of the sensor at the start of the measurement action and the moving speed of the sensor, etc.) are output. The decision unit 122 appropriately adjusts the measurement action parameters of the measurement action according to the state variable S and the results learned by the learning unit 110.

[0044] As described above, the machine learning device 100 included in the measurement action parameter adjustment device 1 uses the state variable S observed by the state observation unit 106 and the determination data D obtained by the determination data acquisition unit 108, and the learning unit 110 learns the adjustment of the measurement action parameter of the measurement action for the time taken for the measurement action according to the machine learning algorithm. The state variable S is composed of data such as the measurement action parameter data S1 and the measurement time data S2, and the determination data D is uniquely obtained from the information obtained during the measurement action involving the measurement device 2. Therefore, according to the machine learning device 100 included in the measurement action parameter adjustment device 1, by using the learning result of the learning unit 110, the measurement action parameter of the measurement action corresponding to the time taken for the measurement action can be automatically and accurately adjusted.

[0045] Furthermore, if the measurement operation parameters of the measurement operation can be adjusted automatically, the measurement operation parameters of the measurement operation can be quickly adjusted to appropriate values ​​by only knowing the time taken for the measurement operation (measurement time data S2). Therefore, the measurement operation parameters of the measurement operation can be adjusted efficiently.

[0046] As a modified example of the machine learning device 100 included in the measurement action parameter adjustment device 1, in addition to the measurement action parameter data S1 and the measurement time data S2, the state observation unit 106 can observe the type data S3 indicating the type information of the measurement object as the state variable S. As the type data S3, an identification number or the like marked in a manner to uniquely determine the type of the measurement object can be used. By using the type data S3 as the state variable S, the position of the sensor at the start of the measurement action corresponding to the type of the measurement object and the moving speed of the sensor can be learned, and the learning result can be reflected in the adjustment of the measurement action parameters.

[0047] As another modified example of the machine learning device 100 included in the measurement action parameter adjustment device 1, in addition to the measurement action parameter data S1 and the measurement time data S2, the state observation unit 106 may also observe measurement environment data S4 indicating the time period or season, temperature, humidity, and other measurement environments in which the measurement action is performed as the state variable S. Depending on the measurement object, there are items (processed foods such as bread and rice cakes, fruits, vegetables, etc.) whose size or strength varies due to temperature, humidity, time, etc., and in the measurement action of measuring such a measurement object, the measurement environment data S4 is used as the state variable S to adjust the measurement action parameters more appropriately.

[0048] In the machine learning device 100 having the above-described configuration, the learning algorithm executed by the learning unit 110 is not particularly limited, and a known learning algorithm can be employed as the machine learning. Figure 3 yes Figure 2One embodiment of the measurement action parameter adjustment device 1 shown in the figure shows a structure having a learning unit 110 that performs reinforcement learning as an example of a learning algorithm. Reinforcement learning is a method in which the current state of the environment in which the learning object is located (i.e., input) is observed and a predetermined behavior (i.e., output) is performed in the current state, and a cycle of what kind of reward is given to the behavior is repeated by trial and error, and a method (in the machine learning device of the present application, the measurement action parameter of the measurement action) that maximizes the sum of the rewards is learned as the optimal solution.

[0049] exist Figure 3 In the machine learning device 100 included in the measurement action parameter adjustment device 1 shown in the figure, the learning unit 110 includes: a reward calculation unit 112 that adjusts the measurement action parameter of the measurement action according to the state variable S, and obtains a reward R associated with the result of the appropriateness determination of the measurement action performed by the measurement device 2 based on the adjusted measurement action parameter of the measurement action (equivalent to the determination data D used in the next learning cycle after obtaining the state variable S); and a value function update unit 114 that updates the function Q representing the value of the measurement action parameter of the measurement action using the reward R. The learning unit 110 repeatedly updates the function Q through the value function update unit 114 to learn the adjustment of the measurement action parameter of the measurement action with respect to the time taken for the measurement action.

[0050] An example of a reinforcement learning algorithm performed by the learning unit 110 is described. The algorithm involved in this example is known as Q-learning, which is a method of setting the state s of the agent and the behavior a that the agent can choose in the state s as independent variables, and learning the function Q(s, a) that represents the value of the behavior when the behavior a is selected in the state s. The behavior a that selects the highest value function Q in the state s is the best solution. Q learning is started in a state where the correlation between the state s and the behavior a is unknown, and the value function Q is repeatedly updated by repeatedly performing trial and error of selecting various behaviors a in any state s to approach the optimal solution. Here, as a result of selecting behavior a in the state s, when the environment (i.e., state s) changes, a reward r (i.e., the weight of behavior a) corresponding to the change is obtained, and learning is guided to select behavior a that obtains a higher reward r, thereby making the value function Q close to the optimal solution in a relatively short time.

[0051] The update formula of the value function Q can generally be expressed as the following mathematical formula 1. In mathematical formula 1, s t and a t They are the state and behavior at time t, and the state is affected by the behavior a t And changes to s t+1 . r t+1 Is the state from s t Change to s t+1The term maxQ represents Q when action a (considered at time t) is performed, which has the maximum value Q at time t+1. α and γ are learning coefficients and discount rates, respectively, and are arbitrarily set within the range of 0<α≤1, 0<γ≤1.

[0052]

Mathematical formula 1

[0053]

[0054] When the learning unit 110 performs Q learning, the state variable S observed by the state observation unit 106 and the determination data D obtained by the determination data acquisition unit 108 correspond to the state s of the update formula, the behavior of how to adjust the measurement action parameters of the measurement action for the current state (i.e., the time taken for the measurement action) corresponds to the behavior a of the update formula, and the reward R calculated by the reward calculation unit 112 corresponds to the reward r of the update formula. Therefore, the value function update unit 114 repeatedly updates the function Q representing the value of the measurement action parameters of the measurement action for the current state through Q learning using the reward R.

[0055] The report R calculated by the report calculation unit 112 is, for example, a positive (plus) report R when the measurement action performed after adjusting the measurement action parameters of the measurement action and performed according to the adjusted measurement action parameters is judged to be "appropriate" (for example, when the time spent on the measurement action is below a predetermined threshold value set in advance, etc.), and a negative (minus) report R when the measurement action performed after adjusting the measurement action parameters of the measurement action and performed according to the adjusted measurement action parameters is judged to be "no" (for example, when the time spent on the measurement action exceeds a predetermined threshold value set in advance, when the sensor collides with the measurement object, when the measurement object moves, etc.). The absolute values ​​of the positive and negative reports R may be the same or different. In addition, as a condition for determination, a plurality of values ​​contained in the determination data D may be combined to make a determination.

[0056] Furthermore, the result of determining whether the measurement action is appropriate or not based on the adjusted measurement action parameters can be set not only to "appropriate" or "not", but also to multiple levels. max In the case of max / 5 gives a reward of R = 5, at T max / 5≤T<T max / 2 gives a reward of R = 3, at T max / 2≤T<T max When R=1 is given, at T max When ≤T, a reward R=-3 (negative reward) is given.

[0057] Furthermore, the configuration may be such that the threshold used for determination is set relatively large in the initial stage of learning, and the threshold used for determination is reduced as learning proceeds.

[0058] The value function updating unit 114 may have a behavior value table that associates state variables S, judgment data D, rewards R, and behavior values ​​(e.g., numerical values) represented by function Q. In this case, the behavior of the value function updating unit 114 updating function Q is the same as the behavior of the value function updating unit 114 updating the behavior value table. When starting Q learning, the correlation between the current state of the environment and the adjustment of the measured action parameters of the measured action is unknown. Therefore, in the behavior value table, various state variables S, judgment data D, and rewards R are prepared in a form associated with the value of the randomly specified behavior value (function Q). In addition, if the reward calculation unit 112 knows the judgment data D, it can immediately calculate the corresponding reward R and write the calculated value R into the behavior value table.

[0059] When Q learning is performed using the reward R corresponding to the result of the appropriateness judgment of the measurement action of the measurement device 2, the learning is guided in the direction of selecting the behavior that obtains a higher reward R, and the value of the behavior value (function Q) of the behavior performed in the current state is rewritten according to the state of the environment (i.e., the state variable S and the judgment data D) that has changed as a result of executing the selected behavior in the current state, and the behavior value table is updated. By repeatedly performing this update, the value of the behavior value (function Q) displayed in the behavior value table is rewritten in such a way that the more appropriate the behavior (in the case of the present invention, the behavior of adjusting the measurement action parameters of the measurement action by bringing the position of the sensor at the start of the measurement action close to the measurement object within the range where the measurement object is not moving, or increasing the moving speed of the sensor, etc.) becomes a larger value. In this way, the correlation between the current state of the unknown environment (the time spent on the measurement action) and the corresponding behavior (the adjustment of the measurement action parameters of the measurement action) is gradually clarified. That is, through the update of the behavior value table, the relationship between the time spent on the measurement action and the adjustment of the measurement action parameters of the measurement action gradually approaches the optimal solution.

[0060] Reference Figure 4, further describing the process of the Q learning performed by the learning unit 110 (i.e., one mode of the machine learning method). First, in step SA01, the value function updating unit 114 randomly selects the adjustment behavior of the measurement action parameters of the measurement action as the behavior performed in the current state indicated by the state variable S observed by the state observation unit 106 while referring to the behavior value table at that time point. Next, the value function updating unit 114 takes in the state variable S of the current state observed by the state observation unit 106 in step SA02, and takes in the judgment data D of the current state obtained by the judgment data acquisition unit 108 in step SA03. Next, the value function updating unit 114 determines whether the measurement action based on the measurement action parameters of the adjusted measurement action is appropriate based on the judgment data D in step SA04. If appropriate, in step SA05, the positive reward R calculated by the reward calculation unit 112 is applied to the update formula of the function Q. Next, in step SA06, the behavior value table is updated using the state variable S, judgment data D, reward R, and behavior value value (updated function Q) in the current state. In step SA04, when the measurement action based on the measurement action parameters of the adjusted measurement action is judged to be inappropriate, in step SA07, the negative reward R calculated by the reward calculation unit 112 is applied to the update formula of the function Q, and then in step SA06, the behavior value table is updated using the state variable S, judgment data D, reward R, and the value of the behavior value (updated function Q) in the current state. The learning unit 110 repeatedly updates the behavior value table by repeatedly performing steps SA01 to SA07, so that the learning of the adjustment of the measurement action parameters of the measurement action is promoted. In addition, the processing of calculating the reward R and updating the value function from step SA04 to step SA07 is performed for each data contained in the judgment data D.

[0061] When performing the above-mentioned reinforcement learning, for example, a neural network can be applied. Figure 5A Schematic representation of a model of a neuron. Figure 5B Schematically indicating that Figure 5A The model of a three-layer neural network composed of a combination of neurons shown in FIG. For example, a neural network can be composed of a computing device and a storage device that simulate a neuron model.

[0062] Figure 5A The neuron shown in the figure outputs the result y for multiple inputs x (here, as an example, input x1 to input x3). Each input x1 to x3 is multiplied by the weight w (w1 to w3) corresponding to the input x. As a result, the neuron outputs the output y represented by the following mathematical formula 2. In addition, in mathematical formula 2, input x, output y, and weight w are all vectors. In addition, θ is the bias, and f k is the activation function.

[0063]

Mathematical formula 2

[0064]

[0065] Figure 5B The three-layer neural network shown in the figure inputs multiple inputs x from the left side (here as an example, input x1 to input x3), and outputs results y from the right side (here as an example, results y1 to results y3). In the example shown in the figure, inputs x1, x2, and x3 are multiplied by corresponding weights (uniformly represented by W1), and each input x1, x2, and x3 is input to three neurons N11, N12, and N13.

[0066] exist Figure 5B In the example shown in the figure, the outputs of neurons N11 to N13 are uniformly represented by z1. z1 can be regarded as a feature vector obtained by extracting the feature quantity of the input vector. In the example shown in the figure, the feature vector z1 is multiplied by the corresponding weight (uniformly represented by W2), and each feature vector z1 is input to two neurons N21 and N22. The feature vector z1 represents the feature between the weight W1 and the weight W2.

[0067] exist Figure 5B In the example shown in the figure, the outputs of neurons N21 to N22 are uniformly represented by z2. z2 can be regarded as a feature vector obtained by extracting the feature value of feature vector z1. In the example shown in the figure, the feature vectors z2 are multiplied by the corresponding weights (uniformly represented by W3), and each feature vector z2 is input to three neurons N31, N32, and N33. The feature vector z2 represents the feature between the weights W2 and W3. Finally, neurons N31 to N33 output the results y1 to y3 respectively.

[0068] In addition, a so-called deep learning method can also be used, which uses a neural network consisting of three or more layers.

[0069] In the machine learning device 100 of the measuring action parameter adjustment device 1, a neural network is used as a value function in Q learning, and the state variable S and the behavior a are set as input x. The learning unit 110 performs operations according to the multi-layer structure of the above-mentioned neural network, thereby outputting the value of the behavior in the state (result y). In addition, there are learning modes and value prediction modes in the action modes of the neural network. For example, the learning data set can be used to learn the weight w in the learning mode, and the learned weight w can be used in the value prediction mode to make a value judgment of the behavior. In addition, detection, classification, inference, etc. can also be performed in the value prediction mode.

[0070] The structure of the measurement action parameter adjustment device 1 can be described as a machine learning method (or software) executed by the processor 101. The machine learning method is a machine learning method for learning the adjustment of the measurement action parameters of the measurement action, and has the following steps executed by the CPU of the computer: observing the measurement action parameter data S1 and the measurement time data S2 as the state variable S representing the current state of the environment in which the measurement device 2 operates; obtaining the determination data D representing the appropriateness determination result of the measurement action based on the measurement action parameters of the adjusted measurement action; using the state variable S and the determination data D, the measurement time data S2 is associated with the adjustment of the measurement action parameters of the measurement action to perform learning.

[0071] In the following second to fourth embodiments, the measuring motion parameter adjustment device 1 of the first embodiment is connected to multiple devices including a cloud server or a host computer, a fog computer, an edge computer (robot controller, control device, etc.) via a wired / wireless network. Figure 6 As illustrated, in the second to fourth embodiments below, it is assumed that a system is constructed in which a plurality of devices are logically divided into three layers, namely, a layer including a cloud server 6, a layer including a fog computer 7, and a layer including an edge computer 8 (a robot controller, a control device, etc. included in a unit 9), in a state where a plurality of devices are respectively connected to a network. In such a system, the motion parameter adjustment device 1 can be installed on any one of the cloud server 6, the fog computer 7, and the edge computer 8, and distributed learning can be performed by sharing learning data with each of the plurality of devices via the network, or the generated learning model can be collected to the fog computer 7 and the cloud server 6 for large-scale analysis, or the generated learning model can be reused. Figure 6 In the illustrated system, multiple units 9 are installed in factories in various places, and the upper-level fog computer 7 manages each unit 9 in a predetermined unit (factory unit, multiple factory units of the same manufacturer, etc.). In addition, the data collected and analyzed by these fog computers 7 are collected and analyzed by the higher-level cloud server 6, and the information obtained as a result can be used for the control of each edge computer, etc.

[0072] Figure 7 A system 170 of a second embodiment having a measurement action parameter adjustment device 1 is shown. The system 170 has at least one measurement action parameter adjustment device 1 installed as a part of a computer such as an edge computer or a fog computer, a host computer, or a cloud server, a plurality of measurement devices 2 that are adjustment targets of the measurement action parameters, and a wired / wireless network 172 that connects the measurement action parameter adjustment device 1 and the measurement devices 2 to each other.

[0073] Regarding the system 170 having the above-mentioned structure, the measurement action parameter adjustment device 1 having the machine learning device 100 can automatically and accurately find the adjustment of the measurement action parameter of the measurement action for the time taken for the measurement action for each measurement device 2 using the learning result of the learning unit 110. In addition, the system 170 can be configured such that the machine learning device 100 of the measurement action parameter adjustment device 1 learns the adjustment of the measurement action parameter of the measurement action common to all the measurement devices 2 based on the state variable S and the judgment data D obtained for each of the plurality of measurement devices 2, and shares the learning result in the actions of all the measurement devices 2. Therefore, according to the system 170, by using a more diverse data set (including the state variable S and the judgment data D) as an input, the learning speed and reliability of the adjustment of the measurement action parameter of the measurement action can be improved.

[0074] Figure 8 A system 170 of a third embodiment having a measurement action parameter adjustment device 1 is shown. The system 170 has: at least one machine learning device 100' installed on a computer 5 such as a cell computer or a fog computer, a host computer, or a cloud server; at least one measurement action parameter adjustment device 1 installed as a control device (edge ​​computer) for controlling a machine 3 provided with a measurement device 2; and a wired / wireless network 172 connecting the computer 5 and the measurement action parameter adjustment device 1 to each other.

[0075] In the system 170 having the above-described structure, the computer 5 having the machine learning device 100' obtains a learning model obtained as a result of machine learning performed by the machine learning device 100 of the measurement action parameter adjustment device 1 (control device) that controls each machine 3. Furthermore, the machine learning device 100' of the computer 5 generates a new optimized or efficient learning model by performing optimization or efficiency processing based on the knowledge of these multiple learning models, and publishes the generated learning model to the measurement action parameter adjustment device 1 that controls each machine 3 (measurement device 2).

[0076] As an example of optimization or efficiency improvement of the learning model performed by the machine learning device 100', the generation of a distillation model based on a plurality of learning models obtained from each measurement action parameter adjustment device 1 is listed. In this case, the machine learning device 100' of this embodiment creates input data to be input to the learning model, uses the output obtained as a result of inputting the input data to each learning model, and performs learning from 1 to newly generate a learning model (distillation model). The distillation model generated in this way is more suitable for distribution to an external storage medium or other devices via a network, etc., as described above.

[0077] As another example of optimization or efficiency improvement of the learning model performed by the machine learning device 100', it is also considered that in the process of distilling the multiple learning models obtained from each measurement action parameter adjustment device 1, the distribution of the output of each learning model for the input data is analyzed by a general statistical method, the deviation value of the group of input data and output data is extracted, and the group of input data and output data after the deviation value is removed is used for distillation. Through such a process, the exceptional estimation results can be removed from the group of input data and output data obtained from each learning model, and the distillation model can be generated using the group of input data and output data after the exceptional estimation results are removed. The distillation model generated in this way can generate a distillation model common to the machine 3 (measuring device 2) controlled by the measurement action parameter adjustment device 1 from the learning models generated by the multiple measurement action parameter adjustment devices 1.

[0078] In addition, other general learning model optimization or efficiency improvement methods (analyzing each learning model and optimizing the hyper parameters of the learning model based on the analysis results) can also be appropriately introduced.

[0079] In the system of the present embodiment, for example, the following operation can be performed: a machine learning device 100' is configured on a computer 5 serving as a fog computer that is set up to manage multiple measurement action parameter adjustment devices 1 serving as an edge computer, and learning models generated by each measurement action parameter adjustment device 1 are collected and stored on the fog computer. After optimization or efficiency improvement based on the stored multiple learning models, the optimized or efficient learning models are published again to each measurement action parameter adjustment device 1 as needed.

[0080] In addition, in the system of the present embodiment, for example, learning models collected and stored on the computer 5 serving as a fog computer, and learning models that have been optimized or streamlined on the fog computer are concentrated on a higher-level host computer or cloud server, and these learning models are used to apply rational operations to the manufacturer of the factory or measuring device 2 (construction and re-publication of a more general learning model by the upper server, assistance in maintenance operations of the measuring device 2 based on the analysis results of the learning model, analysis of the performance of each measuring device 2, application to the development of new machinery, etc.).

[0081] Fig. 9 yes Figure 8 The schematic hardware structure diagram of the computer 5 is shown.

[0082] The CPU 511 included in the computer 5 is a processor that controls the entire computer 5. The CPU 511 reads a system program stored in the ROM 512 via the bus 520 and controls the entire computer 5 according to the system program. The RAM 513 temporarily stores temporary calculation data and various data input by the operator via the input device 531.

[0083] The non-volatile memory 514 is composed of, for example, a memory or SSD (Solid State Drive) backed up by a battery (not shown), and can maintain the storage state even if the power supply of the computer 5 is turned off. The non-volatile memory 514 stores a setting area for storing setting information related to the operation of the computer 5, data input from the input device 531, a learning model obtained from each measurement operation parameter adjustment device 1, and data read via an external storage device or network (not shown). The program and various data stored in the non-volatile memory 514 can be expanded in the RAM 513 when executed / used. In addition, the system program including the well-known analysis program for analyzing various data is pre-written in the ROM 512.

[0084] The computer 5 is connected to the network 172 via the interface 516. At least one measurement operation parameter adjustment device 1, other computers, etc. are connected to the network 172, and data is exchanged between the computer 5 and the computer 5.

[0085] Data obtained as a result of executing various data and programs read into the memory are output via the interface 517 and displayed on the display device 530. In addition, the input device 531 composed of a keyboard, a pointing device, etc. transfers instructions and data based on the operation performed by the operator to the CPU 511 via the interface 518.

[0086] In addition, the machine learning device 100 has the same advantages as the CPU 511 of the computer 5 except that the machine learning device 100 cooperates with the CPU 511 of the computer 5 to optimize or improve the efficiency of the learning model. Figure 1 The hardware structure is the same as the machine learning device described.

[0087] Fig.10 A system 170 of a fourth embodiment having a measurement action parameter adjustment device 1 is shown. The system 170 has at least one measurement action parameter adjustment device 1 installed as a control device (edge ​​computer) for controlling a machine 3 provided with a measurement device 2, a control device 4 for controlling a machine 3 provided with a plurality of other measurement devices 2, and a wired / wireless network 172 for interconnecting them.

[0088] In the system 170 having the above-mentioned structure, the measurement action parameter adjustment device 1 having the machine learning device 100 performs machine learning based on the state data and judgment data obtained from the machine 3 (measuring device 2) that is the control object, and the state data and judgment data obtained from other control devices 4 (without the machine learning device 100), and generates a learning model. The learning model generated in this way is used not only for adjusting the measurement action parameters in the measurement action of the machine (measuring device 2) that it controls, but also for adjusting the measurement action parameters in other machines 3 (measuring devices 2) according to a request from the control device 4 that controls other machines 3 (measuring devices 2) that do not have the machine learning device 100. In addition, when a measurement action parameter adjustment device 1 having the machine learning device 100 before generating the learning model is newly introduced, the learning model can also be obtained from other measurement action parameter adjustment devices 1 having the learning model via the network 172 and used.

[0089] In the system of the present embodiment, data and learning models used for learning can be shared and utilized among a plurality of measuring action parameter adjustment devices 1 and control devices 4, which are so-called edge computers. Therefore, the efficiency of machine learning can be improved and the cost of machine learning can be reduced (the machine learning device 100 is only introduced into one control device (the measuring action parameter adjustment device 1) and shared with other control devices 4, etc.).

[0090] As mentioned above, although embodiment of this invention was described, this invention is not limited to the example of the said embodiment, It is possible to implement in various forms by adding appropriate changes.

[0091] For example, the learning algorithm and the calculation algorithm executed by the machine learning device 100 , the control algorithm and the like executed by the measurement operation parameter adjustment device 1 are not limited to the above-mentioned ones, and various algorithms may be adopted.

[0092] In the above embodiment, the measurement operation parameter adjustment device 1 and the machine learning device 100 are described as devices having different CPUs. However, the machine learning device 100 may be implemented by the CPU 11 of the measurement operation parameter adjustment device 1 and the system program stored in the ROM 12 .

[0093] As mentioned above, although embodiment of this invention was described, this invention is not limited to the example of the said embodiment, It is possible to implement in other forms by adding appropriate changes.

Claims

1. A measuring action parameter adjustment device for adjusting a measuring action parameter of a measuring action performed by a measuring device for measuring a setting position of a measuring object, characterized in that: The measurement action parameter adjustment device comprises: a machine learning device, which observes measurement action parameter data representing the measurement action parameters of the measurement action and measurement time data representing the time required for the measurement action as state variables representing the current state of the environment, and performs learning or decision-making based on the state variables using a learning model obtained by modeling the adjustment of the measurement action parameters, wherein The measurement operation parameters include at least a measurement operation start position and a measurement operation speed when the measurement device measures the position of the measurement object. The machine learning device has: a state observation unit that observes measurement action parameter data representing measurement action parameters of the measurement action and measurement time data representing time required for the measurement action as state variables representing a current state of the environment; a determination data acquisition unit that acquires measurement operation determination data for determining whether the measurement operation executed based on the measurement operation parameters of the measurement operation is appropriate or not as determination data indicating a determination result of whether the measurement operation is appropriate or not; as well as a learning unit that generates the learning model by learning by associating the time required for the measurement operation with the adjustment of the measurement operation parameter of the measurement operation using the state variable and the determination data, wherein The state observation unit further observes the type data representing the type information of the measurement object as a state variable representing the current state of the environment. The learning unit learns by associating the time required for the measurement operation and the type information of the measurement object with the adjustment of the measurement operation parameter of the measurement operation.

2. The measuring action parameter adjustment device according to claim 1, characterized in that: The learning unit has: a reward calculation unit that obtains a reward associated with the suitability determination result; and a value function updating unit that updates a function representing a value of an adjustment behavior of a measurement operation parameter of the measurement operation with respect to a time required for the measurement operation, using the reward; The shorter the time required for the measuring action, the higher the reward given by the reward calculation unit; the longer the time required for the measuring action, and when the measuring object or the measuring device is damaged or when the measuring object moves, the lower the reward given by the reward calculation unit.

3. The measuring action parameter adjustment device according to claim 1 or 2, characterized in that: The learning unit calculates the state variable and the determination data through a multi-layer structure.

4. The measuring action parameter adjustment device according to claim 1, characterized in that: The machine learning device also has: A decision unit determines adjustment of a measurement operation parameter of a measurement operation based on the state variable observed by the state observation unit and the learning model.

5. The measuring action parameter adjustment device according to claim 1 or 2, characterized in that: The machine learning device exists in the cloud server.

6. A machine learning device, characterized in that: Observing measurement action parameter data representing measurement action parameters of a measurement action performed by a measurement device and measurement time data representing the time required for the measurement action as state variables representing the current state of the environment, and performing learning or decision making using a learning model obtained by modeling adjustment of the measurement action parameters based on the state variables, wherein the measurement device measures the setting position of the measurement object, wherein The measurement operation parameters include at least a measurement operation start position and a measurement operation speed when the measurement device measures the position of the measurement object. The machine learning device has: a state observation unit that observes measurement action parameter data representing measurement action parameters of the measurement action and measurement time data representing time required for the measurement action as state variables representing a current state of the environment; a determination data acquisition unit that acquires measurement operation determination data for determining the appropriateness of the measurement operation performed based on the measurement operation parameters of the measurement operation as determination data indicating a result of the determination of the appropriateness of the measurement operation; and a learning unit that generates the learning model by learning by associating the time required for the measurement operation with the adjustment of the measurement operation parameter of the measurement operation using the state variable and the determination data, wherein The state observation unit further observes the type data representing the type information of the measurement object as a state variable representing the current state of the environment. The learning unit learns by associating the time required for the measurement operation and the type information of the measurement object with the adjustment of the measurement operation parameter of the measurement operation.

7. The machine learning device according to claim 6, characterized in that The machine learning device also has: A decision unit determines adjustment of a measurement operation parameter of a measurement operation based on the state variable observed by the state observation unit and the learning model.

8. A system comprising a plurality of devices connected to each other via a network, characterized in that: The plurality of devices include at least the measurement action parameter adjustment device according to claim 1.

9. The system according to claim 8, characterized in that The plurality of devices include a computer having a machine learning device, The computer acquires at least one learning model generated by the learning of the learning unit of the measurement operation parameter adjustment device, The machine learning device included in the computer performs optimization or efficiency based on the acquired learning model.

10. The system according to claim 8, characterized in that The plurality of devices include another measurement operation parameter adjustment device different from the measurement operation parameter adjustment device, The learning model of the learning unit of the measurement operation parameter adjustment device is shared with the other measurement operation parameter adjustment device.

11. The system according to claim 8, characterized in that The plurality of devices include a control device for controlling the measuring device, The data related to the measuring device acquired in the control device can be used for learning in the learning unit of the measurement operation parameter adjustment device via the network.

12. A learning method for adjusting parameters of a measurement operation, wherein the measurement operation is performed by a measurement device for measuring a setting position of a measurement object, characterized in that: The method performs the following steps: Based on measurement action parameter data indicating measurement action parameters of the measurement action and measurement time data indicating the time required for the measurement action observed as state variables indicating the current state of the environment, processing related to machine learning of adjustment of the measurement action parameters is performed using a learning model obtained by modeling the adjustment of the measurement action parameters, wherein The measurement action parameters include at least a measurement action start position and a measurement action speed when the measurement device measures the position of the measurement object. The steps for learning or decision making using the learning model are as follows: observing measurement action parameter data representing measurement action parameters of the measurement action and measurement time data representing time required for the measurement action as state variables representing a current state of the environment; acquiring measurement action determination data for determining whether a measurement action executed based on a measurement action parameter of the measurement action is appropriate or not as determination data indicating a result of determination of whether the measurement action is appropriate or not; Using the state variable and the determination data, learning is performed by associating the time required for the measurement operation with the adjustment of the measurement operation parameter of the measurement operation, observing the variety data representing the variety information of the measurement object as a state variable representing the current state of the environment, The time required for the measurement operation and the type information of the measurement object are associated with the adjustment of the measurement operation parameters of the measurement operation and are learned.

13. The learning method for adjusting measurement action parameters according to claim 12, characterized in that: The step of learning or making a decision using the learning model further performs the following steps: The adjustment of the measurement operation parameters of the measurement operation is determined based on the observed state variables and the learning result obtained by learning by associating the time required for the measurement operation and the adjustment of the measurement operation parameters of the measurement operation.