A real-time visual and characteristic spectrum laser welding interconnection monitoring method and device
The visual and spectral data of laser welding are fused through the neural network analysis module, and the defect level and cause are marked, which solves the problem of inaccurate defect judgment in the existing technology and improves the welding quality and workpiece yield rate.
Patent Information
- Application Number
- CN202410797266.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-20
AI Technical Summary
Existing laser welding quality inspection methods have problems with inaccurate defect judgment and contradictory results. In particular, the simple combination of spectral energy and visual monitoring results fails to integrate deeply, resulting in inaccurate welding defect diagnosis.
The neural network analysis module is used to perform data preprocessing and fusion on the visual information and characteristic spectral intensity electrical signals of the welding part, inference calculation is performed through the neural network multi-classification model, and the interconnection monitoring results are output, including the annotation of defect labels, such as defect level and type. and causes to improve the accuracy of welding quality monitoring.
It improves the accuracy of defect judgment during welding monitoring, resolves conflicts between different data sources, and improves welding quality and workpiece yield.
Smart Images

Figure CN118371857B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to laser welding regulation and control, and in particular to a real-time visual and characteristic spectrum laser welding interconnection monitoring method and device. Background Art
[0002] Laser welding utilizes the excellent directionality and high power density of the laser beam to work. The laser beam is focused into a very small area through an optical system, forming a heat source area with highly concentrated energy at the weld in a very short time, thereby melting the welded material and forming a strong weld point and weld.
[0003] Due to the interaction between the laser beam and the material, a molten pool will be formed in the processing area of the material to be processed, and multiple characteristic spectral signals such as visible light signals, reflected light signals and infrared thermal radiation signals will be radiated. A large number of studies have shown that the above characteristic spectral signals are closely related to the quality of laser processing. If defects such as humps, incomplete penetration, spatter, and contamination occur during laser processing, the above radiation signals will show different signal characteristics in different bands. Moreover, welds with different processing qualities will show different appearances. Therefore, the use of scattered light signals and visual imaging can monitor and judge the welding quality of welds in real time.
[0004] The welding quality of the welded workpiece is affected by factors such as workpiece material, beam quality, fit between workpieces, auxiliary gas flow rate, etc. Once any of these factors changes, defects are likely to occur, which in turn affects the quality of the entire product. Therefore, how to quickly and accurately detect defects and diagnose the causes of defects at industrial sites has always been a pain point in the industry.
[0005] At present, the methods for detecting laser welding defects include: manual visual inspection, CCD photography after welding, energy detection during welding, airtightness detection of enclosed workpieces, magnetic particle detection, ultrasonic detection, eddy current detection, penetration detection, magneto-optical imaging detection, infrared detection, and structured light visual detection. In industrial sites, affected by production rhythm and cost, the most commonly used detection methods are: manual visual inspection, CCD photography after welding, and energy detection during welding. In industries such as automobiles and lithium batteries, a destructive post-detection method is often used, that is, sampling and sampling from a large number of samples for microstructural analysis of the fracture to judge the stability of the welding process and infer the welding quality of samples in the same batch. These detection methods have many disadvantages. At present, there is also a joint monitoring method that integrates spectral energy and vision, but this monitoring method simply combines the two monitoring results together without deeply integrating the two monitoring results. Therefore, the judgment of welding defects is inaccurate, and sometimes contradictory results are obtained. Summary of the invention
[0006] The present invention solves the problems of the background technology through a real-time visual and characteristic spectrum laser welding interconnection monitoring method and device, and monitors the laser welding quality by adopting a neural network analysis module spectral energy and visual fusion, thereby improving the accuracy of defect judgment in welding monitoring and solving the contradiction between different data sources; through the regulation of laser welding, the welding quality is improved and the yield rate of the workpiece is improved.
[0007] This application adopts the following scheme: A real-time visual and characteristic spectrum laser welding interconnection monitoring method, comprising the following steps:
[0008] (1) Collect visual information and characteristic spectral intensity electrical signals of the welding part in time series;
[0009] (2) Preprocessing the collected visual information and characteristic spectral intensity electrical signals respectively, and then fusing the preprocessed data;
[0010] (3) Input the fused data into the neural network analysis module for inference calculation, and output the interconnection monitoring result and mark the defect label. The interconnection monitoring result is defective or non-defective; if there is a defect, mark the defect label, and the defect label contains information including: defect level, defect type, and cause; if there is no defect, the defect label is marked as qualified.
[0011] Furthermore, the visual information includes n pictures arranged in time series, and the data dimension of each picture is [color, h, w], where color is the number of RGB color channels of the picture, and h and w are the resolution in the height direction and the resolution in the width direction of the picture resolution corresponding to any color channel, respectively;
[0012] The characteristic spectrum intensity electrical signal is stored in the form of a time series with a dimension of [light, M], where light represents the number of light paths of characteristic light, and M is the number of time series data of the characteristic spectrum intensity electrical signal corresponding to any one path of characteristic light. The characteristic light includes visible light, infrared light, and reflected light.
[0013] Furthermore, the data preprocessing of the visual information is specifically as follows:
[0014] Splice n images according to the time sequence of acquisition, and splice them into a large image with data dimensions of [color, N*h, N*w] in the order of N rows and N columns from left to right and from top to bottom, where N=n^(-2). Then round N up. When N^2>n after rounding up, fill the missing part of the large image with blanks. Then, perform at least one maximum pooling process. The image data dimension after pooling is [color, H, W].
[0015] The size of the pooling window is kh×kw, and the stride is sh×sw. The height and width dimensions of the output data after a maximum pooling operation can be calculated by the following formula:
[0016] H=(N*h-kh) / sh+1;
[0017] W=(N*w-kw) / sw+1;
[0018] If multiple maximum pooling operations are required, the subsequent pooling uses the H and W values calculated by the previous pooling to iterate to N*h and N*w, which is a conventional technology in the field and will not be described here.
[0019] The data preprocessing of the characteristic spectrum intensity electrical signal is specifically as follows:
[0020] A threshold is set. In the time series data of any one of the three characteristic spectral intensity electrical signals, if the time series data at a certain moment is less than the threshold, the data at this moment in the corresponding other two time series data are deleted synchronously; if the number of time series data after deletion exceeds m data, the first m data are intercepted; if the number of data is less than m, 0 is added to the end until m data are reached; thus, the dimension of the time series data is simplified from [light, M] to [light, m].
[0021] kh, kw, sh, and sw can be set according to the value of m to facilitate subsequent fusion.
[0022] Furthermore, the fusion method is:
[0023] Use Python's reshape function to increase the dimension of the pooled image data from [color, H, W] to [k, color, H, W];
[0024] The Python reshape function is used to increase the dimension of the time series data of the simplified characteristic spectral intensity electrical signal from [light,m] to [k, light, H, m / (kH)];
[0025] The number of RGB color channels is the same as the number of characteristic light paths, both of which are 3;
[0026] The Python concatenate function is used to concatenate the image data after dimensionality enhancement and the time series data of the characteristic spectrum intensity electrical signal after dimensionality enhancement to obtain the fused data, whose dimension is [k, 3, H, [W+m / (kH)].
[0027] Furthermore, the neural network analysis module adopts a neural network multi-classification model, and the training of the neural network multi-classification model includes the following steps:
[0028] (1) Constructing the initial neural network multi-classification model:
[0029] (2) Using a sample data set of characteristic spectral intensity electrical signals and visual information to train an initial neural network multi-classification model, and obtaining a trained neural network multi-classification model; the sample data set is annotated with defect labels, and the defect labels contain information including defect level, defect type, and cause. The defect labels of defect-free samples are qualified; the characteristic spectral intensity electrical signals and visual information are used as inputs of the model, and the defect labels are used as outputs of the model.
[0030] Furthermore, the training steps of the neural network multi-classification model are as follows:
[0031] Use a deep learning framework to build a multi-input and multi-output neural network multi-classification model;
[0032] The input layer of the model contains two input channels, one for inputting characteristic spectral intensity electrical signals and the other for inputting visual information; each channel has a data preprocessing step;
[0033] In the output layer of the model, multiple output neurons are defined. Each neuron corresponds to a welding defect label, and the softmax activation function is used to output the probability of each defect label.
[0034] Collect sample data sets containing characteristic spectral intensity electrical signals and visual information, and classify and annotate the types of defects in each sample to generate defect labels; the defect labels contain information such as defect level, defect type, and cause. The defect labels of defect-free samples are qualified; then divide the sample data set into 10 parts on average, take 5 to 9 of them as training sets, and the rest as test sets; according to the sample data set, the test set accounts for 10% to 50% for the best training effect.
[0035] The training set is used to train a neural network multi-classification model; during the training process, the model fuses the characteristic spectral intensity electrical signal and visual information to identify different types of welding defects;
[0036] The performance of the model is evaluated on the test set, and the precision and recall are used to evaluate the performance of the model; Precision: The ratio of the number of samples correctly identified as positive samples by the model to the number of all samples identified as positive samples;
[0037] Precision=TP / [TP+FP];
[0038] Recall: The ratio of the number of positive samples successfully detected by the model to the actual number of positive samples;
[0039] Recall = TP / [TP+FN];
[0040] in:
[0041] TP stands for True Positives, which refers to the number of samples correctly identified as positive examples by the model;
[0042] FP stands for False Positives, which refers to the number of samples that the model mistakenly identifies as positive examples;
[0043] FN is False Negatives, which refers to the number of samples that the model mistakenly identifies as negative examples;
[0044] Adjust the model parameters based on the performance on the test set to improve the generalization ability of the model, including the following steps:
[0045] 1) Adjust model hyperparameters: According to the performance on the test set, adjust the model hyperparameters by adding or reducing network layers [layers], adjusting the learning rate [learning_rate], and adjusting the regularization term [regularization_term];
[0046] 2) Retrain the model: After adjusting the model hyperparameters, retrain the neural network multi-classification model using the training set;
[0047] 3) Re-evaluation: After adjusting the model hyperparameters and retraining, the performance of the neural network multi-classification model is evaluated again using the test set. Training is stopped when both the precision and recall are greater than 95% or the performance no longer improves.
[0048] A device for real-time visual and characteristic spectrum laser welding interconnection monitoring, comprising at least:
[0049] A collection device, used for collecting characteristic spectrum intensity electrical signals in time series and collecting visual information in time series;
[0050] A data processing module is used to pre-process the collected visual information and characteristic spectrum intensity electrical signals respectively, and then fuse the pre-processed data;
[0051] The data analysis module is used to input the fused data into the neural network analysis module, perform inference calculations, and output interconnected monitoring results.
[0052] In some embodiments, a laser welding control module is also included for regulating the laser welding process according to the interconnection monitoring results.
[0053] Furthermore, the acquisition module includes a characteristic spectrum intensity monitoring module and a visual information monitoring module, and the characteristic spectrum intensity monitoring module includes an optical path calibration module, a focusing module, and a first spectroscopic module which are sequentially arranged according to the optical path; the first spectroscopic module divides the optical path into two, wherein a first filter module and a first photoelectric conversion module are sequentially arranged on one optical path, and a second spectroscopic module is arranged on the other optical path; the second spectroscopic module divides the optical path into two, wherein a second filter module and a second photoelectric conversion module are sequentially arranged on one optical path, and a third filter module and a third photoelectric conversion module are sequentially arranged on the other optical path;
[0054] The optical path calibration module is used to enhance the input characteristic spectrum signal intensity; the focusing module is used to focus the enhanced characteristic spectrum signal; the first spectroscopic module and the second spectroscopic module are used to separate the focused characteristic spectrum signal into visible light, infrared light, and reflected light; the first filter module, the second filter module, and the third filter module are used to filter the three separated light paths respectively to obtain the spectrum of the required characteristic band; the first photoelectric conversion module, the second photoelectric conversion module, and the third photoelectric conversion module are used to convert the spectrum of the filtered characteristic band into an electrical signal;
[0055] The visual information monitoring module includes a camera for collecting pictures and an auxiliary light source for illuminating the welding area.
[0056] A method for controlling a laser welding process, comprising:
[0057] S1. Execute the above-mentioned real-time visual and characteristic spectrum laser welding interconnection monitoring method to obtain a defect label;
[0058] S2. According to the defect label, adjust the laser welding process as follows:
[0059] If the defect label is a minor defect - hole - moisture, then suspend welding and perform pre-cleaning;
[0060] If the defect label is a minor defect - hole - oil stain, then suspend welding and perform pre-cleaning;
[0061] If the defect label is a minor defect - poor weld formation - slight deformation of the workpiece, modify the welding path to avoid the deformed area;
[0062] If the defect label is medium defect - cold solder joint - power reduction, increase the power of laser welding;
[0063] If the defect label is medium defect - spatter - too high power, reduce the laser welding power;
[0064] If the defect label is a serious defect - a large area of incomplete welding - the power is too low, then the welding is terminated, the laser welding parameters are reset, and then welding is performed again;
[0065] If the defect label is severe defect - large crack - inappropriate process parameters, the welding is terminated, the laser welding parameters are reset, and welding is performed again;
[0066] If the defect label is unqualified, welding is terminated and the workpiece is scrapped;
[0067] If the defect label is qualified, the current laser welding parameters remain unchanged.
[0068] An electronic device, comprising:
[0069] one or more processors;
[0070] A memory for storing one or more programs;
[0071] When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned real-time visual and characteristic spectrum laser welding interconnection monitoring method.
[0072] A computer-readable storage medium stores computer instructions, which, when executed by a processor, implement the steps of the above-mentioned real-time visual and characteristic spectrum laser welding interconnection monitoring method.
[0073] The beneficial effects of the present invention are as follows: by adopting the spectral energy and visual fusion of the neural network analysis module to monitor the laser welding quality, the accuracy of defect judgment in welding monitoring is improved, the contradiction between different data sources is resolved, and the judgment is fast and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 It is a flow chart of a real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention;
[0075] Figure 2 It is a module schematic diagram of a device for real-time visual and characteristic spectrum laser welding interconnection monitoring of the present invention;
[0076] Figure 3 The defect label of the real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention is a visual information picture of slight defects-holes-oil stains;
[0077] Figure 4 The defect label of the real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention is a spectrum intensity electrical signal diagram of slight defects-holes-oil stains;
[0078] Figure 5The defect label of the real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention is a visual information picture of medium defect-false welding-power reduction;
[0079] Figure 6 The defect label of the real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention is a spectrum intensity electrical signal diagram of medium defect-false welding-power reduction;
[0080] Figure 7 It is a visual information picture of medium defect-spatter-overpower of a real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention;
[0081] Figure 8 It is a spectrum intensity electrical signal diagram of medium defect-spatter-overpower of a real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention;
[0082] Fig. 9 It is a schematic diagram of the pre-processing of a real-time visual and characteristic spectrum laser welding interconnection monitoring method of the present invention;
[0083] Among them, characteristic spectrum intensity monitoring module 1, optical path calibration module 1-1, focusing module 1-2, first spectroscopic module 1-3, first filtering module 1-3-1, first photoelectric conversion module 1-3-2, second spectroscopic module 1-4, second filtering module 1-4-1, second photoelectric conversion module 1-4-2, third filtering module 1-4-3, third photoelectric conversion module 1-4-4, visual information monitoring module 2, camera 2-1, auxiliary light source 2-2, data processing module 3, data analysis module 4, laser welding control module 5, welding galvanometer system 6, workpiece 7. DETAILED DESCRIPTION
[0084] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation mode, structure, characteristics and effects of the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.
[0085] By adopting the spectral energy and visual fusion of the neural network analysis module to monitor the quality of laser welding, the accuracy of defect judgment during welding is improved and the contradiction between different data sources is resolved. By regulating laser welding, the welding quality is improved and the yield rate of workpieces is increased.
[0086] like Figure 1 , a real-time visual and characteristic spectrum laser welding interconnection monitoring method, comprising the following steps:
[0087] (1) Collect visual information and characteristic spectral intensity electrical signals of the welding part in time series;
[0088] (2) Preprocessing the collected visual information and characteristic spectral intensity electrical signals respectively, and then fusing the preprocessed data;
[0089] (3) The fused data is input into the neural network analysis module for inference calculation and output of the interconnection monitoring result, which is either defective or non-defective. If there is a defect, the defect label is annotated. The defect label contains information including defect level, defect type, and cause. If there is no defect, the defect label is marked as qualified.
[0090] In this application, the visual information includes 100 pictures arranged in time series, and the data dimension of each picture is [color, h, w], where color is the number of RGB color channels of the picture, color=3, h and w are the resolution in the height direction and the resolution in the width direction of the picture resolution corresponding to any color channel, h=1200, w=1100.
[0091] In the present application, the characteristic spectral intensity electrical signal is stored in the form of a time series with a dimension of [light, M], where light represents the number of light paths of the characteristic light, light=3, and M is the number of time series data of the characteristic spectral intensity electrical signal corresponding to any one path of characteristic light, M=50000, and the characteristic light includes visible light, infrared light, and reflected light.
[0092] In this application, the data preprocessing of visual information is specifically as follows:
[0093] 100 images are spliced according to the time sequence of acquisition, and are spliced into a large image with a data dimension of [3, 12000, 11000] in the order of 10 rows and 10 columns from left to right and from top to bottom; then, two maximum pooling processes are performed, and the image data dimension after pooling is [3, 600, 550];
[0094] Specifically, the size of the pooling window used in the first pooling is kh×kw, the stride is sh×sw, kh, kw, sh, and sw are all 5, then the height dimension and width dimension of the output data after the maximum pooling operation can be calculated by the following formula:
[0095] H=(10*1200-kh) / sh+1;
[0096] W=(10*1100-kw) / sw+1;
[0097] H=2400, W=2200;
[0098] The second pooling uses a pooling window size of kh×kw and a stride of sh×sw. kh, kw, sh, and sw are all 4. The height and width dimensions of the output data after the maximum pooling operation can be calculated by the following formula:
[0099] H = (2400-4) / 4+1;
[0100] W=(2200-4) / 4+1;
[0101] H=600, W=550.
[0102] The data preprocessing of characteristic spectral intensity electrical signals is as follows:
[0103] A threshold of 0.3 is set. In the time series data of any one of the three characteristic spectral intensity electrical signals, if the time series data at a certain moment is less than 0.3, the data at this moment in the corresponding other two time series data are deleted synchronously; if the number of time series data after deletion exceeds 30,000 data, the first 30,000 data are intercepted; if it is less than 30,000 data, 0 is added to the end until 30,000 data are reached; thereby reducing the dimension of the time series data from [3, 50,000] to [3, 30,000].
[0104] In some embodiments, kh, kw, sh, and sw can be set according to the value of m to facilitate subsequent fusion.
[0105] Then the preprocessed image data is fused with the preprocessed characteristic spectrum intensity electrical signal data by:
[0106] Use Python's reshape function to increase the dimension of the pooled image data from [3, 600,550] to [1, 3, 600, 550];
[0107] Specifically, the image is dimensionally upgraded, the original data dimensions are set to the second, third, and fourth dimensions, and the first dimension is added to obtain new four-dimensional data [1,3,600,550]. During the transformation process, the total amount of data remains conserved: 3*600*550=1*3*600*550;
[0108] Prod_Img_Data = [3,600,550], Prod_Img_Data is the preprocessed image data;
[0109] Reshaped_Prod_Img_Data = reshape(Prod_Img_Data,[1,3,600,550]) = [1,3,600,550], Reshaped_Prod_Img_Data is the image data after dimensionality enhancement;
[0110] The reshape function represents the transformation of data dimensions. The parameters of the reshape function: the first part is the data to be transformed, and the second part is the size dimension of the transformed data.
[0111] Use Python's reshape function to increase the dimension of the streamlined time series data from [3,30000] to [1, 3, 600, 50];
[0112] Specifically, the time series data is dimensionally upgraded, the original data dimensions are set to the second and third dimensions, the first and fourth dimensions are added, and the new four-dimensional data [1,3,30000,1] is obtained. The further transformation is [1,3,600,50]. During the transformation process, the total data volume remains conserved: 3*30000=1*3*30000*1=1*3*600*50;
[0113] Elec_Sig_Data = [3,30000], Elec_Sig_Data is the preprocessed time series data;
[0114] Reshaped_Elec_Sig_Data = reshape[Elec_Sig_Data,[1,3,30000,1]] = [1,3,30000,1];
[0115] Reshaped_Elec_Sig_Data = reshape[Elec_Sig_Data,[1,3,600,50]] = [1,3,600,50];
[0116] Reshaped_Elec_Sig_Data is the time series data after dimensionality enhancement.
[0117] The reshape function represents the transformation of data dimensions. The parameters of the reshape function: the first part is the data to be transformed, and the second part is the size dimension of the transformed data.
[0118] The number of RGB color channels is the same as the number of characteristic light paths, both of which are 3;
[0119] The Python concatenate function is used to concatenate the image data after dimensionality enhancement with the time series data after dimensionality enhancement to obtain the fused data, whose dimension is [1, 3, 600, 600].
[0120] Specifically, the transformed electrical signal data and the image data are concatenated to obtain a final four-dimensional array with a dimension of [1, 3, 600, 600]. This can be achieved by concatenating the two arrays along the appropriate dimension.
[0121] Final_Array
[0122] =concatenate((Reshaped_Elec_Sig_Data, Reshaped_Prod_Img_Data), axis=3)
[0123] = concatenate(([1,3,600,50], [1,3,600,550]), axis=3)
[0124] =[1,3,600,550+50]= [1,3,600,600];
[0125] Final_Array is the fused data.
[0126] The concatenate function is used to concatenate multiple data arrays. The parameters of the concatenate function are the multiple data that need to be concatenated in parentheses. The value of axis represents the dimension to be concatenated, and the dimension number is (0, 1, 2, 3…).
[0127] In this application, dimension enhancement and fusion are performed using the functions provided by the Python language.
[0128] Through these array transformation operations, the original two-dimensional electrical signal data and three-dimensional image data can be integrated into a higher-dimensional four-dimensional array for further processing and analysis.
[0129] In this application, the neural network analysis module adopts a neural network multi-classification model, and the training of the neural network multi-classification model includes the following steps:
[0130] Build an initial neural network multi-classification model:
[0131] The sample data set of characteristic spectral intensity electrical signals and visual information is used to train the initial neural network multi-classification model to obtain the trained neural network multi-classification model; the sample data set is annotated with defect labels, and the defect labels contain information such as defect level, defect type, and cause. The defect labels of defect-free samples are qualified; the characteristic spectral intensity electrical signals and visual information are used as the input of the model, and the defect labels are used as the output of the model.
[0132] In this application, the training steps of the neural network multi-classification model are as follows:
[0133] Use a deep learning framework to build a multi-input and multi-output neural network multi-classification model;
[0134] The input layer of the model contains two input channels, one for inputting characteristic spectral intensity electrical signals and the other for inputting visual information; each channel has a data preprocessing step;
[0135] In the output layer of the model, multiple output neurons are defined. Each neuron corresponds to a welding defect label, and the softmax activation function is used to output the probability of each defect label.
[0136] A sample data set containing characteristic spectral intensity electrical signals and visual information is collected, and the types of defects in each sample are classified and labeled to generate defect labels; the defect labels contain information including defect level, defect type, and cause, and defect labels of defect-free samples are qualified; then the sample data set is divided into 10 parts on average, 9 of which are taken as training sets, and the remaining parts are taken as test sets; in some embodiments, 5 of them can also be taken as training sets, and the remaining parts can be taken as test sets. According to the situation of the sample data set, the proportion of the test set is 10%~50%, and the training effect is best.
[0137] The training set is used to train a neural network multi-classification model; during the training process, the model fuses the characteristic spectral intensity electrical signal and visual information to identify different types of welding defects;
[0138] The performance of the model is evaluated on the test set, and the precision and recall are used to evaluate the performance of the model; Precision: The ratio of the number of samples correctly identified as positive samples by the model to the number of all samples identified as positive samples;
[0139] Precision=TP / [TP+FP];
[0140] Recall: The ratio of the number of positive samples successfully detected by the model to the actual number of positive samples;
[0141] Recall = TP / [TP+FN];
[0142] in:
[0143] TP stands for True Positives, which refers to the number of samples correctly identified as positive examples by the model;
[0144] FP stands for False Positives, which refers to the number of samples that the model mistakenly identifies as positive examples;
[0145] FN is False Negatives, which refers to the number of samples that the model mistakenly identifies as negative examples;
[0146] Adjust the model parameters based on the performance on the test set to improve the generalization ability of the model, including the following steps:
[0147] 1) Adjust model hyperparameters: According to the performance on the test set, adjust the model hyperparameters by adding or reducing network layers [layers], adjusting the learning rate [learning_rate], and adjusting the regularization term [regularization_term];
[0148] 2) Retrain the model: After adjusting the model hyperparameters, retrain the neural network multi-classification model using the training set;
[0149] 3) Re-evaluation: After adjusting the model hyperparameters and retraining, the performance of the neural network multi-classification model is evaluated again using the test set. Training is stopped when both the precision and recall are greater than 95% or the performance no longer improves.
[0150] like Figure 2 , a device for real-time visual and characteristic spectrum laser welding interconnection monitoring, comprising:
[0151] Characteristic spectrum intensity monitoring module 1, used for collecting characteristic spectrum intensity electrical signals in time series;
[0152] The acquisition module includes a visual information monitoring module 2 and a data processing module 3. The visual information monitoring module 2 is used to collect visual information in time series; the data processing module 3 is used to pre-process the collected visual information and characteristic spectrum intensity electrical signals, and then fuse the pre-processed data;
[0153] The data analysis module 4 is used to input the fused data into the neural network analysis module, perform reasoning calculations, output the interconnection monitoring results, and mark the defect labels.
[0154] The device of the present application also includes a laser welding control module 5, which is used to adjust the laser welding process according to the interconnection monitoring results.
[0155] The hardware of the data processing module 3, the data analysis module 4, and the laser welding control module 5 of the present application is composed of a digital signal conversion module, an IO communication module, and an industrial computer.
[0156] In the present application, the characteristic spectrum intensity monitoring module 1 includes an optical path calibration module 1-1, a focusing module 1-2, and a first spectroscopic module 1-3 which are sequentially arranged according to the optical path; the first spectroscopic module 1-3 divides the optical path into two, one of which is sequentially arranged with a first filter module 1-3-1 and a first photoelectric conversion module 1-3-2, and the other optical path is sequentially arranged with a second spectroscopic module 1-4; the second spectroscopic module 1-4 divides the optical path into two, one of which is sequentially arranged with a second filter module 1-4-1 and a second photoelectric conversion module 1-4-2, and the other optical path is sequentially arranged with a third filter module 1-4-3 and a third photoelectric conversion module 1-4-4;
[0157] The optical path calibration module 1-1 is used to enhance the input characteristic spectrum signal intensity to ensure that the intensity reaches the maximum value; the focusing module 1-2 is used to focus the enhanced characteristic spectrum signal; the first spectroscopic module 1-3 and the second spectroscopic module 1-4 are used to separate the focused characteristic spectrum signal into visible light, infrared light and reflected light; the first filter module 1-3-1, the second filter module 1-4-1 and the third filter module 1-4-3 are used to filter the three separated light paths respectively to obtain the spectrum of the required characteristic band; the first photoelectric conversion module 1-3-2, the second photoelectric conversion module 1-4-2 and the third photoelectric conversion module 1-4-4 are used to convert the spectrum of the filtered characteristic band into an electrical signal;
[0158] In the present application, the focusing module 1-2 uses a plano-convex lens with a long focal length, and the plane of the lens faces the first light splitting module. The use of a focusing module with a long focal length has the following advantages:
[0159] 1) Small spherical aberration. The longer the focal length, the smaller the lens curvature and the smaller the bend, the smaller the spherical aberration introduced by the lens;
[0160] 2) Small aberration. A lens with a long focal length has smaller aberration than a lens with a short focal length.
[0161] 3) Large depth of field. A lens with a long focal length has a greater depth of field than a lens with a short focal length. The depth of field is proportional to the object focal length of the lens. The longer the focal length, the larger the object focal length and the greater the depth of field.
[0162] 4) It can prevent signal light outside the molten pool from entering the sensor. In addition, during actual welding, the reflected light outside the molten pool is not a paraxial beam when coupled into the optical path, and the incident angle is large. It is focused by the lens at a position far from the axis of the focal plane, so it cannot be received by the photoelectric conversion module with a small photosensitive area. This avoids the interference of the light beam outside the molten pool with the light beam inside the molten pool, so that only the light signal inside the molten pool is collected to achieve accurate detection.
[0163] The visual information monitoring module 2 includes a camera 2-1 for collecting pictures and an auxiliary light source 2-2 for illuminating the welding part.
[0164] Since most traditional visual inspections use coaxial photography, the incident light beam is attenuated by many lenses, and the light intensity that finally reaches the camera is very weak, and bright photos cannot be taken. The visual information monitoring module 2 of the present application uses a rangefinder photography method. The camera 2-1 is composed of a protective lens, a filter module, a lens, a camera, and an auxiliary light source. When taking rangefinder photos, the incident light intensity is sufficient, and a clear photo can be obtained by combining with the filter module.
[0165] Based on the application of the above-mentioned real-time visual and characteristic spectrum laser welding interconnection monitoring method, the laser welding process is regulated according to the interconnection monitoring results, as follows:
[0166] If the defect label is a minor defect - hole - moisture, then suspend welding and perform pre-cleaning;
[0167] If the defect label is a minor defect - hole - oil stain, then stop welding and perform pre-cleaning; Figure 3-4 , the defect label is minor defect-hole-oil stain;
[0168] Pre-cleaning process for interconnect monitoring:
[0169] Interconnected monitoring detects dirt through visual information monitoring, performs pre-cleaning before laser welding, and avoids laser welding directly on dirt, thereby improving welding yield. The main process includes: 1) loading, starting visual information monitoring module 2; 2) visual information monitoring module 2 detects dirt on the surface of the workpiece; 3) data analysis module 4 sends a pre-cleaning instruction to laser welding control module 5; 4) laser welding control module 5 controls the output of low-power laser to clean dirt, 5) visual information monitoring module 2 continues to take pictures of the workpiece to ensure that there is no dirt; 6) laser welding workpiece; 7) visual information monitoring module 2 and characteristic spectrum intensity monitoring module 1 collect welding pictures and characteristic energy spectra; 8) the neural network analysis module in the data analysis module 4 collects pictures and characteristic spectrum intensity electrical signals, and outputs welding quality results.
[0170] The surface dirt may be oil, particles, and other adhered foreign matter, which can be captured by the photos taken by the visual information monitoring module 2 and then fed back to the data analysis module 4.
[0171] The data analysis module 4 and the laser welding control module 5 are connected together through a DB25 data line. The pre-cleaning process is to pre-set the process parameters, which are pre-stored in the laser welding control module 5 and can be called out when needed. For example, for a 2000W fiber laser, the output power can be changed by changing the input voltage. When the input voltage changes in the range of 0-4V, the output power changes in the range of 0-100%.
[0172] The laser pre-cleaning path is the same as the actual welding path. The laser starts the pre-cleaning process and outputs a 100W laser to scan along the welding path. This can clean the dirt on the welding path and prepare for the subsequent formal welding. The visual information monitoring module 2 continues to take pictures of the workpiece to ensure that there is no dirt and laser weld the workpiece. For example, if a thin aluminum plate is welded together with a thick aluminum plate, the welding power is 2000W, the beam travel speed is 200mm / S, and the laser scans the welding along the programmed path. The visual information monitoring module 2 and the characteristic spectrum intensity monitoring module 1 collect images and characteristic spectrum intensity electrical signals during welding. The neural network analysis module in the data analysis module 4 collects images and characteristic spectrum intensity electrical signals and outputs the interconnected monitoring results to mark defect labels.
[0173] Then, a laser welding process control method is adopted, including:
[0174] S1. Execute the above-mentioned real-time visual and characteristic spectrum laser welding interconnection monitoring method to obtain a defect label;
[0175] S2. According to the defect label, adjust the laser welding process as follows:
[0176] If the defect label is medium defect - cold welding - power reduction, increase the power of laser welding; Figure 5-6 ,The defect label is medium defect-cold solder joint-power drop;
[0177] If the defect label is medium defect - spatter - too high power, reduce the laser welding power; Figure 7-8 , the defect label is medium defect - spatter - too much power;
[0178] If the defect label is a minor defect - poor weld formation - slight deformation of the workpiece, modify the welding path to avoid the deformed area;
[0179] If the defect label is a serious defect - a large area of incomplete welding - the power is too low, then the welding is terminated, the laser welding parameters are reset, and then welding is performed again;
[0180] If the defect label is severe defect - large crack - inappropriate process parameters, the welding is terminated, the laser welding parameters are reset, and welding is performed again;
[0181] If the defect label is unqualified, welding is terminated and the workpiece is scrapped;
[0182] If the defect label is qualified, the current laser welding parameters remain unchanged.
[0183] In the present application, before the interconnected monitoring device is operated, the visual information monitoring module 2 can be used alone for pre-processing to find problems such as workpiece deformation and modify the welding path, and then enter the interconnected monitoring welding process. The main steps are as follows:
[0184] 1. The visual information monitoring module 2 detects the deformation of the workpiece and locates the position of the deformation of the workpiece;
[0185] 2. Data analysis module 4 replans the weld path;
[0186] 3. The data analysis module 4 sends the modified weld information to the laser welding control module 5 through the DB25 interface;
[0187] 4. The laser welding control module 5 performs laser welding according to the new weld information, thereby ensuring the welding quality of the surrounding area of the workpiece deformation;
[0188] 5. The interconnected monitoring device monitors the visual information and characteristic spectral intensity electrical signals during the welding process;
[0189] 6. The interconnected monitoring device outputs the monitoring results.
[0190] like Fig. 9 As shown, for the sealing top cover welding of cylindrical batteries, the default welding path of the workpiece welding is a circular ring ( Fig. 9 Left), but the visual information monitoring module 2 takes a photo of the workpiece and finds that the surface of the workpiece is deformed ( Fig. 9 As shown in the right picture, the deformation is concave to one side, so the visual information monitoring module 2 transmits the relevant picture to the data analysis module 4. The data analysis module 4 modifies the weld path according to the position and size of the deformation and sends the modified weld path to the laser welding control module 5. The laser welding control module 5 then performs laser welding according to the information, and finally modifies the welding path in the deformed area to improve the yield.
[0191] The application also provides an electronic device, comprising:
[0192] one or more processors;
[0193] A memory for storing one or more programs;
[0194] When one or more programs are executed by one or more processors, the one or more processors implement a real-time visual and characteristic spectrum laser welding interconnection monitoring method.
[0195] The application also provides a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the real-time visual and characteristic spectrum laser welding interconnection monitoring method are implemented.
[0196] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A real-time visual and characteristic spectrum laser welding interconnection monitoring method, characterized in that: The steps include: (1) Collect visual information and characteristic spectral intensity electrical signals of the welding part in time series; (2) Preprocessing the collected visual information and characteristic spectral intensity electrical signals respectively, and then fusing the preprocessed data; (3) Input the fused data into the neural network analysis module for inference calculation, output the interconnection monitoring results, and annotate the defect labels; The visual information includes n pictures arranged in time series, and the data dimension of each picture is [color, h, w], where color is the number of RGB color channels of the picture, and h and w are the resolution in the height direction and the resolution in the width direction of the picture corresponding to any color channel, respectively; The characteristic spectrum intensity electrical signal is stored in the form of a time series, with a dimension of [light, M], where light represents the number of light paths of characteristic light, and M is the number of time series data of the characteristic spectrum intensity electrical signal corresponding to any one path of characteristic light, and the characteristic light includes visible light, infrared light, and reflected light; The data preprocessing of the visual information is specifically as follows: Splice n images according to the time sequence of acquisition, and splice them into a large image with data dimensions of [color, N*h, N*w] in the order of N rows and N columns from left to right and from top to bottom, where N=n^(-2). Then round N up. When N^2>n after rounding up, fill the missing part of the large image with blanks. Then, perform at least one maximum pooling process. The image data dimension after pooling is [color, H, W]. The data preprocessing of the characteristic spectrum intensity electrical signal is specifically as follows: A threshold is set. In the time series data of any one of the three characteristic spectral intensity electrical signals, if the time series data at a certain moment is less than the threshold, the data at this moment in the corresponding other two time series data are deleted synchronously; if the number of time series data after deletion exceeds m data, the first m data are intercepted; if the number of data is less than m, 0 is added to the end until m data are reached; thus, the dimension of the time series data is simplified from [light, M] to [light, m]; The fusion method is: Use Python's reshape function to increase the dimension of the pooled image data from [color, H, W] to [k, color, H, W]; The Python reshape function is used to increase the dimension of the time series data of the simplified characteristic spectral intensity electrical signal from [light,m] to [k, light, H, m / (kH)]; The number of RGB color channels is the same as the number of characteristic light paths, both of which are 3; The Python concatenate function is used to concatenate the image data after dimensionality enhancement and the time series data of the characteristic spectrum intensity electrical signal after dimensionality enhancement to obtain the fused data, whose dimension is [k, 3, H, [W+m / [kH]]].
2. The method according to claim 1, characterized in that: The neural network analysis module uses a neural network multi-classification model. The training of the neural network multi-classification model includes the following steps: (1) Constructing the initial neural network multi-classification model: (2) Using a sample data set of characteristic spectral intensity electrical signals and visual information to train an initial neural network multi-classification model, and obtaining a trained neural network multi-classification model; the sample data set is annotated with defect labels, and the defect labels contain information including defect level, defect type, and cause. The defect labels of defect-free samples are qualified; the characteristic spectral intensity electrical signals and visual information are used as inputs of the model, and the defect labels are used as outputs of the model.
3. The method according to claim 2, characterized in that The training steps of the neural network multi-classification model are as follows: Use a deep learning framework to build a multi-input and multi-output neural network multi-classification model; The input layer of the model contains two input channels, one for inputting characteristic spectral intensity electrical signals and the other for inputting visual information; each channel has a data preprocessing step; In the output layer of the model, multiple output neurons are defined. Each neuron corresponds to a welding defect label, and the softmax activation function is used to output the probability of each defect label. Collect sample data sets containing characteristic spectral intensity electrical signals and visual information, and classify and annotate the types of defects in each sample to generate defect labels; The defect label contains information such as defect level, defect type, and cause. The defect label of the sample without defect is qualified. Then the sample data set is evenly divided into 10 parts, 5 to 9 of which are taken as training sets, and the rest are taken as test sets. The training set is used to train a neural network multi-classification model; during the training process, the model fuses the characteristic spectral intensity electrical signal and visual information to identify different types of welding defects; The performance of the model is evaluated on the test set, and the precision and recall are used to evaluate the performance of the model; Precision: The ratio of the number of samples correctly identified as positive samples by the model to the number of all samples identified as positive samples; Precision=TP / [TP+FP]; Recall: The ratio of the number of positive samples successfully detected by the model to the actual number of positive samples; Recall = TP / [TP+FN]; in: TP is the true positive sample, which refers to the number of samples correctly identified as positive samples by the model; FP stands for false positive, which refers to the number of samples that the model mistakenly identifies as positive examples; FN is false negative, which refers to the number of samples that the model mistakenly identifies as negative examples; Adjust the model parameters based on the performance on the test set to improve the generalization ability of the model, including the following steps: 1) Adjust model hyperparameters: According to the performance on the test set, adjust the model hyperparameters by adding or reducing network layers [layers], adjusting the learning rate [learning_rate], and adjusting the regularization term [regularization_term]; 2) Retrain the model: After adjusting the model hyperparameters, retrain the neural network multi-classification model using the training set; 3) Re-evaluation: After adjusting the model hyperparameters and retraining, the performance of the neural network multi-classification model is evaluated again using the test set. Training is stopped when both the precision and recall are greater than 95% or the performance no longer improves.
4. A device for real-time visual and characteristic spectrum laser welding interconnection monitoring based on the method of claim 1, characterized in that: At least: A collection device, used for collecting characteristic spectral intensity electrical signals and visual information in a time series according to the method of claim 1; A data processing module, used for preprocessing the collected visual information and characteristic spectrum intensity electrical signal respectively according to the method of claim 1, and then fusing the preprocessed data; The data analysis module is used to input the fused data into the neural network analysis module according to the method of claim 1, perform inference calculation, and output the interconnection monitoring results.
5. The device according to claim 4, characterized in that The acquisition module includes a characteristic spectrum intensity monitoring module and a visual information monitoring module. The characteristic spectrum intensity monitoring module includes an optical path calibration module, a focusing module, and a first spectroscopic module which are sequentially arranged according to the optical path; the first spectroscopic module divides the optical path into two, wherein a first filter module and a first photoelectric conversion module are sequentially arranged on one optical path, and a second spectroscopic module is arranged on the other optical path; the second spectroscopic module divides the optical path into two, wherein a second filter module and a second photoelectric conversion module are sequentially arranged on one optical path, and a third filter module and a third photoelectric conversion module are sequentially arranged on the other optical path; The visual information monitoring module includes a camera for collecting pictures and an auxiliary light source for illuminating the welding area.
6. A method for controlling a laser welding process, characterized in that: include: S1. Execute the real-time visual and characteristic spectrum laser welding interconnection monitoring method described in claim 1 to obtain a defect label; S2. According to the defect label, adjust the laser welding process as follows: If the defect label is a minor defect - hole - moisture, then suspend welding and perform pre-cleaning; If the defect label is a minor defect - hole - oil stain, then suspend welding and perform pre-cleaning; If the defect label is a minor defect - poor weld formation - slight deformation of the workpiece, modify the welding path to avoid the deformed area; If the defect label is medium defect - cold solder joint - power reduction, increase the power of laser welding; If the defect label is medium defect - spatter - too high power, reduce the laser welding power; If the defect label is a serious defect - a large area of incomplete welding - the power is too low, the welding is terminated, the laser welding parameters are reset, and welding is performed again; If the defect label is severe defect - large crack - inappropriate process parameters, the welding is terminated, the laser welding parameters are reset, and welding is performed again; If the defect label is unqualified, welding is terminated and the workpiece is scrapped; If the defect label is qualified, the current laser welding parameters remain unchanged.
7. An electronic device, characterized in that: include: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.
8. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
