A method and system for intelligent detection of weld defects based on cloud computing

Through the intelligent detection system of welding seam defects based on cloud computing, the convolutional neural network model and industrial cameras are used to collect welding seam images in real time, which solves the problems of low welding seam defect detection efficiency and insufficient recognition ability in the existing technology, and achieves efficient and Accurate weld defect detection and optimization.

CN118537340BActive Publication Date: 2024-10-25GONGJIANG SHIP MARINE ENGINEERING DESIGN RESEARCH WUHAN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010328.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-25
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

Existing weld defect detection technology is inefficient and susceptible to human factors. Simple grayscale value division cannot fully reflect the complexity of defects, resulting in false detections and missed detections. Specific defect types such as cracks and pores cannot be identified in detail, which limits the The application scope and accuracy of the detection system.

Method used

An intelligent weld defect detection system based on cloud computing is adopted, including an image acquisition module, an image preprocessing module, a model training and deployment module and a continuous optimization module. Weld images are collected in real time through industrial cameras for normalization, denoising and data processing. Enhanced processing, using the convolutional neural network model for defect detection, and calculating the weld defect index through the defect detection evaluation module to achieve quantitative evaluation and optimization.

Benefits of technology

It improves the accuracy and efficiency of weld inspection, reduces manual intervention, ensures the reliability and diversity of inspection, can refine the identification of defect types, improves the application scope and accuracy of the inspection system, simplifies the decision-making process, and through Continuous optimization improves the model’s detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537340B_ABST
    Figure CN118537340B_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for intelligent detection of weld defects based on cloud computing, which relate to the field of intelligent detection technology. The system consists of five modules: an image acquisition module, an image preprocessing module, a model training and deployment module, a defect detection evaluation module and a continuous optimization module. The weld images are collected by installing an industrial camera and uploaded to a cloud server, thereby reducing manual intervention and improving production efficiency and reliability of data acquisition. The image preprocessing module is used to improve the clarity and diversity of the weld images, and the weld image attribute index Txsx is evaluated to quantify the weld image quality and features, thereby improving the accuracy of defect recognition by the detection model. Finally, duplicate weld images are removed to avoid data redundancy. The weld defect index Hqxs is calculated to quantitatively evaluate the weld defects, while clarifying the level division and simplifying the decision-making process. Furthermore, the repair efficiency and effect are improved by sorting various weld defects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent detection technology, and in particular to a method and system for intelligent detection of weld defects based on cloud computing. Background Art

[0002] The weld defect detection system is used to ensure the welding quality and avoid defects that may occur during the welding process, such as cracks, pores, and lack of fusion. These defects will lead to a decrease in structural strength, affect service life, and even cause safety accidents. Traditional manual detection methods are inefficient and easily affected by human factors.

[0003] In the invention with application number 201310080871.4, the invention relates to a weld defect detection method, including pixel ratio judgment and image shape judgment. Pixel ratio judgment: determine the weld position, collect weld images, lock a rectangular frame at the weld position of the image, calculate the grayscale value of each pixel point of the image in the rectangular frame, divide the grayscale value into low-value grayscale of 0-128 and high-value grayscale of 128-255, when the ratio of low-value grayscale of each pixel point of the image exceeds 85%, the weld has defects; when the ratio is less than 85%, perform image shape judgment; image shape judgment: perform binary conversion on the collected weld image, perform edge extraction on the converted image, extract the shape of the weld in the image, and judge the shape of the weld through the eight-connected graph algorithm. When the shape of the weld is an irregular figure, the weld has defects. The present invention transforms the detection work that originally needs to be completed manually into a computer, reduces labor costs, and is more stable and efficient.

[0004] In this technical solution, "the grayscale value is divided into low-value grayscale of 0-128 and high-value grayscale of 128-255. When the proportion of low-value grayscale of each pixel in the image exceeds 85%, there is a defect in the weld; when the proportion is lower than 85%, the image shape is judged." The image is judged by dividing the grayscale value, but the simple grayscale value division cannot fully reflect the complexity of weld defects and may cause false detection and missed detection. At the same time, the invention cannot refine the specific defect types such as cracks and pores for identification, which limits the application scope and accuracy of the detection system. Summary of the invention

[0005] Technical issues solved

[0006] In view of the deficiencies in the prior art, the present invention provides a method and system for intelligent detection of weld defects based on cloud computing, which solves the problems mentioned in the above background technology.

[0007] Technical Solution

[0008] To achieve the above objectives, the present invention is implemented through the following technical solutions: a cloud computing-based weld defect intelligent detection system, including an image acquisition module, an image preprocessing module, a model training and deployment module, a defect detection evaluation module and a continuous optimization module;

[0009] The image acquisition module is used to acquire and upload weld images in real time; an industrial camera is installed to acquire weld images in real time, and the weld image data is uploaded to a cloud server via the network;

[0010] The image preprocessing module is used to process and evaluate the image; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images;

[0011] The model training and deployment module is used to select and train a convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into a training set, a verification set and a test set, select a convolutional neural network model, use a cloud computing platform to train the model, verify the model, and finally deploy the trained model on the cloud computing platform, configure an API interface, and subsequently call it for the defect detection and evaluation module;

[0012] The defect detection and evaluation module is used to detect and evaluate welds; input the weld image into the model, perform defect detection, output the weld defects through the model, collect the weld defects, and construct a defect data set; extract the defect data set to calculate the weld defect index Hqxs and perform evaluation;

[0013] The continuous optimization module is used to collect detection results, retrain the model, and continuously monitor and optimize system performance; establish an optimized data set based on the evaluation results of the defect detection evaluation module and other feedback data, and update it in real time; use the optimized data set to retrain the model and continuously optimize the model's detection capability.

[0014] Preferably, the image acquisition module uses a high frame rate industrial camera equipped with dust and shock proof measures, deploys the industrial camera near the welding equipment, captures the weld image, and controls the shooting parameters of the industrial camera during shooting, including exposure time, gain and white balance; and then uploads the collected weld image data to the cloud server via a wireless network.

[0015] Preferably, the image preprocessing module includes a processing unit, a first acquisition unit, a first calculation and evaluation unit, and a removal unit; the processing unit normalizes the weld image, and then adjusts the size of the weld image to meet the input requirements of the convolutional neural network model; finally, the weld image is denoised using image filtering technology, and then the weld image is data enhanced; the first acquisition unit is used to collect the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst of each weld image to construct an image attribute data set;

[0016] The texture feature index Wlz represents the visual pattern and structure of the weld image surface; the edge feature index Byz represents the outline and boundary of the object in the weld image; the color feature index Yst represents the distribution and statistical information of different colors in the weld image; and the texture feature index Wlz, edge feature index Byz and color feature index Yst are all calculated and obtained by image processing software; the resolution Fbl represents the number of pixels of the image, which is obtained by directly reading the source data of the weld image.

[0017] Preferably, the first calculation and evaluation unit is used to extract the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst in the image attribute data set, and after dimensionless processing, the image attribute index Txsx is calculated by the following formula:

[0018]

[0019] Where A represents the total number of pixels in the image; Indicates the weld image at position The resolution Fbl; Indicates the weld image in Texture feature index Wlz; Indicates the weld image in The edge feature index Byz; Indicates the weld image in The color characteristic index Yst, The value ranges are: x coordinate = 0 to image width minus 1, y coordinate = 0 to image height minus 1; dA represents a small area element;

[0020] The calculation and evaluation unit generates the following results by comparing the preset attribute threshold value X with the image attribute index Txsx:

[0021] If the attribute threshold X is less than the image attribute index Txsx, it means that the attributes of the current weld image meet the weld image detection requirements. At this time, the first result is generated, and the current image is retained and applied to the model detection;

[0022] If the attribute threshold X ≥ the image attribute index Txsx, it means that the attributes of the current weld image do not meet the weld image detection requirements, and the current weld image cannot be used for weld defect detection. At this time, the second result is generated and the current image is removed.

[0023] Preferably, the removal unit performs deduplication processing on the retained images through a hash algorithm; the retained images are calculated pairwise through the hash algorithm to calculate the structural similarity values ​​between the images, and then similar images with structural similarity values ​​greater than a threshold are removed, and the deduplicated images are saved and uploaded to the cloud computing platform to facilitate subsequent defect calculations.

[0024] Preferably, the model training and deployment module includes a model training unit and a model deployment unit. The model training unit divides the preprocessed weld image into a training set, a validation set and a test set according to a ratio of 7:2:1, selects a convolutional neural network model according to the characteristics of the weld image, and configures the parameters of the training model; performs model training through the training set, monitors the model performance in combination with the validation set, and finally uses a test machine to evaluate the model performance after training; finally, saves the trained model, deploys the model using a cloud computing platform, and configures the access interface of the model service.

[0025] Preferably, the defect detection and evaluation module includes an input detection unit, a second acquisition unit and a second calculation and evaluation unit; the input detection unit reads the weld image from the cloud computing platform and transmits it to the model for reasoning; the second acquisition unit collects the surface defect volume Btj, edge defect volume Bytj, depression depth Asd and heat affected zone area Rmj of the weld defect based on the reasoning result, and constructs a defect data set at the same time;

[0026] The surface defect volume Btj is calculated by the model output of the weld crack area Hlw, the weld pore area Hqk and the weld unfusion area Hwrh. The specific calculation formula is: , P Hlw , P Hqk and P Hwrh They are respectively expressed as the average depths of the weld crack area Hlw, the weld pore area Hqk, and the weld unfusion area Hwrh;

[0027] The edge defect area Bytj represents the defect area of ​​the weld edge region, which is obtained by converting the weld image into a grayscale image for detection and analysis;

[0028] The depression area Asd represents the area of ​​the depression on the weld surface, which is obtained by laser scanning analysis;

[0029] The heat-affected zone area Rmj represents the area affected by heat during the welding process. It is obtained by obtaining a thermal image of the weld and its surroundings using a thermal imaging device and analyzing the number of pixels in the heat-affected zone in the image.

[0030] Preferably, the second calculation and evaluation unit extracts the surface defect volume Btj, the edge defect area Bytj, the depression area Asd and the heat affected zone area Rmj from the defect data set, performs dimensionless processing, and calculates the weld defect index Hqxs by the following formula:

[0031]

[0032] Where A represents the first correction constant;

[0033] The second calculation and evaluation unit compares the preset defect threshold value Y with the weld defect index Hqxs to obtain the following defect levels:

[0034] If the defect threshold Y> weld defect index Hqxs, it means that the current weld has slight defects or no defects. In this case, it is rated as A-level defect, and corresponding remedial measures are taken according to the defect situation;

[0035] If the defect threshold Y ≤ weld defect index Hqxs, it means that there are serious defects in the current weld. At this time, it is rated as a Class B defect and a detailed defect assessment is performed. The specific assessment plan is as follows:

[0036] After the surface defect volume Btj, edge defect area Bytj, depression area Asd and heat affected zone area Rmj are normalized, they are sorted from high to low to find out the primary cause of weld defects, and then each defect is remedied according to the defect sequence.

[0037] Preferably, the continuous optimization module retrains the existing model based on the optimized data set and updates the optimized data set in real time. Through continuous retraining and optimization, the parameters and structure of the model are updated, and the defect detection capability of the model is gradually improved. At the same time, the system performance is continuously monitored, and the model and system performance are continuously improved through feedback loops.

[0038] Preferably, a cloud computing-based intelligent weld defect detection method comprises the following steps:

[0039] Step 1: Collect and upload weld images in real time through the image acquisition module; collect weld images in real time by installing an industrial camera, and upload the weld image data to the cloud server through the network;

[0040] Step 2: Process and evaluate the image through the image preprocessing module; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images;

[0041] Step 3: Through the model training and deployment module, select and train the convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into training set, verification set and test set, then select the convolutional neural network model, use the cloud computing platform to train the model, then verify the model, and finally deploy the trained model on the cloud computing platform, configure the API interface, and then call it in the defect detection and evaluation module;

[0042] Step 4: Detect and evaluate the welds through the defect detection and evaluation module; input the weld image into the model, perform defect detection, output the weld defects through the model, collect the weld defects, and build a defect data set; extract the defect data set to calculate the weld defect index Hqxs and evaluate it;

[0043] Step 5: Collect test results through the continuous optimization module, retrain the model, and continuously monitor and optimize system performance; establish an optimized data set based on the evaluation results of the defect detection evaluation module and other feedback data, and update it in real time; use the optimized data set to retrain the model and continuously optimize the model's detection capabilities.

[0044] Beneficial Effects

[0045] The present invention provides a method and system for intelligent detection of weld defects based on cloud computing. It has the following beneficial effects:

[0046] (1) This method and system for intelligent weld defect detection based on cloud computing collects weld images by installing an industrial camera and uploads them to a cloud server, thereby reducing manual intervention and improving production efficiency and the reliability of data collection. The weld images used for defect detection are then denoised and data enhanced by an image preprocessing module to improve the clarity and diversity of the weld images. The weld image attribute index Txsx is evaluated to quantify the weld image quality and features, thereby improving the accuracy of the detection model in identifying defects. Finally, duplicate weld images are removed to avoid data redundancy, ensure the validity of the image attribute data set, improve the model training effect, and reduce the storage of duplicate images, saving storage space of the cloud server and improving storage efficiency and the speed of data processing and transmission.

[0047] (2) This method and system for intelligent weld defect detection based on cloud computing ensures the independence of model training, verification and testing by dividing the data set according to proportion, thereby improving the generalization ability of the model; then selects a suitable convolutional neural network for training and optimization on the cloud computing platform to ensure the efficiency and accuracy of the model; then uses the resources of the cloud computing platform to improve the training efficiency and shorten the training time; configures the API interface to achieve rapid call and integration of the model, facilitating subsequent defect detection and evaluation; calculates the weld defect index Hqxs, quantitatively evaluates the weld defects, and clarifies the grade classification to improve the accuracy of the weld defect severity and simplify the decision-making process; and by sorting the weld defects, finds and repairs the primary defects in a targeted manner, thereby improving the repair efficiency and effect.

[0048] (3) This cloud computing-based intelligent weld defect detection method and system collects the evaluation results and other feedback data of the defect detection evaluation module to provide sufficient data support for the optimization process, timely captures new problems and changes in the production process, responds quickly, and adjusts the optimization strategy; by using the latest optimization data set for retraining, the model is prompted to continuously learn new defect patterns and features, improve detection accuracy, and avoid overfitting of the model to old data; by continuously monitoring system performance, problems are discovered and solved in a timely manner to ensure efficient operation of the system; through continuous optimization, the accuracy of the detection model is improved, false alarms and missed alarms are reduced, and production quality is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of the structural framework of a weld defect intelligent detection system based on cloud computing according to the present invention;

[0050] Figure 2 The present invention is a flow chart of a method for intelligent detection of weld defects based on cloud computing. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0052] Example 1

[0053] See also Figure 1 , a cloud computing-based weld defect intelligent detection system, including an image acquisition module, an image preprocessing module, a model training and deployment module, a defect detection and evaluation module, and a continuous optimization module;

[0054] The image acquisition module is used to acquire and upload weld images in real time; an industrial camera is installed to acquire weld images in real time, and the weld image data is uploaded to a cloud server via the network;

[0055] The image preprocessing module is used to process and evaluate the image; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images;

[0056] The model training and deployment module is used to select and train a convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into a training set, a verification set and a test set, select a convolutional neural network model, use a cloud computing platform to train the model, verify the model, and finally deploy the trained model on the cloud computing platform, configure an API interface, and subsequently call it for the defect detection and evaluation module;

[0057] The defect detection and evaluation module is used to detect and evaluate welds; input the weld image into the model, perform defect detection, output the weld defects through the model, collect the weld defects, and construct a defect data set; extract the defect data set to calculate the weld defect index Hqxs and perform evaluation;

[0058] The continuous optimization module is used to collect detection results, retrain the model, and continuously monitor and optimize system performance; establish an optimized data set based on the evaluation results of the defect detection evaluation module and other feedback data, and update it in real time; use the optimized data set to retrain the model and continuously optimize the model's detection capability.

[0059] In this embodiment, through the five modules of image acquisition module, image preprocessing module, model training and deployment module, defect detection and evaluation module and continuous optimization module, the efficient performance and flexibility of the cloud computing platform are utilized to realize the intelligent detection and real-time processing of weld defects. After the weld image is captured in real time, it is uploaded to the cloud server; the image attribute index Txsx is calculated, the image quality is quantified and evaluated, and duplicate images are removed to ensure the diversity and quality of the data set. The trained model is deployed on the cloud computing platform, and the API interface is configured so that it can be called by other modules; the weld image is detected, the weld defect index Hqxs is quantified and calculated, and the quality of the weld and the severity of the defect are evaluated; finally, the performance of the system is continuously monitored, and the overall performance of the model and the system is improved through feedback loops, which effectively improves the control and management level of welding quality in the production process.

[0060] Example 2

[0061] The image acquisition module uses a high-frame rate industrial camera equipped with dust and shock-proof measures, deploys the industrial camera near the welding equipment, captures the weld image, and controls the shooting parameters of the industrial camera during shooting, including exposure time, gain and white balance; and then uploads the collected weld image data to the cloud server via a wireless network.

[0062] The image preprocessing module includes a processing unit, a first acquisition unit, a first calculation and evaluation unit, and a removal unit; the processing unit normalizes the weld image, and then adjusts the size of the weld image to meet the input requirements of the convolutional neural network model; finally, the weld image is denoised using image filtering technology, and then the weld image is data enhanced; the first acquisition unit is used to collect the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst of each weld image to construct an image attribute data set;

[0063] The texture feature index Wlz represents the visual pattern and structure of the weld image surface; the edge feature index Byz represents the outline and boundary of the object in the weld image; the color feature index Yst represents the distribution and statistical information of different colors in the weld image; and the texture feature index Wlz, edge feature index Byz and color feature index Yst are all calculated and obtained by image processing software; the resolution Fbl represents the number of pixels of the image, which is obtained by directly reading the source data of the weld image.

[0064] The first calculation and evaluation unit is used to extract the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst in the image attribute data set, and after dimensionless processing, calculate the image attribute index Txsx through the following formula:

[0065]

[0066] Where A represents the total number of pixels in the image; Indicates the weld image at position The resolution Fbl; Indicates the weld image in Texture feature index Wlz; Indicates the weld image in The edge feature index Byz; Indicates the weld image in The color characteristic index Yst, The value ranges are: x coordinate = 0 to image width minus 1, y coordinate = 0 to image height minus 1; dA represents a small area element;

[0067] The calculation and evaluation unit generates the following results by comparing the preset attribute threshold value X with the image attribute index Txsx:

[0068] If the attribute threshold X is less than the image attribute index Txsx, it means that the attributes of the current weld image meet the weld image detection requirements. At this time, the first result is generated, and the current image is retained and applied to the model detection;

[0069] If the attribute threshold X ≥ the image attribute index Txsx, it means that the attributes of the current weld image do not meet the weld image detection requirements, and the current weld image cannot be used for weld defect detection. At this time, the second result is generated and the current image is removed.

[0070] The removal unit performs deduplication processing on the retained images through a hash algorithm; the retained images are calculated pairwise through the hash algorithm to calculate the structural similarity values ​​between the images, and then similar images with structural similarity values ​​greater than a threshold are removed, and the deduplicated images are saved and uploaded to the cloud computing platform for subsequent defect calculation.

[0071] In this embodiment, a high frame rate industrial camera is used, equipped with dust and shockproof measures to ensure that high-quality weld images are captured and transmitted to the cloud server in real time through a wireless network to ensure the real-time and availability of data; in the image preprocessing module, normalization, resizing, denoising and data enhancement operations effectively optimize the quality of the weld image and the accuracy of feature extraction, and provide high-quality input data for subsequent model training and evaluation; the resolution Fbl refers to the number of pixels in the image, which directly affects the clarity and detail display of the image; the texture feature index Wlz describes the visual pattern and structure of the weld surface; the edge feature index Byz reflects the contour and boundary of the object in the weld image; the color feature index Yst describes the distribution and statistical information of different colors in the weld image; the calculation and evaluation unit extracts the multidimensional features of the weld image, and combines dimensionless processing and attribute index calculation, so that each image can express its features in a numerical way, which provides a quantitative basis and evaluation criteria for subsequent defect detection; the removal unit removes duplicate images through a hash algorithm to ensure the uniqueness of each image in the data set and prevent duplicate data from affecting the accuracy of the training and evaluation results of the defect detection model.

[0072] Example 3

[0073] The model training and deployment module includes a model training unit and a model deployment unit. The model training unit divides the preprocessed weld image into a training set, a validation set and a test set according to a ratio of 7:2:1, selects a convolutional neural network model according to the characteristics of the weld image, and configures the parameters of the training model; performs model training through the training set, monitors the model performance in combination with the validation set, and finally uses a test machine to evaluate the model performance after training; finally, saves the trained model, deploys the model using a cloud computing platform, and configures the access interface of the model service.

[0074] In this embodiment, the model training and deployment module realizes the key model training and deployment functions in the weld defect intelligent detection system through effective data management, model selection and configuration, training tuning, performance evaluation and cloud computing platform deployment; these steps not only ensure the effectiveness and efficiency of the model in the training process, but also ensure the stability and reliability of the system in practical applications after deployment.

[0075] Example 4

[0076] The defect detection and evaluation module includes an input detection unit, a second acquisition unit and a second calculation and evaluation unit; the input detection unit reads the weld image from the cloud computing platform and transmits it to the model for reasoning; the second acquisition unit collects the surface defect volume Btj, edge defect volume Bytj, depression depth Asd and heat affected zone area Rmj of the weld defect based on the reasoning result, and constructs a defect data set at the same time;

[0077] The surface defect volume Btj is calculated by the model output of the weld crack area Hlw, the weld pore area Hqk and the weld unfusion area Hwrh. The specific calculation formula is: , P Hlw , P Hqk and P Hwrh They are respectively expressed as the average depths of the weld crack area Hlw, the weld pore area Hqk, and the weld unfusion area Hwrh;

[0078] The edge defect area Bytj represents the defect area of ​​the weld edge region, which is obtained by converting the weld image into a grayscale image for detection and analysis;

[0079] The depression area Asd represents the area of ​​the depression on the weld surface, which is obtained by laser scanning analysis;

[0080] The heat-affected zone area Rmj represents the area affected by heat during the welding process. It is obtained by obtaining a thermal image of the weld and its surroundings using a thermal imaging device and analyzing the number of pixels in the heat-affected zone in the image.

[0081] The second calculation and evaluation unit extracts the surface defect volume Btj, edge defect area Bytj, depression area Asd and heat affected zone area Rmj from the defect data set, performs dimensionless processing, and calculates the weld defect index Hqxs by the following formula:

[0082]

[0083] Where A represents the first correction constant;

[0084] The second calculation and evaluation unit compares the preset defect threshold value Y with the weld defect index Hqxs to obtain the following defect levels:

[0085] If the defect threshold Y> weld defect index Hqxs, it means that the current weld has slight defects or no defects. In this case, it is rated as A-level defect, and corresponding remedial measures are taken according to the defect situation;

[0086] If the defect threshold Y ≤ weld defect index Hqxs, it means that there are serious defects in the current weld. At this time, it is rated as a Class B defect and a detailed defect assessment is performed. The specific assessment plan is as follows:

[0087] After the surface defect volume Btj, edge defect area Bytj, depression area Asd and heat affected zone area Rmj are normalized, they are sorted from high to low to find out the primary cause of weld defects, and then each defect is remedied according to the defect sequence.

[0088] In this embodiment, the input detection unit is used to read the weld image from the cloud computing platform and pass it into the model for reasoning, so as to realize the automatic reading and defect detection of the weld image, reduce manual intervention, and improve the speed of identifying and locating weld defects; the second acquisition unit collects the specific data of the weld defect based on the reasoning result, and constructs a defect data set to provide comprehensive and systematic data support for defect detection and evaluation, which is helpful to improve the scientific nature of the evaluation; the surface defect volume Btj affects the strength and toughness of the weld, especially cracks and pores will significantly reduce the bearing capacity of the weld; the edge defect area Bytj affects the overall strength and structural integrity of the weld, and the edge defect is easy to become the starting point of the crack; the depression area Asd causes stress concentration, which affects the fatigue performance and surface quality of the weld; the heat affected zone area Rmj affects the material properties, increases brittleness and residual stress, and may cause deformation or cracking of the weld; the second calculation and evaluation unit calculates and evaluates the weld defect index Hqxs, clarifies the defect level, and facilitates the adoption of targeted remedial measures; through defect refinement evaluation, the main defect causes are found, and targeted remedial plans are formulated to improve the welding quality.

[0089] Example 5

[0090] The continuous optimization module retrains the existing model based on the optimized data set and updates the optimized data set in real time. Through continuous retraining and optimization, the parameters and structure of the model are updated, and the defect detection capability of the model is gradually improved. At the same time, the system performance is continuously monitored, and the model and system performance are continuously improved through feedback loops.

[0091] In this embodiment, the existing model is retrained based on the optimized data set, the model parameters and structure are updated in a timely manner, and the optimized data set is updated in real time to ensure the freshness and quality of the data. By gradually improving the defect capacity of the model, the efficiency and stability of the system are ensured.

[0092] Example 6

[0093] A method for intelligent detection of weld defects based on cloud computing, comprising the following steps:

[0094] Step 1: Collect and upload weld images in real time through the image acquisition module; collect weld images in real time by installing an industrial camera, and upload the weld image data to the cloud server through the network;

[0095] Step 2: Process and evaluate the image through the image preprocessing module; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images;

[0096] Step 3: Through the model training and deployment module, select and train the convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into training set, verification set and test set, then select the convolutional neural network model, use the cloud computing platform to train the model, then verify the model, and finally deploy the trained model on the cloud computing platform, configure the API interface, and then call it in the defect detection and evaluation module;

[0097] Step 4: Detect and evaluate the welds through the defect detection and evaluation module; input the weld image into the model, perform defect detection, output the weld defects through the model, collect the weld defects, and build a defect data set; extract the defect data set to calculate the weld defect index Hqxs and evaluate it;

[0098] Step 5: Collect test results through the continuous optimization module, retrain the model, and continuously monitor and optimize system performance; establish an optimized data set based on the evaluation results of the defect detection evaluation module and other feedback data, and update it in real time; use the optimized data set to retrain the model and continuously optimize the model's detection capabilities.

[0099] In this embodiment, the image acquisition module collects and uploads weld images in real time to ensure that the detection system obtains the latest data in a timely manner, and centrally manages the data through the cloud server for subsequent processing and analysis; the image preprocessing module performs denoising and data enhancement technology on the weld image to improve the image quality and provide data support for subsequent analysis; the model training and deployment module is combined with the cloud computing platform to provide powerful computing power, accelerate the training speed of the model training, and improve the efficiency and accuracy of the model; the defect detection and evaluation module calculates the weld defect index Hqxs to achieve quantitative evaluation of weld defects and provide a basis for quality control; the continuous optimization module enables the model to be continuously retrained, so that the model can continuously learn new defect patterns and characteristics and improve detection accuracy.

[0100] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A cloud computing-based intelligent weld defect detection system, characterized by: It includes image acquisition module, image preprocessing module, model training and deployment module, defect detection and evaluation module and continuous optimization module; The image acquisition module is used to acquire and upload weld images in real time; an industrial camera is installed to acquire weld images in real time, and the weld image data is uploaded to a cloud server via the network; The image preprocessing module is used to process and evaluate the image; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images; The model training and deployment module is used to select and train a convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into a training set, a verification set and a test set, select a convolutional neural network model, use a cloud computing platform to train the model, verify the model, and finally deploy the trained model on the cloud computing platform, configure an API interface, and subsequently call it for the defect detection and evaluation module; The defect detection and evaluation module is used to detect and evaluate welds; input weld images into the model, perform defect detection, output weld defects through the model, collect weld defects, and construct a defect data set; Extract the defect data set to calculate the weld defect index Hqxs and evaluate it; The continuous optimization module is used to collect detection results, perform model retraining, and continuously monitor and optimize system performance; According to the evaluation results of the defect detection evaluation module and other feedback data, an optimized data set is established and updated in real time; Retrain the model using optimized data sets to continuously optimize the model's detection capabilities; The image preprocessing module includes a processing unit, a first acquisition unit, a first calculation and evaluation unit, and a removal unit; the processing unit normalizes the weld image, and then adjusts the size of the weld image to meet the input requirements of the convolutional neural network model; finally, the weld image is denoised using image filtering technology, and then the weld image is data enhanced; the first acquisition unit is used to collect the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst of each weld image to construct an image attribute data set; The texture feature index Wlz represents the visual pattern and structure of the weld image surface; the edge feature index Byz represents the outline and boundary of the object in the weld image; the color feature index Yst represents the distribution and statistical information of different colors in the weld image; and the texture feature index Wlz, edge feature index Byz and color feature index Yst are all calculated and obtained by image processing software; the resolution Fbl represents the number of pixels in the image, which is obtained by directly reading the source data of the weld image; The first calculation and evaluation unit is used to extract the resolution Fbl, texture feature index Wlz, edge feature index Byz and color feature index Yst in the image attribute data set, and after dimensionless processing, calculate the image attribute index Txsx through the following formula: ; Where A represents the total number of pixels in the image; Indicates the weld image at position The resolution Fbl; Indicates the weld image in Texture feature index Wlz; Indicates the weld image in The edge feature index Byz; Indicates the weld image in The color characteristic index Yst, The value ranges are: x coordinate = 0 to image width minus 1, y coordinate = 0 to image height minus 1; dA represents a small area element; The calculation and evaluation unit generates the following results by comparing the preset attribute threshold value X with the image attribute index Txsx: If the attribute threshold X is less than the image attribute index Txsx, it means that the attributes of the current weld image meet the weld image detection requirements. At this time, the first result is generated, and the current image is retained and applied to the model detection; If the attribute threshold X ≥ the image attribute index Txsx, it means that the attribute of the current weld image does not meet the weld image detection requirements, and the current weld image cannot be used for weld defect detection. At this time, the second result is generated and the current image is removed; The defect detection and evaluation module includes an input detection unit, a second acquisition unit and a second calculation and evaluation unit; the input detection unit reads the weld image from the cloud computing platform and transmits it to the model for reasoning; the second acquisition unit collects the surface defect volume Btj, edge defect volume Bytj, depression depth Asd and heat affected zone area Rmj of the weld defect based on the reasoning result, and constructs a defect data set at the same time; The surface defect volume Btj is calculated by the model output of the weld crack area Hlw, the weld pore area Hqk and the weld unfusion area Hwrh. The specific calculation formula is: , P Hlw , P Hqk and P Hwrh They are respectively expressed as the average depths of the weld crack area Hlw, the weld pore area Hqk, and the weld unfusion area Hwrh; The edge defect area Bytj represents the defect area of ​​the weld edge region, which is obtained by converting the weld image into a grayscale image for detection and analysis; The depression area Asd represents the area of ​​the depression on the weld surface, which is obtained by laser scanning analysis; The heat-affected zone area Rmj represents the area affected by heat during the welding process. It is obtained by obtaining a thermal image of the weld and its surroundings using a thermal imaging device and analyzing the number of pixels in the heat-affected zone in the image.

2. The cloud computing-based intelligent weld defect detection system according to claim 1, characterized in that: The image acquisition module uses a high-frame rate industrial camera equipped with dust and shock-proof measures, deploys the industrial camera near the welding equipment, captures the weld image, and controls the shooting parameters of the industrial camera during shooting, including exposure time, gain and white balance; and then uploads the collected weld image data to the cloud server via a wireless network.

3. The cloud computing-based intelligent weld defect detection system according to claim 1, characterized in that: The removal unit performs deduplication processing on the retained images through a hash algorithm; the retained images are calculated pairwise through the hash algorithm to calculate the structural similarity values ​​between the images, and then similar images with structural similarity values ​​greater than a threshold are removed, and the deduplicated images are saved and uploaded to the cloud computing platform for subsequent defect calculation.

4. The cloud computing-based intelligent weld defect detection system according to claim 1, characterized in that: The model training and deployment module includes a model training unit and a model deployment unit. The model training unit divides the preprocessed weld image into a training set, a validation set and a test set according to a ratio of 7:2:1, selects a convolutional neural network model according to the characteristics of the weld image, and configures the parameters of the training model; performs model training through the training set, monitors the model performance in combination with the validation set, and finally uses a test machine to evaluate the model performance after training; finally, saves the trained model, deploys the model using a cloud computing platform, and configures the access interface of the model service.

5. The intelligent weld defect detection system based on cloud computing according to claim 1 is characterized in that: The second calculation and evaluation unit extracts the surface defect volume Btj, edge defect area Bytj, depression area Asd and heat affected zone area Rmj from the defect data set, performs dimensionless processing, and calculates the weld defect index Hqxs by the following formula: ; Where A represents the first correction constant; The second calculation and evaluation unit compares the preset defect threshold value Y with the weld defect index Hqxs to obtain the following defect levels: If the defect threshold Y> weld defect index Hqxs, it means that the current weld has slight defects or no defects. In this case, it is rated as A-level defect, and corresponding remedial measures are taken according to the defect situation; If the defect threshold Y ≤ weld defect index Hqxs, it means that there are serious defects in the current weld. At this time, it is rated as a Class B defect and a detailed defect assessment is performed. The specific assessment plan is as follows: After the surface defect volume Btj, edge defect area Bytj, depression area Asd and heat affected zone area Rmj are normalized, they are sorted from high to low to find out the primary cause of weld defects, and then each defect is remedied according to the defect sequence.

6. The cloud computing-based intelligent weld defect detection system according to claim 1, characterized in that: The continuous optimization module retrains the existing model based on the optimized data set and updates the optimized data set in real time. Through continuous retraining and optimization, the parameters and structure of the model are updated, and the defect detection capability of the model is gradually improved. At the same time, the system performance is continuously monitored, and the model and system performance are continuously improved through feedback loops.

7. A cloud computing-based intelligent detection method for weld defects, applied to a cloud computing-based intelligent detection system for weld defects according to any one of claims 1 to 6, characterized in that: The following steps are involved: Step 1: Collect and upload weld images in real time through the image acquisition module; collect weld images in real time by installing an industrial camera, and upload the weld image data to the cloud server through the network; Step 2: Process and evaluate the image through the image preprocessing module; the image preprocessing module normalizes, resizes, denoises and performs data enhancement on the uploaded weld image, collects attribute parameters of the weld image, constructs and extracts the image attribute data set, calculates the image attribute index Txsx, evaluates the image attribute index Txsx, and finally removes duplicate images; Step 3: Through the model training and deployment module, select and train the convolutional neural network model, verify and deploy the model; divide the preprocessed weld images into training set, verification set and test set, then select the convolutional neural network model, use the cloud computing platform to train the model, then verify the model, and finally deploy the trained model on the cloud computing platform, configure the API interface, and then call it in the defect detection and evaluation module; Step 4: Detect and evaluate the welds through the defect detection and evaluation module; input the weld image into the model, perform defect detection, output the weld defects through the model, collect the weld defects, and build a defect data set; Extract the defect data set to calculate the weld defect index Hqxs and evaluate it; Step 5: Collect test results through the continuous optimization module, retrain the model, and continuously monitor and optimize system performance; According to the evaluation results of the defect detection evaluation module and other feedback data, an optimized data set is established and updated in real time; Retrain the model using optimized datasets to continuously optimize the model's detection capabilities.