Trained model, control device, friction stir welding system, neural network system, and trained model generating method
A neural network model predicts joint characteristics in friction stir welding, addressing the challenge of determining optimal conditions by learning weighting coefficients, thereby enhancing the efficiency and applicability of friction stir welding processes.
Patent Information
- Application Number
- JP2021507153
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-20
- Filing Date
- 2020-03-02
- Publication Date
- 2025-01-06
- Estimated Expiration
- 2040-03-02
AI Technical Summary
In friction stir welding, accurately predicting joint characteristics from welding conditions is challenging due to variations in materials and conditions, requiring numerous preliminary experiments to determine optimal joining conditions.
A trained neural network model is developed to predict joint characteristics based on input welding conditions, incorporating a hidden layer with nonlinear activation functions, and learns weighting coefficients to minimize errors, outputting predicted values and reliability indicators.
Enables accurate prediction of joint characteristics without extensive preliminary experiments, allowing for optimal joining conditions to be determined automatically, increasing the usability of friction stir welding across various materials and conditions.
Smart Images

Figure 0007607934000023 
Figure 0007607934000024 
Figure 0007607934000025
Abstract
Description
[Technical field]
[0001] The present invention relates to a trained model for predicting joint characteristics in friction stir welding, a control device including the trained model, a friction stir welding system including the control device, a neural network system for generating the trained model, and a method for generating the trained model. [Background technology]
[0002] Friction stir welding is a method of joining materials by contacting them with a rod-shaped tool while rotating at high speed, utilizing the heat of friction between the materials (see, for example, Patent Document 1). Friction stir welding is a solid-phase joining method in which the maximum temperature reached during joining does not reach the melting point of the base material, and is an innovative joining method that has higher joint efficiency than conventional fusion welding and, in some cases, can make the joint stronger than the base material (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 2712838 Summary of the Invention [Problem to be solved by the invention]
[0004] In friction stir welding, if the welding conditions such as welding speed and tool rotation speed are set, the same joint can basically be obtained with good reproducibility. However, the appropriate welding conditions differ depending on the material, size, shape, etc. of the materials to be welded, and a large number of preliminary experiments are required for each weld in order to determine the welding conditions. In other words, it is difficult to accurately predict the joint characteristics from the welding conditions.
[0005] Therefore, an object of the present invention is to accurately predict joint characteristics from joining conditions in friction stir welding. Note that in the present invention, friction stir welding includes butt joining, lap joining, line joining, spot joining, and combinations of these, as well as the friction stir process, which is a surface modification technique. [Means for solving the problem]
[0006] In order to solve the above-mentioned problems, the present invention provides a trained model for causing a computer to function so as to output a predicted value of joint characteristics based on input data indicating joining conditions of friction stir welding, the trained model being composed of a neural network including an input layer, an output layer, and a hidden layer having a plurality of hidden units interposed between the input layer and the output layer and represented by a nonlinear activation function, the neural network uses the variation in experimental data indicating the joint characteristics to learn weighting coefficients so as to minimize a function represented by the error between the experimental data and the predicted value, and performs a calculation based on the trained model on input data indicating the joining conditions of friction stir welding input to the input layer, and outputs a predicted value of the joint characteristics from the output layer and information indicating the reliability of the predicted value. A trained model for causing a computer to function is provided. Here, the trained model may output the joining conditions. For example, the trained model may use the predicted values of the joint characteristics to calculate and output joining conditions for obtaining better joint characteristics.
[0007] In the trained model of the present invention having the above-mentioned configuration, it is preferable to cause the computer to function so that the neural network further learns the weighting coefficients using the variation in the weighting coefficients and further outputs information indicating the degree of influence of the joining conditions on the predicted value.
[0008] In addition, in the trained model of the present invention having the above-mentioned configuration, it is preferable that the neural network learns the weighting coefficients for each of a plurality of models having different numbers of hidden units, and selects as the prediction model a model among the plurality of models that has the smallest error between the predicted value and the experimental data.
[0009] Furthermore, in the trained model of the present invention having the above-mentioned configuration, it is preferable that the neural network learns the weighting coefficients for each of a plurality of models having different numbers of hidden units, ranks the plurality of models based on the error between the predicted value and experimental data, and among the plurality of new models generated by sequentially combining the highest-ranked models, the model that has the smallest error between the predicted value and the experimental data is used as the prediction model.
[0010] The present invention also provides a control device including an input unit that acquires observation data indicating joining conditions in friction stir welding, a memory unit that stores the above-mentioned trained model, a calculation unit that determines an operation amount of a friction stir welding device based on a result of applying the observation data to the trained model, and an output unit that instructs the friction stir welding device on the determined operation amount.
[0011] The present invention also provides a control device including an input unit that acquires observation data indicating the welding conditions and joint characteristics in friction stir welding, a memory unit that stores a predetermined learning algorithm, a calculation unit that determines an operation amount of a friction stir welding device based on a result of applying the observation data to the predetermined learning algorithm, and an output unit that instructs the friction stir welding device on the determined operation amount, wherein the predetermined learning algorithm is configured to cause the control device to function so as to output an appropriate operation amount of the friction stir welding device based on input data indicating the welding conditions and the joint characteristics of the friction stir welding device. The control device is composed of an input layer, an output layer, and a hidden layer having a plurality of hidden units interposed between the input layer and the output layer and represented by a nonlinear activation function, and the neural network learns weighting coefficients so as to minimize an error function represented by a value function including a relationship between the welding conditions and the joint characteristics, and performs a calculation based on the learned model on input data indicating the welding conditions of friction stir welding input to the input layer, and outputs the operation amount of the friction stir welding device from the output layer.
[0012] Furthermore, the present invention also provides a friction stir welding system including a friction stir welding apparatus for performing friction stir welding, a measuring instrument for measuring observation data showing welding conditions in the friction stir welding, and the above-mentioned control device.
[0013] The present invention also provides a neural network system for generating a trained model for causing a computer to function to output a predicted value of joint characteristics based on input data indicating welding conditions for friction stir welding, the neural network including an input layer, an output layer, and a hidden layer having a plurality of hidden units interposed between the input layer and the output layer and represented by a nonlinear activation function, the neural network learning weighting coefficients so as to minimize a function represented by the error between the experimental data and the predicted value using the variation in experimental data indicating the joint characteristics, and performing a calculation based on the trained model on input data indicating the welding conditions for friction stir welding input to the input layer, and outputting a predicted value of the joint characteristics from the output layer and outputting information indicating the reliability of the predicted value. Also provided is a neural network system configured to generate a trained model.
[0014] Furthermore, the present invention provides a method for generating a learning model for causing a computer to function to output a predicted value of joint characteristics based on input data indicating welding conditions for friction stir welding, wherein the learning model for generating the trained model includes a neural network including an input layer, an output layer, and a hidden layer having a plurality of hidden units interposed between the input layer and the output layer and represented by a nonlinear activation function, and the neural network includes a step of learning a weighting coefficient so as to minimize a function represented by the error between the experimental data and the predicted value using the variation in experimental data indicating the joint characteristics, and a step of performing a calculation based on the trained model on the input data indicating the welding conditions of friction stir welding input to the input layer, and outputting a predicted value of the joint characteristics from the output layer and outputting information indicating the reliability of the predicted value. A method for generating a learning model including the steps of: Effect of the Invention
[0015] According to the present invention, in friction stir welding, joint characteristics can be accurately predicted from the welding conditions. Therefore, by applying the present invention to the control of an FSW device, various joints can be easily obtained using optimal welding conditions without the need for numerous preliminary experiments and regardless of the skill level of the worker. It is widely known that joints obtained by FSW have various excellent characteristics, and if the appropriate welding conditions could be automatically grasped, it is expected that the number of users of friction stir welding will increase dramatically. [Brief description of the drawings]
[0016] [Figure 1] 1 is a schematic diagram of a friction stir welding system 1 according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram showing an example of a rotating tool 11 used in friction stir welding. [Diagram 3] 1 is a cross-sectional view showing an example of a joint between materials 41 and 42. FIG. [Figure 4] FIG. 1 is a conceptual diagram illustrating an example of a neural network. [Diagram 5] 1 is a flowchart illustrating an example of a procedure for generating a trained model. [Figure 6] 13 is a flowchart illustrating an example of a procedure for determining the number of layers of a neural network. [Figure 7] 11 is a flowchart illustrating an example of a procedure for combining a plurality of prediction models to generate a more appropriate model. [Figure 8] 1 is a graph showing an example of predicted values and error bars output from a prediction model. [Figure 9] 13 is a graph showing an example of the importance of bonding conditions output from a prediction model. [Figure 10] 2 is a block diagram showing an example of a functional configuration of a control device 20. FIG. [Figure 11] 4 is a flowchart showing an example of the operation of the control device 20. [Figure 12] 2 is a block diagram showing an example of the functional configuration of a control device 120. FIG. [Figure 13]4 is a flowchart showing an example of the operation of the control device 120. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] Representative embodiments of the present invention will be described in detail below with reference to the drawings. However, the present invention is not limited to these drawings. In addition, since the drawings are intended to conceptually explain the present invention, dimensions, ratios, or numbers may be exaggerated or simplified as necessary for ease of understanding.
[0018] Here, we will explain the overall picture of the friction stir welding system, and then explain the joint characteristic prediction model (trained model) and its learning method, as well as the application of the model to control.
[0019] 1. Overall configuration of the friction stir welding system The friction stir welding (FSW) system 1 according to this embodiment is for welding various materials 40 by friction stirring. Here, the material 40 to be welded is typically a metal material such as aluminum, magnesium, copper, titanium, zinc, lead, steel, nickel, cobalt, or an alloy or composite material of these materials, but may also be a resin material such as plastic or CFRP.
[0020] As shown in Fig. 1, the FSW system 1 includes a friction stir welding (FSW) apparatus 10 that performs friction stir welding, a control device 20 that controls the FSW apparatus 10, and a measuring device 30. The measuring device 30 is a collective term for one or more types of measuring equipment that measures the joining conditions and joint characteristics of FSW, and measures, for example, the state of the FSW apparatus 10 and the material 40 (e.g., the rotation speed, pressing load, angle, and moving speed of the rotating tool 11, and the temperature and width of the joint). The measuring device 30 includes an imaging device that photographs the joint. The measuring device 30 may be included in the FSW apparatus 10 and the control device 20.
[0021] 1-1. Overview of friction stir welding equipment The FSW device 10 is equipped with a rotary tool 11 that rotates at a desired rotation speed to perform friction stir welding. 2, the rotary tool 11 includes a columnar shoulder 12 and a probe 13 that is disposed at the tip of the shoulder 12 and has a smaller diameter than the shoulder 12. As the rotary tool 11, either a type in which the probe 13 and the shoulder 12 are driven integrally, or a type in which the probe 13 and the shoulder 12 are driven independently can be used.
[0022] 1, the probe 13 is pressed into the material 40 and moves along the butt surfaces to be joined. At this time, the material is restrained by the backing plate and is joined by the plastic flow caused by the rotating tool 11 while maintaining a solid state. Note that it is not necessary to move the rotating tool 11 laterally once it has been pressed into the material 40, and spot joining can be achieved by simply pulling it out.
[0023] When material 40 is a material that is easy to stir by friction, such as an aluminum alloy or a magnesium alloy, it is preferable that a screw 14 is formed on probe 13. The length of probe 13 is approximately equal to the plate thickness of material 40, but it is preferable that it is slightly shorter (for example, about 0.05 mm to 0.2 mm) so as not to come into contact with the backing plate. The cross-sectional shape of probe 13 is generally cylindrical, but other shapes such as elliptical may also be used.
[0024] The shoulder 12 prevents the softened material 40 from popping out and generates and maintains frictional heat. The shoulder 12 rotates while in contact with the material 40 and moves in the joining direction X at a desired moving speed (joining speed).
[0025] The FSW device 10 also includes a tool holder that holds the rotary tool 11, a motor that drives the rotary tool 11, a pressing mechanism that presses the rotary tool 11 against the material 40, a moving mechanism that moves the rotary tool 11 in the joining direction (X direction) and in a direction perpendicular to the joining direction (Y direction), and a material holder that holds the material 40 (none of which are shown). The tool holder can hold the rotary tool 11 in a state in which the rotary tool 11 is tilted at a certain angle with respect to the material. Therefore, during joining, the rotary tool 11 is tilted at a predetermined angle (for example, about 1 to 5 degrees) so that the tip of the probe 13 leads the shoulder 12.
[0026] As shown in Fig. 3, the cross-sectional structure of material 40 (41, 42) joined by FSW is divided into several regions. That is, in the center of the joint, there is a stir zone (joint) 43, which usually has a recrystallized structure consisting of equiaxed grains of several µm. Outside the stir zone 43, there is a thermal processing affected zone 44, which has a shape in which crystal grains have been elongated by plastic deformation, and further outside that, there is a heat affected zone (HAZ) 45, which has not been plastically deformed but has been affected by heat. The conditions of the stir zone 43, the thermal processing affected zone 44, and the HAZ 45 (e.g., width, degree of softening, etc.) affect the joint characteristics.
[0027] Therefore, in order to obtain a good joint in FSW, it is important to properly adjust the joining conditions (FSW conditions) such as the shape, pressing load, angle, rotation speed, and joining speed of the rotating tool 11 as well as securely holding the materials 40 to be joined. However, the joining conditions differ depending on the type of material, plate thickness, and joining shape. In addition, the quality of the joint, that is, the joint characteristics, can be evaluated, for example, by the mechanical properties of the joint (tensile strength, bending strength, fatigue strength, corrosion resistance, etc.), the amount of burrs generated, the amount of energy input, the joining speed, etc.
[0028] 1-2. Overview of the control device The control device 20 acquires measurement data from the measuring device 30 and controls the FSW device 10 based on this measurement data. The control device 20 can be configured as a computer including an arithmetic unit (CPU, GPU, etc.) and a storage unit (RAM, ROM, etc.). The control device 20 may be a single computer or may be configured with multiple computers.
[0029] The control device 20 can control the FSW device 10 using a trained prediction model. The prediction model may be generated in the control device 20, or may be generated in an external computer, for example, by cloud computing. Before describing the details of the control device 20, machine learning in this embodiment will be described below.
[0030] 2. Building a predictive model 2-1. Learning with neural networks A neural network can express complex relationships by combining nonlinear functions. In this embodiment, the flexibility of the neural network is taken into consideration and the neural network is applied to data processing of joint characteristics in which many elements are intricately intertwined.
[0031] However, it is not easy to immediately apply a neural network to predict joint characteristics, and it is necessary to appropriately handle errors due to data variance and fitting. Therefore, the inventors decided to introduce the idea of Bayesian estimation into the neural network. This makes it possible to predict statistical error bars. The size of the error bar depends on the input conditions at that time, and if the data variance is large and the reliability is low, the error bar will be large.
[0032] In detail, the structure of a neural network is shown in FIG. 4. As shown in the figure, the neural network includes an input layer and an output layer. iWhen various joining conditions (FSW conditions) are given as above, the predicted value y of the joint characteristics is obtained as an output. The output y may be one or more, but for the sake of convenience, it is assumed here that the output y is one.
[0033] The input welding conditions include, for example, "pre-welding parameters" such as the chemical composition of the sample, the rotation speed of the rotating tool 11, the movement speed, the applied load (or the insertion amount of the probe 13), the advance angle, the shape of the sample, the thickness of the sample, the shape of the clamping jig, the tool shape, etc., and "welding parameters" such as the temperature of the welded part, the tool torque during welding, the tool load during welding, the tool position during welding, etc. The output joint characteristics are numerical values that quantitatively represent the characteristics of the welded part, and include, for example, the joint strength, the width of the stir portion 43, the amount of burr generation, HAZ softening, hardness distribution, maximum hardness, corrosion resistance, etc.
[0034] A hidden layer having multiple hidden units is arranged between the input layer and the output layer, making it possible to express complex functions. Here, for convenience of explanation, the hidden units are assumed to constitute one hidden layer, but it goes without saying that the hidden units can constitute multiple hidden layers. Note that it is not necessary for all hidden units to be expressed by nonlinear functions, and units expressed by linear functions may be included.
[0035] In such a neural network, the input x j and the i-th hidden unit h i The relationship between can be expressed as follows using a nonlinear activation function:
number
[0036] Also, the hidden unit h i The relationship between and the output y can be expressed as a linear function as follows:
number
[0037] By expressing the relationship between the input x and the hidden unit h as a nonlinear function as in Equation 1 above, it is possible to construct a network that can express complex relationships. Hereinafter, the weights w in Equations 1 and 2 will be ij (1) and w i (2) is simply called the weighting factor w, and the threshold θ i (1) and θ (2) is simply called the threshold value θ.
[0038] Here, the input variable x may be normalized to the range of ±0.5 using the following formula, and the output variable y may also be normalized using the same method.
number
[0039] 2-2.Energy function M(w) In order to determine the above-mentioned weighting coefficient w and threshold θ, it is considered to minimize the energy function M(w) expressed by the following equation.
number
[0040] To minimize the energy function M(w) on a computer, for example, the variable metric method can be used, and to calculate the gradient of M(w), for example, the backpropagation method can be used, but we will not go into details here.
[0041] As shown above, the energy function M(w) is the error function E D and the regularization term E w(c) And the error function E D is the predicted value y(x m ;w) and experimental value t m It can be expressed as the sum of squares of the differences.
number
[0042] From the above equation, when the prediction results of the prediction model match the experimental data well, that is, y(x m ;w) is t m When it is close to the error function E D is the smallest.
[0043] Then, the regularization term E w The function of the fit term is to make the model output y(x;w) a smooth function of the input x. In other words, the fit term encourages the weighting coefficient w to be smaller, suppressing the overfitting of the predictive model to the variability of the data set, i.e., overfitting.
[0044] Regularization term E w is a set of multiple optimization terms E w(c)For example, one class is created by the weight coefficient between input x and hidden unit h, one class is created by the weight coefficient between hidden unit h and output y, and one class is created by the threshold value of hidden unit h. Then, each fitting term E w(c) In this case, each optimization term E w(c) The coefficient w belonging to each class is expressed as follows: i It is expressed as the sum of squares of
number
[0045] Next, the parameter α c and β, along with the number of hidden units h, control the complexity of the model. For example, if the data is σ ν If the data is distributed according to a Gaussian distribution with a standard deviation of , β is the data variance σ ν 2 = 1 / β, and α c is the variation of the weighting coefficient w, σ w(c) 2 =1 / α c This means that it stipulates the following.
[0046] From Equation 4, the parameter α c has the effect of decreasing the weighting coefficient w. Therefore, a large σ w means that the corresponding input will cause a large change in the output. w can be used as an index of the importance of each input. ν indicates the variability of the data and can be used as error bars as described below.
[0047] In this embodiment, as will be described in detail later, the parameter α c and β can be calculated using the concept of Bayesian estimation. The initial values of the parameters may be appropriately determined by the user, and for example, the initial values may be set with small variations in the weight coefficient w.
[0048] 2-3. Parameter α c , Determination of β Next, the parameter α c , β will be described in detail. If the parameter β is too large, the degree of freedom of the function increases, making overfitting more likely to occur. c When α (hereinafter simply referred to as α) becomes large, the function becomes too smooth and does not fit the data. Considering the importance of α and β, the inventors decided to introduce the idea of Bayesian estimation to give α and β statistical meaning.
[0049] In general, the conditional probability p(w|D) that a certain combination w occurs for a weighting factor w and a threshold θ, given that certain data D occurs, is expressed as follows:
number
[0050] To determine the most likely weighting coefficient w and threshold θ, we need to maximize p(w|D). In other words, from the above equation,
number
[0051] First, find the probability p(w|D). In general, normal distribution f(x) is expressed by the following equation, where m is the mean and σ is the standard deviation.
number
number
[0052] Here, the error function E D Substituting (w) into equation 10, we get the following equation.
number
[0053] Next, we calculate the probability p(w). There is also variation in p(w), and considering Equation 5, the probability is
number
[0054] Substituting equations 11 and 12 into equation 8, we get
number
[0055] Therefore, to maximize p(w|D),
number
[0056] In comparison with minimizing the energy function M(w) expressed by Equation 4, the parameters α and β are
number
[0057] In this case, the error bar σ is expressed by the following equation.
number
[0058] 2-4. Training procedure From the above, training for generating a prediction model is performed according to the following procedure. The training may be performed through execution of a training program in the control device 20, or may be performed by an external computer capable of executing the training program.
[0059] Specifically, in step S11 of FIG. 5, the training data (x m ,t m ), where x m is the joint condition that is the input variable, and t m are the target joint characteristics (experimental data). In addition, in step S12, a parameter vector w is set. Here, the vector w may include a weighting coefficient w and a threshold value θ.
[0060] Then, in step S13, the training data (x m ,t m ) variation σ ν and the variance of the parameter vector w, σ w Calculate.
[0061] Then, in step S14, a parameter vector w that minimizes the energy function M(w) is calculated. A variable metric method can be used for this calculation, and the gradient of M(w) can be calculated using, for example, the backpropagation method.
[0062] In step S15, the parameter vector w is updated according to the calculation result of the previous step, and the variation σ w Calculate and update
[0063] Then, steps S14 and S15 are repeated a predetermined number of times to end the series of procedures. Alternatively, the end condition may be that the parameter vector w converges within a preset range. The parameter vector w thus obtained is used as a parameter of the prediction model.
[0064] This process is repeated while adjusting the number of hidden units h, i.e., the number of elements in the parameter vector w. As a result, the difference between the predicted value of the prediction model and the experimental data monotonically decreases as the number of hidden units increases. Here, the more complex the relationship between the input and output, the more hidden units are required, but because experimental data always contains errors, increasing the number of hidden units h too much will cause overfitting, which in turn will reduce prediction accuracy, i.e., generalization performance.
[0065] Therefore, for example, half of the data may be randomly selected, the neural network may be trained using only that half of the data, and the remaining half may be used as test data for examining the generalization performance of the model. The test data is used to measure the error between the model's predicted value and the test data, i.e., the test error. If the number of data sets is small, most of the data may be used for training, and the remaining data may be used for testing. For example, if the number of data sets is 30, it is preferable to use 27 of the data for training and the remaining 3 for testing.
[0066] When the number of hidden units h reaches a certain number, the test error is minimized. If the model at this point is judged to be optimal and used as a trained model, the prediction accuracy will improve.
[0067] Therefore, the appropriate number of hidden units h is k * The procedure for determining can be as follows: First, in step S21 of FIG. 6, k (k=1, 2, . . .) hidden units h k Prepare multiple predictive models with
[0068] Next, in step S22, a test error is calculated for each prediction model, and in step S23, the number k that minimizes the test error is selected. * The prediction model corresponding to the determined model is determined as the optimal model. Note that, for the combination of prediction models described below, the models may be ordered in ascending order of test error, such as the optimal model, the second optimal model, the third optimal model, and so on.
[0069] 2-5. Optimization through combination of predictive models To further improve the prediction accuracy, multiple models can be combined. In other words, with neural networks, it is possible to create many models with completely different structures, although they are not very different from the optimal model in terms of error. By combining these models, the shortcomings of each individual model can be compensated for, and the prediction accuracy can be further improved.
[0070] Specifically, in step S31 of FIG. 7, the error function (or the above-mentioned test error comparison result) is used to rank a plurality of prediction models as an optimum model, a second optimum model, a third optimum model, . . . .
[0071] In step S32, the average value of the predicted value of the optimal model and the predicted value of the second optimal model is determined as the predicted value of the new model according to the following formula, and in step S33, the error between this predicted value and the experimental data is calculated.
number
[0072] Then, in step S34, it is determined whether the previously calculated error is a minimum. If it is determined that the error is not a minimum, in step S35, the next model is combined according to the above formula, and steps S33 and S34 are executed again.
[0073] If it is determined that the error is the smallest, the combination of models at that time is adopted as the prediction model in step S36. For example, if the error is reduced by combining the first four optimal models, but the error increases when the fifth optimal model and onward are added, then the combination of the optimal model through the fourth optimal model can be used as the prediction model.
[0074] In this case, the error bar σ of the new prediction may be calculated using the following formula:
number
[0075] In the prediction model of this embodiment, it is possible to output predicted values and error bars of joint characteristics for certain joining conditions. For example, in the example of Fig. 8, the relationship between the joining speed and the predicted value of the joining strength is represented by a curve L, and curves D showing the upper and lower limits of the error bar on either side of the curve L. Alternatively, the error bar is represented by a variation σ ν Of course, the predicted value and the error bar may be expressed numerically.
[0076] By obtaining such predicted values and error bars, the user can obtain a reasonable prediction of the joint characteristics and know the accuracy of the prediction. Since a large error bar means that the number of experimental data is insufficient or the accuracy of the experiment is insufficient, the user should increase the experimental data in the region with a large error bar or perform a highly accurate experiment (perform a reinforcement experiment), thereby improving the reliability of the model prediction and further deepening the research on the material. Alternatively, when the prediction model is used to control the FSW device 10, highly accurate and stable control can be expected by preferentially adopting the predicted values in the region with a small error bar.
[0077] In addition, the prediction model is based on the variance σ w Based on this, the importance (degree of influence) of each welding condition on the joint characteristics can be displayed, for example, as shown in Fig. 9. This allows the user to understand the welding conditions that have an influence on the relevant joint characteristics, and can use this as a guideline for research and development. In addition, in controlling the FSW device 10, it is also possible to quickly and efficiently approach the target value by, for example, preferentially adjusting the welding conditions with high importance. Alternatively, the prediction model may output the joining conditions. For example, the prediction model may use the predicted values of the joint characteristics to calculate and output joining conditions for obtaining better joint characteristics. The prediction model may refer to the error bars and importance described above when selecting better joining conditions. This allows the user to obtain suggestions for obtaining a better joint.
[0078] For the prediction model obtained in this way, if a specific input among multiple input variables (connection conditions) is changed while the remaining inputs are not changed, the output (predicted value) will show the response characteristics to that specific input. By examining such output response characteristics for all input variables, it is possible to grasp the trend of the output relative to the input, and therefore the variation σ of the parameter vector w w In addition to or instead of this, it is possible to grasp the joining conditions with excellent response characteristics. This knowledge can be used for controlling the FSW apparatus 10, and can also be used in research on the material.
[0079] 3.Examples of control methods The above model can also be applied to the control of FSW machines. Several application forms are possible, including control using reinforcement learning, so we will first provide an overview of reinforcement learning.
[0080] 3-1. Reinforcement learning Reinforcement learning is a learning control framework that adapts to the environment through trial and error. The agent, which is the learning subject, makes a decision at time t based on the observed value s(t) of the state of the environment to be controlled, and outputs an action a(t). The agent's action causes the environment to transition to a state s(t+1), and a reward r(t) corresponding to that transition is given to the agent. This series of steps is repeated, and the agent learns a policy π from state observation to action output with the goal of maximizing its profit.
[0081] For example, in Q-learning, a type of reinforcement learning, an agent takes various actions a in a certain state s through trial and error, and learns the optimal action value Q(s,a) using the reward at that time. The update formula for the action value function Q(s,a) is expressed as follows:
number
[0082] action a t The environment is in state s t+1 and the reward r t+1 In the above formula, maxQ(s t+1 ,a) is the state s t+1 is the Q value corresponding to the action a with the highest Q value under the above, multiplied by the discount rate γ (γ is 0<γ≦1). Also, α (0<α≦1) is the learning coefficient.
[0083] This update formula is t Actions in a t The evaluation value Q(s t , a t ) than the next state s t+1 The best action in max a Q(s t+1 , a) is larger, then Q(s t , a t ) is increased, and conversely, if it is small, Q(s t , a t ) to reduce
[0084] Incidentally, when applying reinforcement learning such as Q-learning to the control of an FSW machine, the action a can be made to correspond, for example, to the manipulated variable of the joining conditions, and the state s can be made to correspond, for example, to various observed data. In addition, conditions related to the reward include, for example, the joining quality, joining speed, and energy consumption, and it is advisable to construct a value function that changes according to these elements. For example, the reward increases when the joining strength approaches or matches the target value, and the reward decreases or decreases as it deviates from the target value. Furthermore, the reward increases if the amount of burrs generated is small, and decreases if the amount is large. Furthermore, the reward decreases if energy consumption is high, and increases if energy consumption is low.
[0085] Considering that FSW involves complex phenomena, it is preferable that the action value function Q(s, a) be expressed by function approximation rather than a table. To perform function approximation of the action value function Q(s, a), first, the action value function Q(s, a) is modeled as a function Q'(s, a; w) represented by a parameter vector w. Then, during learning, the parameter vector w of Q' is updated instead of updating the Q value itself.
[0086] Then, supervised learning can be applied to learn the parameter w. To deal with complex problems such as friction stir welding, for example, neural networks can be used. For example, a neural network can be prepared that, when a state s is input, outputs a value function Q for all possible actions a, and this can be used as the function approximation Q'(s,a;w) (Q network).
[0087] Here, the parameter w of the function approximation corresponds to the weight parameter of the neural network. The weight parameter can be adjusted so as to minimize the error function of the following equation.
number
[0088] However, in reinforcement learning, the target value y t Since the training data used as (s, a) is not given, the target value y t For example, by replacing the states and rewards actually sampled from the environment,
number
[0089] Then, the parameter w of the value function Q' is updated, for example, as follows:
number
[0090] The parameter w and the evaluation function Q' may be updated, for example, every time a connection is made. Various methods have been proposed for implementing the Q network, and such methods can be incorporated into this embodiment. In this case, the above formula is appropriately modified before execution processing.
[0091] 4. Details of the control device In this embodiment, the above-mentioned trained model or learning model is used to control the FSW apparatus 10. For example, the control device may determine the operation amount of the FSW apparatus based on a predicted value output by the trained model (prediction model) (configuration example 1), or may cause a learning model of reinforcement learning to determine an optimal operation amount (configuration example 2).
[0092] 4-1.Control device functional configuration example 1 First, a description will be given of a control device 20 that determines the manipulated variable of the FSW device based on the predicted value of a prediction model. As shown in FIG. 10, the control device 20 includes the following functional units: an input unit 21, a calculation unit 22, a storage unit 23, and an output unit 24.
[0093] The input unit 21 acquires observation quantities (observation data) related to the FSW. The input unit may acquire the observation data by measuring it itself, or may acquire it from, for example, the FSW device 10 or other measuring instruments, or may even acquire it by user input. Furthermore, the observation data may be acquired during the execution of the FSW, or may be acquired after the execution. Furthermore, the observation data may be obtained by calculating a plurality of observation quantities, such as the amount of energy consumption.
[0094] Here, the observation data includes data related to the joining conditions of the FSW and data related to the joint characteristics, although the observation data related to the joining conditions and the observation data related to the joint characteristics may overlap.
[0095] Specifically, the observed data on the welding conditions include, for example, the rotation speed of the rotating tool, the moving speed, the applied load (or the tool insertion amount), and the advance angle. The adjustment amount of each welding condition is determined by the control device 20.
[0096] In addition, the observed data on joint characteristics include, for example, the joining temperature during FSW, tool rotation torque, tool Y-axis (joining direction) load, tool Z-axis (vertical) load, stir zone width, amount of burrs generated around the processed area, joint strength, HAZ softening, hardness distribution, maximum hardness, corrosion resistance, etc. Many of these physical quantities are information related to the stir zone and change depending on the joining conditions.
[0097] Next, the calculation unit 22 will be described. The calculation unit 22 reads a control program stored in the storage unit 23 into a memory and executes it to predict joint characteristics based on observed data and determine optimal joining conditions based on the prediction results. The calculation unit 22 includes a setting unit 25, a prediction unit 26, and an update unit 27.
[0098] The setting unit 25 performs initial setting of the joining conditions based on user input, etc. The conditions to be set include, for example, information on the materials to be joined, the target joint characteristics (strength, etc.), the working time, and the amount of energy consumption. The setting unit 25 may also use a trained prediction model to grasp the joining conditions that satisfy the target joint characteristics, and set these conditions as the initial setting.
[0099] Next, the prediction unit 26 inputs the observation data into the prediction model to obtain a predicted value regarding the joint characteristics. The update unit 27 then compares this predicted value with a target value and updates the manipulated variable of the joining condition based on the comparison result. For example, if the joint strength is less than the target, the update unit 27 inputs an amount obtained by adding a minute amount Δ to the joining condition into the prediction model to grasp the change in the predicted value, and adjusts the joining condition so that the joint strength approaches the target value. At this time, the update unit 27 may take into account the degree of influence and reliability (variation) of the corresponding joining condition.
[0100] Then, the calculation unit 22 repeats the observation and the adjustment of the joining conditions at preset time intervals, and notifies the FSW apparatus 10 of the determined adjustment amount via the output unit 24.
[0101] Next, the storage unit 23 stores, for example, a learned prediction model, a control program for the FSW apparatus 10, and various data. The various data include, for example, observation data, welding condition settings, and reward settings. The storage unit 23 may also store processing conditions such as joint shape, plate thickness, base material attitude, and gap amount. All or a part of the storage unit 23 may be incorporated in the control device 20, or may be, for example, a storage area of an external computer.
[0102] The output section 24 outputs instructions from the calculation section 22 to the FSW apparatus 10, and may also, for example, display the prediction results of the calculation section 22 and the instructions to the FSW apparatus 10 on a display (not shown).
[0103] Next, an example of the operation of the control device 20 will be described with reference to FIG. First, in step S41, the setting unit 25 sets the joining conditions according to user input. Next, in step S42, the input unit 21 acquires the observation data and stores it in the storage unit 23 or an external storage device. Then, in step S43, the prediction unit 26 calculates a predicted value of the joint characteristics using the trained prediction model. Furthermore, in step S44, the update unit 27 refers to the prediction result of the prediction unit 25, adjusts and updates the joining conditions so as to bring the joint characteristics closer to the target values, and outputs the adjusted joining conditions.
[0104] The control device 20 then repeatedly executes steps S42 to S44 at set time intervals, thereby making it possible to automatically determine appropriate joining conditions according to the joint characteristics desired by the user.
[0105] In other words, since the prediction model is generated by a neural network including hidden units expressed by nonlinear functions, it can appropriately express joining phenomena involving complex relationships. This improves the prediction accuracy of joint characteristics, and at the same time, by incorporating this prediction model into the control device 20, it becomes possible to set more appropriate joining conditions according to the user's request. The prediction accuracy of the prediction model further improves with an increase in learning opportunities, making it possible to set more appropriate joining conditions. Therefore, various joints can be easily obtained using optimal joining conditions without the need for numerous preliminary experiments and regardless of the skill level of the worker.
[0106] In addition, the prediction model can provide error bars for the predicted values. Variations in the predicted values indicate a lack of data used and / or a lack of reliability, making it possible to clarify targets for which data should be actively collected. Furthermore, highly reliable control can be achieved by controlling based on these error bars.
[0107] 4-2.Control device functional configuration example 2 Next, a control device 120 of a type that determines an optimal amount of operation for a learning model of reinforcement learning will be described.
[0108] The control device 120 is programmed to calculate a reward based on the result of determining the connection condition (state transition of the environment), update an evaluation function based on the calculated reward, and determine a (more suitable) connection condition that will obtain the most reward by repeating the updating of the evaluation function. As shown in FIG. 12, the control device 120 includes functional units, an input unit 121, a calculation unit 122, a storage unit 123, and an output unit 124.
[0109] The input unit 121 acquires observation data relating to the FSW in the same manner as the previously described input unit 21. The storage unit 123 stores, for example, a learning model, a control program, observation data, setting information, etc. Furthermore, the output unit 124 indicates the manipulated variable of the welding condition determined by the calculation unit 122 to the FSW apparatus 10.
[0110] The calculation unit 122 executes machine learning based on the observation data and determines the optimal joining condition. In other words, the calculation unit 122 plays a role equivalent to an agent in reinforcement learning. The calculation unit 122 includes a setting unit 125, a function update unit 126, a reward calculation unit 127, and a policy determination unit 128.
[0111] The setting unit 125 performs initial setting of the joining conditions based on user input, etc., and also performs settings related to rewards (for example, initial values of rewards and value functions, conditions for granting rewards, etc.). In addition, when initially setting the joining conditions, the setting unit 125 may grasp joining conditions that satisfy the target joint characteristics using a trained prediction model stored in the storage unit 123 or an external storage device, and set these conditions as the initial settings.
[0112] The function update unit 126 updates the parameter vector w using, for example, the observation data and Equation 21 to obtain the value function Q * and updates value function Q'. Reward calculation unit 127 calculates a reward using the updated value function Q' based on the observed environmental state s. Policy determination unit 128 determines a policy π corresponding to the updated value function Q'.
[0113] Then, the calculation unit 22 repeats the observation and the adjustment of the joining conditions at preset time intervals, and indicates the determined measure, that is, the amount of adjustment of the joining conditions, to the FSW apparatus 10 via the output unit 24.
[0114] Next, an example of the operation of the control device 120 will be described with reference to FIG. First, in step S51, setting unit 125 performs initial settings of joining conditions and the like in response to user input. Next, in step S52, measure determination unit 128 determines a measure π based on value function Q'. In addition, in step S53, function update unit 126 updates parameter vector w of value function Q' using the learning model, thereby updating value function Q'.
[0115] In step S54, the control unit 120 causes the FSW apparatus 10 to execute the policy π, and acquires a new state s of the environment from the measuring instrument 30. In step S55, the reward calculation unit 127 calculates the reward using the observed new state s of the environment and the updated value function Q′.
[0116] The control device 20 then repeats steps S52 to S55 at set time intervals. This allows the connection conditions to be optimized according to the state of the environment. In other words, by repeating such processing, the reliability of the action value function is increased, and by determining a measure to obtain more rewards based on the highly reliable action value function, it becomes possible to more optimally determine the setting of the connection conditions.
[0117] In other words, the control device 20 can learn the relationship between various joining conditions and the joints obtained under those joining conditions through the concept of reward, and automatically determine appropriate joining conditions according to the joint characteristics desired by the user. Therefore, various joints can be easily obtained using optimal joining conditions without the need for numerous preliminary experiments and regardless of the skill level of the worker.
[0118] Representative embodiments of the present invention have been described above, but the present invention is not limited to these, and various design modifications are possible, which are also included in the present invention. [Explanation of symbols]
[0119] 1. Friction stir welding (FSW) system, 10...Friction stir welding (FSW) equipment, 20... Control device, 30 Measuring instrument.
Claims
1. A trained model for causing a computer to function so as to output a predicted value of a joint characteristic based on input data indicating a joining condition of friction stir welding, The neural network includes an input layer, an output layer, and a hidden layer between the input layer and the output layer, the hidden layer having a plurality of hidden units represented by a nonlinear activation function; the neural network learns weighting coefficients using information indicating a variance in experimental data indicating the joint characteristics so as to minimize a function represented by an error between the experimental data and the predicted value; A trained model for causing a computer to function in such a way that, for input data indicating welding conditions for friction stir welding input to the input layer, calculations are performed based on the trained model, and a predicted value of joint characteristics is output from the output layer, along with information indicating the reliability of the predicted value.
2. the neural network further learns the weighting coefficients using information indicating the variation of the weighting coefficients; The predicted model according to claim 1 , which causes a computer to function to further output information indicating a degree of influence of the joining condition on the predicted value.
3. The neural network comprises: learning the weighting factors for each of a plurality of models having different numbers of hidden units; The trained model according to claim 1 or 2, wherein a model among the plurality of models that has a minimum error between a predicted value and experimental data is set as a prediction model.
4. The neural network comprises: learning the weighting factors for each of a plurality of models having different numbers of hidden units; Ranking the plurality of models based on the error between the predicted values and the experimental data; 3. The trained model according to claim 1 or 2, wherein, among a plurality of new models generated by sequentially combining models from a higher ranking, a model that has a minimum error between a predicted value and experimental data is set as a prediction model.
5. An input unit for acquiring observation data indicating welding conditions in friction stir welding; A storage unit that stores the trained model according to any one of claims 1 to 4; A calculation unit that determines an operation amount of a friction stir welding apparatus based on a result of applying the observation data to the trained model; and an output unit that instructs the friction stir welding apparatus on the determined operation amount; A control device including:
6. An input unit for acquiring observation data indicating welding conditions and joint characteristics in friction stir welding; A storage unit that stores a predetermined learning algorithm; a calculation unit that determines an operation amount of the friction stir welding apparatus based on a result of applying the observation data to the predetermined learning algorithm; and an output unit that instructs the friction stir welding apparatus on the determined operation amount; A control device comprising: The predetermined learning algorithm is The control device is caused to function so as to output an appropriate operation amount of the friction stir welding device based on input data indicating welding conditions of the friction stir welding device and the joint characteristics. The neural network includes an input layer, an output layer, and a hidden layer that is interposed between the input layer and the output layer and is represented by a nonlinear activation function. The neural network learns weighting coefficients so as to minimize an error function represented by a value function including a relationship between the joining conditions and the joint characteristics; A control device that performs calculations based on a trained model on input data indicating welding conditions for friction stir welding input to the input layer, and outputs an operation amount of the friction stir welding device from the output layer.
7. A friction stir welding apparatus for performing friction stir welding; A measuring instrument for measuring observation data indicating welding conditions in the friction stir welding; A control device according to claim 5 or 6; A friction stir welding system comprising:
8. A neural network system for generating a trained model for causing a computer to function to output a predicted value of a joint characteristic based on input data indicating a joining condition of friction stir welding, The neural network includes an input layer, an output layer, and a hidden layer interposed between the input layer and the output layer and having a plurality of hidden units represented by a nonlinear activation function, The neural network comprises: learning a weighting factor so as to minimize a function represented by an error between the experimental data and the predicted value, using information indicating a variation in the experimental data indicating the joint characteristics; A trained model is generated that performs calculations based on the trained model for input data indicating welding conditions for friction stir welding input to the input layer, outputs predicted values of joint characteristics from the output layer, and outputs information indicating the reliability of the predicted values. The neural network system is configured as follows.
9. A method for generating a trained model for causing a computer to function to output a predicted value of a joint characteristic based on input data indicating a joining condition of friction stir welding, The learning model for generating the trained model includes a neural network including an input layer, an output layer, and a hidden layer interposed between the input layer and the output layer and having a plurality of hidden units represented by a nonlinear activation function; a step of learning weighting coefficients in the neural network by using information indicating a variance in experimental data indicating the joint characteristics so as to minimize a function represented by an error between the experimental data and the predicted value; A step of generating a trained model that performs a calculation based on the trained model on input data indicating welding conditions of friction stir welding input to the input layer, and outputs a predicted value of joint characteristics from the output layer and information indicating the reliability of the predicted value; How to generate a trained model, including:
Citation Information
Patent Citations
Method of selecting medical and biochemical diagnostic tests employing neural network-related application
JP2008065836A
Butt welds and manufacturing methods using fusion welding and friction stir welding
JP2012513306A
Error correction model learning device and program
JP2015075706A
Laser cutting method and laser processing apparatus
JP2016025112A
Recurrent type neural network learning method, computer program for the same, and voice recognition device
JP2016212273A