A method, training method and system for detecting copper nodule defects in electrolytic copper plates

Through machine vision and deep learning technology, the copper lump defect detection model for electrolytic copper plates is trained, which solves the problem of low manual detection efficiency, achieves fast and accurate copper lump defect detection, and improves the level of production automation.

CN114742770BActive Publication Date: 2024-09-10HUAZHONG UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210288874.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-09-10
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

In the existing technology, the defects of copper lumps in electrolytic copper plates are mainly detected by the naked eye, which is inefficient and cannot meet the production schedule, resulting in a high failure rate of copper plates and making it difficult to achieve automated and intelligent production.

Method used

A copper nodule defect detection method for electrolytic copper plates based on machine vision and deep learning is adopted to achieve rapid and accurate detection of copper nodule defects by training feature extraction, candidate area evaluation, position estimation, confidence estimation and depth estimation deep neural network models.

Benefits of technology

It achieves rapid and accurate detection of copper knob defects, improves detection efficiency and accuracy, can efficiently remove copper knob defects, and meets the automation needs of industrial production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742770B
    Figure CN114742770B
Patent Text Reader

Abstract

The present invention discloses a method, a training method and a system for detecting copper nodules on electrolytic copper plates, and belongs to the field of image processing technology. When wet copper smelting is carried out to precipitate cathode copper, it is easy to cause copper nodules with larger particles to precipitate on the cathode copper plate due to reasons such as impure electrolyte, which cannot meet the production standards. The present invention is divided into two stages: training and reasoning. First, the collected copper plate image is subjected to image preprocessing. In the training stage, neural network parameter training is carried out through the labeled and preprocessed image data, and the optimization targets include the copper nodule defect position, confidence, and depth. In the reasoning stage, the collected image is subjected to image preprocessing, and the trained neural network is input for forward reasoning, and the copper nodule defect position, confidence, and depth are output. The designed discrimination criteria help to accurately and efficiently remove the copper nodule defects. The disclosed method can improve the existing copper nodule removal efficiency and shorten the production period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of image processing technology, and more specifically, relates to a method, training method and system for detecting copper nodules on electrolytic copper plates. Background Art

[0002] With the continuous improvement of industrial digitalization and intelligence, hydrometallurgy also requires further automation, digitalization and intelligent production to achieve high-efficiency and energy-saving production. Due to process problems such as electrolyte purity, when the cathode copper plate is precipitated, large copper nodules will precipitate on the surface of the copper plate. If the depth of the copper nodules exceeds the national standard (the depth exceeds the copper plate surface by 5mm), it is considered unqualified and needs to be removed, otherwise it cannot be shipped.

[0003] Currently, copper nodule defects are mainly detected by human eyes. Workers are prone to fatigue due to long-term work, which leads to low efficiency and difficulty in meeting production schedules. Summary of the invention

[0004] In response to the defects of the prior art and the need for improvement, the present invention provides a method, a training method and a system for detecting copper nodule defects in electrolytic copper plates. The copper nodule defects in electrolytic copper plates are detected based on machine vision and deep learning. The copper nodule defects can be detected quickly and accurately, thereby helping to accurately and efficiently remove the copper nodule defects.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a method for training a copper nodule defect detection model for an electrolytic copper plate, comprising:

[0006] Determine the feature extraction, candidate region evaluation, location estimation, confidence estimation and depth estimation deep neural network of the copper nodule defect detection model;

[0007] Initialize the parameters of the copper nodule defect detection model;

[0008] The image samples with marked copper nodule defect positions and depth information are input into the feature extraction deep neural network to obtain sample feature information;

[0009] Inputting the sample feature information into a candidate region evaluation deep neural network to obtain a region of interest and a rough confidence score, and calculating a first loss based on the region of interest and the rough confidence score;

[0010] Inputting the characteristic information of the region of interest into the position estimation, confidence estimation and depth estimation deep neural networks respectively, obtaining the copper nodule defect position information, detailed confidence score and copper nodule defect depth information, and calculating the second loss based on the copper nodule defect position value, detailed confidence score and copper nodule defect depth value;

[0011] Parameters of the copper nodule defect detection model are optimized according to the first loss and the second loss.

[0012] Further, the first loss is expressed as:

[0013]

[0014] Among them, loss coarse represents the first loss of the i-th image sample, represents the coarse confidence score of the i-th image sample, represents the coarse position loss adjustment weight, represents the estimated value of the region of interest of the i-th image sample, Represents the actual position value of the copper nodule defect of the i-th image sample.

[0015] Further, the second loss is expressed as:

[0016]

[0017] Among them, loss fine represents the second loss of the i-th image sample, represents the detailed confidence score of the i-th image sample, λ b represents the loss balance weight for position estimation, represents the estimated value of the position of the i-th image sample, represents the actual position value of the copper nodule defect of the i-th image sample, λ d represents the loss balance weight for depth estimation, represents the depth estimate of the i-th image sample, Represents the actual depth value of the copper nodule defect of the i-th image sample.

[0018] Further, the parameter optimization of the copper nodule defect detection model according to the first loss and the second loss includes:

[0019] By back-propagating each image sample, the parameters of the copper nodule defect detection model are optimized according to the gradient of the total loss;

[0020] in, loss i =loss coarse +loss fine , N is the total number of image samples.

[0021] Furthermore, before inputting the image samples with the marked copper nodule defect position and depth information into the feature extraction deep neural network, the method also includes: performing noise reduction and block processing on the image samples.

[0022] In a second aspect, the present invention provides a method for detecting copper nodules in electrolytic copper plates, comprising:

[0023] Acquire the image to be detected;

[0024] Using the copper nodule defect detection model trained by the training method of the electrolytic copper plate copper nodule defect detection model as described in the first aspect, the copper nodule defect position information, the detailed confidence score and the copper nodule defect depth information of the image to be detected are estimated;

[0025] The area corresponding to the copper nodule defect position estimate value whose detailed confidence score estimate value is greater than the confidence threshold and whose copper nodule defect depth estimate value is greater than the depth threshold is regarded as the real copper nodule defect area.

[0026] In a third aspect, the present invention provides a training system for a copper nodule defect detection model of an electrolytic copper plate, comprising: a computer-readable storage medium and a processor;

[0027] The computer-readable storage medium is used to store executable instructions;

[0028] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method as described in the first aspect.

[0029] In a fourth aspect, the present invention provides a copper nodule defect detection system for electrolytic copper plates, comprising: a computer-readable storage medium and a processor;

[0030] The computer-readable storage medium is used to store executable instructions;

[0031] The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method as described in the second aspect.

[0032] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:

[0033] (1) The present invention first uses the feature extraction and candidate region evaluation deep neural network to obtain the region of interest (i.e., the rough position value of the copper nodule defect) and the rough confidence score, and calculates the rough target loss; then uses the position estimation, confidence estimation and depth estimation deep neural network to obtain the fine position value, fine confidence score and copper nodule defect depth value of the copper nodule defect, and calculates the fine target loss; finally, based on the total loss, the parameters of the above five deep neural networks are optimized, and the optimized copper nodule defect detection model is used to perform copper nodule defect detection on the electrolytic copper plate to be tested. Copper nodule defects can be detected quickly and accurately, which helps to accurately and efficiently remove copper nodule defects.

[0034] (2) The present invention regards the area corresponding to the copper nodule defect position estimate value whose detailed confidence score estimate value is greater than the confidence threshold and whose copper nodule defect depth estimate value is greater than the depth threshold as the true copper nodule defect area, further improving the accuracy of copper nodule defect detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of the cathode electrolytic copper plate production process provided by an embodiment of the present invention;

[0036] Figure 2 One of the flow charts of a method for training a copper nodule defect detection model for an electrolytic copper plate provided by an embodiment of the present invention;

[0037] Figure 3 A second flow chart of a method for training a copper nodule defect detection model for an electrolytic copper plate provided by an embodiment of the present invention;

[0038] Figure 4 A schematic diagram of a process of manually labeling a training image provided by an embodiment of the present invention;

[0039] Figure 5 A schematic diagram of the layout of a copper nodule defect detection system for electrolytic copper plates provided in an embodiment of the present invention;

[0040] Figure 6 A flowchart of a method for detecting copper nodules on electrolytic copper plates provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0042] Due to process problems, the copper plates produced by hydrometallurgical electrolysis often have large copper nodules on the surface during the final forming process. Figure 1 As shown in the figure, the current processing method is manual observation and manual removal, which is inefficient and unsafe. Therefore, this paper proposes a copper nodule defect detection method for electrolytic copper plates based on machine vision and deep learning to improve the automation level and quality inspection efficiency of the factory.

[0043] See also Figure 2 , combined with Figure 3 The present invention provides a training method for a copper nodule defect detection model of an electrolytic copper plate, including operations S1 to S6.

[0044] Operation S1 determines the feature extraction, candidate area evaluation, position estimation, confidence estimation and depth estimation deep neural network of the copper nodule defect detection model.

[0045] In this embodiment, the copper nodule defect feature is extracted Candidate region evaluation Position Estimation Confidence Estimates Depth Estimation Five deep neural network models are used to build a copper nodule defect detection model.

[0046] Operation S2: Initializing parameters of the copper nodule defect detection model.

[0047] In this embodiment, the parameters of the copper nodule defect detection model are θ1, θ2, θ b ,θ s and θ d .

[0048] Operation S3: input the image sample with the marked copper nodule defect position and depth information into a feature extraction deep neural network to obtain sample feature information.

[0049] All the collected training sets consisting of N training images First, manually annotate each training image. Figure 4 As shown in the figure, each copper nodule defect that needs to be removed is labeled, where "H23" means that the copper nodule defect is 23 mm deep. The copper nodule defect appears at any position of the entire copper plate. The shape is generally circular, with different depths, but the size is much smaller than the area of ​​the entire copper plate. After manual labeling, a training set with labeled information can be further obtained. Among them, y i =(bbox i ,depth i ), y i Represents image x i The annotation information, including the position value bbox i and depth i .

[0050] Preferably, before the image samples with the marked copper nodule defect position and depth information are input into the feature extraction deep neural network, the image samples are first subjected to noise reduction and block processing.

[0051] like Figure 5As shown in the figure, after the electrolytic copper plate is transported from the previous station to the inspection station, the copper plate is imaged by the arranged industrial camera. Since copper plates are generated on both sides of the electrolytic copper plate when the cathode is precipitated, an industrial camera is arranged on both sides to collect images respectively. Due to the factory environment and camera stability, the collected original image x has certain noise, and the median filter g is used to filter the image. median and Gaussian filter g Gaussian Perform noise reduction on the image:

[0052] x=g Gaussian (g median (x)

[0053] Due to the large size of the electrolytic copper plate, a high-resolution industrial camera is used to collect the full coverage of the electrolytic copper plate surface. Therefore, the obtained image resolution is high, and the entire image is input into the copper nodule defect detection model for detection, which consumes a lot of memory. Therefore, the collected image is divided into blocks, patch(x), as follows:

[0054]

[0055] This embodiment divides the image x into m·n blocks, and can adopt 2×2 or 3×3 block strategies to further reduce memory consumption without increasing the reasoning time too much. At the same time, the block operation is conducive to relatively increasing the size of the copper nodule defect, further reducing the impact of the extremely small size of the copper nodule defect, improving the detection performance of the model, and improving the recall rate and accuracy.

[0056] After all training set images are preprocessed by denoising and block division, the training set can be further obtained.

[0057] Deep Neural Networks First, the image block x ijk Perform feature F ijk Extract as follows:

[0058]

[0059] Operation S4: input the sample feature information into a candidate region evaluation deep neural network to obtain a region of interest and a rough confidence score, and calculate a first loss based on the region of interest and the rough confidence score.

[0060] Specifically, the extracted image features are further input into the candidate copper nodule defect candidate area evaluation network Region of Interest Extract as follows:

[0061]

[0062] Among them, the area of ​​interest The rough confidence score of The network can be evaluated through the copper nodule defect candidate area at the same time This step is to preliminarily obtain the rough position and rough confidence score of the copper nodule defect, and design the rough optimization target loss for preliminary optimization, as follows:

[0063]

[0064] in, Adjust weights for coarse location loss.

[0065] Operation S5, inputting the feature information of the region of interest into the position estimation, confidence estimation and depth estimation deep neural networks respectively, obtaining the copper nodule defect position information, detailed confidence score and copper nodule defect depth information, and calculating the second loss based on the copper nodule defect position value, detailed confidence score and copper nodule defect depth value.

[0066] In order to more accurately obtain the location, confidence and depth of copper nodule defects, a deep neural network was further designed for optimization based on the above.

[0067] Region of interest to be extracted After that, the features of the region of interest are further extracted Prepare for the subsequent accurate position estimation, confidence estimation, and depth estimation of copper nodule defects as follows:

[0068]

[0069] Among them, pooling means extracting features based on the region of interest.

[0070] In order to estimate the confidence level of copper nodule defects The present invention designs a confidence estimation deep neural network Make predictions as follows:

[0071]

[0072] In order to estimate the position of copper nodule defect The present invention designs a deep neural network for position estimation Make predictions as follows:

[0073]

[0074] In order to estimate the copper nodule defect depth D ijk The present invention designs a deep neural network for position estimation Make predictions as follows:

[0075]

[0076] Based on the copper nodule defect location information, detailed confidence score and copper nodule defect depth information, the detailed optimization target loss is designed for preliminary optimization as follows:

[0077]

[0078] Among them, λ b and λ d Represent the loss balance weights for position estimation and depth estimation respectively.

[0079] Operation S6: Optimize parameters of the copper nodule defect detection model according to the first loss and the second loss.

[0080] Specifically, in order to optimize all network parameters end-to-end, the present invention designs the following optimization target loss loss ijk :

[0081] loss ijk =loss coarse +loss fine

[0082] Therefore, by back-propagating each image, according to the gradient of the loss, the parameter optimization of the five deep neural network models of copper nodule defect feature extraction, candidate area evaluation, position estimation, confidence estimation, and depth estimation can be achieved as follows:

[0083]

[0084]

[0085]

[0086] Among them, θ′1, θ′2, θ′ s ,θ′ b ,θ′ d is the optimized parameter, η represents the learning rate, and the final optimized copper nodule defect detection model can be obtained through iterative optimization.

[0087] See also Figure 6 After completing the parameter optimization of the five deep neural network models of copper nodule defect feature extraction, candidate area evaluation, position estimation, confidence estimation, and depth estimation, they are deployed on an industrial control computer to perform online copper nodule defect detection and depth estimation.

[0088] Similarly, first collect the image to be detected After denoising and block image preprocessing. Using an optimized deep neural network First, the image block to be detected Conduct Features Extract as follows:

[0089]

[0090] The extracted image features to be detected are further input into the optimized candidate copper nodule defect candidate area evaluation network Region of Interest extract, is the rough position confidence score, as follows:

[0091]

[0092] Region of interest to be extracted After that, the features of the region of interest are further extracted Prepare for the subsequent precise position estimation, confidence estimation, and depth estimation of copper nodule defects as follows:

[0093]

[0094] In order to estimate the confidence level of copper nodule defects Using optimized confidence estimation in deep neural networks Make predictions as follows:

[0095]

[0096] In order to estimate the position of copper nodule defect Using optimized deep neural network for position estimation Make predictions as follows:

[0097]

[0098] In order to estimate the depth of copper nodule defects Using optimized deep neural network for position estimation Make predictions as follows:

[0099]

[0100] In order to accurately evaluate the copper nodule defect, the present invention sets a copper nodule defect evaluation module as follows:

[0101]

[0102] Where T s ,T d Respectively represent the set confidence threshold and depth threshold. If both are greater than the threshold, it is considered as a true copper nodule defect area. Then, according to the predicted position Perform copper nodule defect removal; otherwise not.

[0103] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A training method for a copper nodule defect detection model for electrolytic copper plates, characterized in that: include: Determine the feature extraction, candidate region evaluation, location estimation, confidence estimation and depth estimation deep neural networks of the copper nodule defect detection model; Initialize the parameters of the copper nodule defect detection model; The image samples with marked copper nodule defect positions and depth information are input into the feature extraction deep neural network to obtain sample feature information; Inputting the sample feature information into a candidate region evaluation deep neural network to obtain a region of interest and a rough confidence score, and calculating a first loss based on the region of interest and the rough confidence score; Inputting the characteristic information of the region of interest into the position estimation, confidence estimation and depth estimation deep neural networks respectively, obtaining the copper nodule defect position information, detailed confidence score and copper nodule defect depth information, and calculating the second loss based on the copper nodule defect position value, detailed confidence score and copper nodule defect depth value; Parameters of the copper nodule defect detection model are optimized according to the first loss and the second loss.

2. The training method of the electrolytic copper plate copper nodule defect detection model according to claim 1 is characterized in that: The first loss is expressed as: Among them, loss coarse represents the first loss of the i-th image sample, represents the coarse confidence score of the i-th image sample, represents the coarse position loss adjustment weight, represents the estimated value of the region of interest of the i-th image sample, Represents the actual position value of the copper nodule defect of the i-th image sample.

3. The training method of the electrolytic copper plate copper nodule defect detection model according to claim 2 is characterized in that: The second loss is expressed as: Among them, loss fine represents the second loss of the i-th image sample, represents the detailed confidence score of the i-th image sample, λ b represents the loss balance weight for position estimation, represents the estimated value of the position of the i-th image sample, represents the actual position value of the copper nodule defect of the i-th image sample, λ d represents the loss balance weight for depth estimation, represents the depth estimate of the i-th image sample, Represents the actual depth value of the copper nodule defect of the i-th image sample.

4. The training method of the electrolytic copper plate copper nodule defect detection model according to claim 3 is characterized in that: The step of optimizing parameters of the copper nodule defect detection model according to the first loss and the second loss includes: By back-propagating each image sample, the parameters of the copper nodule defect detection model are optimized according to the gradient of the total loss; in, loss i =loss coarse +loss fine , N is the total number of image samples.

5. The training method of the electrolytic copper plate copper nodule defect detection model according to any one of claims 1 to 4, characterized in that: Before inputting the image samples with marked copper nodule defect positions and depth information into the feature extraction deep neural network, the method further includes: performing noise reduction and block processing on the image samples.

6. A method for detecting copper nodules in electrolytic copper plates, characterized in that: include: Acquire the image to be detected; The copper nodule defect detection model trained by the training method for the copper nodule defect detection model of the electrolytic copper plate according to any one of claims 1 to 5 is used to estimate the copper nodule defect position information, detailed confidence score and copper nodule defect depth information of the image to be detected; The area corresponding to the copper nodule defect position estimate value whose detailed confidence score estimate value is greater than the confidence threshold and whose copper nodule defect depth estimate value is greater than the depth threshold is regarded as the real copper nodule defect area.

7. A training system for a copper nodule defect detection model for electrolytic copper plates, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is used to read the executable instructions stored in the computer-readable storage medium and execute the method according to any one of claims 1 to 5.

8. A copper nodule defect detection system for electrolytic copper plates, characterized in that: include: A computer readable storage medium and a processor; The computer-readable storage medium is used to store executable instructions; The processor is configured to read the executable instructions stored in the computer-readable storage medium and execute the method according to claim 6.