Method and system for spot welding quality detection of different welding types of welding spots

Quality assessment of welding types is carried out through Bayesian naive classifier and BP neural network model, which solves the problems of low accuracy and high cost of existing welding inspection methods, and achieves fast and accurate quality assessment of solder joints of different welding types. and ratings.

CN115047039BActive Publication Date: 2024-10-22DONGFENG MOTOR GRP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210690902.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-10-22
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

Existing welding inspection methods rely on manual identification, have low accuracy and high cost. They cannot quickly and accurately evaluate the quality of different welding types of solder joints. In particular, they cannot quickly draw conclusions. They require high personnel and have inconsistent standards.

Method used

The Bayesian naive classifier and the welding quality scoring neural network model are used to classify and score the welding type feature data. The Bayesian naive classifier is used for classification, and the BP neural network is combined for quality scoring to establish a system for different plate types. Welding quality evaluation model.

Benefits of technology

It achieves accurate classification and evaluation of the quality of solder joints of different welding types, improves the accuracy and training efficiency of the scoring model, reduces labor costs, and ensures the consistency of results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115047039B_ABST
    Figure CN115047039B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for spot welding quality detection of different welding types of welding points, comprising the steps of: S1, taking an extracted welding type feature data set as an item to be classified; S2, comparing the feature values ​​of various welding types in the item to be classified with the preset standard curve feature values ​​to obtain a corresponding feature difference data set; S3, inputting the welding type feature data set into a pre-trained Bayesian naive classifier, and classifying the feature data under different welding types, including poor, medium, good, and excellent representing the quality of the welding points; S4, inputting the classified feature data set and the corresponding feature difference data set into a pre-trained welding quality scoring neural network model of the corresponding welding type, and performing specific welding point quality scoring according to the feature data of each welding type. The present invention establishes quality evaluation models for welding data under different distribution states of different types of plates, and improves the scoring accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of welding detection, and in particular to a method and a system for spot welding quality detection of welding spots of different welding types. Background Art

[0002] Resistance spot welding technology is widely used in the automobile body manufacturing process due to its low cost and mature process technology. However, the formation process of the weld nugget is complicated and related to many factors, including process parameters (welding current, welding time, welding pressure, etc.), sheet metal condition (sheet metal surface contamination, poor sheet metal overlap), equipment condition (equipment failure), cooling water (water flow, water temperature), welding posture (verticality, undercut, shunt), etc. The random changes of many factors cause the instability of weld quality. At present, the inspection of weld quality in actual working conditions mainly relies on manual identification, and the means of identifying welding quality include visual inspection, chisel inspection, break inspection, ultrasonic detection, etc.

[0003] However, visual inspection can only infer the quality of solder joints based on their appearance, and the accuracy cannot be guaranteed. Chisel inspection, crack inspection, magnetic detection and other inspections require the product to be offline, which takes a long time and has high labor costs. They are also random inspection methods with a very low sampling ratio. In addition, crack inspections damage parts and increase inspection costs. They cannot analyze solder joints of different types and distribution characteristics in a targeted manner, and cannot quickly draw conclusions. They have high requirements for personnel, and different personnel have inconsistent evaluation standards, resulting in deviations in results. Therefore, it is urgent to design a method for spot welding quality inspection and evaluation of solder joints of different welding types. Summary of the invention

[0004] The main purpose of the present invention is to provide a method and system for spot welding quality detection of different welding types of welding points, which can directly detect the quality of welding points according to the characteristic values ​​of the welding points.

[0005] The technical solution adopted by the present invention is:

[0006] A method for spot welding quality detection of different welding types of welding spots is provided, comprising the following steps:

[0007] S1. Extract the welding type feature dataset X t ={a1, a2, ..., am} as a to-be-classified item, where T = (1, 2, 3, ..., k), representing k different welding type feature data sets, a m is the mth solder joint data of the feature data set, a m ={F1, ..., Fn}, Fn is a m The nth characteristic data of the welding spot in the welding process, k, m, n are all natural numbers;

[0008] S2, comparing the characteristic values ​​of various welding types of welds in the to-be-classified items with the characteristic values ​​of the preset standard curve to obtain a corresponding characteristic difference data set;

[0009] S3, welding type feature data set X t The data is input into the pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent.

[0010] S4. Input the classified feature data set and the corresponding feature difference data set into a pre-trained welding quality scoring neural network model of the corresponding welding type, and perform specific weld quality scoring according to the feature data of each welding type.

[0011] Following the above technical solution, the classification process of the Bayesian naive classifier is specifically as follows:

[0012] Suppose the category set C = {Y1, Y2, Y3, Y4}, where Y1, Y2, Y3, and Y4 each correspond to a scoring range, representing the four classification categories of poor, medium, good, and excellent solder joint quality, respectively;

[0013] Calculate the probability P(Y1|X t ), P(Y2|X t ), P(Y3|X t ), P(Y4|X t ), corresponding to the probability of each point being in four different classification categories in different welding feature type data sets, a m Solder point at X t The probability of being in the Yi range under the premise of the feature data set is:

[0014]

[0015] P(Yi) is the probability of classification as Yi, i = (1, 2, 3, 4); P(X t ) is the feature data set X t The probability, P(X t |Yi) is the dataset X under the condition that it is classified as Yi t The probability of

[0016] If P(Yk|X t )=max{P(Y1|X t ), P(Y2|X t ), P(Y3|X t ), P(Y4|X t )}, then X t ∈Yk, which means when a m The solder joint is at Xt Under the premise of the characteristic data set, the probability of being calculated to be in the Yk range is the largest, then the characteristic data a of the solder joint is determined m ={F1, ..., Fn} corresponds to a scoring range of Yk, where Yk∈(Y1, Y2, Y3, Y4), and finally the maximum probability of the category is obtained, completing the classification of the data set.

[0017] Continuing with the above technical solution, the corresponding scoring ranges of Y1, Y2, Y3, and Y4 are [0, 60), [60, 70), [70, 80), and [80, 100] respectively.

[0018] Following the above technical solution, the training process of the Bayesian naive classifier includes:

[0019] The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set;

[0020] The sample set is divided into a training set and a test set. The training set is input into a pre-built Bayesian naive classifier for classification training, and the test set is used for testing. The parameters of the classifier are adjusted until the classification result meets the preset standard.

[0021] According to the above technical solution, the welding quality scoring neural network model for each welding type includes four types, which respectively represent the four classification categories of poor, medium, good and excellent welding spot quality.

[0022] Following the above technical solution, the training process of each welding quality scoring neural network model includes:

[0023] The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set;

[0024] For the characteristic data of the same welding type, four neural network models for welding quality scoring were established according to the classification categories;

[0025] The sample set of the same classification category of the same welding type is divided into a training set and a test set. The training set is input into the corresponding welding quality scoring neural network model for classification training. The parameters of the neural network model are adjusted and tested with the test set until the scoring result meets the preset standard.

[0026] Following the above technical solution, T=(1, 2, 3), the resistance trends of the three welding types of welding points in the welding sequence are different.

[0027] Following the above technical solution, the welding quality scoring neural network model adopts the BP neural network model.

[0028] The present invention also provides a system for spot welding quality detection of welding spots of different welding types, comprising:

[0029] Feature data extraction module, used to extract the welding type feature data set X t ={a1, a2, ..., am} as a to-be-classified item, where T = (1, 2, 3, ..., k), representing k different welding type feature data sets, a m is the mth solder joint data of the feature data set, a m ={F1, ..., Fn}, Fn is a m The nth characteristic data of the welding spot in the welding process, k, m, n are all natural numbers;

[0030] Feature difference data set, comparing the feature values ​​of various welding types of welds in the items to be classified with the preset standard curve feature values ​​to obtain the corresponding feature difference data set;

[0031] The Bayesian naive classification module is used to classify the welding type feature dataset X t The data is input into the pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent.

[0032] The welding quality scoring module is used to input the classified feature data set and the corresponding feature difference data set into the pre-trained welding quality scoring neural network model of the corresponding welding type, and perform specific weld quality scoring according to the feature data of each welding type.

[0033] The present invention also provides a computer storage medium, which stores a computer program that can be executed by a processor. The computer program executes the method of spot welding quality detection of welding spots of different welding types in the above technical solution.

[0034] The beneficial effects of the present invention are as follows: the present invention organically combines intelligent algorithms with welding technology, utilizes a naive Bayesian classification algorithm, accurately classifies quality under different welding types, and for each classified data set, establishes a quality evaluation model for welding data under different distribution states of different plate types, thereby improving the accuracy of the scoring model and improving training efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:

[0036] Figure 1is a schematic structural diagram of an embodiment of the present invention;

[0037] Figure 2a , 2b , 2c are schematic diagrams of three typical solder joint resistance curves;

[0038] Figure 3 is a flow chart of a method for spot welding quality detection of welding spots of different welding types in another embodiment;

[0039] Figure 4 This is the classification flow chart of the Bayesian naive classification model;

[0040] Figure 5 Simulate manual scoring of actual network structures for feature values;

[0041] Figure 6 The solder joint quality scoring model and its network structure. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0043] like Figure 1 As shown, the method for spot welding quality detection of different welding types of welding spots of the present invention comprises the following steps:

[0044] S1. Extract the welding type feature dataset X t ={a1, a2, ..., am} as a to-be-classified item, where T = (1, 2, 3, ..., k), representing k different welding type feature data sets, a m is the mth solder joint data of the feature data set, a m ={F1, ..., Fn}, Fn is a m The nth characteristic data of the welding spot in the welding process, k, m, n are all natural numbers;

[0045] S2. Compare the characteristic values ​​of various welding types in the to-be-classified items with the characteristic values ​​of the preset standard curve to obtain the corresponding characteristic difference data set;

[0046] S3, welding type feature data set X t The data is input into the pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent.

[0047] S4. Input the classified feature data set and the corresponding feature difference data set into a pre-trained welding quality scoring neural network model of the corresponding welding type, and perform specific weld quality scoring according to the feature data of each welding type.

[0048] The present invention combines different types of plate materials for a large number of welding tests. According to the data characteristics of the resistance curve and the manual scoring data during the welding process, the naive Bayes classification algorithm is first used to classify the overall data set.

[0049] In the embodiment of the present invention, different types of plate test pieces can be used to weld more than 300 weld points each, and professionals can perform quality scoring as subsequent model input.

[0050] In the actual welding process, three types of welding spot resistance signal curves with significant differences will be generated, namely Figure 2a , 2b , as shown in 2c.

[0051] It can be seen from the figure that different types of solder joints have different resistance trends in the welding sequence. Type 1 curve has a more obvious up and down fluctuation phenomenon. The ups and downs of the type 2 curve and the timing resistance are quite different from those of type 1. Type 3 shows a very stable resistance decline trend. Combining the experience of field engineers, Table 1, i.e., solder joint type parameters and classification information, is obtained. Based on this solder joint classification information, different welding process feature information extraction schemes are set, and machine learning strategies for solder joint quality score prediction for different welding types are customized.

[0052] Table 1 Solder joint type parameters and classification table

[0053]

[0054]

[0055] All welds can be divided into three types of plate welding according to the above parameter classification rules;

[0056] The present invention mainly performs welding spot classification and corresponding classification score prediction in parallel under three types of plate welding. The plate welding type classification rules are as follows:

[0057] 1. Reference plate thickness: ≤1.2mm; >1.2mm;

[0058] 2. Number of steel plate layers constituting the welding point: 2 layers, 3-4 layers;

[0059] 3. Number of plating layers: <4 layers; ≥4 layers;

[0060] 4. Steel plate type: Three categories: Basic classification of steel plates:

[0061] Plate 1: tensile strength is below 440Mpa;

[0062] Plate 2: SPAH440, FB45, FB60, DP450, D550DP, DP590, DP780, H820DPD series plates (ultra-high strength steel);

[0063] Plate 3: DP980, 22MnB5, D1300HFD, D1301HFD, D1302HFD, D1303HFD (dual-phase steel and hot-formed steel plates, etc.);

[0064] Allocation principles for board 2 and board 3:

[0065] Plate 2: Tensile strength is above 440Mpa (slightly different from the classification of conventional ultra-high strength steel), and below 980Mpa;

[0066] Plate 3: Above 980Mpa, containing hot-formed steel.

[0067] 5. Solder joint combination:

[0068] The above three types of steel plate combination welds can be divided into: mutual combination (two-layer steel plate), all the above types (three-layer steel plate), four-layer steel plate with three layers;

[0069] The specific categories are as follows:

[0070] Category 1, board 1+board 1, board 1+board 2, board 1+board 3, board 1+board 1+board 2, board 1+board 1+board 3, can be treated the same as ordinary boards;

[0071] Category 2, board 2+board 2, board 2+board 3, board 2+board 2+board 1, board 2+board 3+board 1, board 2+board 2+board 2; board 2+board 2+board 3;

[0072] Category 3, board 3+board 3, board 3+board 3+board 1, board 3+board 3+board 2.

[0073] In this embodiment, if Figure 3As shown, a set of solder joint type differentiation and processing mechanism is established according to the above solder joint types, and the resistance signal curve characteristics of different types of solder joints are extracted and analyzed in a targeted manner to obtain a resistance curve process feature data set; the connection between the solder joint quality score range category and the solder joint resistance curve process feature is established, and the classification is performed through the Bayesian naive classification algorithm, which is mainly divided into four categories of excellent, good, medium and poor solder joint quality; a solder joint quality score data set classification model based on the Bayesian naive classification algorithm is created and trained; the characteristic values ​​of various types of solder joints are compared with the corresponding standard curve characteristic values ​​to obtain a characteristic difference data set corresponding to all solder joint feature data sets; for the classification of solder joint data output by the Bayesian naive classifier under different welding types, a solder joint quality score prediction model based on the artificial neural network algorithm is established respectively, and the resistance curve characteristic values ​​and corresponding characteristic standard deviation values ​​of each type of solder joint in the welding process are used as the input of the artificial neural network algorithm, and the manual scoring data of the corresponding solder joint is used as the input; the model parameters are adjusted, and the artificial neural network model is iterated through multiple rounds of training to improve the accuracy of the model, and finally the accuracy requirements are met.

[0074] Compared with other machine learning algorithms, the Bayesian classifier has a simple process and fast speed. It is also very effective for multi-classification problems, and the complexity will not increase significantly. When the assumption of distribution independence holds, the Bayesian classifier works very well and is slightly better than logistic regression. At the same time, the sample size required is also a little smaller, and the classification step can be carried out quickly. The subsequent score prediction needs to face the nonlinear feature distribution and find the correspondence between the feature set and the score set, which is more complicated to calculate. At this time, the nonlinear mapping ability, self-learning adaptive ability, and generalization ability of the BP neural network are highlighted. The advantages of the two complement each other. Combined with the actual needs of welding quality scoring, the Bayesian classifier and the BP neural network are used to complete the data.

[0075] According to the common practice in the industry, manual solder joint quality scoring is set to a percentage system. In order to better facilitate the Bayesian naive classification algorithm to classify and predict the scoring range of training data, the present invention divides the solder joint quality into four categories: poor, medium, good, and excellent, which correspond to the four categories of manual scoring [0, 60), [60, 70), [70, 80), and [80, 100] respectively. In order to better ensure the training effect of the subsequent artificial neural network and achieve the training goals more targetedly, the data is classified in advance, and the Bayesian naive classification model is selected to establish. The advantages of its simple algorithm logic and easy implementation, small time and space overhead in the classification process, stable algorithm and good robustness are utilized. The classifier model is used to assign class labels to the solder joint data. The class labels are taken from a finite set, the best probability results are judged, real-time classification results are given, and the artificial neural network is connected for targeted training.

[0076] Among them, the classification steps of the Bayesian naive classification model are as follows:

[0077] Step 1: Let the feature dataset X t ={a1, a2, ..., am} is an item to be classified, where X t represents the welding type, where t = (1, 2, 3), representing three different welding type data sets, a m is the mth solder joint data of the feature data set, a m ={F1, ..., Fn}, Fn is a m The nth characteristic data of a weld in the welding process.

[0078] Step 2: Let the category set C = {Y1, Y2, Y3, Y4}, which represents the four categories of solder joint quality, corresponding to [0, 60), [60, 70), [70, 80), [80, 100] respectively.

[0079] Step 3: Calculate the probability P(Y1|X t ), P(Y2|X t ), P(Y3|X t ), P(Y4|X t ), which correspond to the probability of each point being in four different classification ranges in different welding type feature data sets, a m Solder point at X t The probability of being in the Yi range under the premise that the data set exists, that is:

[0080]

[0081] P(Yi) is the probability of classification as Yi, i = (1, 2, 3, 4); P(X t ) is the data set X t The probability, P(X t |Yi) is the dataset X under the condition that it is classified as Yi t probability.

[0082] Step 4: If P(Yk|X t )=max{P(Y1|X t ), P(Y2|X t ), P(Y3|X t ), P(Y4|X t )}, then X t ∈Yk, that is, a m The solder joint is at X t Under the premise of the data set, the probability of being calculated to be in the Yk range is the largest, and the characteristic data a of the solder joint can be determined. m={F1, ..., Fn} corresponds to a scoring range of Yk, where Yk∈(Y1, Y2, Y3, Y4). Finally, the maximum probability of the category is obtained, and the data set classification is completed. The processing flow is as follows Figure 4 shown.

[0083] The training process of the Bayesian naive classifier includes:

[0084] The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set;

[0085] The sample set is divided into a training set and a test set. The training set is input into the pre-built Bayesian naive classifier for classification training (see the training step above), and the test set is used for testing. The parameters of the classifier are adjusted until the classification result meets the preset standard.

[0086] The training process of each weld quality scoring neural network model includes:

[0087] The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set;

[0088] For the characteristic data of the same welding type, four neural network models for welding quality scoring were established according to the classification categories;

[0089] The sample set of the same classification category of the same welding type is divided into a training set and a test set. The training set is input into the corresponding welding quality scoring neural network model for classification training. The parameters of the neural network model are adjusted and tested with the test set until the scoring result meets the preset standard.

[0090] According to the characteristic data distribution of different welding types, the weld data output by the Bayesian naive classifier is classified and artificial neural network training models are established respectively, such as Figure 5 The solder joint quality scoring model and its network structure are as follows: Figure 6 , using the neural algorithm, adjust the number of hidden layers of the network (multi-level neural network), the number of neurons in each hidden layer (1-100), the activation function (Sigmoid function, Tanh function or ReLU function), the learning rate (determine whether the objective function can converge to the local minimum and when it converges to the minimum) and other parameters. After debugging and comparison, it is found that under the input condition of a model combination parameter, the output effect is the best, solidifying the machine learning model structure of each welding type.

[0091] Among them, the training process of the welding quality scoring model is as follows:

[0092] Working signal forward transmission process (forward propagation):

[0093] 1. Each feature am={F1, ..., Fn} of the input layer is calculated point-to-point with each neuron of the hidden layer in a weighted sum + activation manner to update the weight;

[0094] 2. Use the weight value calculated by the hidden layer;

[0095] 3. The hidden layer uses Sigmoid (value range is between 0 and 1) as the activation function, and the output layer is Purelin (maintaining the numerical scaling of any range before);

[0096] 4. Through network calculation, the solder joint feature values ​​am = {F1, ..., Fn} of the initial input layer are propagated to the hidden layer respectively, and then the results are transmitted to the output layer by calculating and adjusting the weights, so as to obtain the quality score value P of each solder joint. pridict , the final comparison output value P pridict and sample value P real Calculate the error.

[0097] Error signal reverse transmission process (back propagation)

[0098] 1. The final output result of forward propagation is P pridict To calculate the partial derivative of the error (partial derivative after forward propagation);

[0099] 2. Use this partial derivative and the previous hidden layer for weighted summation, which is mainly used to feedback the comparison weight, the difference between comparison and forward propagation, and adjust the weight value in real time until it is appropriate;

[0100] 3. Pass forward layer by layer (weighted summation of partial derivatives between hidden layers);

[0101] 4. Until the input layer a m ={F1, ..., Fn} (excluding the input layer) (i.e., the weighted sum of the partial derivatives from the first hidden layer to the input layer);

[0102] 5. Finally, the partial derivatives obtained at each node are used to update the hidden layer weights.

[0103] The quality scoring feedback process for chisel inspection and broken inspection is as follows:

[0104] Let the input layer be vector feature n , that is, {F1, ..., Fn}, for a single feature value input, the output of the first hidden layer is

[0105] f(w1*feature n +b1)

[0106] w1 is the weight (also called connection coefficient), b1 is the bias, and the function f is

[0107]

[0108] The hidden layer to the output layer can be seen as a multi-category logistic regression, and the output layer is

[0109]

[0110] Represents the output of the hidden layer f(w1*feature n +b1)

[0111] w m is the weight of the mth hidden layer

[0112] b m is the bias of the mth hidden layer

[0113] Combining the above three-layer formulas, the output layer is

[0114] f(x)=softmax(b(m)+w (m) (s(b (m-1) +w (m-1) (...s(b (1) +w (1) feature n )))))

[0115] During the normal operation of the system, the model is further trained and iterated using the chisel inspection, broken inspection weld point scoring data and welding process curve data in daily work.

[0116] The present invention also provides a system for spot welding quality detection of welding spots of different welding types, characterized in that it comprises:

[0117] Feature data extraction module, used to extract the welding type feature data set X t ={a1, a2, ..., am} as a to-be-classified item, where T = (1, 2, 3, ..., k), representing k different welding type feature data sets, a m is the mth solder joint data of the feature data set, a m ={F1, ..., Fn}, Fn is a m The nth characteristic data of the welding spot in the welding process, k, m, n are all natural numbers;

[0118] Feature difference data set, comparing the feature values ​​of various welding types of welds in the items to be classified with the preset standard curve feature values ​​to obtain the corresponding feature difference data set;

[0119] The Bayesian naive classification module is used to classify the welding type feature dataset X t The data is input into the pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent.

[0120] The welding quality scoring module is used to input the classified feature data set and the corresponding feature difference data set into the pre-trained welding quality scoring neural network model of the corresponding welding type, and perform specific weld quality scoring according to the feature data of each welding type.

[0121] The present invention also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and the program realizes corresponding functions when executed by a processor. The computer-readable storage medium of this embodiment realizes the method of spot welding quality detection of different welding types of welding spots when executed by a processor.

[0122] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.

Claims

1. A method for spot welding quality inspection of different welding types of welding spots, characterized in that: The following steps are involved: S1. Extract the welding type feature dataset { , ,..., } as an item to be classified, where , representing k Different welding type feature datasets, The feature dataset is m Solder point data, , for The solder joint is in the first n feature data, k , m , n All are natural numbers; S2, comparing the characteristic values ​​of various welding types of welds in the to-be-classified items with the characteristic values ​​of the preset standard curve to obtain a corresponding characteristic difference data set; S3. Welding type feature data set The data is input into the pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent. S4, inputting the classified feature data set and the corresponding feature difference data set into a pre-trained welding quality scoring neural network model of the corresponding welding type, and performing a specific weld quality score according to the feature data of each welding type; Among them, the classification process of the Bayesian naive classifier is specifically as follows: Let the category set C = { , , , }, , , , Each corresponds to a scoring range, representing the four classification categories of poor, medium, good, and excellent solder joint quality; Calculating Probability , which correspond to the probability of each point being in four different classification categories in different welding feature type data sets, Solder point The premise of the feature data set is The probability of the range is: For classification The probability of For feature dataset The probability of For the classification For the dataset probability; if , then , indicating that when The solder joint is in Under the premise of the feature data set, it is calculated as The probability of the range is the largest, then the characteristic data of the solder joint is determined The corresponding rating range is ,in , , , , and finally get the maximum probability of the category to which it belongs, completing the classification of the data set.

2. The method for spot welding quality inspection of different welding types of welding points according to claim 1 is characterized in that: , , , The corresponding scoring ranges are [0, 60), [60, 70), [70, 80), and [80, 100] respectively.

3. The method for spot welding quality inspection of different welding types of welding spots according to claim 1 is characterized in that: The training process of the Bayesian naive classifier includes: The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set; The sample set is divided into a training set and a test set. The training set is input into a pre-built Bayesian naive classifier for classification training, and the test set is used for testing. The parameters of the classifier are adjusted until the classification result meets the preset standard.

4. The method for spot welding quality inspection of different welding types of welding spots according to claim 1 is characterized in that: The welding quality scoring neural network models for each welding type include four types, representing the four classification categories of poor, medium, good, and excellent solder joint quality.

5. The method for spot welding quality inspection of different welding types of welding spots according to claim 4 is characterized in that: The training process of each weld quality scoring neural network model includes: The characteristic data of each welding point is collected according to the welding type, and each welding point is scored by professionals. According to the scoring results, it is divided into four categories: poor, medium, good, and excellent. The classified characteristic data is used as the sample set; For the characteristic data of the same welding type, four neural network models for welding quality scoring were established according to the classification categories; The sample set of the same classification category of the same welding type is divided into a training set and a test set. The training set is input into the corresponding welding quality scoring neural network model for classification training. The parameters of the neural network model are adjusted and tested with the test set until the scoring result meets the preset standard.

6. The method for spot welding quality inspection of different welding types of welding spots according to any one of claims 1 to 5, characterized in that: ,The resistance trends of the three types of welding joints are different in the welding sequence.

7. The method for spot welding quality inspection of different welding types of welding spots according to any one of claims 1 to 5, characterized in that: The BP neural network model is used as the neural network model for welding quality scoring.

8. A system for spot welding quality inspection of different welding types of welding spots, characterized in that: include: Feature data extraction module, used to extract welding type feature data set { , ,..., } as an item to be classified, where , representing k Different welding type feature datasets, The feature dataset is m Solder point data, , for The solder joint is in the first n feature data, k , m , n All are natural numbers; Feature difference data set, comparing the feature values ​​of various welding types of welds in the items to be classified with the preset standard curve feature values ​​to obtain the corresponding feature difference data set; Bayesian naive classification module is used to classify the welding type feature dataset The data is input into a pre-trained Bayesian naive classifier to classify the feature data under different welding types. The classification under each welding type includes four classification categories representing the quality of the weld: poor, medium, good, and excellent. A welding quality scoring module is used to input the classified feature data set and the corresponding feature difference data set into a pre-trained welding quality scoring neural network model of the corresponding welding type, and to perform a specific welding point quality score according to the feature data of each welding type; Among them, the classification process of the Bayesian naive classifier is specifically as follows: Let the category set C = { , , , }, , , , Each corresponds to a scoring range, representing the four classification categories of poor, medium, good, and excellent solder joint quality; Calculating Probability , which correspond to the probability of each point being in four different classification categories in different welding feature type data sets, Solder point The premise of the feature data set is The probability of the range is: For classification The probability of For feature dataset The probability of For the classification For the dataset probability; if , then , indicating that when The solder joint is in Under the premise of the feature data set, it is calculated as The probability of the range is the largest, then the characteristic data of the solder joint is determined The corresponding rating range is ,in , , , , and finally get the maximum probability of the category to which it belongs, completing the classification of the data set.

9. A computer storage medium, characterized in that A computer program executable by a processor is stored therein, and the computer program executes the method for spot welding quality detection of welding spots of different welding types as described in any one of claims 1-5.