CN118965216B - Welding implicit anomaly detection and identification method based on multi-source data - Google Patents
Welding implicit anomaly detection and identification method based on multi-source dataInfo
- Publication number
- CN118965216B CN118965216B CN202410960492.2A CN202410960492A CN118965216B CN 118965216 B CN118965216 B CN 118965216B CN 202410960492 A CN202410960492 A CN 202410960492A CN 118965216 B CN118965216 B CN 118965216B
- Authority
- CN
- China
- Prior art keywords
- data
- welding
- abnormal
- point
- smoothing factor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
- G06F18/2433—Single-class perspective, e.g. one-against-all classification; Novelty detection; Outlier detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/253—Fusion techniques of extracted features
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/25—Fusion techniques
- G06F18/254—Fusion techniques of classification results, e.g. of results related to same input data
- G06F18/256—Fusion techniques of classification results, e.g. of results related to same input data of results relating to different input data, e.g. multimodal recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/20—Image preprocessing
- G06V10/26—Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/764—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using classification, e.g. of video objects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/77—Processing image or video features in feature spaces; using data integration or data reduction, e.g. principal component analysis [PCA] or independent component analysis [ICA] or self-organising maps [SOM]; Blind source separation
- G06V10/80—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level
- G06V10/809—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of classification results, e.g. where the classifiers operate on the same input data
- G06V10/811—Fusion, i.e. combining data from various sources at the sensor level, preprocessing level, feature extraction level or classification level of classification results, e.g. where the classifiers operate on the same input data the classifiers operating on different input data, e.g. multi-modal recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/70—Arrangements for image or video recognition or understanding using pattern recognition or machine learning
- G06V10/82—Arrangements for image or video recognition or understanding using pattern recognition or machine learning using neural networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Multimedia (AREA)
- Computing Systems (AREA)
- Software Systems (AREA)
- Medical Informatics (AREA)
- General Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- General Engineering & Computer Science (AREA)
- Investigating Or Analyzing Materials By The Use Of Ultrasonic Waves (AREA)
Abstract
The invention discloses a welding implicit abnormality detection and identification method based on multi-source data, and belongs to the field of welding quality detection. The realization method of the invention is that the multi-mode data information of the welding quality of each object is collected in real time, including sound, current, voltage, spectrum, temperature information and image information. And acquiring each information source by adopting a corresponding sensor, and extracting the characteristics of each information source. And carrying out normalization processing on the extracted characteristic values, and carrying out dimension reduction on the data based on the abnormal categories by adopting an LDA method. Abnormal points are detected by using a local outlier LOF method. The isolated forest is utilized to identify abnormal points on the whole, the detection area is divided, and a new neighborhood search space is defined in the divided area. And identifying abnormal types by adopting a probability neural network PNN method. Optimizing the smoothing factor of the PNN by using an artificial bee colony algorithm ABC, obtaining the optimal smoothing factor, establishing an optimal PNN model, and realizing welding implicit anomaly detection and identification according to the optimal PNN network optimization model.
Description
Technical Field
The invention relates to a welding implicit abnormality detection and identification method based on multi-source data, and belongs to the field of welding quality detection.
Background
Soldering is a common metal joining process that involves joining metal pieces by heating and melting the metal material and adding a suitable filler material. Welding is widely used in the fields of manufacturing, construction, automobile manufacturing, aerospace and the like. The welding process is important to ensure the quality and reliability of the weld. Popular weld quality tests typically employ single weld quality information, such as weld image information using convolutional neural networks, weld sound information using sound sensors, and also weld quality detection methods based on pulsed infrared thermal imaging techniques. In the present day, the advanced welding quality detection method is mainly single image information detection, and the welding quality detection method is continuously optimized through the improvement of a corresponding image extraction algorithm and extraction characteristics. The welding quality detection method with single image information is an effective method because the quality of welding is mainly dependent on the size and shape of the weld. Although the welding quality detection method based on the image information has good detection effect, the image information only can reflect the welding quality problems of some surfaces, and some implicit welding quality problems cannot be detected. Thus, a welding quality detection method based on multiple data sources is adopted. Because different information can reflect the influence of different factors in the welding process, the information such as graph, sound, current, voltage, spectrum, temperature and the like is adopted, the abnormality of the welding process, especially the information such as sound, current and the like can be more comprehensively reflected, the implicit abnormality of welding can be detected, and the welding abnormality detection effect is greatly improved.
Disclosure of Invention
To solve the problem of difficult discovery of implicit abnormality of welding quality. The invention aims to provide a welding implicit abnormality detection and identification method based on multi-source data, which adopts sound, current, voltage, spectrum and temperature information and combines image information, so that the implicit abnormality hidden under the surface can be detected while the surface welding abnormality can be detected. Firstly, each information source is collected by adopting a corresponding sensor, and the characteristics of each information source are extracted. And carrying out normalization processing on the extracted characteristic values, carrying out dimension reduction on the data based on the abnormal categories by adopting an LDA method, estimating the intrinsic dimension by adopting a statistical method, and enabling the dimension after dimension reduction to be equal to the intrinsic dimension. Abnormal points are detected using the method of local outlier factor LOF (Local Outlier Factor). The outliers are identified on the whole by utilizing isolated forest isolation, the detection area is segmented, a new neighborhood search space is defined in the segmentation area, the calculation time of LOF is obviously reduced, and the detection accuracy is improved. And finally, identifying the abnormal types by adopting a probabilistic neural network PNN (Probabilistic Neural Network) method. And optimizing the smoothing factor of the PNN by using an artificial bee colony algorithm ABC (Artificial Bee Colony Algorithm) to obtain an optimal smoothing factor, establishing an optimal PNN model, and realizing welding implicit anomaly detection and identification according to the optimal probabilistic neural network PNN network optimization model.
In order to achieve the above object, the present invention provides the following solutions:
the invention discloses a welding implicit abnormality detection and identification method based on multi-source data, which comprises the following steps:
The method comprises the steps of firstly, collecting multi-mode data information of welding quality of each object in real time for n identical welding objects, and storing the multi-mode data in a database, wherein the multi-mode data comprise a molten pool front image, temperature field information on two sides of the molten pool, current and voltage information during welding, sound information during welding and arc spectrum information during welding;
Extracting the size information of the molten pool and the gray value of the image from the front image of the molten pool, and extracting the mean value, the mean square value, the variance, the peak-to-peak value, the kurtosis coefficient and the skewness of corresponding signals from the temperature field information at two sides of the molten pool, the current and voltage information during welding, the sound information during welding and the arc spectrum information during welding;
The length, width, gray value information of the molten pool image is [ g 1,g2,g3 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the temperature is [ t 1,t2,t3,t4,t5,t6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the current is [ c 1,c2,c3,c4,c5,c6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the voltage is [ v 1,v2,v3,v4,v5,v6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the sound is [ a 1,a2,a3,a4,a5,a6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the spectrum is [ l 1,l2,l3,l4,l5,l6 ];
Each of the n welding objects has data x' i, denoted [gi,1,...,gi,3,ti,1,...,ti,6,Ci,1,...,ci,6,vi,1,...,vi,6,ai,1,...,ai,6,li,1,...,li,6]; where i e 1, n;
Step three, carrying out normalization processing on the multi-source data extracted in the step two, and then carrying out dimension reduction processing on the multi-source data by adopting an LDA method;
Step 3.1, converting each characteristic value into a range of [ -1,1], and carrying out normalization processing on each multi-source data x' i by the following formula:
Wherein max (x 'i,j) is the maximum value of the multi-source data x' i in the j-th dimension, min (x 'i,j) is the minimum value of the multi-source data x' i in the j-th dimension, i is [1, n ], each welding object is y i after normalization, and the welding object is expressed as
[Gi,1,...,Gi,3,Ti,1,...,Ti,6,Ci,1,...,Ci,6,Vi,1,...,Vi,6,Ai,1,...,Ai,6,Li,1,...,Li,6]; Wherein i is [1, n ];
step 3.2, n normalized data Y i form a matrix Y, and the matrix Y is subjected to eigenvector estimation;
step 3.2.1, let Y be
Obtaining the eigenvector of the matrix Y T Y
[λg,1,...,λg,3,λt,1,...,λt,6,λc,1,...,λc,6,λv,1,...,λv,6,λa,1,...,λa,6,λl,1,...,λl,6];
Step 3.2.2, generating a matrix X (b) of random data with the same number n and dimension of a group a and a Y matrix, wherein b E [1, a ], m is the dimension of X (b), which is the same as the dimension of X, and X (b) has the following matrix form;
Step 3.2.3, solving the eigenvector [ lambda (b) 1,λ(b)2,…,λ(b)m ] of the matrix X (b), further calculating the average value of all eigenvalues Wherein j is the data dimension, j is [1, m ], and the mean feature vector is [ lambda (B) 1,λ(B)2,…,λ(B)m ];
Step 3.2.4, comparing the eigenvectors of the matrix Y T Y and the eigenvalues in the mean eigenvector in the same dimension one by one, determining that the eigenvalue of the matrix Y T Y is larger than the number of the eigenvalues of the matrix X (b) T X (b), and marking as d, wherein the eigenvalue of the normalized data Y i is d;
3.3, performing dimension reduction treatment on the multi-source data by adopting an LDA dimension reduction method;
(1) The welding quality is divided into N classes, the number of welding objects is N, the j-th class set in the welding objects is Y j, and the intra-class divergence S w is calculated:
Wherein S wj represents the intra-class divergence of the j-th class, μ j represents the mean vector of the welding object y i of the j-th class, i ε [1, n ], j ε [1, N ];
(2) Calculating an inter-class divergence S b:
Wherein n j is the number of the j-th welding objects y i, and mu is the mean vector of the welding objects y i;
(3) The intra-class divergence S w and the inter-class divergence S b are adopted to obtain the following targets:
The matrix W is a matrix formed by tense eigenvectors corresponding to d largest eigenvalues, and the optimization objective function is further obtained by deduction:
D is the intrinsic dimension of the data, the data x i=WTyi is obtained by reducing the dimension of any one of the normalized data y i, i epsilon [1, n ] and n is the number of samples, and the data x i after the dimension reduction is represented as [ x i,1,xi,2,xi,3,...,xi,d ];
performing anomaly detection modeling on the multi-source data by adopting a local outlier factor algorithm LOF to obtain an anomaly detection model;
Step 4.1, adopting a method of an isolated forest, selecting a front c layer of the isolated forest to divide the data x i obtained after three n dimension reductions, i epsilon [1, n ] to obtain 2 c sample subsets;
Dividing the data set X into two parts X ' 1 and X ' 2,X′1 according to the value of X i,j, wherein the j dimension of the part X ' 2,X′1 is larger than the j dimension of the part X i,j,X′2 and smaller than or equal to X i,j;
Judging the distance between the new welding object point x n+1 and the division boundary x i,j, if x n+1 is close to the division boundary, namely min [ ther (x i,j)]<xn+1,j<max[ther(xi,j) ], changing the position of the division boundary, and making x i,j be ther (x i,j);
Wherein a i and b i are random two points of the sample subset that are separated by a distance k;
Step 4.2, selecting a neighborhood search space from 2 c sample subsets obtained in step 4.1 by adopting an isolated forest;
Calculating the average path length of each of the reduced dimension data x i The calculation formula is as follows:
N is the number of spanning trees in the isolated forest, p i,j is the path length of the ith reduced dimension x i in the jth tree, i E [1, N ];
determining a threshold p based on normal and abnormal data in the dimension reduction data x i when When the point is added into the neighborhood search space, the point in the sample subset search space is marked asThe number of the divided sample subsets, i.e. [1,2 c ];
step 4.3, calculating LOF value of the new welding object point x n+1;
Determining k-neighborhood of new welding object x n+1, determining sample subset of x n+1 as l, and recording points in the sample subset as
Wherein, the For a subset of samples, points inIs a mean path length of (a);
Then calculate all points in the new welding object x n+1 and sample subset Distance between
Wherein j isIn the first, j E [1, d ], distance points in the subsetIs the kth point of (2)The distance between them is recorded as
The k-neighborhood of point x n+1 is centered on point x n+1, the distance in the subset is less thanIf the k-neighborhood of point x n+1 is marked asThe number of points in the k-neighborhood of point x n+1 is noted asPoints in the k-neighborhood of point x n+1 The kth reachable distance to point x n+1 is:
the local reachable density of points x n+1 is calculated:
calculating local anomaly factors of the point x n+1:
Wherein the method comprises the steps of Points within k-neighborhood of x n+1 Is a local reachable density of (3);
Determining the range of local outlier factors of the point x n+1, and completing anomaly detection modeling of the multi-source data:
constructing a PNN network model of the probability neural network for welding implicit anomaly detection and identification, optimizing a smoothing factor sigma of the PNN by using an ABC algorithm to obtain a PNN network optimization model of the probability neural network, and realizing welding implicit anomaly detection and identification according to the PNN network optimization model of the probability neural network.
The PNN model is composed of an input layer, an implicit layer, a summation layer and an output layer;
Inputting the abnormal data point v i after the dimension reduction, wherein the abnormal data point v i is the abnormal point in the data point x i after the dimension reduction, d dimensions [ v i,1,vi,2,vi,3,…,vi,d ] are provided for each abnormal point v i, and the abnormal type in u is input to an input layer, i < n, calculating the hidden layer and a summation layer together by using a Parzen method, and calculating the j data points of the abnormal point v i and the h abnormal type And the hidden layer output of the same abnormal mode is weighted and summed, and the relational expression is as follows:
Where σ is the smoothing factor, d is the input vector dimension, v i is the input vector, The m is the number of data points v i of the j-th abnormal type;
The number of neurons of the output layer is the total abnormal category number, threshold identification is carried out on f h(vi), and neurons with the maximum posterior probability density are found out from all the neurons of the output layer;
y=argmax(fh(vi))
Step 5.2, optimizing the smoothing factor sigma of PNN by adopting artificial bee colony algorithm ABC, and identifying the abnormal cause of the abnormal result of the abnormal detection model in the step four by adopting an optimization model;
step 5.2.1, setting number of honey sources as o, number of leading bees as upper limit of honey source test times, determining value range of smoothing factor as [0,1], randomly generating initial smoothing factor, and making its expression be
Wherein sigma z is the z-th honey source, z is [1, o ], j is the dimension of sigma z, namely the j-th smoothing factor in PNN, and the number of j is the number of abnormal points v i; a random number from 0 to 1;
Step 5.2.2, using the correct number of classification of PNN as fitness function to evaluate the effect of the smoothing factor, wherein cor (sigma z)[argmax(f(vi)) ] represents the correct number of prediction results by using the smoothing factor sigma z for all abnormal data points v i;
step 5.2.3, leading the bee stage, searching a new smoothing factor sigma' i nearby the initial smoothing factor sigma z, wherein the formula is as follows;
σ′zj=max{0,min{vzj,1}}
Wherein the method comprises the steps of For random values of-1 to 1, σ kj is a random value in σ zj, comparing Cor (σ z)[argmax(f(xi)) ] with Cor (σ ' z)[argmax(f(xi)) ] which is the number of times the result is predicted correctly using the smoothing factor σ ' z, when Cor (σ z)[argmax(f(xi))]>cor(σ′z)[argmax(f(xi)) ] leaves Cor (σ z)[argmax(f(xi)) ] as a new smoothing factor, when Cor (σ z)[argmax(f(xi))]<Cor(σ′z)[argmax(f(xi)) ] leaves Cor (σ ' z)[argmax(f(xi)) ] as a new smoothing factor, when Cor (σ z)[argmax(f(xi))]=cor(σ′z)[argmax(f(xi)) ] leaves Cor (σ z)[argmax(f(xi)) ] as a new smoothing factor, and R (σ z) is the number of times the z-th honey source is updated, if σ z is transformed, R (σ z)=R(σz) +1;
step 5.2.4, following the bee stage, selecting a smoothing factor by adopting a roulette method:
Wherein, p z is the probability of selecting honey source sigma z, z epsilon [1, o ], follow bees select honey source sigma z from the optimal result of step 5.2.3 according to the probability, then find new smoothing factor sigma' i according to the method of step 5.2.3 near sigma z, leave the better smoothing factor marked sigma z;R(σz) as the number of times the z-th honey source is updated, if sigma z is transformed, R (sigma z)=R(σz) +1;
Step 5.2.5, in the stage of bee detection, searching the updated times R (sigma z) of each honey source, and updating the honey source by the following formula when the preset threshold is not updated, so as to search the global optimal solution;
According to the method of step 5.2.3, the cor (sigma z)[argmax(f(xi) of the optimal sigma z obtained by 5.2.4 is compared with the cor (sigma 'z)[argmax(f(xi) of the sigma' z obtained by 5.2.5 updating, the better smoothing factor is recorded as sigma z, and the steps 5.2.1-5.2.5 are repeated until the iteration times are reached, so that the optimized smoothing factor is obtained.
Step 5.3, adopting an optimization model to identify the abnormality cause of the abnormality result of the abnormality detection model in step four, adopting an optimized PNN model to input a new abnormal welding object v n+1 identified in step four, and calculating a new abnormal point v n+1 and a jth data point of an h abnormal type in data points v i of the abnormality after dimension reductionAnd the hidden layer output of the same abnormal mode is weighted and summed, and the relational expression is as follows:
Where σ is the smoothing factor, d is the input vector dimension, v n+1 is the new input vector, The h abnormal data points in the h abnormal class in the data points v i after the dimension reduction are j abnormal data points, h epsilon u, and m is the number of the j abnormal class data points v i;
F h(vn+1) is subjected to threshold identification, and a neuron with the maximum posterior probability density is found out from all output layer neurons, wherein the type represented by the neuron is the abnormal type of v n+1, namely welding implicit abnormal detection and identification are realized.
Advantageous effects
1. The current method for identifying welding abnormality by extracting welding image information by a single industrial camera has good effect on identifying welding appearance defects (such as weld flash, slag inclusion, welding deformation, surface air holes and surface cracks), but is not ideal for identifying welding defects such as hidden air holes, hidden cracks, cold welding, false welding and the like. The welding is a multi-factor influence coupling process, and the welding implicit abnormality detection and identification method based on the multi-source data can better represent the change of the welding state by adding data such as temperature, sound, spectrum, current and voltage data and the like and combining the visual information, and is beneficial to detecting and classifying more types of welding faults. The accuracy, the robustness and the interpretability of the welding anomaly classification model can be improved by comprehensively utilizing various data sources, so that the on-line detection and the anomaly classification of the welding quality are more comprehensive and accurate.
2. The welding process parameters are mutually coupled, so that the welding quality is difficult to express by the process parameters. The redundancy characteristics of the data can be eliminated and the complexity of the model can be reduced through LDA dimension reduction, so that the modeling process is simple and visual, and meanwhile, the co-linearity influence among the data is eliminated. In addition, LDA is a supervised dimension reduction method, can perform characteristic dimension reduction according to types, and can better build a model with classification efficiency. The method utilizes the statistical idea to estimate the intrinsic dimension, has higher accuracy and can be well applied to the LDA dimension reduction method.
3. Since most of normal data stations in the whole sample directly use a neural network method to detect and classify abnormal points, the accuracy of the model may be affected. The invention discloses a welding implicit abnormality detection and recognition method based on multi-source data, and detecting abnormal points by adopting an outlier factor detection method, and classifying the abnormal points by using a probability neural network. The local outlier factor LOF method is used as a density-based anomaly detection algorithm, can find out abnormal points according to the change of the neighborhood density, can capture invisible anomalies in the welding process more comprehensively, and detects anomalies which are difficult to observe by a single information source.
4. The LOF method requires determining the K neighborhood of each point, and therefore requires calculating the distance of each sample point from all other sample points in the dataset to find the K neighborhood, which is time-complex. According to the welding implicit anomaly detection and recognition method based on the multi-source data, the method of isolated forests is adopted, the data are divided into a plurality of subsets, and then a new neighborhood search space (not the whole subset) based on the thought of the isolated forests is selected from the subsets, so that the time complexity of LOF search K neighborhood is reduced. Meanwhile, the isolated forest can effectively detect global abnormality, LOF is suitable for finding local abnormal values and processing abnormal points in a dense area in a data set, and is effective for a data set with uneven density, so that the method of combining the isolated forest and the LOF can be adopted to detect the abnormal points in both the global and the local areas.
5. The invention discloses a welding implicit anomaly detection and identification method based on multi-source data, which is used for PNN, wherein the smoothing factor sigma is the only to be adjusted. In PNN, a smoothing factor is a parameter used to control the smoothness of a model, which is used as a gaussian kernel in computing similarity, affecting the model's adaptability to data distribution. In training PNN models, the smoothing factor is typically adjusted by training the data to better adapt the model to the data. The artificial bee colony algorithm is used for simulating honey collection behaviors of bees to solve optimization problems of multiple dimensions and multiple modes in life, and is initially applied to numerical optimization problems. The smoothing factor of PNN determines the degree of smoothness of the decision boundary. A larger smoothing factor will result in smoother decision boundaries, while a smaller smoothing factor will result in sharper decision boundaries. The smoothing factor is optimized through the artificial bee colony algorithm, so that a smoothing factor value suitable for the problem can be found, the complexity of the model is controlled, and excessive smoothing or excessive sharpness is avoided. The artificial bee colony algorithm has global searching capability, can explore wider solution space, dynamically adjusts the value of the smoothing factor in the iterative process, can enable the smoothing factor to be adaptively adjusted along with the optimization process, and has higher abnormality recognition precision after the optimization.
Drawings
Fig. 1 is a flowchart of a method for detecting and identifying welding implicit anomalies based on multi-source data according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of detecting abnormal points in data in a method for detecting and identifying implicit abnormalities in welding based on multi-source data according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of abnormality type identification in a method for detecting and identifying welding implicit abnormalities based on multi-source data according to an embodiment of the present invention.
Detailed Description
For a better description of the objects and advantages of the present invention, the following description will be given with reference to the accompanying drawings and examples.
Example 1:
In the field of welding abnormality detection, welding quality inspection generally uses single welding quality information, such as welding image information using convolutional neural network, or welding sound information using sound sensor, etc. The welding quality detection method adopting single image information is an effective method, but only can detect surface welding problems, and some implicit welding quality problems cannot be detected. By adopting the method of multi-source welding information, abnormal welding quality and abnormal types such as unfused and internal air holes and the like which are difficult to detect on the surface can be detected. The invention takes welding between the upper cover and the lower cover of the antenna in the manufacturing process of the communication equipment as an example for theoretical verification.
As shown in fig. 1, the method for detecting and identifying welding implicit anomalies based on multi-source data disclosed in this embodiment specifically comprises the following implementation steps:
1. Welding information acquisition
And acquiring multi-mode data welded between the upper cover and the lower cover of the antenna cover. An industrial CCD camera (image acquisition device), a thermal imager, a current, voltage Hall sensor, a microphone and a spectrometer are adopted. The image acquisition device acquires the front image of the molten pool and obtains the shape and size information of the molten pool. The thermal imager collects information of temperature fields at two sides of the molten pool. The current and voltage Hall sensor collects current and voltage information during welding. The microphone collects sound information during the welding process. The spectrometer collects arc spectrum information during welding. And the controller is used for collecting the data such as images, temperatures, currents and the like in real time and storing the data into a corresponding database. Meanwhile, in the data transmission process, synchronous transmission and feature synchronous processing are carried out on the multi-source data.
And extracting features which are more beneficial to subsequent real-time information processing and process inspection from the original signals according to the welded signals. And extracting length and width size information of the molten pool and gray values of the image for the image information. For temperature, current, voltage, sound and spectral information, the mean, mean square, variance, peak-to-peak, kurtosis coefficient and skewness of the corresponding signals are extracted. For the extraction of these characteristic signals, the original signals are processed and extracted by using special related software on the market. For each welding object x' i, the length, width, gray value information of the puddle image [ g 1,g2,g3 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the temperature [ t 1,t2,t3,t4,t5,t6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the current [ c 1,c2,c3,c4,c5,c6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the voltage [ v 1,v2,v3,v4,v5,v6 ], the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the sound [ a 1,a2,a3,a4,a5,a6 ], and the mean value, mean square value, variance, peak-to-peak value, kurtosis coefficient and skewness information of the spectrum [ l 1,l2,l3,l4,l5,l6 ]. Each data x' i, which can be represented as [gi,1,…,gi,3,ti,1,…,ti,6,ci,1,…,ci,6,vi,1,…,vi,6,ai,1,…,ai,6,li,1,...,li,6]; where i e 1, n, includes, in addition to the 33-dimensional process parameters, the numbers represented by their corresponding anomaly types, as shown in table 1.
TABLE 1 types of welding anomalies
2. Normalization processing
Converting each eigenvalue of the data x 'i into the [ -1,1] range, normalizing each multi-source data x' i by:
Wherein max (x 'i,j) is the maximum value of the multi-source data x' i in the j-th dimension, min (x 'i,j) is the minimum value of the multi-source data x' i in the j-th dimension, wherein i epsilon [1, n ];
Table 2 normalized characteristic data
3. Determining intrinsic dimensions
By using the statistical idea, if the variance of a group of data is caused by a real situation, the characteristic value of the variance should be larger than the average characteristic value of random data with the same number of tested and variable, and if the variance is smaller than the average characteristic value of random variable, the variance represented by the factor cannot be distinguished whether the variance is caused by the real situation or the random error, and the value is not reserved.
N=1500 normalized data Y i make up matrix Y, let Y be:
Obtaining the eigenvector of the matrix Y T Y
[λg,1,...,λg,3,λt,1,...,λt,6,λc,1,...,λc,6,λv,1,...,λv,6,λa,1,...,λa,6,λl,1,...,λl,6].
A matrix X (b) of random data having the same number n and dimension as the Y matrix of group a is generated. Wherein b.epsilon.1, a, m is the dimension of X (b), which is the same as the dimension of X. The eigenvector [ lambda (b) 1,λ(b)2,…,λ(b)m ] of the matrix X (b) is found, and the average value of all eigenvalues is further calculatedWhere j is the data dimension, j e [1, m ], and the mean feature vector is [ lambda (B) 1,λ(B)2,…,λ(B)m ]. And comparing the eigenvectors of the matrix Y T Y and the eigenvalues in the mean eigenvector in the same dimension one by one, determining the number of the eigenvalues of the matrix Y T Y larger than the eigenvalues of the matrix X (b) T X (b), and marking as d to obtain the eigenvalue of the normalized data Y i, wherein d=6.
4. LDA dimension reduction
(1) The welding quality is divided into N=7 classes, the number of welding objects is n=1500, the j-th class set in the welding objects is Y j, and the intra-class divergence S w is calculated:
Wherein S wj represents the intra-class divergence of the j-th class, μ j represents the mean vector of the welding object y i of the j-th class, i ε [1, n ], j ε [1, N ];
(2) Calculating an inter-class divergence S n:
Wherein n j is the number of the j-th welding objects y i, and mu is the mean vector of the welding objects y i;
(3) The intra-class divergence S w and the inter-class divergence S b are adopted to obtain the following targets:
The matrix W is a matrix formed by tense eigenvectors corresponding to d largest eigenvalues, and the optimization objective function is further obtained by deduction:
Where d is the intrinsic dimension of the data. Then, for any one normalized data y i, the data x i=WTyi is obtained after the dimension reduction, i epsilon [1, n ], n is the number of samples. The reduced data x i is represented as [ x i,1,xi,2,xi,3,...,xi,d ], the reduced feature data of the LDA is shown in table 3, and the weight matrix W of the LDA is as follows:
TABLE 3 LDA feature data after dimension reduction
5. Data outlier detection
The data outlier detection step is shown in fig. 2;
5.1, dividing the data X i obtained after the three 1500 dimension reduction in the step three by adopting an isolated forest method, and dividing for 3 times, i epsilon [1,1500] to obtain 8 sample subsets X 1,X2,X3,...,X8.
Dividing the data set X into two parts X ' 1 and X ' 2,X′1 according to the value of X i,j, wherein the j dimension of the part X ' 2,X′1 is larger than the j dimension of the part X i,j,X′2 and smaller than or equal to X i,j;
Judging the distance between the new welding object point x n+1 and the division boundary x i,j, if x n+1 is close to the division boundary, namely min [ ther (x i,j)]<xn+1,j<max[ther(xi,j) ], changing the position of the division boundary, and making x i,j be ther (x i,j);
Wherein a i and b i are random two points of the sample subset that are separated by a distance k;
5.2 selecting a neighborhood search space from 8 sample subsets obtained in 5.1 by adopting an isolated forest;
Calculating the average path length of each of the reduced dimension data x i The calculation formula is as follows:
N=100 is the number of spanning trees in the isolated forest, p i,j is the path length of the ith reduced dimension x i in the jth tree, i e1, N;
determining a threshold p based on normal and abnormal data in the dimension reduction data x i when When the point is added into the neighborhood search space, the point in the sample subset search space is marked asThe number of the divided sample subsets is [1,8];
5.3 calculating a LOF value of the new welding object point x n+1;
Determining k-neighborhood of new welding object x n+1, determining sample subset of x n+1 as l, and recording points in the sample subset as
Wherein, the For a subset of samples, points inIs a mean path length of (a);
Then calculate all points in the new welding object x n+1 and sample subset Distance between
Wherein j isIn the first, j E [1, d ], distance points in the subsetIs the kth point of (2)The distance between them is recorded as
The k-neighborhood of point x n+1 is centered on point x n+1, the distance in the subset is less thanIf the k-neighborhood of point x n+1 is marked asThe number of points in the k-neighborhood of point x n+1 is noted asPoints in the k-neighborhood of point x n+1 The kth reachable distance to point x n+1 is:
the local reachable density of points x n+1 is calculated:
calculating local anomaly factors of the point x n+1:
calculating local anomaly factors of the training data x i and the test data point x n+i as shown in table 4, wherein x n+i is a new welding object point;
TABLE 4 local anomaly factors for training data
TABLE 5 local anomaly factors for test data
And determining whether the data point is abnormal according to the value range of the local abnormality factor.
Performing anomaly discrimination on the test data according to the range of the local outlier factor of the test data point x n+i, wherein 0 represents a normal point, and 1 represents an abnormal point;
Table 6 abnormality determination output of test data points
6. Abnormal species identification
The abnormal species identification step is shown in fig. 3;
The 6.1PNN model consists of an input layer, an implicit layer, a summation layer and an output layer;
Inputting the abnormal data point v i after the dimension reduction, wherein the abnormal data point v i is the abnormal point in the data point x i after the dimension reduction, d dimensions [ v i,1,vi,2,vi,3,…,vi,d ], d=6 and the abnormal type in 6 are arranged for each abnormal point v i, and the abnormal points v i and the j data points of the h abnormal type are calculated by using the Parzen method to calculate the hidden layer and the summation layer together, wherein i < n And the hidden layer output of the same abnormal mode is weighted and summed, and the relational expression is as follows:
Where σ is the smoothing factor, d is the input vector dimension, v i is the input vector, The m is the number of data points v i of the j-th abnormal type;
The number of neurons of the output layer is the total abnormal category number, threshold identification is carried out on f h(vi), and neurons with the maximum posterior probability density are found out from all the neurons of the output layer;
y=argmax(fh(vi))
Optimizing the smoothing factor sigma of PNN by adopting an artificial bee colony algorithm ABC, and identifying the abnormal cause of the abnormal result of the abnormal detection model in the step four by adopting an optimization model;
6.2.1, setting number of honey sources as o, number of leading bees and upper limit of honey source test times, determining value range of smoothing factor as [0,1], randomly generating initial smoothing factor, and its expression is
Wherein sigma z is the z-th honey source, z is [1, o ], j is the dimension of sigma z, namely the j-th smoothing factor in PNN, and the number of j is the number of abnormal points v i; a random number from 0 to 1;
6.2.2 evaluating the effect of the smoothing factor with the correct number of classifications of PNN as a fitness function, wherein Cor (σ z)[argmax(f(vi)) ] represents the number of correct predictions with the smoothing factor σ z for all outlier data points v i;
6.2.3, leading the bee stage, searching a new smoothing factor sigma' i nearby the initial smoothing factor sigma z, wherein the formula is as follows;
σ′zj=max{0,min{vzj,1}}
Wherein the method comprises the steps of For random values of-1 to 1, σ kj is a random value in σ zj, comparing cor (σ z)[argmax(f(xi)) ] with cor (σ 'z)[argmax(f(xi)) ] which is the number of times the result is predicted correctly using the smoothing factor σ' z, leaving cor (σ z)[argmax(f(xi)) ] as a new smoothing factor, leaving cor (σ z)[argmax(f(xi))]<cor(σ′z)[argmax(f(xi) as a new smoothing factor, leaving cor (σ z)[argmax(f(xi)) as a new smoothing factor, leaving cor (σ z)[argmax(f(xi))]=cor(σ′z)[argmax(f(xi) as a smoothing factor, leaving cor (σ z)[argmax(f(xi)) ] as a new smoothing factor, and R (σ z) is the number of times the z-th honey source is updated, R (σ z)=R(σz) +1 if σ z is transformed;
6.2.4, following the bee stage, selecting a smoothing factor by adopting a roulette method:
Wherein, p z is the probability of selecting a honey source sigma z, z epsilon [1, o ], follow bees select a honey source sigma z from the optimal result of 6.2.3 according to the probability, then find a new smoothing factor sigma' i nearby sigma z according to a 6.2.3 method, leave a better smoothing factor marked as sigma z;R(σz) as the number of times the z-th honey source is updated, if sigma z is transformed, R (sigma z)=R(σz) +1;
6.2.5, in the bee reconnaissance stage, searching the updated times R (sigma z) of each honey source, and updating the honey source by the following formula when the preset threshold is not updated, so as to search a global optimal solution;
Comparing cor (sigma z)[argmax(f(xi) of the optimal sigma z obtained by 6.2.4 with cor (sigma 'z)[argmax(f(xi) of sigma' z obtained by 6.2.5 update according to 6.2.3 method, keeping the better smooth factor recorded as sigma z, repeating steps 6.2.1-6.2.5 until the number of iterations is reached, obtaining the optimized smooth factor, and the smooth factor of the probability neural network is shown in table 7;
TABLE 7 smoothing factor of probabilistic neural network
6.3, Adopting the optimized model to identify the abnormal cause of the abnormal result of the step four abnormal detection model, adopting the optimized PNN model to input the new abnormal welding object v n+1 identified in the step four, and calculating the j data point of the h abnormal in the new abnormal point v n+1 and the data point v i of the abnormal after the dimension reductionAnd the hidden layer output of the same abnormal mode is weighted and summed, and the relational expression is as follows:
Where σ is the smoothing factor, d is the input vector dimension, v n+1 is the new input vector, The h abnormal data points in the h abnormal class in the data points v i after the dimension reduction are j abnormal data points, h epsilon u, and m is the number of the j abnormal class data points v i;
Performing threshold identification on the f h(vn+1), and finding out the neuron with the maximum posterior probability density from all the neurons of the output layer, wherein the type represented by the neuron is the abnormal type of v n+1;
table 8 abnormal class output of test data
While the foregoing detailed description has described the objects, aspects and advantages of the invention in further detail, it should be understood that the foregoing description is only illustrative of the invention, and is intended to cover various modifications, equivalents, alternatives, and improvements within the spirit and scope of the present invention.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410960492.2A CN118965216B (en) | 2024-07-17 | 2024-07-17 | Welding implicit anomaly detection and identification method based on multi-source data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410960492.2A CN118965216B (en) | 2024-07-17 | 2024-07-17 | Welding implicit anomaly detection and identification method based on multi-source data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118965216A CN118965216A (en) | 2024-11-15 |
| CN118965216B true CN118965216B (en) | 2025-09-19 |
Family
ID=93382586
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410960492.2A Active CN118965216B (en) | 2024-07-17 | 2024-07-17 | Welding implicit anomaly detection and identification method based on multi-source data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118965216B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119807978B (en) * | 2025-03-12 | 2025-07-11 | 深圳华北工控软件技术有限公司 | Intelligent image data recognition and analysis method, system and device based on AI model |
| CN120495194B (en) * | 2025-04-29 | 2026-04-24 | 国网河北省电力有限公司雄安新区供电公司 | A method and system for diagnosing the condition of high-voltage bushings |
| CN120940778A (en) * | 2025-08-20 | 2025-11-14 | 南通万达能源动力科技有限公司 | A welding parameter correction method based on real-time molten pool morphology feedback |
| CN120747643B (en) * | 2025-08-28 | 2025-11-28 | 西安威尔精密技术有限公司 | Automobile injection molding part defect classification method based on database comparison |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118051871A (en) * | 2024-01-30 | 2024-05-17 | 上海骄成超声波技术股份有限公司 | Laser welding process monitoring method, system and medium based on multi-source data fusion |
| CN118237825A (en) * | 2024-05-28 | 2024-06-25 | 凯沃智能装备(青岛)有限公司 | Welding machine method and welding robot based on artificial intelligence |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10552511B2 (en) * | 2013-06-24 | 2020-02-04 | Infosys Limited | Systems and methods for data-driven anomaly detection |
| CN111856958A (en) * | 2020-07-27 | 2020-10-30 | 西北大学 | Smart home control system, control method, computer equipment and storage medium |
-
2024
- 2024-07-17 CN CN202410960492.2A patent/CN118965216B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118051871A (en) * | 2024-01-30 | 2024-05-17 | 上海骄成超声波技术股份有限公司 | Laser welding process monitoring method, system and medium based on multi-source data fusion |
| CN118237825A (en) * | 2024-05-28 | 2024-06-25 | 凯沃智能装备(青岛)有限公司 | Welding machine method and welding robot based on artificial intelligence |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118965216A (en) | 2024-11-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN118965216B (en) | Welding implicit anomaly detection and identification method based on multi-source data | |
| CN109684922B (en) | A multi-model recognition method for finished dishes based on convolutional neural network | |
| CN115984543B (en) | A target detection algorithm based on infrared and visible light images | |
| CN114882289B (en) | Open set recognition method for SAR targets based on adaptive deterministic rejection criterion | |
| CN118657784B (en) | Desoldering detection method based on unmanned aerial vehicle acquisition of photovoltaic module image | |
| Han et al. | Defect detection: defect classification and localization for additive manufacturing using deep learning method | |
| CN116343135B (en) | A vehicle re-identification method based on post-feature fusion from pure vision | |
| CN110363799B (en) | Vision-based multi-motion human target tracking method in human-machine coexistence environment | |
| CN117333948A (en) | An end-to-end multi-target broiler behavior recognition method integrating spatiotemporal attention mechanism | |
| CN114219763A (en) | Infrared picture detection method for abnormal heating point of power distribution equipment based on fast RCNN algorithm | |
| CN118896970B (en) | Cable surface defect online detection method, device and storage medium | |
| Monigari et al. | Plant leaf disease prediction | |
| CN110782181A (en) | Calculation method and readable storage medium for line loss rate of low-voltage station area | |
| CN115564983A (en) | Target detection method and device, electronic equipment, storage medium and application thereof | |
| CN117952956A (en) | A method for predicting weld penetration based on log-likelihood estimation | |
| CN114298130A (en) | Short-term wind power prediction method and device | |
| CN118228046A (en) | A data-driven method for generating typical wind and solar power output scenarios | |
| CN116740420B (en) | Fine granularity image classification method based on multi-modal learning | |
| CN114049305A (en) | Distribution line pin defect detection method based on improved ALI and fast-RCNN | |
| Durasov et al. | Uncertainty estimation for 3D object detection via evidential learning | |
| CN115034314B (en) | System fault detection method and device, mobile terminal and storage medium | |
| CN119090886B (en) | A carbon fiber broken wire intelligent detection method and system | |
| CN118897996B (en) | A method, device, equipment and medium for evaluating similarity of radiation source signals | |
| CN112036470A (en) | A cloud-based multi-sensor fusion method for identification of Bemisia tabaci in cucumber | |
| CN115908513A (en) | Image feature matching method based on VGG16 network model |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |