The present invention relates to a welding quality classification apparatus for classifying welding quality of a welded joint. Particularly, the present invention relates to a welding quality classification apparatus which is suitably used for classifying welding quality such as the presence/absence of a welding defect that occurs in spot welding of metallic materials.
For example, in a manufacturing line of automobile parts, it is possible to measure time series variation of voltage (welding voltage) and current (welding current) between electrodes of a spot welding machine disposed in the manufacturing line by means of various measurement instruments. Since a nugget (an ellipsoidal melted and solidified portion) of a welded joint is formed by the heat generated by electrical resistance between the electrodes, when a poor formation of the nugget occurs, a minute variation occurs in the above described welding current and welding voltage. Particularly, in spot welding, since the welding current and welding voltage show a unique transition phenomenon from an early period of welding, in which an initial contact resistance has occurred, toward a nugget formation/growth process in a later stage of welding, it is conceivable that monitoring these signals allows to read out a change leading to a deterioration of welding quality.
Previously, as an apparatus for evaluating welding quality of a welded joint by utilizing the change in welding current and welding voltage, for example, apparatuses described in Patent Literatures 1 to 4 have been proposed.
Patent Literature 1 proposes a resistance spot welding quality monitoring apparatus, in which welding current and inter-electrode voltage which vary every moment during welding are detected at least once per a half cycle, and a time differential variation of electric power is sequentially monitored, the differential electric power being obtained by subtracting, from the electric power applied to a work in a decreasing process of inter-electrode electric power corresponding to a predetermined same current value in an increasing process and the decreasing process of the welding current per each half cycle, the electric power applied to the work in the increasing process. Then, in the apparatus described in Patent Literature 1, a curve indicating the behavior of differential electric power is expressed on a cycle diagram, in which the differential electric power is taken as the ordinate and a cycle number as the abscissa, and the evaluation of welding quality during a welding nugget growth process is performed from the change in the differential electric power at a measurement reference point of an arbitrary specified cycle number on the abscissa.
The apparatus described in Patent Literature 1 does not disclose any concrete method for determining the measurement reference point in spite of that the evaluation result will depend on the settings of measurement reference point is determined. Moreover, the apparatus described in Patent Literature 1 is unable to accurately evaluate welding quality since the learning (creation of a decision boundary for classifying welding quality) by use of the data of a welded joint whose actual welding quality is known by a destructive test, etc. has not been carried out. Further, although the apparatus described in Patent Literature 1 is able to classify whether or not the growth of a nugget is in a stable condition, there is a case in reality where the diameter of the nugget has already exceeded an industrially required size (that is, welding quality is good) even if the nugget is in a growing process (even if the growth of the nugget is not in a stable condition). The apparatus described in Patent Literature 1 has a risk of classifying the welding quality to be poor when the nugget is in a growing process even if the welding quality is good in reality as described above.
Patent Literature 2 proposes a welding quality monitoring apparatus of resistance welding, which includes: means for inputting the shape and material of a material to be welded; means for detecting a welding current and a voltage between electrodes; means for calculating a temperature of the material to be welded based on a heat conduction model from both detection results and estimating an estimated nugget diameter A from the distribution of the calculated temperature; means for inputting a reference nugget diameter A which is necessary to ensure welding strength of the material to be welded; and means for comparing the estimated nugget diameter A with the reference nugget diameter A and outputting the comparison result.
Since the apparatus described in Patent Literature 2 is configured to calculate the temperature of a welded joint based on a heat conduction model from the welding current and the welding voltage (voltage between electrodes), and thereby estimate the nugget diameter of the welded joint, the evaluation result of welding quality will depend on the accuracy of the heat conduction model. Moreover, to perform a highly accurate calculation based on the heat conduction model, it is necessary to acquire a huge amount of data such as the specific heat and resistance information of various kinds of materials to be welded in heating process, thus requiring time and effort. Moreover, as the accuracy of the calculation increases, the calculation time naturally increases, which is not suitable for monitoring the welding quality on line. Further, in the apparatus described in Patent Literature 2 as well, since the learning (creation of a decision boundary for classifying welding quality) by use of the data of a welded joint whose actual welding quality is known by a destructive test, etc. is not carried out, it is not possible to accurately evaluate welding quality.
Patent Literature 3 proposes a quality evaluation apparatus for a resistance welded joint, comprising: welding current measuring means for detecting a welding current; inter-electrode voltage detecting means for detecting a voltage between electrodes; inter-electrode dynamic resistance calculating means for calculating apparent dynamic resistance between electrodes from the detected values of both the detecting means; calculating means of change rate of dynamic resistance instantaneous value, which calculates a change rate of dynamic resistance instantaneous value of the dynamic resistance between electrodes in a current changing period in which instantaneous value of welding current during welding changes; recorder means for sequentially recording the dynamic resistance between electrodes and the change rate of dynamic resistance instantaneous value; and computing means for performing the computation to judge welding quality by using the stored change rate of dynamic resistance instantaneous value.
In the apparatus described in Patent Literature 3 as well, since the learning (creation of a decision boundary for classifying welding quality) by use of the data of a welded joint whose actual welding quality is known by a destructive test, etc. is not carried out, it is not possible to accurately evaluate welding quality. Moreover, in the apparatus described in Patent Literature 3, although the judgment criterion for the time of nugget formation is clear, it is industrially necessary to judge the finally obtained nugget diameter or to judge whether or not the nugget diameter has a necessary size. Patent Literature 3 describes that the size of a nugget may be determined by using an absolute value of the change rate of dynamic resistance instantaneous value and an elapsed time thereof (line 43 to 44 in the right column of page 3 of Patent Literature 3); however, it does not explicitly show a concrete method thereof. Further, since an increase in the resistance of the material to be welded itself associated with a temperature increase, as well as a decrease in the dynamic resistance between electrodes due to expansion of the contact area (welding area) between the materials to be welded occurs during welding, it is conceivably difficult to evaluate the welding quality in a later stage of welding (to calculate a nugget diameter based on the change rate of dynamic resistance instantaneous value).
Patent Literature 4 proposes an apparatus for welding assessment during operating time, comprising: first sampling method to measure welding voltage or welding current to calculate a sequence of values for a first signal; second sampling method of sample a welding voltage or welding current to calculate a sequence of values for a second signal; signal generating method to generate one or more sequences of values for one or more artificial third signals from the first and second signals, wherein the artificial third signals are dependent upon values of the first and second signals, by means of generalized discrete point convolution operations; tripling means to identify corresponding values of the first, second and third signals as triplets; and collection means to collect triplets of values which are useful for quality monitoring and categorize them into groups or regions.
To be specific, in the apparatus described in Patent Literature 4, welding current/welding voltage signals when a good welding quality is obtained are stored as sample signals. Then, in the apparatus described in Patent Literature 4, artificial signals are calculated, which are generated by multiplying the stored sample signals with a specified coefficient. In the apparatus described in Patent Literature 4, the artificial signals and the sample signals are plotted in a three dimensional space, and the plotted region is divided into smaller regions, and the number of plotted points in each smaller region is counted. In the apparatus described in Patent Literature 4, the number of points is multiplied by a weight which is set for each smaller region to generate a reference signal. In the apparatus described in Patent Literature 4, an average and variance of the reference signal are calculated and, based on these, a probability density function of the welding current/welding voltage signals inputted during on-line inspection is calculated and detect welding defect in case of its probability density value is low (not more than 10−4).
In spot welding, the front edge of electrode wears as the number of welding points increases. However, in a commonly used spot welding machine, it is possible to form a good nugget for over consecutive several hundreds of welding points by using the same electrode even if the electrode wears. On the other hand, as the electrode goes on wearing, the welding current/welding voltage goes on changing gradually. Accordingly, the welding current/welding voltage signal varies to some extent even if the welding quality keeps good. The judgment criterion on whether the welding quality is good or bad in the apparatus described in Patent Literature 4 depends on a reference signal under an ideal welding condition. Therefore, when the welding current/welding voltage signal undergoes a subtle change as described above, it moves out of the range of the reference signal, leading to a high risk of false judgment of welding quality.
Moreover, in the apparatus described in Patent Literature 4, artificial signals are calculated according to a specific coefficient from sample signals under an ideal welding condition. The specific coefficient value is empirically calculated based on many experiments, and such coefficient must be set for each welding condition inevitably requiring the involvement of an expert in statistical analysis.
While all the conventional welding quality evaluation apparatuses of a welded joint, which have been described so far, utilize changes in the welding current and welding voltage, besides those, it is conceivable that welding quality is evaluated by utilizing the change in electrode welding force and the displacement of electrode during welding operation. Which will be described specifically below.
The material to be welded thermally expands as a result of an increase in temperature of the material to be welded during welding. On account of this, the electrode welding force increases under a condition in which the distance between the electrodes interposing the material to be welded is kept constant. On the other hand, the distance between the electrodes increases (a displacement of electrode occurs) under a condition in which the electrode welding force is kept substantially constant. Thus, as a result of an increase in temperature of the material to be welded during welding, a change in the electrode welding force or a displacement of electrode will occur. Moreover, when expulsion (scattered molten metal) is generated, a rapid change in electrode welding force and a sharp displacement of electrode may occur due to occurrences of a rapid expansion of the welded joint and a succeeding reduction in the thickness of the welded joint. In this way, since the change in electrode welding force and the displacement of electrode during welding include information of the thermal expansion of the material to be welded, that is, the heat build-up state in the material to be welded, it is conceivable that utilizing those information allows the evaluation of the welding quality of welded joint.
Previously, as an apparatus and method for evaluating welding quality of a welded joint by utilizing the change in electrode welding force and the displacement of electrode, for example, the apparatuses and methods described in Patent Literatures 5 and 6 have been proposed.
Patent Literature 5 proposes a monitoring apparatus for a resistance welding machine with the monitoring apparatus comprising: a force sensor provided on one of the electrodes and for detecting force; means for calculating a differential area between a set force corresponding to the force during welding and a time-change locus of the output of the pressure sensor; and means for outputting and displaying a nugget diameter corresponding to the calculated differential area.
Moreover, Patent Literature 6 proposes a method for estimating welding quality in spot welding, comprising: a welding quality data acquisition step to acquire correlation data between the displacement quantity of the electrode and welding strength with a number of welding, which is referenced to a fresh electrode, as a parameter; a correlation data change analysis step to analyze the relationship between the change in the characteristic of the correlation data and the number of welding; a welding step to estimate welding strength and execute welding based on the displacement quantity of the electrode obtained from the correlation data change analysis step and the number of welding, wherein the welding strength to be obtained by the welding step is controlled.
However, in the apparatus described in Patent Literature 5 and the method described in Patent Literature 6, since the learning (creation of a decision boundary for classifying the welding quality) by use of the data of a welded joint whose actual welding quality is known by a destructive test, etc. is not performed, it is not possible to accurately evaluate welding quality.
Accordingly, the present invention has its objective to provide a welding quality classification apparatus which is able to classify welding quality with relative ease and high accuracy.
In order to achieve the objective, the present invention provides a welding quality classification apparatus in which a data point indicating feature information whose components include a plurality of features, the plurality of features being obtained based on at least one of physical values including welding current, welding voltage, welding force of welding electrode, and displacement of welding electrode when a welded joint to be classified whose welding quality is unknown is welded, is mapped to a point in a mapping space which has a dimensional number higher than the number of the features constituting the feature information, and determination is made as to which of regions of two welding qualities, which are formed by separating the mapping space, contains the mapped point to classify the welding quality of the welded joint to be classified to be a welding quality corresponding to the region where the mapped point is located, the welding quality classification apparatus comprising:
an acquisition section for acquiring the features; a determination section for determining a discriminant function indicating a decision boundary which separates the mapping space; and a classification section for classifying the welding quality of the welded joint to be classified based on an output value of the discriminant function when the feature information of the welded joint to be classified is inputted into the discriminant function determined by the determination section; wherein
the acquisition section comprises a detection portion for detecting at least one of physical quantities including welding current, welding voltage, welding force of welding electrode, and displacement of welding electrode when the welded joint to be classified is welded, and a feature extraction portion for extracting the features based on physical quantities detected by the detection portion,
each of the two welding qualities is a predetermined and mutually different welding quality,
the determination section determines the discriminant function by using the feature information of a training dataset which is known to have either one of the two welding qualities,
the discriminant function is a function that consists of a kernel function k(x, x′) which outputs a mapped point of a training dataset whose feature information is inputted when the feature information of the training dataset having either one or the other welding quality of the two welding qualities is inputted, and a weight of each feature constituting the feature information, which is attached to the kernel function k(x, x′), and
the kernel function k(x, x′) is a kernel function in which a matrix K whose elements are given as k(x, x′) is positive semi-definite, x is the feature information of a training dataset having one of the welding qualities, and x′ is the feature information of a training dataset having the other of the welding qualities, wherein
the determination section:
determines the weight of each feature constituting the feature information for a predetermined regularization parameter so as to minimize the value of an error function, which consists of a sum of: classification error which is defined by the difference between the output value of the discriminant function when the feature information of the training dataset having one of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the one of the welding qualities, and the difference between the output value of the discriminant function when the feature information of the training dataset having the other of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the other of the welding qualities, decreases as the absolute value of either one of the two differences decreases, and increases as the absolute value increases; and a regularization term multiplied by the regularization parameter, wherein the regularization term has a positive correlation with the dimensional number of the discriminant function, and varies according to the weight of each feature constituting the feature information, and
when the weight of each feature constituting the feature information which has been determined to minimize the value of the error function is temporarily adopted as the weight of each feature constituting the discriminant function,
if the number of misclassification, which is the sum of the number of training dataset having one of the welding qualities, for which the absolute value of the difference between the output value of the discriminant function when the feature information of a training dataset having one of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the one of the welding qualities is smaller than the absolute value of the difference between the output value of the discriminant function when the feature information of a training dataset having one of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the one of the welding qualities, and the number of training dataset having the other of the welding qualities for which the absolute value of the difference between the output value of the discriminant function when the feature information of a training dataset having the other of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the one of the welding qualities is smaller than the absolute value of the difference between the output value of the discriminant function when the feature information of a training dataset having the other of the welding qualities is inputted into the kernel function k(x, x′) and the value corresponding to the other of the welding qualities, is not less than a predetermined value; adjusts the regularization term parameter to determine the weight of each feature constituting the feature information again so as to minimize the value of the error function, and
if the number of misclassification is less than the predetermined value; ascertains that the weight of each feature constituting the feature information which has been determined so as to minimize the value of the error function is adopted as the weight of each feature constituting the discriminant function to determine the discriminant function.
The welding quality classification apparatus relating to the present invention performs mapping of a welded joint to be classified having an unknown welding quality to a point in a mapping space having a higher-order dimension, and determines which of regions of two welding qualities, which are formed by separating the mapping space, contains the mapped point. Then, the welding quality classification apparatus relating to the present invention classifies that the welding quality of a welded joint to be classified is the welding quality corresponding to the region where the mapped point of the welded joint to be classified is located, out of the two regions of welding qualities. The welding quality classification apparatus relating to the present invention determines the discriminant function which indicates the decision boundary separating the mapping space in the following manner.
The welding quality classification apparatus relating to the present invention, first, determines the weight of each feature constituting feature information for a predetermined regularization parameter such that the value of an error function consisting of the sum of a classification error and a regularization term multiplied by the regularization parameter. Then, the welding quality classification apparatus relating to the present invention ascertains that if the number of misclassification when the weight of each feature constituting the feature information which is determined so as to minimize the value of the error function is temporarily adopted as the weight of each feature constituting the discriminant function is less than a predetermined value, the determined weight is adopted as the weight of each feature constituting the discriminant function to determine the discriminant function.
To decrease the value of the error function which consists of the sum of the classification error and the regularization term multiplied by the regularization parameter, it is necessary to decrease at least either one of the classification error and the regularization term. For example, when the regularization parameter is large, the effect of the regularization term on the value of the error function is dominant. The regularization term varies according to the weight of each feature constituting feature information. For this reason, when the regularization parameter is large, the weight to make the regularization term sufficiently small is determined as the weight to minimize the value of the error function. The dimensional number of the discriminant function and the regularization term have a positive correlation with each other. For this reason, the weight to make the regularization term sufficiently small is determined as the weight to minimize the value of the error function, and it is determined that the concerned weight is adopted as the weight of each feature constituting the discriminant function to determine the discriminant function so that excessive increase in the dimensional number of the discriminant function is suppressed and over-fitting (a phenomenon that if a training dataset whose feature has a singular value is present in a training dataset to be used to create a decision boundary (discriminant function), a decision boundary (discriminant function) having an excessively high-order dimension is created such that the welding quality is accurately judged even for a training dataset whose feature has a singular value) is suppressed. Therefore, the welding quality classification apparatus relating to the present invention can suppress over-fitting.
If the number of misclassification when the weight which is determined to minimize the value of the error function is temporarily adopted as the weight of each feature constituting the discriminant function is not less than a predetermined value, the welding quality classification apparatus relating to the present invention performs adjustment of regularization parameter to again determine the weight to minimize the value of the error function. If the regularization parameter is decreased as the result of the above described adjustment of the regularization parameter, while the effect of the regularization term on the value of the error function decreases, the effect of the classification error on the error function increases. Thus, adjustment to decrease the regularization parameter will result in that the weight to decrease the classification error becomes more able to be determined as the weight to minimize the value of the error function than before adjustment. The classification error is defined by the difference between the output value of the discriminant function when the feature information of a training dataset having one welding quality is inputted into the kernel function k(x, x′) (referred to as an “output value of the discriminant function corresponding to the one welding quality”) and the value corresponding to the one welding quality, and the difference between the output value of the discriminant function when the feature information of a training dataset having the other welding quality is inputted into the kernel function (x, x′) (referred to as an “output value of the discriminant function corresponding to the other welding quality”) and the value corresponding to the other welding quality. Further, the classification error decreases as either of the absolute values of the difference between the output value of the discriminant function corresponding to the one welding quality and the value corresponding to the one welding quality, and of the difference between the output value of the discriminant function corresponding to the other welding quality and the value corresponding to the other welding quality decreases, and increases as it increases. That is, if the classification error decreases, either the absolute value of the difference between the output value of the discriminant function corresponding to the one welding quality and the value corresponding to the one welding quality, or the absolute value of the difference between the output value of the discriminant function corresponding to the other welding quality and the value corresponding to the other welding quality decreases. If the absolute value of the difference between the output value of the discriminant function corresponding to one welding quality and the value corresponding to the one welding quality decreases, the number of training dataset having one welding quality, for which the absolute value of the difference between the output value of the discriminant function corresponding to the one welding quality and the value corresponding to the other welding quality becomes larger than the concerned absolute value, decreases. Similarly, if the absolute value of the difference between the output value of the discriminant function corresponding to the other welding quality and the value corresponding to the other welding quality decreases, the number of training dataset having the other welding quality, for which the absolute value of the difference between the output value of the discriminant function corresponding to the other welding quality and the value corresponding to the one welding quality becomes larger than the concerned absolute value, decreases. Therefore, as the classification error decreases, the number of misclassification decreases. Therefore, even if the number of misclassification when the weight determined before the adjustment of the regularization parameter is temporarily adopted as the weight of each feature constituting the discriminant function is not less than a predetermined value, by adjusting such that the regularization parameter decreases, it is possible to determine the weight for which the number of misclassification becomes less than a predetermined value, ascertain that the determined weight is adopted as the weight of each feature constituting the discriminant function, and determine the discriminant function.
As described so far, only when the weight, for which the number of misclassification when temporarily adopted as the weight of each feature constituting the discriminant function is less than the predetermined value, is determined out of the weight determined to minimize the value of the error function, the welding quality classification apparatus relating to the present invention ascertains that the determined weight is adopted as the weight of each feature constituting the discriminant function, and determines the discriminant function. Therefore, the welding quality classification apparatus relating to the present invention can accurately classify the welding quality. However, as the regularization term increases, the possibility of over-fitting is increased. For this reason, for example, the regularization parameter is increased in initial stages, and when the weight by which the number of misclassification becomes less than the predetermined value cannot be determined, it is preferable to determine the weight for which the number of misclassification becomes less than the predetermined value by adjusting that the regularization parameter gradually decreases. Moreover, the above described classification error is set to be a value having a positive correlation with, for example, the sum of squares of the difference between the output value of the discriminant function corresponding to the one welding quality and the value corresponding to the one welding quality, and the difference between the output value of the discriminant function corresponding to the other welding quality and the value corresponding to the other welding quality. A value having a positive correlation with the above described sum of squares is set to be, for example, the square root of the above described sum of squares.
Moreover, the discriminant function consists of a kernel function k(x, x′) and the weight of each feature, and has no mapping function. For this reason, there is no need of calculating a mapping function to determine the discriminant function. The computational complexity of calculating a mapping function is enormous. Therefore, the welding quality classification apparatus according to the present invention, which does not need to calculate a mapping function, can determine a discriminant function with a small computational complexity.
Further, since the welding quality classification apparatus relating to the present invention automatically determines a discriminant function by using feature information of a training dataset which is known to have either one of the two welding qualities, there is no need of the involvement of an expert in statistical analysis as with the apparatus described in Patent Literature 4, and it is possible to classify welding quality with relative ease.
Note that the concept of “two welding qualities” in the present invention includes, besides a state of good welding and a state of poor welding (for example, welding is in a good state when the nugget diameter of a welded joint is larger than predetermined threshold value, and welding is in a poor welding state when the nugget diameter is not more than the threshold value), for example, a state in which the electrode needs to be replaced, and a state in which the electrode does not need to be replaced. Moreover, the concept of “two welding qualities” includes welding qualities which are in the same state in the viewpoint of poor welding, but have different causing factors of poor welding.
Moreover, the term “value corresponding to welding quality” in the present invention is a value predetermined so as to be able to classify one welding quality from the other welding quality, and different values are set for one welding quality and for the other welding quality.
Moreover, the term “feature information of a training dataset” in the present invention indicates feature information whose components include a plurality of features obtained based on at least one of physical values including the welding current, welding voltage, welding force of welding electrode, and displacement of welding electrode when the training dataset is welded.
Further, the term “a plurality of features obtained based on physical value” in the present invention will not be limited to features obtained from at least one of physical values including the welding current, welding voltage, welding force of welding electrode, and displacement of welding electrode, and will also include features obtained from the calculation result using the above described plurality of physical values. For example, the term “a plurality of features obtained based on physical quantity” in the present invention also includes features obtained from an welding resistance which is the result of dividing welding voltage by welding current.
Preferably, the classification section calculates, along with the welding quality of the welded joint to be classified which has been classified, a certainty factor of the classification result of the welded joint to be classified, the certainty factor being represented by a distance between a mapping point obtained by mapping a data point indicating feature information of the welded joint to be classified to the mapping space and the decision boundary separating the mapping space.
According to such preferable configurations, along with the classified welding quality of a welded joint to be classified, a certainty factor for the result of classification of the concerned welded joint to be classified is calculated. On that account, for example, when welding is classified to be in a good state, but the certainty factor thereof is low, it is possible to perform re-inspection of welding quality by means of another apparatus, or to indiscriminately regard the welding quality to be in a poor welding state, thereby preventing the risk of a poorly welded product being delivered.
According to the welding quality classification apparatus relating to the present invention, it is possible to classify welding quality with relative ease and high accuracy.
Hereafter, referring to the appended drawings, an embodiment of the present invention will be described by exemplifying a case where welding quality in spot welding of metallic material is classified by using welding current and welding voltage. Note that in each Formula described in the present specification, parameters indicated by bold-faced italics represent vectors.
The acquisition section 1 includes a current/voltage measurement instrument 11 and a toroidal coil 12 as a measurement portion for measuring a welding current and welding voltage upon spot-welding a welded joint W of materials to be welded M1 and M2 made of metal. The current/voltage measurement instrument 11 is electrically connected to a welding electrode E1 and a welding electrode E2, which constitutes a spot welding machine, respectively so that time series variation of welding voltage is measured. Moreover, the current/voltage measurement instrument 11 is connected to the coil 12 which is placed around the welding machine's shank S2 connected to one electrode E2 so that time series variation of welding current is measured. Moreover, the acquisition section 1 includes a feature extraction portion 13 for extracting features based on the welding current and/or welding voltage measured by the measurement portion (the current/voltage measurement instrument 11 and the coil 12). The feature extraction portion 13 of the present embodiment extracts features based on both the welding current and welding voltage.
As the features to be extracted by the feature extraction portion 13, it is possible to use, for example, results of applying signal processing, such as a fractal dimension analysis, Fourier analysis, and Wavelet analysis, to the signal waveforms of welding current and welding voltage to represent the characteristic of the time series signals corresponding to the welding quality of welding current and welding voltage which are measured by the measurement portion. The number of features which constitute feature information will not be specifically limited provided that the number is plural.
The feature extraction portion 13 of the present embodiment applies a fractal dimension analysis to signal waveforms of welding current and welding voltage, thereby extracting features.
A fractal dimension indicates the level of complexity of a time series signal waveform when regarding the signal waveform as a geometric structure. A larger fractal dimension indicates an increased level of complexity in signal waveform. When a fractal dimension analysis is applied to signal waveforms of welding current and welding voltage, it may be applied by regarding an entire signal waveform corresponding to one spot welding point as a continuous figure, or dividing the signal waveform into certain time intervals. When the fractal dimension analysis is applied with the signal waveform being divided into several time sections, fractal dimensions in the number corresponding to the number of time sections will be obtained.
A fractal dimension d of a time series signal waveform is given by the following Formula (A).
In the above described Formula (A), S denotes a sequence of data of signal waveform, δ denotes a box size, and Nδ(S) denotes a number of boxes which are needed for covering the signal waveform.
Hereafter, appropriately referring to
When calculating the fractal dimension d, the following first to fifth steps are carried out.
(1) 1st step: An appropriate box size δ larger than 0 is set.
(2) 2nd step: As shown in
(3) 3rd step: As shown in
(4) 4th step: As shown in
(5) 5th step: As shown in
Moreover, as the features to be extracted by the feature extraction portion 13, it is possible to adopt features as described below to further sufficiently represent the characteristic of the time series signals corresponding to the welding quality of the welding current and welding voltage detected by the detection portion.
In spot welding, the signal waveforms of welding current and welding voltage exhibit a unique transitional phenomenon changing from a state in an early period of welding in which initial contact resistance occurs toward a nugget formation/growth process in a later period of welding in a macroscopic view as shown in
Accordingly, among the changes in signal waveform, by representing a macroscopic (fundamental) change by fitting an approximating curve (a higher order curve and a spline curve etc.) and representing minute variation by the error of the above described approximating curve for the signal waveform, that is, by treating the variation of signal waveform by decomposing it into two elements, it is conceivable that the information of signal waveform can be represented further in detail.
To be specific, features are extracted as described below.
(1) As shown in
(2) As shown in
Where, in the above described Formulas (B) and (C), z denotes actual data (welding current and welding voltage) of feature information, and Γ(•) denotes a gamma distribution. Moreover, in the above described Formula (C), μ denotes a positional parameter, and σ denotes a scale parameter (σ>0). These parameters μ and σ are values which can be estimated from the cumulative density distribution of parent population.
(3) The coefficient parameters of the approximating curve obtained in the above described (1) (for example, each coefficient P0 to Pn-1 of an n-th order approximating curve P0t+P1t2+ . . . Pn-1tn, where t denotes time, and n=7 in the example shown in
The determination section 2 determines a discriminant function indicating a decision boundary for classifying the welding quality of a welded joint to be classified whose welding quality is unknown. This decision boundary separates a mapping space, which has a dimensional number higher than the number of features constituting feature information (a vector) whose components include a plurality of features obtained based on welding current and/or welding voltage (both welding current and welding voltage in the present embodiment) when the welded joint to be classified is welded, into regions of two welding qualities (hereafter, one of the two welding qualities is referred to as “welding quality A”, and the other welding quality as “welding quality B”). Welding quality A and welding quality B are welding qualities which are set in advance by the user etc. of the welding quality classification apparatus 100 and are different from each other. Welding quality A and welding quality B may be set, for example, to be a state of good welding and a state of poor welding.
The determination section 2 determines a discriminant function by using feature information of a training dataset which is known to have either one of welding quality A and welding quality B. The feature information of the training dataset to be inputted to the determination section 2 is obtained, for example, by using features extracted by the above described feature extraction portion 13 of the acquisition section 1. The feature information of a training dataset having welding quality A, the feature information of a training dataset having welding quality B, and the feature information of the above described welded joint to be classified consist of the same kind of features. It is possible to know which of welding quality A and welding quality B a training dataset has by, for example, extracting features on the training dataset, and thereafter rupturing the training dataset to evaluate the nugget diameter thereof. As shown in
The discriminant function f(x) to be determined by the determination section 3 is represented by the following Formula (1).
f(x)=wTφ(x) (1)
Where, w indicates weight factor (a vector) whose components each include the weight of each feature constituting the feature information. The character x described in Formula (1) indicates the feature information (a vector) of a training dataset having welding quality A or welding quality B. φ(•) is a mapping function for mapping a data point (a point at the tip of a vector) indicating feature information into the mapping space, and having a positive definiteness. Examples of the mapping function having a positive definiteness include a function of Gaussian distribution.
The computational complexity of the mapping function φ(•) is enormous. To make it possible to determine the discriminant function ƒ(x) with a small computational complexity, the present embodiment uses the discriminant function f(x) represented by the following Formula (2). In the following description, the discriminant function f(x) represents a discriminant function f(x) represented by the following Formula (2).
(x)=Σαk(x,x′) (2)
Where, a indicates the weight of each feature constituting feature information. k(x, x′) indicates a kernel function in which a matrix K whose elements are given as k(x, x′) is positive semi-definite. The character x described in or after Formula (2) indicates feature information (a vector) of a training dataset having welding quality A. The character x′ indicates feature information (a vector) of a training dataset having welding quality B. The matrix K whose elements are given as k(x, x′) is a matrix whose elements include output values of a kernel function which are obtained when the feature information x of a training dataset having welding quality A is inputted into the kernel function k(x, x′), and output values of the kernel function which are obtained when the feature information x′ of a training dataset having welding quality B is inputted into the kernel function k(x,
Examples of the kernel function k(x, x′) where matrix K whose elements are given as the kernel function k(x, x′) is positive semi-definite include the following five kernel functions (x, x′).
k(x,x′)=f(x)k1(x,x′)f(x′)
k(x,x′)=q(k1(x,x′))
k(x,x′)=exp(k1(x,x′))
k(x,x′)=xTKx′
k(x,x′)=ka(xa+xa′)+ka(xb+xb′)
Moreover, other examples of the kernel function k(x, x′) in which the matrix K whose elements are given as the kernel function k(x, x′) is positive semi-definite include the sigmoid function and the Gauss function described in the following formulas.
It is noted that in the above described exemplary seven kernel functions k(x, x′), f(•) indicates an arbitrary function, q(•) indicates a polynomial having non-negative coefficients, k1(•, •), ka(•, •), and kb(•, •) indicate arbitrary kernel functions, subscripts a and b indicate identifiers of training dataset, β indicates a gain of the sigmoid function, and a indicates variance.
Formula (2) is derived as described below.
Defining k(x, x′) as described above, the following Formula (4) will be derived.
The character d indicates the number of features constituting feature information. When the number of features constituting feature information is made to be sufficiently large, the following Formula (5) will be derived from Formula (1).
Where, the weight factor w is represented by the following Formula (6).
w=Σαφ(x) (6)
According to the definition (Formula (3)) of the kernel function k(x, x′), Formula (2) is derived from Formula (1) by using Formula (6). The discriminant function f(x) of Formula (2) is a function whose dimensional number is affected by the number of features constituting feature information of a training dataset.
Hereafter, the procedure to determine the discriminant function f(x) will be described appropriately referring to
When it is classified that the number of misclassification is not less than a predetermined value, the determination section 2 determines the weight a of each feature constituting feature information, which minimizes the value of error function that consists of the sum of the classification error and the regularization term αTKα multiplied by a regularization parameter λ (step S2 of
Where, super script (i) indicates an identifier of a training dataset. Note that the regularization parameter λ takes on a value within a range of 0 to 1. The classification error, which is defined by the difference between the output value of the discriminant function f(x) when the feature information of a training dataset having welding quality A is inputted into the kernel function k(x, x′) and the value corresponding to welding quality A, and the difference between the output value of the discriminant function f(x) when the feature information of a training dataset having welding quality B is inputted into the kernel function k(x, x′) and the value corresponding to welding quality B, decreases as the absolute value of either of the two differences decreases, and increases as the absolute value increases.
The term γcost of Formula (7) is represented by the following Formula (8).
γcost=max{0,1−yf(x)} (8)
Formula (8) is a convex function which approximates the following Formula (9).
The term y of Formula (9) indicates a vector whose components are weights of each feature. When the feature information of a training dataset having welding quality A is inputted into the kernel function k(x, x′) to find the classification error, each component of vector y is taken as 1, and when the feature information of a training dataset having welding quality B is inputted into the kernel function k(x, x′), each component of vector y is taken as −1. The term sgn[f(x)] in Formula (9) is represented by the following Formula (10).
The regularization term αTKα is represented by the following Formula (11).
Where, the subscript i indicates an identifier to represent the type of the feature constituting the feature information of a training dataset having welding quality A. The subscript j indicates an identifier to represent the type of the feature constituting the feature information of a training dataset having welding quality B.
It is seen from Formula (11) that the regularization term αTKα has a positive correlation with the weight a of each feature. The regularization term αTKα is derived as follows. A linear sum w0 of each feature of a training dataset having welding quality A is represented by the following Formula (12).
Moreover, since the weight factor w is the sum of the linear sum w0 and a ξ component orthogonal to a mapped point φ(x(i)) which is mapping of a data point indicating the feature information of a training dataset, it is represented by the following Formula (13).
w=w
0+ξ (13)
Where, from the condition that the inner product φ(x(j))T·ξ between the weight factor w and the mapped point φ(x(j)) is 0, f(x) of Formula (5) is represented by the following Formula (14).
f(x(j))=wTφ(x(j))=w0Tφ(x(j)) (14)
Thus, it is seen that the term γcost of the left-hand side of Formula (8) is not dependent on the value of the ξ component. Moreover, the following Formula (15) can be derived from the orthogonality between the linear sum w0 and the ξ component.
λ∥w∥2=λ(∥w0∥2+∥ξ∥2) (15)
From Formula (15), it is obvious that λ∥w∥2 becomes a minimum value when ξ=0. Therefore, it is when w=w0 that the error function becomes minimum. Here, utilizing Formula (12) allows the derivation of Formula (11) from Formula (15).
From Formulas (11) and (2), the regularization term αTKα has a positive correlation with the dimensional number of the discriminant function f(x) of Formula (2).
Hereafter, details of the procedure to determine the weight a of each feature constituting the feature information that minimizes the value of the error function (step S2 of
Next, γcost of the left-hand side of Formula (8) is inputted into y(i) of Formula (7), the feature information of each training dataset having welding quality A or welding quality B is inputted into x(i) of Formula (7), and the value of the regularization term αTKα calculated in step S21 is inputted into the regularization term αTKα of Formula (7) (step S22 of
Next, Formula (7) is transformed into the following Formula (16) (step S23 of
The transformation from Formula (7) to the following Formula (16) will be described. Letting the output of the classification error for the feature information x(i) and the value y(i) be ξi, the minimum value of the output ξi will be the minimum value defined by two inequalities (17) and (18).
The output ξi when it becomes a minimum value is called as a slack variable, and Formula (7) is transformed into Formula (16) with Formulas (17) and (18) as constraints by introducing the output ξi when it becomes a minimum value into Formula (7).
Formula (16) takes on a form of a convex quadratic programming problem relating to the output ξ and the weight a of each feature constituting the feature information. Hereafter, the solution of the convex quadratic programming problem of Formula (16) will be shown.
Formula (16) is solved by using the Lagrange undefined multiplier method. The following Formula (19) is defined as Lagrangian.
Definition region: Ω⊂ Rn
Where, Rn indicates the entire real numbers.
Constraints: gi(w)≦0, hi(w)=0
Note that gi(w) and hi(w) indicate arbitrary functions.
Convex quadratic programming problem:
A necessary and sufficient condition to solve the following convex quadratic programming problem using Lagrangian L(w, α, β) is from the KKT (Karush-kuhn-Tucker) condition that α* and β* that satisfy the following Formulas (20) to (24) exist.
Definition region: Ω⊂ Rn
Constraints: gi(w)≦0, hi(w)=0
Note that gi(w) and hi(w) indicate affine functions.
Convex quadratic programming problem: min. f(w), wεΩ
Where, α and β indicate Lagrange multipliers in Formulas (19) to (24). The character w* indicates the weight factor when it is optimized. α* and β* indicate Lagrange multipliers α and β when w* is obtained.
The following Formula (25) can be derived from Formula (16) using Formula (19).
Constraints: βi≧0, γi≦0
Where, γ indicates a Lagrange multiplier.
If it is supposed that the feasible region in which an optimal solution is sought is not φ (empty set) in a general convex quadratic programming problem to minimize an objective function which is a convex function represented by the following Formula (26), the following Formula (26) is transformed into the following Formula (27).
Objective function: 1/2wTQw−kTw (26)
In from Formula (26) to the following Formula (29), Q indicates an n×n positive definite matrix, k indicates an n-vector, c indicates an m-vector, w indicates a vector to be optimized, and X indicates an m×n matrix.
Here, the problem to determine the minimum value of w in
Formula (27) constitutes an unconstrained optimization problem, and the optimal solution is represented by the following Formula (28).
w=Q
−1(k−XTα) (28)
Substituting the right-hand side of Formula (28) into the vector w to be optimized in Formula (26) will result in a dual problem to maximize the objective function represented by the following Formula (29) under the following constraint.
Objective function: 1/2αTPα−αTd−1/2kTQk (29)
(P=XQ−1XT, d=c−XQ−1k)
Thus, the quadratic programming problem can be transformed into a dual problem with simpler constraints. By taking advantage of this property, it is possible to significantly reduce the computational complexity of the search of an optimal solution.
Similarly with the above described procedure, the quadratic programming problem represented by Formula (25) is led to a dual problem. First, Lagrangian L(ξ, α, β, γ) with which Formula (25) is differentiated with respect to the weight αi and the output ξi is set to be 0 (see the following Formula (30)).
Where, since K is a symmetric matrix, KT=K, and therefore the following Formula (31) can be derived from Formula (30).
λKα−K{circumflex over (γ)}=0 (31)
Where {circumflex over (γ)}=({circumflex over (γ)}1, {circumflex over (γ)}2, . . . , {circumflex over (γ)}n), {circumflex over (γ)}1=γ1y(i), i=1, . . . , n (32)
If it is supposed that the matrix K is positive definite, the following Formula (33) can be obtained.
When the following Formula (34) is satisfied, the output ξi can be made as small as desired. That is, since the Lagrange function (see Formula (25)) of a dual problem becomes −∞, when considering a dual problem, it is sufficient to take into account only a case in which the constraints of the following Formula (35) is included.
1−βi−γi≠0 (34)
1−βi−γi=0 (35)
In this way, since the coefficient of a variable is 0 in a Lagrange function which is represented by a first order expression, the dual problem is irrelevant to the output ξi. Therefore, the weight αi is substituted by Formula (33) to maximize the Lagrange function of the following Formula (36) under the constraint of Formula (35).
Moreover, from the conditions βi≧0 and γi≧0, the constraint of Formula (35) becomes as the following Formula (37).
0≦γi≦1 (37)
Calculating γi from Formula (36) (step S24 of
The determination section 2 temporarily adopts the weight a of each feature constituting the feature information of a training dataset, which is determined as described above, as the weight a of each feature constituting the feature information of training dataset of the discriminant function f(x). Then, in a similar manner as in step S1 of
The determination section 2 of the present embodiment, as described above, sets the initial value of the regularization parameter λ to be the maximum value of the regularization parameter λ, and makes adjustment such that if the number of misclassification is less than the predetermined value, the regularization parameter λ is made smaller. When the regularization parameter λ is large, the effect of the regularization term αTKα on the value of the error function is large. For this reason, when the regularization parameter λ is large, the weight α of each feature which makes the regularization term αTKα to be sufficiently small is determined as the weight α of each feature which minimizes the value of the error function. The dimensional number of the discriminant function f(x) and the regularization term αTKα have a positive correlation. For this reason, if the weight α of each feature which makes the regularization term αTKα to be sufficiently small is determined as the weight α of each feature that minimizes the value of the error function, and it is ascertained that the weight α of each feature is adopted as the weight α of each feature constituting the discriminant function f(x) and the discriminant function is determined, it is possible to suppress the increase in the dimensional number of the discriminant function (decision boundary), thereby allowing the suppression of over-fitting. Further, even when the weight a of each feature which makes the regularization term to be sufficiently small is determined, when the number of misclassification when the weight α of each feature is temporarily adopted as the weight α of each feature constituting the discriminant function f(x), it will not be ascertained that the weight α of each feature is adopted as the weight α of each feature constituting the discriminant function f(x). In this case, adjustment is made such that the regularization parameter λ becomes smaller, and the weight α of each feature to minimize the value of the error function is determined again. Making the regularization parameter λ smaller will result in that the effect of the regularization term αTKα on the value of the error function will decrease, while the effect of the classification error on the value of the error function will increase. For this reason, if adjustment is made such that the regularization parameter 2 becomes smaller, it becomes more possible than before the adjustment that the weight α of each feature that decreases the classification error is determined as the weight a of each feature that minimizes the value of the error function. The classification error is specified as the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality A, and the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B. Further, the classification error decreases as the absolute value of either of the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality A, and the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B decreases, and increases as either of them increases. That is, as the classification error decreases, either the absolute value of the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality A, or the absolute value of the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B decreases. As the absolute value of the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality A decreases, the number of training dataset having welding quality A, in which the absolute value of the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality B becomes larger than the foregoing absolute value, decreases. Similarly, as the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B decreases, the number of training dataset having welding quality B, in which the absolute value of the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B becomes larger than the foregoing absolute value, decreases. Therefore, as the classification error decreases, the number of misclassification decreases. Thus, even when the number of misclassification when the weight a of each feature determined before the adjustment of the regularization parameter is temporarily adopted as the weight a of each feature constituting the discriminant function f(x) is not less than the predetermined value, it is possible to determine the weight a of each feature for which the number of misclassification becomes less than the predetermined value by making adjustment that the regularization parameter λ is decreased, and to ascertain that the determined weight a of each feature is adopted as the weight a of each feature constituting the discriminant function, thereby determining the discriminant function f(x).
Moreover, the discriminant function f(x) represented by Formula (2) has a kernel function k(x, x′) and a weight a for each feature constituting feature information, and does not have a mapping function. For this reason, when calculating the number of misclassification, there is no need of calculating the mapping function. In other words, there is no need of calculating a mapping function to determine a discriminant function. The computational complexity of a mapping function is enormous. For this reason, the welding quality classification apparatus 100, which does not need to calculate a mapping function to determine the discriminant function f(x), can determine the discriminant function f(x) with a small computational complexity.
The classification section 3 classifies whether the welding quality of a welded joint to be classified belongs to welding quality A or welding quality B. The classification section 3 inputs the feature information consisting of features acquired by acquisition section 1 into the kernel function k(x, x′) of the discriminant function f(x) determined by the determination section 2, and calculates an output value of the discriminant function f(x), that is, a mapped point which is mapping of a data point indicating the concerned feature information to a mapping space. Then, the classification section 3 classifies that the welding quality of a welded joint to be classified is the welding quality corresponding to either of the above describe two regions, wherein the mapped point is located. To be specific, the classification section 3 compares the absolute value of the difference between the output value of the discriminant function f(x) when the feature information of a welded joint to be classified is inputted and the value corresponding to welding quality A, with the absolute value of the difference between the output value of the discriminant function f(x) and the value corresponding to welding quality B, and if the former is smaller, classifies that the welded joint to be classified belongs to welding quality A, and if the latter is smaller, that the welded joint to be classified belongs to welding quality B. In the present embodiment, since as described above, the value corresponding to welding quality A is taken as 1, and the value corresponding to welding quality B is taken as −1, the condition when the discriminant function f(x) takes a middle value between the both, that is, f(x)=0 corresponds to the decision boundary to separate the above described mapping space.
Further, the weight of feature that has little or no effect on the output value of the discriminant function f(x) is highly likely to be determined to be 0 by the determination section 2. As described above, the determination section 2 determines the weight a of each feature constituting the feature information that minimizes the error function. The error function is a function that consists of the sum of the classification error and the regularization term αTKα. The classification error, which is defined by the difference between the output value of the discriminant function corresponding to welding quality A and the value corresponding to welding quality A, and the difference between the output value of the discriminant function corresponding to welding quality B and the value corresponding to welding quality B, decreases as the absolute value of either of the two differences decreases, and increases as it increases. That is, the classification error varies according to the output value of the discriminant function f(x). The discriminant function f(x) varies according to the weight of feature from Formula (2). For this reason, the variation in the classification error is small when the weight of feature that has little or no effect on the output value of the discriminant function f(x) is varied. The regularization term αTKα has a positive correlation with the weight α of each feature. For this reason, the value of the error function consisting of the sum of the classification error and the regularization term is highly likely to decrease as the result of making the weight of feature, for which the variation of classification error is small to be a minimum (that is, 0). Thus, the weight of the feature that has little or no effect on the output value of the discriminant function f(x) is highly likely to be determined to be 0 by the determination section 2.
The feature information that is inputted into the kernel function k(x, x′) of the discriminant function f(x) determined by the determination section 2 in order for the classification section 3 to classify the welding quality of a welded joint to be classified may be substituted with feature information which consists of features other than those for which the weights are determined to be 0. When such feature information is taken as the feature information to be inputted into the kernel function k(x, x′) of the discriminant function f(x) determined by the determination section 2, the feature whose weight is determined to be 0 will not be inputted into the kernel function k(x, x′) of the discriminant function f(x), and for that part, the computational complexity for the classification of the welding quality of a welded joint to be classified will be reduced. Such reduction in the computational complexity for the classification of the welding quality of a welded joint to be classified allows rapid classification of the welding quality of a welded joint to be classified. Further, as described above, the weight of the feature that has little or no effect on the output value of the discriminant function f(x) is highly likely to be determined to be 0. Thus, even if a feature whose weight has been determined to be 0 is not inputted into the kernel function k(x, x′) of the discriminant function f(x), it is possible to perform the classification of the welding quality of a welded joint to be classified by use of the output value of the discriminant function f(x) at a certain level of accuracy or above.
Further, in the present embodiment, the classification error is represented by γcost of Formula (8) which is a convex function. Since γcost of Formula (8) is a convex function, it is possible to find the weight a to minimize the value of classification error without falling into a local solution. For this reason, it is possible to effectively determine the weight α to make the classification error to be less than the predetermined value.
Further, although in the present embodiment, description has been made on an example in which classification is made on to which of the two welding qualities (welding quality A and welding quality B) the welding quality of a welded joint to be classified belongs, it is also possible to classify to which of three or more welding qualities the welding quality of a welded joint to be classified belongs by repeating the above described operations of the determination section 2 and the classification section 3. For example, consider a case where the above described welding quality A is a state of good welding, and the above described welding quality B is a state of poor welding. Then, consider a case in which poor welding (welding quality B) can be further divided into either welding quality of poor welding B1 and poor welding B2. That is, consider a case in which the welding quality can be divided into any of good welding (welding quality A), poor welding B1 and poor welding B2. In this case, first in the determination section 2, a discriminant function, which indicates a decision boundary for classifying to which of good welding (welding quality A) and poor welding (welding quality B) the welding quality of a welded joint to be classified belongs, is determined by the above described procedure. The classification section 3 classifies to which of good welding (welding quality A) and poor welding (welding quality B) the welding quality of a welded joint to be classified belongs by using the discriminant function determined by the determination section 2. Next, in the determination section 2, a discriminant function, which indicates a decision boundary for classifying to which of poor welding B1 and poor welding B2 the welding quality of the welded joint to be classified which has been classified to be poor welding (welding quality B) belongs, is determined by the same procedure as described above. The classification section 3 classifies to which of poor welding B1 and poor welding B2 the welding quality of the welded joint to be classified, which has been classified to be poor welding (welding quality B) belongs by using the discriminant function determined in the determination section 3. As a result, the welded joint to be classified is classified into any of three welding qualities A, B1 or B2. By repeating a procedure similar to the above described procedure, it is possible to classify to which of four or more welding qualities the welding quality of a welded joint to be classified belongs.
As described above, further detailed categorization of poor welding (for example, categorizing poor welding for each causal factor thereof) and classifying it will achieve advantageous effects in the operation of a spot welding machine, such as that it is easy to identify a faulty cause of the spot welding machine according to the classification result (according to the causal factor of poor welding), and it becomes possible to quickly adjust the spot welding machine.
On the other hand, by detailed categorizing and classifying the good welding, it can be expected that the classification accuracy of welding quality is improved. Hereafter, description will be made on this point.
Under welding time of a spot welding machine, (1) an increase in the contact area between an electrode E1 (or E2) and a material to be welded M1 (or M2), increase and it cause and a decrease in the welding resistance due to the increase in the contact area between the material to be welded M1 and the material to be welded M2, and (2) an increase in the resistance On the other hand, (2) an increase of temperature of materials causes an increase of resistance between electrodes and these factors are compounded, thereby causing various changes in the signal waveform of resistance (signal waveform of welding voltage). To be specific, there are several patterns in the signal waveform of resistance, etc. (see
To be specific, for example, consider a case where welding quality can be categorized into any one of good welding A1, good welding A2, poor welding B1, and poor welding B2. It can be expected that the variation of the feature information of a training dataset having a welding quality of good welding A1 and the variation of the feature information of a training dataset having a welding quality of good welding A2 are suppressed compared with the variation of feature information in a case where good welding A1 and good welding A2 are combined together as good welding. Then, first in the determination section 2, by using the feature information of a training dataset having each welding quality (good welding A1, good welding A2, poor welding B1, and poor welding B2), a discriminant function indicating a decision boundary for classifying to which of good welding A and other welding qualities (good welding A2, poor welding B1, and poor welding B2) the welding quality of a welded joint to be classified belongs is determined by the above described procedure. In this occasion, as described above, if the variation of the feature information of a training dataset having a welding quality of good welding A1 is small, it can be expected that the above described discriminant function is accurately determined. By using this discriminant function determined at the determination section 2, the classification section 3 classifies to which of good welding A1 and other welding qualities (good welding A2, poor welding B1, and poor welding B2) the welding quality of the welded joint to be classified belongs. Next, in the determination section 2, a discriminant function indicating a decision boundary for classifying to which of good welding A2 and poor welding (poor welding B1 and poor welding B2) the welding quality of the welded joint to be classified, which has been classified to belong to the other welding qualities, belongs is determined by the same procedure as described above. As described above, if the variation of the feature information of the training dataset having a welding quality of good welding A2 is small, it can be expected that the above described discriminant function is accurately determined. By using this discriminant function determined at the determination section 2, the classification section 3 classifies to which of good welding A1 and poor welding (poor welding B1 and poor welding B2) the welding quality of the welded joint to be classified, which has been classified to belong to the other welding qualities, belongs. Hereafter, classifying in the same manner to which of poor welding B1 and poor welding B2 the welded joint to be classified, which has been classified to belong to poor welding, belongs will eventually allow to classify to which of the four welding qualities A1, A2, B1, and B2 the welded joint to be classified belongs.
Note that while the present embodiment has been described by exemplifying a case where welding quality is classified by using welding current and welding voltage, the present invention will not be limited to such case and may be configured such that welding quality is classified by using the welding force of welding electrode and the displacement of welding electrode as shown in
The acquisition section 1A includes: a load cell 11A as a detection portion for detecting the welding force of an electrode E2 when a welded joint W of materials to be welded M1 and M2 is spot welded; and a displacement meter 12A as a portion for detecting the displacement of an electrode E1 when the welded joint W of the materials to be welded M1 and M2 is spot welded. Moreover, the acquisition section 1A includes a feature extraction portion 13 and a data logger 14. The load cell 11A is disposed at a position to receive the load applied from the electrode E2 so that a change with time in the welding force of the electrode E2 during welding is measured. Moreover, the displacement meter 12A includes a displacement sensor 121A of a contact type or non-contact type, and a measurement target portion 122A which serves as the target for displacement measurement by the displacement sensor 121A. Either one of the displacement sensor 121A and the measurement target portion 122A is attached to a mobile portion (a portion that moves jointly with the electrode) of the spot welding machine, and the other one is attached to a stationary portion of the spot welding machine. In the example shown in
Hereafter, results of a test carried out to classify welding quality (whether welding is good or poor) by using the welding quality classification apparatuses 100 and 100A relating to the present embodiment will be described.
As shown in
Where, an ellipsoidal melted and solidified portion N was formed centering on the interface between the materials to be welded M1 and M2 in the welded joint of the materials to be welded M1 and M2 after the electrification of the electrodes E1 and E2 as shown in
The method to judge welding quality (good/poor welding) based on the measurement result of nugget diameter by the destructive test so far described was commonly used and also used in the present classification test for the judgment of welding quality of a training dataset, and the evaluation of the classification result of the welding quality classification apparatus 100.
Where, since the measurement of nugget diameter by the destructive test contains measurement errors, there is a risk that the classification result of actual welding quality of a welded joint particularly around the judgment threshold (for example, 2.5 mm) becomes ambiguous. On that account, in the welding quality classification apparatus 100 relating to the present embodiment which utilizes a training dataset based on the measurement result of nugget diameter by a destructive test as well, there is a risk that ambiguity remains in the classification result. Accordingly, the welding quality classification apparatus 100 (classification section 3) relating to the present embodiment is configured to calculate, in addition to the welding quality (good/poor welding) of a welded joint to be classified, a certainty factor of the classification result. The certainty factor is represented by a linear distance between a mapping point obtained by mapping a data point representing feature information of a welded joint to be classified to a mapping space and a decision boundary to separate the mapping space, and specifically represented by D1 of the following Formula (38):
D
l
=|yw
Tφ(x(i))|/∥w∥ (38)
In the above described Formula (38), the subscript l indicates an identifier of a welded joint to be classified. Moreover, y indicates a vector whose each component is 1 if a discriminant function f(x)≧0 when the feature information of the welded joint to be classified is inputted, and indicates a vector whose each component is −1 if the above described discriminant function f(x)<0.
The certainty factor Dl represented by the above described Formula (38) can be a value from 0 to 1.
Where, it is supposed that, for example, a region where the discriminant function f(x)≧0 corresponds to good welding, and the region where the discriminant function f(x)<0 corresponds to poor welding. At this moment, if the discriminant function f(x)≧0 when the feature information of a welded joint to be classified is inputted and its certainty factor Dl=1, the welding quality of the welded joint to be classified is classified to be good welding, meaning that the certainty of the classification result (good welding) is 100% (the certainty of being poor welding is 0%). The certainty (%) of a classified result is represented by (0.5×Dl+0.5)×100. Moreover, if the discriminant function f(x)≧0 when the feature information of a welded joint to be classified is inputted, and its certainty factor Dl=0, the welding quality of the welded joint to be classified is classified to be good welding, meaning that the certainty of the classification result (good welding) is 50%. Similarly, if the discriminant function f(x)<0 when the feature information of a welded joint to be classified is inputted, and its certainty factor Dl=1, the welding quality of the welded joint to be classified is classified to be poor welding, meaning that the certainty of the classification result (poor welding) is 100%. Moreover, if the discriminant function f(x)<0 when the feature information of a welded joint to be classified is inputted, and its certainty factor Dl=0, the welding quality of the welded joint to be classified is classified to be poor welding, meaning that the certainty of the classification result (poor welding) is 50%.
As described so far, configuring to calculate, along with the welding quality of a welded joint to be classified which has been classified, the certainty factor of the classification result of the welded joint to be classified makes it possible, for example, when welding quality is classified to be good welding, but the certainty factor thereof is low (not more than a predetermined threshold), to perform re-inspection of welding quality by means of another apparatus, or to indiscriminately regard the welding quality to be in a poor welding state, thereby preventing the risk of a poorly welded product being delivered.
In the present classification test, 60 sets of materials to be welded were welded, in which welded joints of 41 sets of materials to be welded were used as a training dataset, and welded joints of the remaining 19 sets of materials to be welded were used as welded joints to be classified. In the present classification test, as described above, fractal dimensions of signal waveforms of welding current and welding voltage were used as features, and actual welding qualities of the training dataset were evaluated by a destructive test.
As shown in
In the present classification test as well, the welding quality classification apparatus 100 having the configuration shown in
Where, an ellipsoidal melted and welded metal (nugget) N was formed in the welded joint of the materials to be welded M1, M2 and M3 after the electrification of the electrodes E1 and E2 as shown in
The measurement results of the nugget diameter by the cross-sectional observation so far described were used for the judgment of welding quality of a training dataset, and the evaluation of the classification results of the welding quality classification apparatus 100.
In the present classification test, welding qualities of welded joints of 65 sets of materials to be welded were evaluated by a cross validation method. To be specific, 65 sets of materials to be welded were divided into a first group (22 sets), a second group (22 sets), and a third group (21 sets), and when the welded joints of the materials to be welded in the first group were used as the welded joints to be classified, the welded joints of the materials to be welded of the second and third groups were used as the training dataset. Similarly, when the welded joints of the materials to be welded of the second group were used as the welded joints to be classified, the welded joints of the materials to be welded of the first and third groups were used as the training dataset, and when the welded joints of the materials to be welded of the third group were used as the welded joints to be classified, the welded joints of the materials to be welded of the first and second groups were used as the training dataset. In the present classification test, classification was performed in both cases where coefficient parameters of an approximating curve of signal waveform of welding voltage and the above described parameters μ, σ and γ were used as features (the results thereof are shown
As shown in
As shown in
Comparing the evaluation results shown in
In the present classification test, the welding quality classification apparatus 100A having the configuration shown in
Where, an ellipsoidal nugget N was formed in the welded joint of the materials to be welded M1, and M2 after the electrification of the electrodes E1 and E2 as shown in
The measurement results of the nugget diameter in the interface by the cross-sectional observation so far described were utilized for the judgment of welding quality of a training dataset, and the evaluation of the classification results of the welding quality classification apparatus 100A.
In the present classification test, welding qualities of welded joints of 46 sets of materials to be welded were evaluated by a cross validation method. To be specific, 46 sets of materials to be welded were divided into a first group (15 sets), a second group (15 sets), and a third group (16 sets), and when the welded joints of the materials to be welded in the first group were used as the welded joints to be classified, the welded joints of the materials to be welded of the second and third groups were used as the training dataset. Similarly, when the welded joints of the materials to be welded of the second group were used as the welded joints to be classified, the welded joints of the materials to be welded of the first and third groups were used as the training dataset, and when the welded joints of the materials to be welded of the third group were used as the welded joints to be classified, the welded joints of the materials to be welded of the first and second groups were used as the training dataset. In the present classification test, classification was performed in both cases where coefficient parameters of an approximating curve of signal waveform of welding voltage and the above described parameters μ, σ and γ were used as features (the results thereof are shown
As shown in
As shown in
Comparing the evaluation results shown in
Number | Date | Country | Kind |
---|---|---|---|
2010-231343 | Oct 2010 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2011/073379 | 10/12/2011 | WO | 00 | 5/23/2013 |