C-ring welding quality classification method and system based on deep residual network

By constructing a dynamic fusion mechanism of dual-flow feature extraction network and process fluctuation energy index, the problem of difficult detection of latent defects in C-ring welding was solved, high-precision welding quality classification was achieved, and the stability and interpretability of the detection system were improved.

CN123181901APending Publication Date: 2026-11-27WUXI WEIYIFA PRECISION MACHINERY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611229377.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-13
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies are insufficient for effectively detecting latent defects in C-ring welding, and the low utilization rate of process data leads to inadequate detection stability.

Method used

A deep residual network-based approach is adopted to construct a dual-stream feature extraction network. By combining grayscale images and real-time process parameters during the welding process, adaptive feature fusion is performed through process fluctuation energy index and energy gating mechanism to achieve classification of welding quality.

Benefits of technology

It significantly improves the ability to detect latent defects, enhances the accuracy and robustness of detection, reduces the false positive and false negative rates, and strengthens the physical interpretability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181901A_ABST
    Figure CN123181901A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of quality detection, and particularly relates to a C-ring welding quality classification method and system based on a deep residual network, which comprises the following steps: collecting multi-modal heterogeneous data in a C-ring welding process and performing alignment preprocessing, the multi-modal heterogeneous data comprising a grayscale image of a post-welding weld area and a real-time process parameter sequence of the whole welding process; and constructing a double-flow feature extraction network, and extracting a spatial feature vector from the grayscale image by using an image residual branch, and simultaneously extracting a time sequence feature vector from the real-time process parameter sequence by using a time sequence residual branch. The application significantly improves the detection capability of hidden defects with normal appearance but internal quality abnormalities, and effectively reduces the misjudgment rate and the missed detection rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of quality inspection technology, specifically relating to a method and system for classifying the welding quality of C-rings based on deep residual networks. Background Technology

[0002] C-rings, as a key fastening component, are widely used in the machinery manufacturing industry. Their production process typically includes the traction, cutting, bending, and laser welding of the closure joint of the steel strip. Welding quality directly determines the tensile strength and service life of the C-ring, making it a core indicator of product quality control. Currently, the inspection of C-ring welding quality mainly relies on single machine vision technology. This involves capturing a grayscale image of the weld surface after welding and then identifying surface defects such as porosity, cracks, and weld misalignment through manual visual inspection or basic convolutional neural networks.

[0003] However, existing single-vision inspection technologies have significant blind spots and cannot effectively solve the problem of missing latent defects. In actual production, C-rings often suffer from incomplete welding or insufficient penetration. These defects often appear normal on the weld surface, with visual characteristics almost indistinguishable from good products. However, during the welding process, the laser output power or wire feed speed typically experiences abnormal fluctuations at the microsecond level. Images alone cannot capture these critical process information, leading to a large number of products with good appearance but substandard internal quality being shipped out, seriously affecting product reliability.

[0004] Furthermore, existing technologies have low feature utilization rates. Relying solely on image models requires forcibly extracting weak features by deepening the network layers, resulting in high computational costs and a high risk of overfitting. In reality, the process sensor data generated by the production equipment itself contains extremely valuable one-dimensional time-series quality criteria, which are not effectively utilized. The lack of comprehensive analysis of multimodal data makes it difficult for existing detection systems to maintain high accuracy and stability in complex and ever-changing industrial environments. Summary of the Invention

[0005] This invention provides a method and system for classifying the welding quality of C-rings based on deep residual networks, in order to solve the technical problems of difficult detection of latent defects, low utilization of process data, and insufficient detection stability in the prior art.

[0006] In a first aspect, the present invention provides a method for classifying the welding quality of C-rings based on deep residual networks, comprising the following steps: Multimodal heterogeneous data were collected during the C-ring welding process and aligned and preprocessed. The multimodal heterogeneous data included grayscale images of the weld area after welding and real-time process parameter sequences throughout the welding process. A dual-stream feature extraction network is constructed, which uses the image residual branch to extract spatial feature vectors from grayscale images, and uses the temporal residual branch to extract temporal feature vectors from real-time process parameter sequences. The process fluctuation energy index is calculated based on the real-time process parameter sequence. The process fluctuation energy index is used to assess the overall degree of abnormality of the welding process deviating from the standard process. Its calculation basis includes the degree of deviation of the data point from the benchmark value and the amplitude of the sudden change between adjacent data points. An energy gating mechanism is constructed, and dynamic weight coefficients are generated based on the energy index of process fluctuations. The spatial feature vector and temporal feature vector are adaptively weighted and fused using the dynamic weight coefficients to obtain a fused feature vector. The fused feature vector is then input into a classifier to output the welding quality category.

[0007] Furthermore, the steps of collecting multimodal heterogeneous data during the C-ring welding process and performing alignment preprocessing specifically include: Using the welding start signal and welding end signal as time windows, the real-time process parameter sequence is extracted, and the extracted sequence is resampled into a fixed-length input vector using a linear interpolation algorithm; The pixel values ​​of the grayscale image are normalized to the range of 0 to 1, and the values ​​in the input vector are subtracted from the standard value and then divided by the standard deviation.

[0008] Furthermore, in the step of constructing the dual-stream feature extraction network, the image residual branch adopts a network structure containing two-dimensional convolutional layers and two-dimensional residual modules; the temporal residual branch adopts a network structure containing one-dimensional convolutional layers and one-dimensional residual modules, wherein the one-dimensional convolutional layers are used to extract data fluctuation features along the time axis.

[0009] Furthermore, in the step of calculating the process fluctuation energy index based on the real-time process parameter sequence, the process fluctuation energy index... The calculation formula is as follows:

[0010] in, Indicates the total length of the sequence. Indicates the sampling point number. Indicates the first The value of each sampling point This represents the baseline mean of the standard good product process curve. Indicates the first The values ​​of each sampling point.

[0011] Furthermore, in the step of constructing the energy gating mechanism, the dynamic weighting coefficients... The calculation formula is as follows:

[0012] in, This represents the sensitivity adjustment coefficient. Represents the fluctuation energy threshold constant. This is the energy index for process fluctuations.

[0013] Furthermore, after obtaining the dynamic weight coefficients, the feature vectors are fused. The calculation formula is as follows:

[0014] in, Represents spatial eigenvectors. This represents the temporal feature vector.

[0015] Furthermore, the classifier includes a fully connected layer and a Softmax function, and the output weld quality categories include good, poor weld, porosity, and cracks.

[0016] Furthermore, the baseline mean of the standard good product process curve It is a constant derived by statistically analyzing the average power value of multiple consecutive good welding data.

[0017] Furthermore, the real-time process parameter sequence includes laser power values ​​and welding feed rate values.

[0018] Secondly, the present invention provides a C-ring welding quality classification system based on deep residual networks, including a memory and a processor. The memory stores computer program instructions, and when the computer program instructions are executed by the processor, the above-mentioned C-ring welding quality classification method based on deep residual networks is implemented.

[0019] The beneficial effects are: The core innovation of this invention lies in proposing a dynamic dual-stream fusion mechanism based on the process fluctuation energy index. Unlike traditional multimodal direct splicing, this invention designs a specialized mathematical model to evaluate abnormal energy during the welding process and dynamically adjusts the weight of visual and temporal features in the final decision-making process accordingly. This design endows the model with an expert-like attention mechanism: when process data is stable, it primarily relies on visual image judgment; when process data exhibits drastic fluctuations, it forcibly increases the weight of temporal data, significantly improving the detection capability of hidden defects that appear normal but have internal quality abnormalities.

[0020] Another beneficial effect of this invention is that it greatly enhances the physical interpretability of the AI ​​system. By introducing a clearly defined process fluctuation energy index, factory engineers can intuitively monitor the current process stability through numerical values, rather than relying entirely on the output of the black-box neural network. Simultaneously, this dual-stream complementary architecture exhibits higher robustness. Even when changes in ambient lighting in the production environment lead to image quality degradation, or when sensors occasionally exhibit high-frequency noise, the system can still maintain stable detection performance through dynamic weight adjustment, effectively reducing false positive and false negative rates. Attached Figure Description

[0021] Figure 1 This is a flowchart of the method of the present invention.

[0022] Figure 2 This is a schematic diagram of the laser power sensor monitoring data during the welding process of this invention.

[0023] Figure 3 This is a comparative schematic diagram of the feature space distribution under different technical means of the present invention. Detailed Implementation

[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] This invention addresses the challenges of detecting latent defects and low utilization of single visual features in C-ring laser welding by designing a dual-flow depth residual network that integrates image spatial features and process temporal features. This scheme simulates an experienced welding expert who observes both the post-weld appearance and the readings during the welding process, dynamically adjusting the weights of both in the final judgment through an adaptive mathematical gating mechanism.

[0026] An embodiment of the C-ring welding quality classification method based on deep residual networks provided by this invention: like Figure 1 As shown, the C-ring welding quality classification method based on deep residual networks includes the following steps: S1: Collect multimodal heterogeneous data during the C-ring welding process and perform alignment preprocessing.

[0027] A vision acquisition system and a sensor acquisition system are deployed at the laser welding station of the C-shaped ring. After welding, the vision acquisition system triggers an industrial camera to capture a high-resolution grayscale image of the weld area, which is recorded as the raw image data. The sensing and acquisition system uses a PLC or high-frequency acquisition card to record the core process parameters during the welding process in real time at a frequency of 1000Hz. These parameters mainly include the laser power value and the welding feed speed value, forming a one-dimensional time-series data stream.

[0028] Since the image is static while the sensor data is dynamic, logical alignment is required. Specifically, the welding start signal issued by the PLC is taken as the zero point of time. The welding end signal is the endpoint. The sensor data sequence within this time period is extracted. Then, a linear interpolation algorithm is used to resample all acquired sensor data sequences to a fixed length. For example, if the number of sampling points is fixed at 200, denoted as the input vector Finally, normalization is performed to normalize the pixel values ​​of the grayscale image to the range of 0 to 1; the sensor data is subtracted from its rated standard value and then divided by the standard deviation to eliminate the influence of dimensions.

[0029] By synchronously collecting and standardizing multimodal heterogeneous data, the differences between data sources in the time and numerical dimensions are eliminated, providing a precise and consistent input basis for the subsequent two-stream network and effectively avoiding feature misalignment caused by data asynchrony.

[0030] S2: Construct a dual-stream feature extraction network, using the image residual branch to extract spatial feature vectors from grayscale images, and simultaneously using the temporal residual branch to extract temporal feature vectors from real-time process parameter sequences.

[0031] This step constructs a neural network architecture with two parallel branches: the image residual branch and the temporal residual branch.

[0032] Image residual branch (2D-Stream): Input preprocessed image This branch employs an improved ResNet-18 architecture, containing a 7x7 initial convolutional layer and four residual modules. Each residual module consists of two 3x3 2D convolutional layers and skip connections. After a global average pooling layer, the output is a vector of length [length missing]. The spatial feature vector, denoted as This vector represents spatial information such as texture and shape of the weld surface.

[0033] Temporal residual branch (1D-Stream): Input preprocessed sensor vector This branch is designed as a dedicated one-dimensional residual network, replacing the 2D convolutional layers in ResNet with 1D convolutional layers. The kernel size is set to 3 or 5, and it is used to extract trend features of data fluctuations along the time axis. It also contains 4 sets of one-dimensional residual modules. After one-dimensional global average pooling, it is mapped to the same length as the image branch through a fully connected layer. The time-series feature vector, denoted as This vector represents the timing information such as stability and abrupt changes in the welding process.

[0034] By designing dedicated residual network structures for different data modalities, the texture details of the image and the temporal trends of the sensor data can be preserved to the greatest extent. Welding quality is encoded in depth from two dimensions: the appearance of the welding result and the changing trend of the welding process.

[0035] S3: Calculate the process fluctuation energy index based on the real-time process parameter sequence.

[0036] To achieve intelligent integration, it is necessary to first assess the degree of anomaly in the current welding process using mathematical methods. This invention defines a process fluctuation energy index. .

[0037] The calculation formula is as follows:

[0038] in, This represents the total length of the sequence, i.e., the length set in step S1. For example, 200; This represents the index of the sampling point, ranging from 1 to... ; Indicates the first [number] in the sensor data sequence The values ​​of each sampling point, such as the current laser power value, are obtained directly from the sensor vector; This represents the baseline mean of the standard good product process curve. This value is a fixed constant derived from the average power value of 100 consecutive good product welding data during the system initialization phase. Indicates the first The values ​​of each sampling point.

[0039] To more clearly explain the calculation process of this formula, a calculation example is as follows: Assuming the total length of the sampling sequence Benchmark mean ; Select two adjacent points in the sequence where fluctuations occur for calculation: set up , First, calculate the deviation term: Then calculate the mutation amplification factor: Factor value The instantaneous energy contribution at this point is: .

[0040] In contrast, if If the deviation term is 0, the energy contribution is 0; or if the value is slowly drifting and the amplification factor is close to 1, the energy contribution is determined only by the deviation.

[0041] It can be seen that in the formula It acts as a mutation amplification factor. When the process is stable, the difference is close to 0 and the factor is close to 1, so it does not amplify the deviation. When a sudden change occurs, the difference increases, and the factor amplifies the effect of the deviation term by a factor, thus keenly detecting the anomaly.

[0042] By introducing an energy index calculation formula that includes a bias term and a mutation amplification factor, it is possible to capture latent defect signals with normal mean but with instantaneous violent fluctuations more sensitively than simple variance calculation, thus providing a reliable physical basis for subsequent dynamic fusion.

[0043] S4: Construct an energy gating mechanism, generate dynamic weight coefficients based on the process fluctuation energy index, and perform feature fusion and classification.

[0044] After obtaining the image feature vector and time-series feature vector, a dynamic weighting coefficient is generated based on the process fluctuation energy index calculated by S3. .

[0045] The calculation formula is as follows:

[0046] in, This is the sensitivity adjustment coefficient, for example, set to 3; This is the fluctuation energy threshold constant, for example, set to 500.

[0047] Calculation example: Assumptions , ; Scenario A, stable process: if the calculated Inside the exponent term: ; If it is an extremely large number, causing the denominator to be extremely large, then... At this point, the network mainly relies on image features.

[0048] Scenario B, process abnormality: if the calculated Inside the exponent term: ; If the denominator is close to 0 and the fraction is close to 1, then... At this point, the network forcibly increases the weight of time-series features.

[0049] Final fused feature vector The calculation is as follows:

[0050] This operation achieves attention redistribution at the feature level, and finally, the feature vectors are fused. The input is fed into a classifier containing a fully connected layer and a Softmax function, and the output is the probability value of four categories: good product, poor solder joint, porosity and crack. The highest probability value is taken as the result.

[0051] Combination Figure 2 and Figure 3 Explanation of the effects of this embodiment: like Figure 2 As shown, the laser power sensor monitoring data during the welding process is illustrated. The solid line in the figure represents the normal welding process, with values ​​fluctuating steadily around 1500W; the dashed line represents the abnormal curve when there are defects in the weld. In the area marked in the background, the power curve shows a sharp drop and violent oscillations. This invention, by introducing a one-dimensional sensor data stream, can capture these microsecond-level process anomalies that are difficult to detect in images.

[0052] like Figure 3 The diagram illustrates a comparison of feature space distributions. (a) shows the distribution relying solely on image features, where good and defective samples are mixed together with blurred boundaries; (b) shows the distribution after the dual-stream dynamic fusion of this invention, where the good and defective clusters are completely separated in space, the inter-class distance is significantly increased, and a clear separating band is formed. This intuitively demonstrates that this invention successfully achieves high-quality defect separation by fusing process fluctuation energy information.

[0053] By using a dynamic feature fusion mechanism based on energy gating, visual texture information can be fully utilized when the process is stable, while automatically switching to sensor timing information when the process fluctuates. This effectively solves the limitations of a single modality when facing complex defects and significantly improves the accuracy and robustness of the classification system.

[0054] An embodiment of the C-ring welding quality classification system based on deep residual networks provided by this invention: The C-ring welding quality classification system based on deep residual networks includes a processor and a memory. The memory stores computer program instructions, which, when executed by the processor, implement the aforementioned C-ring welding quality classification method based on deep residual networks.

[0055] The C-ring welding quality classification system based on deep residual networks also includes other components well known to those skilled in the art, such as communication interfaces. Their setup and functions are known in the art and will not be described in detail here.

[0056] In this invention, the aforementioned memory can be any tangible medium containing or storing a program that can be used or combined with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc., or any other medium that can be used to store desired information and can be accessed by an application, module, or both. Any such computer storage medium can be part of a device or accessible to or connected to a device. Any application or module described in this invention can be implemented using computer-readable / executable instructions stored or otherwise maintained by such a computer-readable medium.

[0057] The above are all preferred embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Therefore, all equivalent changes made in accordance with the structure, shape and principle of the present invention should be covered within the scope of protection of the present invention.

Claims

1. A method for classifying the welding quality of C-rings based on deep residual networks, characterized in that, Includes the following steps: Multimodal heterogeneous data were collected during the C-ring welding process and aligned and preprocessed. The multimodal heterogeneous data included grayscale images of the weld area after welding and real-time process parameter sequences throughout the welding process. A dual-stream feature extraction network is constructed, which uses the image residual branch to extract spatial feature vectors from grayscale images, and uses the temporal residual branch to extract temporal feature vectors from real-time process parameter sequences. The process fluctuation energy index is calculated based on the real-time process parameter sequence. The process fluctuation energy index is used to assess the overall degree of abnormality of the welding process deviating from the standard process. Its calculation basis includes the degree of deviation of the data point from the benchmark value and the amplitude of the sudden change between adjacent data points. An energy gating mechanism is constructed, and dynamic weight coefficients are generated based on the energy index of process fluctuations. The spatial feature vector and temporal feature vector are adaptively weighted and fused using the dynamic weight coefficients to obtain a fused feature vector. The fused feature vector is then input into a classifier to output the welding quality category.

2. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, The steps of acquiring multimodal heterogeneous data during the C-ring welding process and performing alignment preprocessing specifically include: Using the welding start signal and welding end signal as time windows, the real-time process parameter sequence is extracted, and the extracted sequence is resampled into a fixed-length input vector using a linear interpolation algorithm; The pixel values ​​of the grayscale image are normalized to the range of 0 to 1, and the values ​​in the input vector are subtracted from the standard value and then divided by the standard deviation.

3. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, In the step of constructing the dual-stream feature extraction network, the image residual branch adopts a network structure containing two-dimensional convolutional layers and two-dimensional residual modules; the temporal residual branch adopts a network structure containing one-dimensional convolutional layers and one-dimensional residual modules, wherein the one-dimensional convolutional layers are used to extract data fluctuation features along the time axis.

4. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, In the step of calculating the process fluctuation energy index based on real-time process parameter sequences, the process fluctuation energy index... The calculation formula is as follows: in, Indicates the total length of the sequence. Indicates the sampling point number. Indicates the first The value of each sampling point This represents the baseline mean of the standard good product process curve. Indicates the first The values ​​of each sampling point.

5. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, In the process of constructing an energy gating mechanism, dynamic weighting coefficients The calculation formula is as follows: in, This represents the sensitivity adjustment coefficient. Represents the fluctuation energy threshold constant. This is the energy index for process fluctuations.

6. The C-ring welding quality classification method based on deep residual networks according to claim 5, characterized in that, After obtaining the dynamic weight coefficients, the feature vectors are fused. The calculation formula is as follows: in, Represents spatial eigenvectors. This represents the temporal feature vector.

7. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, The classifier consists of a fully connected layer and a Softmax function, and the output weld quality categories include good, poor weld, porosity, and cracks.

8. The C-ring welding quality classification method based on deep residual networks according to claim 4, characterized in that, The baseline mean of the standard good product process curve It is a constant derived by statistically analyzing the average power value of multiple consecutive good welding data.

9. The C-ring welding quality classification method based on deep residual networks according to claim 1, characterized in that, The real-time process parameter sequence includes laser power value and welding feed speed value.

10. A C-ring welding quality classification system based on deep residual networks, characterized in that, It includes a memory and a processor, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the C-ring welding quality classification method based on deep residual networks as described in any one of claims 1-9 is implemented.