Electric arc fuse wire additive manufacturing online spectrum quantitative detection method and device
Through the improved Alexnet network model and online spectral detection technology, the offline problem of pore detection in aluminum alloy arc additive manufacturing is solved, real-time prediction and remedy of pores are achieved, and the quality and manufacturing efficiency of aluminum alloy components are improved.
Patent Information
- Application Number
- CN202410647360.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-23
AI Technical Summary
In the existing technology, pore detection during the arc additive manufacturing process of aluminum alloys mainly relies on offline methods, which results in high time consumption, high cost and the inability to predict the generation of pores, which hinders the further development of the manufacturing process.
The improved Alexnet network model is used for online quantitative spectral detection, arc spectrum signals are collected through a spectrometer, and the lightweight Alexnet network model is used to predict the porosity of aluminum alloy components to achieve real-time detection and prediction of pores.
The online detection of pores in the aluminum alloy arc additive manufacturing process is realized, and the generation of pores can be predicted in time and remedial measures can be taken to reduce pores, improve component quality, and reduce the amount of model parameters and calculation time while maintaining accuracy.
Smart Images

Figure CN118706758A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of arc additive manufacturing pore monitoring, and in particular to an online spectral quantitative detection method for arc fuse additive manufacturing. Background Art
[0002] Porosity is the most common defect in the arc additive manufacturing process. Taking the arc additive manufacturing of aluminum alloys as an example, in the arc additive manufacturing process of aluminum alloys, the welding wire melts to form liquid aluminum. A large amount of hydrogen can be dissolved in the liquid aluminum. The molten metal in the molten pool cools and solidifies quickly, while solid aluminum hardly dissolves hydrogen. Therefore, the hydrogen in the liquid aluminum does not have time to escape and remains in the solidified aluminum alloy component to form pores. Porosity will not only reduce the strength and hardness of the printed component, and reduce the mechanical properties of the product, but also reduce the fatigue life of the printed component, making the product prone to cracks or even fractures. In addition, pores will also affect the corrosion resistance of the component.
[0003] At present, the monitoring of porosity in the process of aluminum alloy arc additive manufacturing is achieved through offline detection after processing. After the processing is completed, CT and other methods are used to detect the internal porosity of the printed component. These offline detection methods have the disadvantages of being time-consuming, expensive, and unable to predict and avoid the generation of porosity, which hinders the further development of aluminum alloy arc additive manufacturing. The applicant hereby proposes an online spectral quantitative detection method for arc fuse additive manufacturing. Summary of the invention
[0004] In order to solve the deficiencies in the prior art, the present invention provides an online spectral quantitative detection method for arc fuse additive manufacturing.
[0005] The technical solution of the present invention is:
[0006] The present invention provides an online spectral quantitative detection method for arc fuse additive manufacturing, comprising the following steps:
[0007] S1: Improve the Alexnet network model to obtain a lightweight Alexnet network model;
[0008] S2: Train the lightweight Alexnet network model;
[0009] S3: starting the arc additive manufacturing device, and using a spectrometer to collect arc spectrum signals during the manufacturing process of the arc additive manufacturing device, where the arc spectrum signals are a one-dimensional array;
[0010] S4: The arc spectrum signal is reconstructed and concatenated from a one-dimensional array into a two-dimensional array by using the resize function provided by Python;
[0011] S5: The arc spectrum signal reconstructed and spliced into a two-dimensional array by python is used as the input of the lightweight Alexnet network model, and the lightweight Alexnet network model will output the porosity of the corresponding printed aluminum alloy component.
[0012] Further, step S1 comprises:
[0013] Replace the last three ordinary convolutional layers in the Alexnet network model with three-layer GHPA modules;
[0014] Use the solubility curve of hydrogen in metal materials as the activation function;
[0015] DW convolution is used to replace the ordinary convolution of the first two ordinary convolution layers in the Alexnet network model.
[0016] Further, step S2 comprises:
[0017] S201: The two features of electron density and electron temperature are manually input into the lightweight Alexnet network model;
[0018] S202: Combining artificial features with features learned by deep learning of lightweight Alexnet network model;
[0019] S203: Use the output features of the common convolutional layer as the input of the fully connected layer to predict the electron density and electron temperature;
[0020] S204: Use the output features of the third-layer GHPA module as the input of another fully connected layer to predict the porosity;
[0021] S205: Finally, the difference between the predicted electron temperature, electron density, porosity and the actual value is used as the loss function. The specific loss function is:
[0022] loss = a1(T e_p -T e ) 2 +a2(D e_p -D e ) 2 +a3(p _p -p) 2
[0023] Among them, a1, a2, and a3 are coefficients of three different losses, which are taken as 0.1, 0.1, and 0.8 in this algorithm. Te_p, Te, De_p, De, p_P, and p are the predicted electron temperature, electron temperature, predicted electron density, electron density, predicted porosity, and porosity, respectively.
[0024] Furthermore, the input layer of the lightweight Alexnet network model can accept images with an input feature size of 64×64.
[0025] The present invention also proposes an online spectral quantitative detection device for arc fuse additive manufacturing based on the above-mentioned online spectral quantitative detection method for arc fuse additive manufacturing, comprising an arc additive manufacturing device, a spectrometer and an external computer. The spectrometer is fixedly mounted on the welding robot arm of the arc additive manufacturing device through a clamp and connected to the external computer, and the spectrometer probe is perpendicular to the side of the welding wire; the external computer is installed with python for reconstructing spliced arc spectral signals and a lightweight Alexnet network model for analyzing and predicting the porosity of aluminum alloy components.
[0026] Furthermore, the distance between the spectrometer probe and the central area of the welding wire is 2.5-3.5 cm.
[0027] Furthermore, the clamp is a crab claw clamp.
[0028] The beneficial effects achieved by the present invention are:
[0029] After the lightweight Alexnet network model of the present invention is trained, the spectrometer records the changes in the arc spectrum signal during the arc additive manufacturing process and converts it from a one-dimensional array to a two-dimensional array through python as the input of the lightweight Alexnet, so as to realize online detection of porosity defects in the aluminum alloy arc additive manufacturing process, and can timely predict the generation of porosity and take remedial measures in advance to reduce the porosity, thereby obtaining high-quality aluminum alloy components.
[0030] Compared with the Alexnet network model, the lightweight Alexnet network model in the present invention reduces the number of parameters by 6% and the number of floating-point operations by 50% while maintaining the same accuracy, thereby improving the calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of the processing flow of the present invention.
[0032] Figure 2 It is a schematic diagram of the technical route of the present invention.
[0033] Figure 3 Schematic diagram of monitoring equipment of the present invention.
[0034] Figure 4 It is a diagram of the improved Alexnet network structure of the present invention.
[0035] Figure 5 It is a schematic diagram of channel-by-channel convolution of the present invention. DETAILED DESCRIPTION
[0036] To facilitate those skilled in the art to understand the present invention, the specific implementation methods of the present invention are described below in conjunction with the accompanying drawings. The embodiments described in the present invention are only a part of the embodiments, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by those of ordinary skill in the art without making any creative work are within the scope of protection of the present invention.
[0037] like Figure 1-4 As shown, in this embodiment of the present invention, an online spectral quantitative detection device for arc fuse additive manufacturing includes an arc additive manufacturing device, a spectrometer (no specified model, the sample code is written according to the ATP2400 spectrometer of Optiancheng Company) and an external computer. The spectrometer is fixedly mounted on the welding robot arm of the arc additive manufacturing device through a fixture and connected to the external computer, and the spectrometer probe is perpendicular to the side of the welding wire; the spectrometer and the welding robot arm are synchronized and arc spectrum signals are collected. The external computer is installed with python for reconstructing spliced arc spectrum signals and a lightweight Alexnet network model for analyzing and predicting the porosity of aluminum alloy components.
[0038] The distance between the spectrometer probe and the center area of the welding wire is 2.5-3.5 cm;
[0039] The clamp is preferably a crab claw clamp;
[0040] The present invention proposes an online spectral quantitative detection method for arc fuse additive manufacturing based on the above-mentioned arc fuse additive manufacturing device. The method mainly uses a spectrometer to collect arc spectrum signals generated in the process of manufacturing aluminum alloy components by the arc fuse additive manufacturing device, reconstructs and splices the spectrum signals into a two-dimensional array by python, and predicts the porosity degree in the manufacturing process of aluminum alloy components through lightweight Alexnet. The method mainly includes the following steps:
[0041] S1: Improve the Alexnet network model to obtain a lightweight Alexnet network model;
[0042] Specifically, the improvement of the Alexnet network model includes the following steps:
[0043] S101: Replace the last three ordinary convolutional layers in the Alexnet network model with three GHPA modules; the original Alexnet has a total of 8 layers, and the specific structure is 5 convolutional layers, 2 fully connected hidden layers and 1 fully connected output layer; the specific structure of the replaced Alexnet is 2 convolutional layers, 3 GHPA modules, 2 fully connected hidden layers and 1 fully connected output layer; wherein the GHPA (Global Hierarchical Pooling Attention) module uses HPA (Hadamard Product Attention Mechanism) to extract features from multiple angles by grouping input features and performing HPA operations on different axes; thereby improving the feature extraction capability of the lightweight Alexnet network model and reducing the number of parameters to make it faster in calculation.
[0044] Specifically, the GHPA module has only linear complexity, and its algorithm pseudo code is as follows:
[0045]
[0046] The input features are equally divided into 4 groups (x1, x2, x3, x4) in the channel dimension, and HPA is performed on the height-width, channel-height, and channel-width axes of x1, x2, and x3, while x4 only uses DW on the feature map; finally, the four groups are connected along the channel dimension and referenced to another DW to integrate information from different angles.
[0047] S102: Use the solubility curve of hydrogen in metal materials as the activation function; in the arc additive manufacturing process, the generation of pores is mainly caused by the huge difference in the solubility of hydrogen in the liquid and solid states of metal materials. Embedding this physical information as an activation function into the lightweight Alexnet network model can improve the performance (accuracy) and interpretability of the lightweight Alexnet network model while reducing the lightweight Alexnet network model's dependence on data.
[0048] S103: Use DW convolution to replace the ordinary convolution of the first two layers of ordinary convolution layers in the Alexnet network model; further reduce the number of model parameters and shorten the calculation time of the model.
[0049] The DW (Depthwise Separable) convolution is a convolution operation that divides the standard ordinary convolution operation into two steps: depthwise convolution and point-by-point convolution. By combining depthwise convolution and point-by-point convolution, DW convolution can reduce the amount of parameters and calculations. Compared with standard ordinary convolution operations, DW convolution only requires a small-scale convolution operation at each position, thereby providing more efficient calculation and lighter model design, and achieving more efficient feature extraction and model compression.
[0050] like Figure 5 As shown in the figure, the channel-by-channel convolution: a convolution kernel only convolves one channel to obtain a feature map.
[0051] The point-by-point convolution: Ordinary 1×1 convolution is used to achieve the transformation of channel dimension.
[0052] The metal material is aluminum alloy or the like;
[0053] S2: Train the lightweight Alexnet network model;
[0054] Specifically, the training of the lightweight Alexnet network model includes the following steps:
[0055] S201: The two features of electron density and electron temperature are manually input into the lightweight Alexnet network model;
[0056] S202: Combining artificial features with features learned from deep learning of lightweight Alexnet network model:
[0057] The features learned through deep learning are specifically a 1152-dimensional feature vector directly extracted from the encoder part of the lightweight Alexnet network model, which increases the feature learning capability.
[0058] S203: Use the output features of the common convolutional layer as the input of the fully connected layer to predict the electron density and electron temperature;
[0059] S204: Use the output features of the third-layer GHPA module as the input of another fully connected layer to predict the porosity;
[0060] S205: Finally, the difference between the predicted electron temperature, electron density, porosity and the actual value is used as the loss function. The specific loss function is:
[0061] loss = a1(T e_p -T e ) 2 +a2(D e_p -D e ) 2 +a3(p _p -p) 2
[0062] Among them, a1, a2, and a3 are coefficients of three different losses, which are taken as 0.1, 0.1, and 0.8 in this algorithm. Te_p, Te, De_p, De, p_P, and p are the predicted electron temperature, electron temperature, predicted electron density, electron density, predicted porosity, and porosity, respectively. Embedding artificial features into the lightweight Alexnet network model through auxiliary tasks can better learn the discriminative features and greatly improve the prediction accuracy of the lightweight Alexnet network model.
[0063] S3: starting the arc additive manufacturing device, and using a spectrometer to collect arc spectrum signals during the manufacturing process of the arc additive manufacturing device, where the arc spectrum signals are a one-dimensional array;
[0064] S4: The arc spectrum signal is reconstructed and concatenated from a one-dimensional array into a two-dimensional array by using the resize function provided by Python. A lightweight Alexnet network model is implemented to automatically extract features.
[0065] S5: The arc spectrum signal reconstructed and spliced into a two-dimensional array by python is used as the input of the lightweight Alexnet network model, and the lightweight Alexnet network model will output the porosity of the corresponding printed aluminum alloy component.
[0066] After the lightweight Alexnet network model of the present invention is trained, the spectrometer records the changes in the arc spectrum signal during the arc additive manufacturing process and converts it from a one-dimensional array to a two-dimensional array through python as the input of the lightweight Alexnet, so as to realize online detection of porosity defects in the aluminum alloy arc additive manufacturing process, and can timely predict the generation of porosity and take remedial measures in advance to reduce the porosity, thereby obtaining high-quality aluminum alloy components.
[0067] The specific settings of the lightweight Alexnet network model in the present invention (taking the ATP2400 spectrometer as an example) are as follows:
[0068] Its input layer can accept input feature images of size 64×64.
[0069] The convolutional layer, pooling layer and CHPA module structure and specific parameters are shown in the following table:
[0070]
[0071] The main task fully connected layer structure and specific parameters are shown in the following table:
[0072] Serial number Input Dimensions Output Dimensions Drop out ratio Dropl none none 0.5 FC1 1154 2048 none Dropl none none 0.5 FC2 2048 2048 none FC3 2048 2 none
[0073] The auxiliary fully connected layer structure and specific parameters are shown in the following table:
[0074] Serial number Input Dimensions Output Dimensions Drop out ratio |Dropl none none 0.5 FCl 1152 2048 none |Dropl none none 0.5 FC2 2048 2048 none FC3 2048 2 none
[0075] The performance comparison of the Alexnet network model and the lightweight Alexnet network model is shown in the following table:
[0076]
[0077] The lightweight Alexnet network model of the present invention reduces the number of parameters by 6% and the number of floating-point operations by 50% while maintaining the accuracy, thereby improving the calculation speed.
[0078] The above-described embodiments of the present invention do not constitute a limitation on the protection scope of the present invention. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the claims of the present invention.
Claims
1. A method for online spectral quantitative detection of arc fuse additive manufacturing, Features: S1: Improve the Alexnet network model to obtain a lightweight Alexnet network model; S2: Train the lightweight Alexnet network model; S3: starting the arc additive manufacturing device, and using a spectrometer to collect arc spectrum signals during the manufacturing process of the arc additive manufacturing device, where the arc spectrum signals are a one-dimensional array; S4: The arc spectrum signal is reconstructed and concatenated from a one-dimensional array into a two-dimensional array by using the resize function provided by Python; S5: The arc spectrum signal reconstructed and spliced into a two-dimensional array by python is used as the input of the lightweight Alexnet network model, and the lightweight Alexnet network model will output the porosity of the corresponding printed aluminum alloy component.
2. The online spectral quantitative detection method for arc fuse additive manufacturing according to claim 1, Features In S1: the last three ordinary convolutional layers in the Alexnet network model are replaced by three-layer GHPA modules.
3. The online spectral quantitative detection method for arc fuse additive manufacturing according to claim 2, Features In S1: the solubility curve of hydrogen in metal materials is used as the activation function.
4. The online spectral quantitative detection method for arc fuse additive manufacturing according to claim 3, Features In S1: DW convolution is used to replace the ordinary convolution of the first two layers of ordinary convolution layers in the Alexnet network model.
5. The online spectral quantitative detection method for arc fuse additive manufacturing according to claim 4, Features In S2: S201: The two features of electron density and electron temperature are manually input into the lightweight Alexnet network model; S202: Combine the manually input features with the features learned by the lightweight Alexnet network model; S203: Use the output features of the common convolutional layer as the input of the fully connected layer to predict the electron density and electron temperature; S204: Use the features output by the third-layer GHPA module as the input of another fully connected layer to predict the porosity; S205: Finally, the difference between the predicted electron temperature, electron density, porosity and the actual value is used as the loss function. The specific loss function is: loss=a 1 (T e_p -T e ) 2 +a 2 (D e_p -D e ) 2 +a 3 (p _p -p) 2 Among them, a1, a2, and a3 are coefficients of three different losses, which are taken as 0.1, 0.1, and 0.8 in this algorithm. Te_p, Te, De_p, De, p_P, and p are the predicted electron temperature, electron temperature, predicted electron density, electron density, predicted porosity, and porosity, respectively.
6. The online spectral quantitative detection method for arc fuse additive manufacturing according to claim 5, Features: The input layer of the lightweight Alexnet network model can accept images with an input feature size of 64×64.
7. An arc fuse additive manufacturing online spectral quantitative detection device used in an arc fuse additive manufacturing online spectral quantitative detection method according to claims 1-6, Features: The invention comprises an arc additive manufacturing device, a spectrometer and an external computer. The spectrometer is fixedly mounted on a welding robot arm of the arc additive manufacturing device through a clamp and is connected to the external computer. The probe of the spectrometer is perpendicular to the side of the welding wire. The external computer is installed with a python for reconstructing spliced arc spectrum signals and a lightweight Alexnet network model for analyzing and predicting the porosity of aluminum alloy components.
8. The online spectral quantitative detection device for arc fuse additive manufacturing according to claim 7, Features: The distance between the spectrometer probe and the center area of the welding wire is 2.5-3.5 cm.
9. The arc fuse additive manufacturing online spectral quantitative detection device according to claim 8, Features: The clamp is a crab claw clamp.
Citation Information
Patent Citations
Electric arc image and electric arc spectrum information collaborative welding wire component online detection method
CN112017183A
Stainless steel weld defect detection method based on multi-domain expression data enhancement and model self-optimization
CN113129266A
Performance predictor for semiconductor manufacturing process
CN115023798A
Additive manufacturing self-feedback monitoring system and method based on convolutional neural network
CN116352113A
Artificial board sizing uniformity detection method, control method and device
CN117470142A
