A method and system for rating internal cracks of continuous casting slabs
Through the combination of deep learning technology and machine vision technology, high-accuracy rating of internal cracks in continuous casting billets is achieved, which solves the problem of low accuracy of manual rating in the existing technology, improves rating efficiency and data collection, and facilitates optimization of the continuous casting process. .
Patent Information
- Application Number
- CN202210605102.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-05-31
AI Technical Summary
In the existing technology, the rating of internal cracks in continuous casting billets relies on manual methods, which have low accuracy and strong subjectivity, and cannot improve the continuous casting process through data analysis in a timely manner.
Deep learning technology is combined with machine vision technology to perform crack segmentation and grade calculation through images of continuous casting slabs etched by low-magnification hot acid. The deep learning model is used to judge and segment crack categories, and is graded based on metallurgical industry standards. The results are logged to the database.
It improves the accuracy and efficiency of crack rating, reduces the influence of subjective factors, and facilitates data collection and continuous casting process optimization.
Smart Images

Figure CN114998253B
Abstract
Description
Technical Field
[0001] The invention relates to the field of continuous casting billet quality evaluation, and in particular to a method and system for rating internal cracks of continuous casting billets. Background Art
[0002] Continuous casting is the main technical means of steel production and an important link in steel production. As society's requirements for steel become more and more stringent, the quality of continuous casting billets becomes more and more important. The price of unqualified steel may be reduced by 40% or even scrapped, causing huge economic losses to steel mills. Therefore, tracking and detecting the quality information of continuous casting billets is an indispensable part of the modern steel production process.
[0003] Internal cracks in ingots are a common internal defect, which has little effect on ordinary steel. However, when the internal cracks are severe, the mechanical properties of the ingot in the thickness direction will deteriorate. In addition, internal cracks will also cause shear cracks when cutting thick plates. In the steel production process, the internal cracks of the ingots need to be graded, and ingots of different grades are used in the production of corresponding steel products to improve the efficiency and benefits of steel plants. The main detection method for internal cracks is low-magnification inspection, that is, the internal macroscopic defects of steel are detected by a magnifying glass or human eyes with a magnification of no more than 10 times. Accurate detection of low-magnification quality can optimize the continuous casting process, improve the quality of continuous casting ingots, and improve the benefits of steel plants. However, the rating of internal cracks is currently mostly done manually, that is, the rating personnel compare the image of the ingot after acid immersion corrosion with the rating chart on the metallurgical industry standard YB / T 4003-2016 "Low-magnification Structural Defect Rating Chart of Continuously Cast Steel Slabs" to obtain the corresponding rating report. However, this manual method has low accuracy and strong subjective will, and cannot play the role that low-magnification inspection should play in continuous casting production. In addition, the rating results are stored in the form of reports, and it is not possible to improve the continuous casting process through data analysis in a timely manner. Summary of the invention
[0004] In order to address the deficiencies of the existing technology, the present invention provides a method and system for rating internal cracks in continuous casting billets. By combining deep learning technology with machine vision technology, the segmentation of cracks in continuous casting billets and the calculation of crack grades are achieved, thereby achieving higher accuracy and efficiency in crack identification, which is convenient for users to use and collect data.
[0005] To achieve the above object, the present invention adopts the following technical solution:
[0006] A method for rating internal cracks of a continuous casting slab comprises the following steps:
[0007] S1: Perform low-magnification hot acid corrosion on the continuous casting billet sample, and use a digital camera to collect low-magnification images of the continuous casting billet sample after corrosion;
[0008] S2: Send the collected images to the deep learning model for training;
[0009] S3: setting the casting process information of the continuous casting billet to be evaluated and the collected low-magnification sample image of the continuous casting billet to be evaluated; the casting process information includes process parameters and dimensions;
[0010] S4: Using the trained deep learning model, the low-magnification sample of the continuous casting billet and the background in the collected image are segmented, and the number of pixels of the equivalent rectangular width of the low-magnification sample of the continuous casting billet is counted as N1;
[0011] S5: Use the trained deep learning model to judge and segment the crack type of the low-magnification sample of the continuous casting billet to be evaluated. If cracks exist, skeletonize the segmented crack image and calculate the maximum number of skeleton pixels N2, N3, and N4 in the middle crack, corner crack, and triangular crack;
[0012] S6: According to N1, N2, N3, and N4 obtained in S4 and S5, the relative ratios of the middle crack, corner crack, and triangular crack of the continuous casting billet are obtained: W1=(N2 / N1)*100%, W2=(N3 / N1)*100%, and W3=(N4 / N1)*100%; the actual lengths of the middle crack, corner crack, and triangular crack are calculated by the actual width of the billet, the number of pixels of the billet image, and the length of the crack skeleton: L1=S*N2 / N1, L2=S*N3 / N1, and L3=S*N4 / N1;
[0013] S7: According to the relative ratio of cracks, the low-magnification sample images of the selected continuous casting billet are rated in combination with the metallurgical industry standards, and the rating results and the actual length of the cracks are output;
[0014] S8: Record the ingot process information and rating results into the database to facilitate user search and comparison, so as to optimize the continuous casting process.
[0015] The metallurgical industry standard adopts YB / T 4003-2016.
[0016] In S1, the hot acid corrosion comprises the following steps:
[0017] S1.1: Cut a section of continuous casting billet and grind it until the surface roughness Ra of the continuous casting billet is less than 1.6μm;
[0018] S1.2: Select the corrosive liquid and corrosive temperature according to the steel type and billet size to corrode the continuous casting billet;
[0019] S1.3: Wash with hot water and blow dry, take photos and collect samples.
[0020] The low-magnification sample in S1 is a continuous casting billet corrosion sample with a magnification of no more than 10.
[0021] In S2, deep learning model training includes the following steps:
[0022] S2.1: Collect low-magnification sample images of continuous casting billets, annotate low-magnification sample images and crack images, and create training set S train , test set S test And the validation set S val ;
[0023] S2.2: Perform data augmentation operations on the prepared dataset;
[0024] The data enhancement operation is performed by selecting one or more of the following operations: horizontal flipping, vertical flipping and translation of the low-magnification sample image of the continuous casting slab;
[0025] S2.3: Resize the dataset, and send it to the deep learning model after its image size is set to (H, W, C), where H represents the height of the resized image, W represents the width of the resized image, and C represents the number of channels of the resized image;
[0026] S2.4: In TensorFlow, cross entropy and custom loss are used as the loss functions for ingot identification and crack identification respectively, and dice is used as the evaluation criterion to train the model until the specified number of training times is reached or the loss function is lower than the set value;
[0027] S2.5: Test the trained model and save the model whose rating indicator dice is greater than the set threshold. Otherwise, repeat step S2.4 to continue training.
[0028] The rating indicator dice sets a threshold of 0.6.
[0029] The deep learning model in S4 adopts an improved unet model, which selects a unet model that has been downsampled four times, adds a BN layer to it, and selects relu as the activation function.
[0030] The method for identifying and segmenting cracks in S5 is: inputting the low-magnification sample image of the continuous casting billet into the YOLO V3 model for detection to determine whether there are cracks and the type of cracks.
[0031] If the ingot contains cracks, the low-magnification image is sent to the pspnet model for semantic segmentation; if not, the output is that there are no cracks.
[0032] The crack type is one or more of a middle crack, a corner crack, and a triangular area crack.
[0033] On the other hand, a system for rating internal cracks in continuous casting billets is proposed, which is used to implement the method for rating internal cracks in continuous casting billets, including a recommendation module, a sample processing module, an industry standard module, a historical data query module, a rating modification module for changing and supplementing historical rating data, and a prediction output module for displaying the continuous casting billet processing results in the form of pictures.
[0034] The recommendation scheme module: the user inputs the size and steel type of the continuous casting billet to be rated, and the acid immersion corrosion conditions corresponding to the continuous casting billet are recommended to achieve a quantitative corrosion effect.
[0035] The sample processing module is composed of sample parameter selection, rating results and situation analysis. The sample parameters are to select the low-magnification sample photos of the continuous casting billet to be evaluated and input the corresponding sample parameters, including billet size, steel type, casting speed, furnace, furnace number, rater, furnace number, continuous casting machine, superheat, and electric stirring current information. After the system completes the rating of the input photos, the rating results are displayed in the rating result part of the module, and the causes of internal cracks in the continuous casting billet are analyzed. At the same time, the evaluation results and sample parameters are stored in the database.
[0036] Industry standard module: Analyze the characteristics of cracks in industry standards, display pictures of cracks at all levels, and conduct quantitative analysis on them.
[0037] Historical data query module: select the start and end time, casting speed, steel type, continuous casting machine, and crack level to screen the historically rated steel types, compare the continuous casting process parameters, and optimize the continuous casting process.
[0038] Beneficial technical effects
[0039] 1. The present invention provides a method and system for rating internal cracks in continuous casting billets, which can replace the traditional manual rating method, improve the rating efficiency and accuracy, and reduce the influence of subjective factors.
[0040] 2. In order to solve the problem that cracks account for a small proportion in the continuous casting billet and are difficult to segment, the present invention uses pspnet with multi-scale fusion capability to segment them, and obtains accurate crack segmentation effect.
[0041] 3. The present invention constructs a database of continuous casting process parameters and corresponding ingot grades, which is convenient for users to compare data and optimize the continuous casting process. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A flow chart of a method for rating internal cracks of a continuous casting slab provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of the evaluation function dice of the model provided in an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the basic architecture of the deep learning model YOLO V3 provided in an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of the basic architecture of the deep learning model pspnet provided in an embodiment of the present invention;
[0046] Figure 5 A diagram of a sample sheet processing module provided in an embodiment of the present invention;
[0047] Figure 6 A diagram showing crack division results provided by an embodiment of the present invention;
[0048] Figure 7 A schematic diagram of a historical data query module provided by an embodiment of the present invention;
[0049] Figure 8 A schematic diagram of the structure of a system for rating internal cracks in a continuous casting billet provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] In order to better illustrate the present invention, the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0051] This embodiment provides a method for rating internal cracks in continuous casting slabs. Figure 1 As shown, the following steps are included:
[0052] S1: Perform low-magnification hot acid corrosion on the continuous casting billet sample, and use a digital camera to collect the low-magnification image of the continuous casting billet sample after corrosion, which specifically includes the following steps:
[0053] S1.1: Cut a section of continuous casting billet and grind it until the surface roughness Ra of the continuous casting billet is less than 1.6μm;
[0054] S1.2: Select appropriate corrosion liquid and corrosion temperature according to the steel type and billet size to corrode the continuous casting billet;
[0055] S1.3: Wash with hot water and blow dry;
[0056] S2: Send the collected images to the deep learning model for training, which specifically includes the following steps:
[0057] S2.1: Collect low-magnification sample images of continuous casting billets, manually annotate low-magnification sample images and crack images, and create training set S train , test set S test And the validation set S val ;
[0058] S2.2: Perform data enhancement on the prepared data set. In deep learning, it is generally required that the number of samples is sufficient. The more samples there are, the better the trained model effect is and the stronger the generalization ability of the model is. However, since high-quality low-magnification sample images of continuous casting billets are difficult to obtain and the samples are relatively small, it is necessary to perform data enhancement on the low-magnification sample images of continuous casting billets to improve the quality of the data set. In this embodiment, the data enhancement operations used include horizontal flipping, vertical flipping, and translation of the low-magnification sample images of continuous casting billets;
[0059] S2.3: Resize the dataset, and send it to the deep learning model after its image size is set to (H, W, C), where H represents the height of the resized image, W represents the width of the resized image, and C represents the number of channels of the resized image;
[0060] In this embodiment, the segmentation effect is best when the image size is set to (1536, 1536, 3).
[0061] S2.4: In TensorFlow, cross entropy and custom loss are used as the loss functions for ingot identification and crack identification respectively, and dice is used as the evaluation criterion to train the model until the specified number of training times is reached or the loss function is lower than the set value;
[0062] Cross entropy is shown in formula (1):
[0063]
[0064] Among them, y i is the target true value, y i ∈(0,1); is the model prediction value, n represents the number of categories to be classified.
[0065] The custom Loss is shown in formula (3):
[0066] loss = L box +L obj +L cls (2)
[0067] Among them, L box is the detection error, L obj is the confidence error, L cls is the category error
[0068] dice definition, such as Figure 2 As shown in formula (3):
[0069]
[0070] Among them, A is the target area and B is the model prediction area.
[0071] S2.5: Test the trained model and save the model whose rating index dice is greater than the set threshold. Otherwise, repeat step S2.4 to continue training. In this embodiment, the rating index threshold is set to 0.6.
[0072] S3: Inputting the process parameters and dimensions of the continuous casting billet to be evaluated and the collected image containing the low-magnification sample of the continuous casting billet to be evaluated on the system interface;
[0073] In this embodiment, the low-magnification sample is a continuous casting slab corrosion sample with a magnification of no more than 10;
[0074] S4: Using the trained deep learning model, the low-magnification sample of the continuous casting billet and the background in the collected image are segmented, and the number of pixels of the equivalent rectangular width of the low-magnification sample of the continuous casting billet is counted as N1;
[0075] In this embodiment, the deep learning model adopts an improved unet model, which selects a unet model that has been downsampled four times, adds a BN layer to it, and selects relu as the activation function;
[0076] S5: Use the trained deep learning model to judge and segment the crack type of the low-magnification sample of the continuous casting billet to be evaluated. If cracks exist, skeletonize the segmented crack image and calculate the maximum number of skeleton pixels N2, N3, and N4 in the middle crack, corner crack, and triangular crack;
[0077] The method for identifying and segmenting cracks is as follows: inputting a low-magnification sample image of a continuous casting billet into a YOLO V3 model for detection to determine whether cracks exist and the type of cracks;
[0078] If the ingot contains cracks, the low-magnification image is sent to the pspnet model for semantic segmentation; if not, the output is that there are no cracks.
[0079] The crack type is one or more of a middle crack, a corner crack, and a triangular area crack.
[0080] In this embodiment, the low-magnification sample image of the continuous casting billet is sent to the YOLO V3 model for detection to determine whether there are cracks and the type of cracks. The YOLO V3 model is as follows: Figure 3 As shown;
[0081] If the ingot contains cracks, the low-magnification image is sent to the pspnet model for semantic segmentation. If not, the output is that there are no cracks. Figure 4As shown, the context information of different regions can be aggregated, thereby improving the ability to obtain global information. The crack category is one or more of a middle crack, a corner crack, and a triangular crack.
[0082] S6: According to N1, N2, N3, and N4 obtained in S4 and S5, the relative ratios of the middle crack, corner crack, and triangular crack of the continuous casting billet are obtained: W1=(N2 / N1)*100%, W2=(N3 / N1)*100%, and W3=(N4 / N1)*100%; the actual lengths of the middle crack, corner crack, and triangular crack are calculated by the actual width of the billet, the number of pixels of the billet image, and the length of the crack skeleton: L1=S*N2 / N1, L2=S*N3 / N1, and L3=S*N4 / N1;
[0083] S7: According to the relative ratio of cracks, the selected low-magnification sample images of continuous casting billets are comprehensively rated in combination with the quantitative metallurgical industry standard YB / T 4003-2016, and the rating results and actual crack length are displayed on the interface, such as Figure 5 As shown, the division result of the crack area is displayed in the system's prediction output-crack module, and is convenient for users to observe. The crack area is marked with a box, such as Figure 6 As shown, in this module, users can freely adjust the low-magnification image size to facilitate observation of crack segmentation effects, and can modify the results in the rating modification module;
[0084] S8: Record the ingot process information and rating results into the database. To facilitate users to search and compare data, this system sets up a historical data query module in the interface, such as Figure 7 As shown, users can select the start and end time, casting speed, steel type, continuous casting machine, and each defect level option to screen the historically rated steel types, compare their process parameters, and optimize the continuous casting process.
[0085] On the other hand, a system for rating internal cracks in continuous casting slabs is proposed, which is used to implement the method for rating internal cracks in continuous casting slabs, such as Figure 8 As shown, it includes a recommendation module, a sample processing module, an industry standard module, a historical data query module, a rating modification module for changing and supplementing historical rating data, and a prediction output module for displaying the continuous casting billet processing results in the form of pictures.
[0086] The recommendation scheme module: the user inputs the size and steel type of the continuous casting billet to be rated, and the acid immersion corrosion conditions corresponding to the continuous casting billet are recommended to achieve a quantitative corrosion effect.
[0087] The sample processing module is composed of sample parameter selection, rating results and situation analysis. The sample parameters are that the user needs to select the low-magnification sample photo of the continuous casting billet to be evaluated and input the corresponding sample parameters such as billet size, steel type, casting speed, furnace, furnace number, rater, furnace number, continuous casting machine, superheat, and electric stirring current information. After the system completes the rating of the input photos, the rating results will be displayed in the rating result part of the module, and the causes of internal cracks in the continuous casting billet will be analyzed, and the corresponding results and sample parameters will be stored in the database.
[0088] Industry standard module: Analyze the characteristics of cracks in industry standards, display pictures of cracks at all levels, and conduct quantitative analysis on them.
[0089] Historical data query module: select the start and end time, casting speed, steel type, continuous casting machine, and crack level options to filter the historically rated steel types, compare the continuous casting process parameters, and optimize the continuous casting process.
Claims
1. A method for rating internal cracks in a continuous casting slab, characterized in that: The following steps are involved: S1: Perform low-magnification hot acid corrosion on the continuous casting billet sample, and use a digital camera to collect low-magnification images of the continuous casting billet sample after corrosion; S2: Send the collected images to the deep learning model for training; S3: setting the casting process information of the continuous casting billet to be evaluated and the collected low-magnification sample image of the continuous casting billet to be evaluated; the casting process information includes process parameters and dimensions; S4: Using the trained deep learning model, the low-magnification sample of the continuous casting billet and the background in the collected image are segmented, and the number of pixels of the equivalent rectangular width of the low-magnification sample of the continuous casting billet is counted as N1; S5: Use the trained deep learning model to judge and segment the crack type of the low-magnification sample of the continuous casting billet to be evaluated. If cracks exist, skeletonize the segmented crack image and calculate the maximum number of skeleton pixels N2, N3, and N4 in the middle crack, corner crack, and triangular crack; S6: According to N1, N2, N3, and N4 obtained in S4 and S5, the relative ratios of the middle crack, corner crack, and triangular crack of the continuous casting billet are obtained: W1=(N2 / N1)*100%, W2=(N3 / N1)*100%, and W3=(N4 / N1)*100%; the actual lengths of the middle crack, corner crack, and triangular crack are calculated by the actual width of the billet, the number of pixels of the billet image, and the length of the crack skeleton: L1=S*N2 / N1, L2=S*N3 / N1, and L3=S*N4 / N1; S7: According to the relative ratio of cracks, the low-magnification sample images of the selected continuous casting billet are rated in combination with the metallurgical industry standards, and the rating results and the actual length of the cracks are output; S8: Record the ingot process information and rating results into the database to facilitate user search and comparison, so as to optimize the continuous casting process.
2. The method for internal crack rating of continuous casting slab according to claim 1, characterized in that: In S1, the hot acid corrosion comprises the following steps: S1.1: Cut a section of continuous casting billet and grind it until the surface roughness Ra of the continuous casting billet is less than 1.6μm; S1.2: Select the corrosive liquid and corrosive temperature according to the steel type and billet size to corrode the continuous casting billet; S1.3: Wash with hot water and blow dry, take photos and collect samples.
3. The method for internal crack rating of continuous casting slab according to claim 1, characterized in that: The S1 medium and low magnification samples are continuous casting slab corrosion samples with a magnification of no more than 10, and the metallurgical industry standard adopts YB / T 4003-2016.
4. The method for rating internal cracks of continuous casting slabs according to claim 1, characterized in that: In S2, deep learning model training includes the following steps: S2.1: Collect low-magnification sample images of continuous casting billets, annotate low-magnification sample images and crack images, and create training set S train , test set S test And the validation set S val ; S2.2: Perform data augmentation operations on the prepared dataset.
5. The method for rating internal cracks of continuous casting slabs according to claim 4, characterized in that: The data enhancement operation is performed by selecting one or more of the following operations: horizontal flipping, vertical flipping and translation of the low-magnification sample image of the continuous casting slab; S2.3: Resize the dataset, and send it to the deep learning model after its image size is set to (H, W, C), where H represents the height of the resized image, W represents the width of the resized image, and C represents the number of channels of the resized image; S2.4: In TensorFlow, cross entropy and custom loss are used as the loss functions for ingot identification and crack identification respectively, and dice is used as the evaluation criterion to train the model until the specified number of training times is reached or the loss function is lower than the set value; S2.5: Test the trained model and save the model whose rating indicator dice is greater than the set threshold. Otherwise, repeat step S2.4 to continue training. The rating indicator dice is set to a threshold of 0.
6.
6. The method for rating internal cracks of continuous casting slabs according to claim 1, characterized in that: The deep learning model in S4 adopts an improved unet model, which selects a unet model that has been downsampled four times, adds a BN layer to it, and selects relu as the activation function.
7. The method for rating internal cracks of continuous casting slabs according to claim 1, characterized in that: The method for identifying and segmenting cracks in S5 is: inputting the low-magnification sample image of the continuous casting billet into the YOLO V3 model for detection to determine whether there are cracks and the type of cracks; If the ingot contains cracks, the low-magnification image is sent to the pspnet model for semantic segmentation; If not included, the output will have no cracks.
8. The method for rating internal cracks of continuous casting slabs according to claim 7, characterized in that: The crack type is one or more of a middle crack, a corner crack, and a triangular area crack.
9. A system for rating internal cracks in continuous casting slabs, used to implement the method for rating internal cracks in continuous casting slabs as claimed in claim 1, characterized in that: It includes a recommendation module, a sample processing module, an industry standard module, a historical data query module, a rating modification module for changing and supplementing historical rating data, and a prediction output module that displays the continuous casting billet processing results in the form of pictures.
10. The system for internal crack rating of continuous casting slab according to claim 9, characterized in that: The recommendation module: the user inputs the size and steel type of the continuous casting billet to be rated, and the acid immersion corrosion conditions corresponding to the continuous casting billet are recommended to achieve a quantitative corrosion effect; The sample processing module: consists of selecting sample parameters, rating results and situation analysis; the sample parameters are to select low-magnification sample photos of the continuous casting billet to be evaluated and input corresponding sample parameters, including billet size, steel type, drawing speed, furnace, furnace number, rater, furnace number, continuous casting machine, superheat, electric stirring current information; after the system completes the rating of the input photos, the rating results are displayed in the rating result part of the module, and the causes of internal cracks in the continuous casting billet are analyzed, and the evaluation results and sample parameters are stored in the database; Industry standard module: Analyze the characteristics of cracks in industry standards, display pictures of cracks at all levels, and conduct quantitative analysis on them; Historical data query module: select the start and end time, casting speed, steel type, continuous casting machine, and crack level to screen the historically rated steel types, compare the continuous casting process parameters, and optimize the continuous casting process.
