Method and system for predicting penetration of plasma arc welding based on multi-view molten pool images

Through the combination of multi-view image data and deep learning models, the problem of insufficient prediction accuracy of penetration state and penetration depth in plasma arc welding from a single perspective is solved, achieving higher-precision prediction of penetration state and penetration depth, and improving welding quality. .

CN118314431BActive Publication Date: 2024-09-03SHANDONG HUAWEI ZHONGGONG MASCH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410735504.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing plasma arc welding penetration state and penetration depth prediction methods are difficult to achieve high accuracy. Single-view images cannot provide sufficient feature information, and are easily affected by occlusion by the end of the welding gun and reflection of the workpiece, resulting in inaccurate prediction results.

Method used

Integrate multi-view melt pool image data (including the front, side, tail, etc.) of the melt pool, achieve image feature fusion through deep learning networks and optimization algorithms, use a convolutional neural network and recurrent neural network combination model, and combine genetic algorithms to optimize weights , improve the accuracy of penetration state and penetration depth prediction.

Benefits of technology

It achieves a more comprehensive description of the molten pool characteristics and a higher-precision prediction of the welding penetration state, provides a more reliable basis for regulating welding parameters, and improves the quality of the weld.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314431B
    Figure CN118314431B
Patent Text Reader

Abstract

The present invention relates to a plasma arc welding penetration prediction method and system based on multi-perspective molten pool images, which belongs to the field of artificial intelligence welding technology. The method integrates image data from multiple perspectives such as the front, side, and tail of the molten pool, and uses multi-perspective front molten pool images (including the front, side, and tail of the molten pool) acquired by a plasma arc welding visual inspection system as a data set. Image feature extraction is achieved based on a deep learning network model, and an optimization algorithm is used to obtain the optimal feature weights through multiple iterations to achieve image feature fusion at different perspectives, thereby obtaining effective molten pool visual features, further improving the accuracy and reliability of model prediction, and achieving the prediction task of penetration state and fusion depth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence welding technology, and specifically to a method for predicting the penetration degree of plasma arc welding based on multi-view image fusion and deep learning algorithm. The method obtains multi-view image data during the welding process and combines deep learning algorithm for feature extraction and prediction, aiming to improve the accuracy and stability of weld penetration and penetration prediction. Background Art

[0002] Plasma arc welding plays an important role in the field of material connection and manufacturing in modern industry with its advantages of high efficiency and low cost. Generally, in the plasma arc welding process, the highly constrained arc melts the workpiece to form a molten pool, and forms a small hole that penetrates the workpiece directly below the arc. This phenomenon is called "full penetration". In some plasma arc welding scenarios, full penetration is not formed. At this time, the depth of the liquid metal in the molten pool determines the final weld penetration. As an important indicator for measuring welding quality, weld penetration directly affects the mechanical properties and safety of the welded structure. However, due to the complexity of the welding process and the diversity of influencing factors, real-time and accurate prediction of the degree of weld penetration (i.e., penetration state and penetration value) has always been a difficult problem in this field.

[0003] Most of the existing research focuses on the prediction of the penetration state of plasma arc welding. Sensors are used to obtain relevant physical signals and visual images in the welding process. By comparing the differences in signal characteristics under different welding conditions, the penetration state is divided into "incomplete penetration" and "full penetration". Secondly, the existing methods and systems mainly rely on empirical judgment or simple sensor monitoring. These methods are often difficult to fully capture the subtle changes in the welding process, resulting in inaccurate prediction results. In recent years, with the rapid development of artificial intelligence technology, especially deep learning algorithms, new solutions have been provided for the prediction of penetration in plasma arc welding. A large number of studies have shown that deep learning algorithms can process rich welding process information in the front molten pool image, learn the complex features therein, and establish a nonlinear association between the input image and the penetration state. The Chinese patent document (authorization announcement number CN112894101A) proposes a method for predicting the molten pool state of perforated plasma arc welding based on a deep learning algorithm. The VGG16 model is selected as the spatial feature information extraction module of this deep learning model, and the LSTM is selected as the temporal feature information extraction module of the model. The prediction of the penetration state based on the spatiotemporal characteristics of the front molten pool image is realized.

[0004] However, the molten pool image from a single perspective often fails to provide sufficient penetration feature information, and is more susceptible to the occlusion of the welding torch end and the reflection of the workpiece during the welding process. Although it can reflect the relevant penetration state, it is difficult to achieve more accurate penetration and penetration depth prediction due to the limitation of feature quantity. Therefore, how to effectively combine multi-image data from different perspectives in the welding process to cover a variety of key features to improve the accuracy of weld penetration prediction has become an urgent problem to be solved. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a plasma arc welding penetration prediction method and system based on multi-perspective molten pool image feature fusion. The present invention integrates image data from multiple perspectives such as the front, side, and tail of the molten pool, and uses the multi-perspective front molten pool images (including the front, side, and tail of the molten pool) acquired by the plasma arc welding visual inspection system as the data set. Image feature extraction is achieved based on a deep learning network model, and an optimization algorithm is used to obtain the optimal feature weights through multiple iterations to achieve image feature fusion at different perspectives, thereby obtaining effective molten pool visual features, further improving the accuracy and reliability of model prediction, and achieving the prediction task of penetration state and molten depth.

[0006] The technical solution of the present invention is as follows:

[0007] A method for predicting the degree of penetration of plasma arc welding based on multi-view molten pool image feature fusion includes the following steps:

[0008] S1. Build a plasma arc welding experimental platform, including plasma arc welding system, control system, visual inspection system, etc.;

[0009] S101. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power source and a welding gun cooling device; the welding gun is connected with an electric circuit, a water circuit and a gas circuit, which are respectively used for high-frequency arc initiation, circulating cooling water, and providing necessary ion gas and shielding gas; the end of the welding gun is equipped with a compression nozzle, and the tungsten electrode is retracted in the nozzle;

[0010] S102, the control system includes a programmable logic controller PLC, which together realizes the three-dimensional motion control and arc starting and arc extinction control of the platform; wherein the three-dimensional motion control is completed by analog communication between the PLC and the servo motor, and the analog communication between the PLC and the plasma arc welding system realizes the arc starting and arc extinction functions and the setting of welding parameters; the programmable logic controller PLC can be purchased commercially;

[0011] S103. The visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, where N≥3; the industrial computer controls the start and stop of camera shooting and the setting of related visual parameters, and the images collected by the camera in a hard-trigger manner are transmitted to the industrial computer via the Gigabit network; wherein, one camera obtains the image of the small holes on the back to indicate the actual state of penetration, and the other N cameras obtain the front molten pool images from multiple perspectives, and the camera positions include but are not limited to the front, side, and tail of the molten pool, which are respectively defined as perspective 1, perspective 2, perspective 3…perspective n, etc.

[0012] S2. Conduct plasma arc welding tests with different welding parameters under constant current and pulse current conditions, obtain molten pool image data during plasma arc welding from multiple viewing angles, and store the images in the industrial computer in real time, naming the files with the current system time, accurate to milliseconds;

[0013] S201. The adjustable welding parameters include welding current, ion gas flow, shielding gas flow, welding speed, wire feeding speed, etc., covering the commonly used welding parameter ranges of the model application scenarios;

[0014] S202, each weld is taken as a group of tests, and the welding parameters defined in S201 are adjusted multiple times to perform tests, and molten pool image data corresponding to different penetration states and penetration depth values ​​are obtained.

[0015] S3, preprocessing the acquired molten pool image data, and labeling the front molten pool image frame by frame to characterize the real penetration state and molten depth value corresponding to the image;

[0016] S301, processing the missing values ​​of the molten pool image caused by the camera frame loss; matching the images collected by N+1 cameras frame by frame according to the system time, calculating the time difference of the images collected by different cameras, defining the time difference of the synchronous images to be less than 5ms, and deleting the redundant non-synchronous images;

[0017] S302, image preprocessing also includes operations such as ROI selection, denoising, contrast enhancement, etc. to improve image quality;

[0018] S303, calibrate the front molten pool images of multiple view angles according to the real penetration state reflected by the back pinhole image; distinguish the back pinhole image by the image gray value, if there are more than 20 pixels with a gray value greater than 30, it is considered that pinholes appear, otherwise no pinholes appear; wherein, the appearance of pinholes is defined as full penetration, and the absence of complete pinholes is defined as incomplete penetration, and the labels of full penetration or incomplete penetration are calibrated on the back pinhole image and other view angle images synchronized with the back pinhole image;

[0019] S304, obtaining a weld penetration curve, which may be obtained by a weld longitudinal section cutting measurement method, radiographic detection or industrial CT, etc.; taking a position where the penetration is 0 mm and is about to increase as a welding starting point, calculating a position corresponding to the image on the weld according to a difference between a specific front molten pool image shooting time and a welding start time, thereby obtaining a corresponding penetration value according to the penetration curve, and calibrating the penetration value on all images synchronized at the current corresponding time;

[0020] Among them, the weld position corresponding to the specific image (unit: mm) can be calculated by the following formula (1):

[0021] (1)

[0022] t The time corresponding to the current image, in seconds; t 0 is the welding start time, unit is s; v is the welding speed, in mm / s;

[0023] S305. According to the ratio of 6:2:2, the multi-view front molten pool image data with the labels of penetration status and penetration value are divided into a training set, a validation set and a test set, which are used for model training, validation and testing respectively.

[0024] S4. Based on the deep learning network, a penetration state prediction model and a weld penetration depth prediction model are established respectively;

[0025] S401. The model framework adopted is a combination model of convolutional neural network CNN and recurrent neural network RNN, which is used to extract and couple the temporal and spatial features of the sequence molten pool images; the convolutional neural network can select a variety of classic model frameworks such as VGG, ResNet, Inception, etc., including convolutional layers and pooling layers, removing the fully connected layer at the end of the network, adding a global pooling layer to convert the data stream into a 1×256 one-dimensional vector sequence for transmitting time series data to the RNN; the recurrent neural network RNN ​​contains 2 layers of RNN layers, connected to a fully connected layer of 256 neurons; the final output layer is set according to the model requirements. If it is a penetration state prediction model, it is set as a classification layer, and the output is the penetration state, with 0 and 1 representing "not penetrated" and "fully penetrated" respectively; if it is a weld penetration prediction model, it is set as a regression layer, and the output is the penetration prediction value;

[0026] S402. Based on the front molten pool image data under a single viewing angle, model training for prediction of penetration state and weld penetration depth is performed respectively, and a deep learning prediction model under each viewing angle is obtained respectively; wherein each sequence sample of the input model contains 5 consecutive front molten pool images under a single viewing angle, and the output is the predicted value of penetration state or penetration depth in the next 0.5-1s.

[0027] S5. Use the trained model to extract features from the image sequence, use optimization algorithms such as genetic algorithm GA, etc. to determine the optimal weight combination, and assign weighted values ​​m to the image features under different viewing angles. n , the fused features F Can be represented as image features under a single view F n The weighted sum of:

[0028] (2)

[0029] Subscripts 1-n represent viewing angles 1-n;

[0030] S501, the features of the image are represented by the feature vector of the previous layer of the output layer. According to the model structure defined in S401, the final feature representation of the five sequence images is a one-dimensional vector of 1×256;

[0031] S502, defining the evaluation index of the network model as the fitness function of the genetic algorithm, and randomly generating a variable sequence, including C groups of 1×n weight combinations, as the initial individuals in the population, where the C value is an integer and is manually defined when the model is initialized, and n is the number of image viewing angles;

[0032] Among them, for the penetration state prediction model, the fitness function can be defined as the model prediction accuracy (Accuracy)

[0033] (3)

[0034] TP, TN, FP, and FN represent true positive samples, true negative samples, false positive samples, and false negative samples in the classification results, respectively;

[0035] For the weld penetration prediction model, the root mean square error RMSE is used as the fitness function, and the formula is:

[0036] (4)

[0037] in, It is i The predicted value of samples, is the corresponding true value, N is the total number of samples;

[0038] S503, respectively bring in different weight combinations to calculate fusion features F , passing the data stream through the output layer of the network, and calculating the fitness value of each weight combination according to the fitness function defined in S502;

[0039] S504, the genetic algorithm automatically retains the individual with the highest fitness as the parent generation, generates new offspring individuals through crossover and mutation operations of the genetic algorithm, forms a new generation population, repeats S503 for iteration and evaluation until the set termination condition is met, and outputs the optimal weight combination, wherein the termination condition is reaching the maximum number of iterations;

[0040] S505. In order to minimize the impact of the quality of the molten pool image on the model accuracy, a variety of different perspective combinations can be used during modeling, and the number of combined perspectives is two or more; such as perspective 1 + perspective 2, perspective 1 + perspective 3, perspective 1 + perspective 2 + perspective 3, etc.; substitute the image features of a single perspective of the selected perspective into formula (2); optimize the genetic algorithm described in S502-S504 to obtain the best fitness value, obtain the optimal weight combination, and substitute it into formula (2); obtain the comprehensive features under the selected combination scheme; calculate the comprehensive features through the last output layer of the network to obtain the penetration state or weld penetration prediction value; at this time, the model of the single perspective image has been trained and can extract the image features of a single perspective respectively; take perspective 1 + perspective 3 as an example, substitute the features of these two separate perspectives into formula (2) to calculate the comprehensive features. At this time, the weight is optimized by the genetic algorithm to obtain the best fitness value, corresponding to the optimal weight combination.

[0041] S6. The final penetration state prediction model and weld penetration depth prediction model are deployed to the industrial computer. The industrial camera takes pictures continuously during the welding process. The model receives images in real time, extracts image features using the content of step S5, and predicts the penetration state and penetration depth values ​​in the next 0.5s-1s. The calculation results are displayed in real time on the display device as a basis for real-time adjustment of welding parameters to maintain the ideal penetration state and penetration depth values, thereby improving the weld quality.

[0042] A plasma arc welding penetration prediction system based on multi-view molten pool image feature fusion includes a plasma arc welding system, a control system, and a visual detection system. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power supply, and a welding gun cooling device; the welding gun is connected with a circuit, a water circuit, and a gas circuit, which are respectively used for high-frequency arc initiation, circulating cooling water, and providing necessary ion gas and shielding gas; a compression nozzle is installed at the end of the welding gun, and the tungsten electrode is retracted in the nozzle; the control system includes a programmable logic controller PLC, which is used to jointly realize the three-dimensional motion control and arc starting and extinction control of the plasma arc welding gun; wherein the three-dimensional motion control is controlled by the PLC The analog communication with the servo motor is completed, and the analog communication between the PLC and the plasma arc welding system realizes the arc starting and arc extinction and the setting of welding parameters; the visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, N≥3; the images collected by the camera are transmitted to the industrial computer, and the industrial computer is deployed with a penetration state prediction model and a weld penetration depth prediction model to receive the camera image and output the penetration state and penetration depth value of the next 0.5s-1s; among them, one camera obtains the back hole image to indicate the actual penetration state, and the other N cameras obtain multi-angle front molten pool images.

[0043] The beneficial effects of the present invention are:

[0044] 1. The present invention uses multiple industrial cameras to detect the molten pool image during the plasma arc welding process, obtains the front molten pool image under multiple viewing angles, and realizes a more comprehensive description of the molten pool characteristics.

[0045] 2. The present invention processes images of different perspectives of the plasma arc welding process, implements a feature fusion strategy based on a weight optimization algorithm and a deep learning model, and obtains fusion features with effective visual quality, thereby achieving a higher-precision welding penetration state prediction model and a more accurate penetration depth prediction model, providing more reliable basis for the implementation and regulation of welding parameters.

[0046] 3. The present invention effectively utilizes multiple industrial cameras of the welding production line, and the hardware and algorithm are simple to implement, which is conducive to industrial application. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic diagram of the hardware device structure of the present invention;

[0048] Among them: 01. plasma arc welding gun, 02. plasma arc welding power supply, 03. programmable logic controller, 04. cooling water tank, 05. gas cylinder, 06. industrial computer, 07. industrial camera, 08. workpiece to be welded;

[0049] Figure 2 It is a technical solution flow chart;

[0050] Figure 3 The schematic diagram of the penetration depth and variation curve obtained by the weld longitudinal section cutting method;

[0051] Figure 4 Schematic diagram of feature fusion scheme based on multi-view melt pool images;

[0052] Figure 5 It is a schematic diagram of the continuous images of the front of the molten pool at view angle 1;

[0053] Figure 6 It is a schematic diagram of the continuous images of the side of the front molten pool at view angle 2;

[0054] Figure 7 It is a schematic diagram of the continuous images of the tail of the front molten pool at view angle 3. DETAILED DESCRIPTION

[0055] The present invention will be further described below by way of embodiments in conjunction with the accompanying drawings, but is not limited thereto.

[0056] Example

[0057] A method for predicting the penetration degree of plasma arc welding based on multi-view molten pool image feature fusion, such as Figure 2 As shown, the steps include:

[0058] S1. Build a plasma arc welding experimental platform, such as Figure 1 As shown, it includes plasma arc welding system, control system, visual inspection system, etc.

[0059] S101. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power source and a welding gun cooling device; the welding gun is connected with an electric circuit, a water circuit and a gas circuit, which are respectively used for high-frequency arc initiation, circulating cooling water, and providing necessary ion gas and shielding gas; a compression nozzle is installed at the end of the welding gun, and the tungsten electrode is retracted in the nozzle.

[0060] S102. The control system includes a programmable logic controller (PLC), which together realize the three-dimensional motion control and arc starting and arc extinguishing control of the platform; wherein, the three-dimensional motion control is completed by the analog communication between the PLC and the servo motor, and the analog communication between the PLC and the plasma arc welding system realizes the arc starting and arc extinguishing functions and the setting of welding parameters; the programmable logic controller (PLC) is commercially available.

[0061] S103. The visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, where N≥3; the industrial computer controls the start and stop of camera shooting and the setting of related visual parameters, and the images collected by the camera in a hard-trigger manner are transmitted to the industrial computer via the Gigabit network; wherein, one camera obtains the image of the small holes on the back to indicate the actual state of penetration, and the other N cameras obtain the front molten pool images from multiple perspectives, and the camera positions include but are not limited to the front, side, and tail of the molten pool, which are respectively defined as perspective 1, perspective 2, perspective 3…perspective n, etc.

[0062] S2. Carry out plasma arc welding tests with different welding parameters under constant current and pulse current conditions, obtain the molten pool image data during the plasma arc welding process under multiple viewing angles, and store the images in the industrial computer in real time, naming the files with the current system time, accurate to milliseconds.

[0063] S201. The adjustable welding parameters include welding current, ion gas flow, shielding gas flow, welding speed, wire feeding speed, etc., covering the commonly used welding parameter ranges of the model application scenarios.

[0064] S202, each weld is taken as a group of tests, and the welding parameters defined in S201 are adjusted multiple times to perform tests, and molten pool image data corresponding to different penetration states and penetration depth values ​​are obtained.

[0065] S3. Preprocess the acquired molten pool image data, and label the front molten pool image frame by frame to characterize the real penetration state and molten depth value corresponding to the image.

[0066] S301. Process the missing values ​​of the molten pool image caused by the camera frame loss; match the images collected by N+1 cameras frame by frame according to the system time, calculate the time difference of the images collected by different cameras, define the time difference of the synchronous images to be less than 5ms, and delete the redundant asynchronous images.

[0067] S302, image preprocessing also includes operations such as ROI selection, denoising, and contrast enhancement to improve image quality.

[0068] S303. Calibrate the front molten pool images of multiple perspectives according to the actual penetration status reflected by the back pinhole image. For the back pinhole image, distinguish it by the image grayscale value. If there are more than 20 pixels with a grayscale value greater than 30, it is considered that a small hole appears, otherwise no small hole appears. Among them, the appearance of small holes is defined as full penetration, and the absence of complete small holes is defined as incomplete penetration. The labels of full penetration or incomplete penetration are calibrated on the back pinhole image and other perspective images synchronized with the back pinhole image.

[0069] S304. Obtain the weld penetration curve. The methods that can be used include weld longitudinal section cutting measurement, radiographic detection or industrial CT, etc. Figure 3 As shown in the figure, the position where the penetration depth is 0 mm and is about to increase is taken as the starting point of welding, and the corresponding position of the image on the weld is calculated according to the difference between the shooting time of the specific front molten pool image and the welding start time, so as to obtain the corresponding penetration value according to the penetration curve, and calibrate the penetration value on all images synchronized at the current corresponding time;

[0070] Among them, the weld position corresponding to the specific image (unit: mm) can be calculated by the following formula (1):

[0071] (1)

[0072] t The time corresponding to the current image, in seconds; t 0 is the welding start time, unit is s; v is the welding speed, in mm / s.

[0073] S305. According to the ratio of 6:2:2, the multi-view front molten pool image data with the labels of penetration status and penetration value are divided into a training set, a validation set and a test set, which are used for model training, validation and testing respectively.

[0074] S4. Based on the deep learning network, the penetration state prediction model and the weld penetration depth prediction model are established respectively.

[0075] S401. The model framework adopted is a combination model of convolutional neural network CNN and recurrent neural network RNN, which is used to extract and couple the temporal and spatial features of the sequence molten pool images; the convolutional neural network can select a variety of classic model frameworks such as VGG, ResNet, Inception, etc., which includes convolutional layers and pooling layers, removes the fully connected layer at the end of the network, and adds a global pooling layer to convert the data stream into a 1×256 one-dimensional vector sequence for transmitting time series data to the RNN; the recurrent neural network RNN ​​contains 2 layers of RNN layers, connected to a fully connected layer of 256 neurons; the final output layer is set according to the model requirements. If it is a penetration state prediction model, it is set to a classification layer, and the output is the penetration state, with 0 and 1 representing "not penetrated" and "fully penetrated" respectively; if it is a weld penetration prediction model, it is set to a regression layer, and the output is the penetration prediction value.

[0076] S402. Based on the front molten pool image data under a single viewing angle, model training for prediction of penetration state and weld penetration depth is performed respectively, and a deep learning prediction model under each viewing angle is obtained respectively; wherein each sequence sample of the input model contains 5 consecutive front molten pool images under a single viewing angle, and the output is the predicted value of penetration state or penetration depth in the next 0.5-1s.

[0077] S5. Use the trained model to extract features from the image sequence, use optimization algorithms such as genetic algorithm GA, etc. to determine the optimal weight combination, and assign weighted values ​​m to the image features under different viewing angles. n , the fused features F Can be represented as image features under a single view F n The weighted sum of:

[0078] (2)

[0079] The subscripts 1-n represent viewing angles 1-n; e.g. Figure 4 shown.

[0080] S501, the features of the image are represented by the feature vector of the previous layer of the output layer. According to the model structure defined in S401, the final feature representation of the 5 sequence images is a one-dimensional vector of 1×256.

[0081] S502, defining the evaluation index of the network model as the fitness function of the genetic algorithm, and randomly generating a variable sequence, including C groups of 1×n weight combinations, as the initial individuals in the population, where the C value is an integer and is manually defined when the model is initialized, and n is the number of image viewing angles;

[0082] Among them, for the penetration state prediction model, the fitness function can be defined as the model prediction accuracy (Accuracy)

[0083] (3)

[0084] TP, TN, FP, and FN represent true positive samples, true negative samples, false positive samples, and false negative samples in the classification results, respectively;

[0085] For the weld penetration prediction model, the root mean square error RMSE is used as the fitness function, and the formula is:

[0086] (4)

[0087] in, It is i The predicted value of samples, is the corresponding true value, N is the total number of samples.

[0088] S503, respectively bring in different weight combinations to calculate fusion features F , pass the data stream through the output layer of the network, and calculate the fitness value of each weight combination according to the fitness function defined in S502.

[0089] S504, the genetic algorithm will automatically retain the individual with the highest fitness as the parent generation, generate new offspring individuals through the crossover and mutation operations of the genetic algorithm, form a new generation population, repeat S503 for iteration and evaluation until the set termination condition is met, and output the optimal weight combination, wherein the termination condition is reaching the maximum number of iterations.

[0090] S505. In order to minimize the influence of the molten pool image quality on the model accuracy, a variety of different perspective combinations can be used during modeling, and the number of combined perspectives is two or more; such as perspective 1+perspective 2, perspective 1+perspective 3, perspective 1+perspective 2+perspective 3, etc.; the image features of a single perspective of the selected perspective are substituted into formula (2); the optimal fitness value is obtained through the genetic algorithm optimization described in S502-S504, and the optimal weight combination is obtained and substituted into formula (2); the comprehensive features under the selected combination scheme are obtained; the comprehensive features are calculated through the last output layer of the network to obtain the penetration state or the predicted value of the weld penetration depth.

[0091] At this point, the model of the single-view image has been trained and can extract the image features of each single view. Taking view 1 + view 3 as an example, substitute the features of these two individual views into formula (2) to calculate the comprehensive features. At this point, the weights are optimized through the genetic algorithm to obtain the best fitness value, corresponding to the optimal weight combination.

[0092] S6, deploy the final penetration state prediction model and weld penetration depth prediction model to the industrial computer. The industrial camera continuously shoots during the welding process. The model receives images in real time, extracts image features using the content of step S5, and predicts the penetration state and penetration value in the next 0.5s-1s. The calculation results are displayed in real time on the display device as a basis for real-time control of welding parameters to maintain the ideal penetration state and penetration value, thereby improving the quality of the weld. Multi-view real-time images such as Figure 5-Figure 7 shown.

[0093] As can be seen from the comparison in the table below, the multi-view melt pool image dataset used in this application can achieve higher accuracy than a single-view dataset. At the same time, the more viewpoints included in the dataset, the higher the model prediction accuracy and the better the effect.

[0094] Table 1 Model accuracy at different viewing angles

[0095]

[0096] Example 2

[0097] A plasma arc welding penetration prediction system based on multi-view molten pool image feature fusion includes a plasma arc welding system, a control system, and a visual detection system. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power supply, and a welding gun cooling device; the welding gun is connected with a circuit, a water circuit, and a gas circuit, which are respectively used for high-frequency arc initiation, circulating cooling water, and providing necessary ion gas and shielding gas; a compression nozzle is installed at the end of the welding gun, and the tungsten electrode is retracted in the nozzle; the control system includes a programmable logic controller PLC, which is used to jointly realize the three-dimensional motion control and arc starting and extinction control of the plasma arc welding gun; wherein the three-dimensional motion control is controlled by the PLC The analog communication with the servo motor is completed, and the analog communication between the PLC and the plasma arc welding system realizes the arc starting and arc extinction and the setting of welding parameters; the visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, N≥3; the images collected by the camera are transmitted to the industrial computer, and the industrial computer is deployed with a penetration state prediction model and a weld penetration depth prediction model to receive the camera image and output the penetration state and penetration depth value of the next 0.5s-1s; among them, one camera obtains the back hole image to indicate the actual penetration state, and the other N cameras obtain multi-angle front molten pool images.

Claims

1. A method for predicting penetration of plasma arc welding based on multi-view molten pool images. It is characterized in that The steps include: S1. Build a plasma arc welding experimental platform, including plasma arc welding system, control system, and visual inspection system; S2. Conduct plasma arc welding tests with different welding parameters under constant current and pulse current conditions, obtain molten pool image data during plasma arc welding from multiple viewing angles, and store the images in the industrial computer in real time, naming the files with the current system time, accurate to milliseconds; S3, preprocessing the acquired molten pool image data, and labeling the front molten pool image frame by frame to characterize the real penetration state and molten depth value corresponding to the image; The steps include: S301, processing the missing values ​​of the molten pool image caused by the camera frame loss; matching the images collected by N+1 cameras frame by frame according to the system time, calculating the time difference of the images collected by different cameras, defining the time difference of the synchronous images to be less than 5ms, and deleting the redundant non-synchronous images; S302, image preprocessing also includes ROI selection, denoising, and contrast enhancement; S303, calibrate the front molten pool images of multiple view angles according to the real penetration state reflected by the back pinhole image; distinguish the back pinhole image by the image gray value, if there are more than 20 pixels with a gray value greater than 30, it is considered that pinholes appear, otherwise no pinholes appear; wherein, the appearance of pinholes is defined as full penetration, and the absence of pinholes is defined as incomplete penetration, and the labels of full penetration or incomplete penetration are calibrated on the back pinhole image and other view angle images synchronized with the back pinhole image; S304, obtaining a weld penetration curve, the method including weld longitudinal section cutting measurement method, radiographic detection or industrial CT; taking the position where the penetration is 0 mm and is about to increase as the starting point of welding, calculating the corresponding position of the image on the weld according to the difference between the shooting time of a specific front molten pool image and the welding start time, thereby obtaining a corresponding penetration value according to the penetration curve, and calibrating the penetration value on all images synchronized at the current corresponding time; Among them, the weld position corresponding to the specific image Calculated by the following formula (1), (1) t The time corresponding to the current image, in seconds; t 0 is the welding start time, unit is s; v is the welding speed, in mm / s; S305, dividing the multi-view frontal molten pool image data with the labels of penetration status and penetration value into a training set, a validation set, and a test set according to a ratio of 6:2:2, which are used for model training, validation, and testing, respectively; S4. Based on the deep learning network, a penetration state prediction model and a weld penetration depth prediction model are established respectively; S5. Use the trained model to extract features from the image sequence, use the optimization algorithm genetic algorithm GA to determine the optimal weight combination, and assign weighted values ​​m to the image features under different viewing angles. n , the fused features F Can be represented as image features under a single view F n The weighted sum of: (2) Subscripts 1-n represent viewing angles 1-n; S6. The final penetration state prediction model and weld penetration depth prediction model are deployed to the industrial computer. The industrial camera takes pictures continuously during the welding process. The model receives images in real time, extracts image features using the contents of step S5, and predicts the penetration state and penetration depth values ​​for the next 0.5s-1s. The calculation results are displayed in real time on the display device as a basis for real-time control of welding parameters.

2. The plasma arc welding penetration prediction method based on multi-view molten pool images according to claim 1, It is characterized in that In step S1, S101. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power source and a welding gun cooling device; the welding gun is connected with an electric circuit, a water circuit and a gas circuit, which are respectively used for high-frequency arc initiation, circulating cooling water, and providing ion gas and shielding gas; the end of the welding gun is equipped with a compression nozzle, and the tungsten electrode is retracted in the nozzle; S102, the control system includes a programmable logic controller PLC, which together realizes the three-dimensional motion control and arc starting and arc extinction control of the platform; wherein the three-dimensional motion control is completed by the analog communication between the PLC and the servo motor, and the analog communication between the PLC and the plasma arc welding system realizes the setting of arc starting and arc extinction and welding parameters; S103. The visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, where N≥3; the industrial computer controls the start and stop of camera shooting and the setting of visual parameters, and the images collected by the camera in a hard-trigger manner are transmitted to the industrial computer via the Gigabit network; wherein, one camera obtains the image of the small holes on the back to indicate the actual state of penetration, and the other N cameras obtain the front molten pool images from multiple perspectives, and the camera positions include the front, side, and tail of the molten pool, which are defined as perspective 1, perspective 2, perspective 3…perspective n, respectively.

3. The plasma arc welding penetration prediction method based on multi-view molten pool images according to claim 1, It is characterized in that In step S2, S201, welding parameters include welding current, ion gas flow, shielding gas flow, welding speed, and wire feeding speed; S202, each weld is taken as a group of tests, and the welding parameters defined in S201 are adjusted multiple times to perform tests, and molten pool image data corresponding to different penetration states and penetration depth values ​​are obtained.

4. The plasma arc welding penetration prediction method based on multi-view molten pool images according to claim 1, It is characterized in that In step S4, S401, the model framework adopted is a combination model of a convolutional neural network CNN and a recurrent neural network RNN, which is used to extract and couple the temporal and spatial features of the sequence melt pool image; wherein the convolutional neural network includes a convolution layer and a pooling layer, removes the fully connected layer at the end of the network, and adds a global pooling layer to convert the data stream into a 1×256 one-dimensional vector sequence for transmitting time series data to the RNN; the recurrent neural network RNN ​​includes 2 layers of RNN layers, connected to a fully connected layer of 1 layer of 256 neurons; the final output layer is set according to the model requirements, if it is a melt penetration state prediction model, it is set to a classification layer, the output is the melt penetration state, and 0 and 1 are used to represent "not melted through" and "fully melted through" respectively; If it is a weld penetration prediction model, it is set as a regression layer and the output is the predicted penetration value; S402. Based on the front molten pool image data under a single viewing angle, model training for prediction of penetration state and weld penetration depth is performed respectively, and a deep learning prediction model under each viewing angle is obtained respectively; wherein each sequence sample of the input model contains 5 consecutive front molten pool images under a single viewing angle, and the output is the predicted value of penetration state or penetration depth in the next 0.5-1s.

5. The plasma arc welding penetration prediction method based on multi-view molten pool images according to claim 1, It is characterized in that In step S5, S501, the features of the image are represented by the feature vector of the previous layer of the output layer. According to the model structure defined in S401, the final feature representation of the five sequence images is a one-dimensional vector of 1×256; S502, defining an evaluation index of the network model as a fitness function of the genetic algorithm, and randomly generating a variable sequence including C groups of 1×n weight combinations as initial individuals in the population, wherein the C value is an integer and is manually defined when the model is initialized, and n is the number of image viewing angles; Among them, for the penetration state prediction model, the fitness function is defined as the model prediction accuracy Accuracy (3) TP, TN, FP, and FN represent true positive samples, true negative samples, false positive samples, and false negative samples in the classification results, respectively; For the weld penetration prediction model, the root mean square error RMSE is used as the fitness function, and the formula is: (4) in, It is i The predicted value of samples, is the corresponding true value, N is the total number of samples; S503, respectively bring in different weight combinations to calculate fusion features F , passing the data stream through the output layer of the network, and calculating the fitness value of each weight combination according to the fitness function defined in S502; S504, the genetic algorithm automatically retains the individual with the highest fitness as the parent generation, generates new offspring individuals through crossover and mutation operations, forms a new generation population, repeats S503 for iteration and evaluation until the set termination condition is met, and outputs the optimal weight combination, wherein the termination condition is reaching the maximum number of iterations; S505. When modeling, a plurality of different perspective combinations are used, and the number of perspectives to be combined is two or more; the image features under a single perspective of the selected perspective are substituted into formula (2); the best fitness value is obtained through the genetic algorithm optimization described in S502-S504, and the optimal weight combination is obtained and substituted into formula (2); the comprehensive features under the selected combination scheme are obtained; the comprehensive features are calculated through the last output layer of the network to obtain the penetration state or the predicted value of the weld penetration.

6. A plasma arc welding penetration prediction system based on multi-view molten pool images for implementing the method of claim 1, It is characterized in that It includes a plasma arc welding system, a control system, and a visual inspection system. The plasma arc welding system includes a plasma arc welding gun, a plasma arc welding power supply, and a welding gun cooling device. The welding gun is connected with an electric circuit, a water circuit, and an air circuit, which are respectively used for high-frequency arc starting, circulating cooling water, and providing ion gas and shielding gas. A compression nozzle is installed at the end of the welding gun, and the tungsten electrode is retracted in the nozzle. The control system includes a programmable logic controller PLC, which is used to jointly realize the three-dimensional motion control and arc starting and extinction control of the plasma arc welding gun. Among them, the three-dimensional motion control is completed by the analog communication between the PLC and the servo motor. The PLC The analog communication with the plasma arc welding system realizes the setting of arc starting and arc extinction and welding parameters. The visual inspection system includes N+1 industrial cameras triggered by synchronous TTL signals and an industrial computer equipped with a GPU, N≥3. The images collected by the camera are transmitted to the industrial computer, and the industrial computer deploys a penetration state prediction model and a weld penetration depth prediction model to receive the camera image and output the penetration state and penetration depth value in the next 0.5s-1s. Among them, one camera obtains the back hole image to indicate the actual penetration state, and the other N cameras obtain multi-angle front molten pool images.