Slag quantity detection method and system based on deep learning

Through the slag amount detection method based on deep learning, using image segmentation network and gray value analysis, the problem of slag amount identification error in the existing technology under the condition of contrast difference and smoke occlusion is solved, achieving higher recognition accuracy and reliability.

CN118864348APending Publication Date: 2024-10-29SHANGHAI BAOSIGHT SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410015018.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology does not perform well in identifying molten iron slag under conditions such as large contrast differences and smoke obstruction, resulting in large errors in the identification process of slag removal and slag removal, which affects subsequent slag removal path planning.

Method used

The slag amount detection method based on deep learning is used, through data preprocessing and image segmentation network training, the liquid surface area mask is obtained, and three-color distinction is performed through gray value analysis, the proportion of slag amount is calculated, and the multi-level features of the neural network are used Training improves recognition accuracy.

Benefits of technology

It effectively solves the liquid level recognition problem of traditional visual methods under image contrast differences, occlusion and smoke interference, and improves the accuracy and reliability of slag volume detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864348A_ABST
    Figure CN118864348A_ABST
Patent Text Reader

Abstract

The invention provides a slag quantity detection method and system based on deep learning, and the method comprises the steps: S1, collecting data, carrying out the preprocessing of the data in an actual scene, marking the data, and carrying out the data set expansion and augmentation, and obtaining a data set for image segmentation network training; s2, training the data set by using an image segmentation network to obtain a segmentation model; s3, using the segmentation model to obtain a liquid level area mask of the data; and S4, carrying out gray value analysis on the liquid level area mask to obtain a gray-scale map statistical rule of the liquid level area, distinguishing the liquid level area, and finally calculating the slag amount proportion. According to the method, multi-level feature training can be performed on a large number of slag surfaces by adopting a network structure of a neural network, and the problem that the liquid level cannot be effectively identified due to interference of image contrast difference, shielding, smoke and the like when a traditional visual method is used for processing the slag-off liquid level is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of metallurgical technology, and in particular to a slag amount detection method and system based on deep learning. Background Art

[0002] As the first step in the entire slag removal process, the detection of slag quantity is crucial to the subsequent process in terms of accuracy of identification and rapidity of judgment and response. The existing patented method directly identifies the molten iron slag, but the identification effect of the molten iron slag is very poor in the case of large contrast difference, smoke obstruction, etc.

[0003] Therefore, the invention patent with publication number CN112017145B in the prior art discloses an efficient automatic slag removal method and system for molten iron pretreatment, or the invention patent with publication number CN112091206A discloses a safe and reliable automatic slag removal method and system for molten iron pretreatment, or the invention patent with publication number CN113755667B discloses a dynamic control method and device for automatic slag removal for molten iron pretreatment. Although the overall system solution of the above patents has opened up the entire slag removal business process, there are still large errors in the process of slag removal slag amount identification, which will seriously affect subsequent slag removal path planning and other processes. Summary of the invention

[0004] In view of the defects in the prior art, the present invention provides a slag amount detection method and system based on deep learning.

[0005] According to a slag amount detection method and system based on deep learning provided by the present invention, the scheme is as follows:

[0006] In a first aspect, a slag amount detection method based on deep learning is provided, the method comprising:

[0007] Step S1: Collect data, pre-process the data in the actual scene, annotate the data and expand the data set to obtain a data set for image segmentation network training;

[0008] Step S2: Use the image segmentation network to train the data set to obtain a segmentation model;

[0009] Step S3: using the segmentation model to obtain a liquid surface area mask of the data;

[0010] Step S4: grayscale value analysis is performed on the liquid surface area mask to obtain the grayscale image statistical law of the liquid surface area, the liquid surface area is distinguished, and finally the slag volume ratio is calculated.

[0011] Preferably, step S1 includes: collecting historical slag surface original image data of the slag pot through an on-site industrial camera, annotating the original image data using data annotation software, and saving the annotation results as a slag surface mask image corresponding to the original image data, the original image data and the slag surface mask image data constitute the original raw data set; using a model preprocessing script to perform data enhancement on the slag surface mask image data.

[0012] Preferably, the data enhancement is to generate more training data by using existing training sample data, and the data enhancement means specifically include:

[0013] Random rotation and flipping: including random angle rotation and horizontal / vertical flipping of the slag surface mask image data, and controlling the rotation angle between -30° and +30°;

[0014] Random cropping: Randomly crop part of the slag surface mask image data as training samples, and only retain samples containing the slag surface area, so that the model can adapt to changes in different cropping positions;

[0015] Random scaling: Randomly scale the slag surface mask image data;

[0016] Add noise: Add noise to the slag surface mask image data to simulate the actual data collection situation;

[0017] Random occlusion: randomly occlude part of the slag surface mask image data, that is, randomly generate a rectangular occlusion on the slag surface mask image data, and the position and size of the occlusion are randomly generated;

[0018] Random grayscale and random color adjustment: Random grayscale is to convert the slag mask image data into a grayscale image according to random probability. Random color adjustment is to adjust the brightness, contrast, saturation, and hue to eliminate the color deviation caused by equipment and light problems during the shooting process.

[0019] Image denoising: Use denoising algorithm to process the slag surface mask image data;

[0020] Finally, by expanding and augmenting the dataset, and then using the dataset partitioning script, the expanded dataset is divided into training set, validation set, and test set in a ratio of 7:2:1, and a dataset that can be used for image segmentation network training is obtained.

[0021] Preferably, step S3 includes: after the original image data of the slag surface is collected in real time by an industrial camera, the segmentation model is used to perform online inference on the original image data of the slag surface, and the result of the inference is the position of the liquid surface area in the image. The liquid surface area is represented by a liquid surface mask, that is, the coordinate set of all pixel points in the liquid surface area in the image.

[0022] Preferably, step S4 comprises: obtaining the histogram distribution of the area through histogram statistics, obtaining the average histogram pixel value according to histogram equalization, dividing the original histogram according to the pixel value, and obtaining two thresholds of the original histogram, wherein the smaller threshold corresponds to the boundary between dark-colored pixels and light-colored pixels, and the larger threshold corresponds to the boundary between light-colored pixels and bright-colored pixels, and accordingly distinguishing the liquid surface area of ​​the original image by three colors, namely, molten iron, light-colored slag, and dark-colored slag;

[0023] The pixels smaller than the smaller threshold are classified as dark slag surface, the pixels larger than the larger threshold are classified as bright molten iron area, and the pixels between the two thresholds are classified as light slag surface.

[0024] Finally, the proportion of each part in the original slag surface area is calculated and compared with its own database by the PLC as the lower computer to determine the subsequent slag removal arm action.

[0025] In a second aspect, a slag amount detection system based on deep learning is provided, the system comprising:

[0026] Module M1: Collect data, pre-process the data in the actual scene, annotate the data and expand the data set to obtain the data set for image segmentation network training;

[0027] Module M2: Use the image segmentation network to train the data set to obtain a segmentation model;

[0028] Module M3: using the segmentation model to obtain a liquid surface area mask of the data;

[0029] Module M4: Perform grayscale value analysis on the liquid surface area mask, obtain the statistical law of the grayscale image of the liquid surface area, distinguish the liquid surface area, and finally calculate the slag volume ratio.

[0030] Preferably, the module M1 includes: collecting historical slag surface original image data of the slag pot through an on-site industrial camera, annotating the original image data using data annotation software, and saving the annotation results as a slag surface mask image corresponding to the original image data, and the original image data and the slag surface mask image data constitute the original raw data set; using a model preprocessing script to perform data enhancement on the slag surface mask image data.

[0031] Preferably, the data enhancement is to generate more training data by using existing training sample data, and the data enhancement means specifically include:

[0032] Random rotation and flipping: including random angle rotation and horizontal / vertical flipping of the slag surface mask image data, and controlling the rotation angle between -30° and +30°;

[0033] Random cropping: Randomly crop part of the slag surface mask image data as training samples, and only retain samples containing the slag surface area, so that the model can adapt to changes in different cropping positions;

[0034] Random scaling: Randomly scale the slag surface mask image data;

[0035] Add noise: Add noise to the slag surface mask image data to simulate the actual data collection situation;

[0036] Random occlusion: randomly occlude part of the slag surface mask image data, that is, randomly generate a rectangular occlusion on the slag surface mask image data, and the position and size of the occlusion are randomly generated;

[0037] Random grayscale and random color adjustment: Random grayscale is to convert the slag mask image data into a grayscale image according to random probability. Random color adjustment is to adjust the brightness, contrast, saturation, and hue to eliminate the color deviation caused by equipment and light problems during the shooting process.

[0038] Image denoising: Use denoising algorithm to process the slag surface mask image data;

[0039] Finally, by expanding and augmenting the dataset, and then using the dataset partitioning script, the expanded dataset is divided into training set, validation set, and test set in a ratio of 7:2:1, and a dataset that can be used for image segmentation network training is obtained.

[0040] Preferably, the module M3 includes: after the original image data of the slag surface is collected in real time by an industrial camera, the segmentation model is used to perform online inference on the original image data of the slag surface, and the result of the inference is the position of the liquid surface area in the image. The liquid surface area is represented by a liquid surface mask, that is, the coordinate set of all pixel points in the liquid surface area in the image.

[0041] Preferably, the module M4 comprises: obtaining the histogram distribution of the area through histogram statistics, obtaining the average histogram pixel value according to histogram equalization, dividing the original histogram according to the pixel value, obtaining two thresholds of the original histogram, the smaller threshold corresponds to the boundary between dark-colored pixels and light-colored pixels, and the larger threshold corresponds to the boundary between light-colored pixels and bright-colored pixels, and accordingly distinguishing the liquid surface area of ​​the original image into three colors, namely, molten iron, light-colored slag, and dark-colored slag;

[0042] The pixels smaller than the smaller threshold are classified as dark slag surface, the pixels larger than the larger threshold are classified as bright molten iron area, and the pixels between the two thresholds are classified as light slag surface.

[0043] Finally, the proportion of each part in the original slag surface area is calculated and compared with its own database by the PLC as the lower computer to determine the subsequent slag removal arm action.

[0044] Compared with the prior art, the present invention has the following beneficial effects:

[0045] The present invention adopts the network structure of a neural network to perform multi-level feature training on a large number of slag surfaces, thereby solving the problem that the traditional visual method for processing the slag liquid surface cannot effectively identify the liquid surface due to interference such as image contrast difference, occlusion, and smoke.

[0046] Other beneficial effects of the present invention will be explained in the specific implementation manner through the introduction of specific technical features and technical solutions. Through the introduction of these technical features and technical solutions, those skilled in the art should be able to understand the beneficial technical effects brought about by the technical features and technical solutions. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0048] Figure 1 The figure is a schematic diagram of the overall process;

[0049] Figure 2 This is a schematic diagram of data preprocessing;

[0050] Figure 3 This is a schematic diagram of the network model. DETAILED DESCRIPTION

[0051] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0052] The embodiment of the present invention provides a slag amount detection method based on deep learning, referring to Figure 1 As shown, the method specifically includes the following contents:

[0053] Step S1: Preprocess the data in the actual scene, mainly grayscale processing for strong light-dark contrast, smoke occlusion and other situations, label the data and expand the data set to obtain data that can be used for image segmentation network training.

[0054] In the model data preprocessing stage, we first collect historical slag surface images of the slag tank through the on-site industrial camera, and use common data annotation software such as labelme to annotate the data. The annotated results are saved as slag surface mask images corresponding to the original images. The original images and mask image data constitute the original raw data set. Considering the problem that the data may be insufficient, the model preprocessing script is used to enhance the image data. Data enhancement is a method of generating more training data by using existing training sample data. Figure 2 As shown in the figure, the data enhancement methods used in this article include:

[0055] 1) Random rotation and flipping: This includes rotating the image at random angles and flipping it horizontally or vertically. Considering that the slag surface image has a certain tilt angle in actual situations, the rotation angle is controlled between -30° and +30°. This method is used to increase the robustness of the model to rotation and mirror transformations.

[0056] 2) Random cropping: Randomly crop a part of the image as a training sample. Only samples containing the slag surface area are retained, so that the model can adapt to changes in different cropping positions.

[0057] 3) Random Scaling: Randomly scale the image to increase the model’s adaptability to scale changes.

[0058] 4) Adding noise: Adding noise to the image is to simulate the actual data collection situation, such as the influence of random environmental factors, lighting changes, etc. The Gaussian noise added in this paper is a common type of image noise, which can make the model more robust and improve its adaptability to noisy environments.

[0059] 5) Random occlusion: Randomly occlude a part of the image and randomly generate a rectangular occlusion on the image. The position and size of the occlusion are randomly generated. This is because the slag scraper arm may block the slag surface in actual situations. The slag scraper arm itself is also a rectangle in the imaging. This is to simulate target recognition under occlusion.

[0060] 6) Random grayscale and random color adjustment: Random grayscale is to convert the image into a grayscale image according to random probability. Random color adjustment is to eliminate the color deviation caused by equipment and light problems during the photo shooting process by adjusting brightness, contrast, saturation, and hue. Therefore, these properties need to be adjusted to offset the disturbance caused by these factors.

[0061] 7) Image denoising: Use denoising algorithm to process the image. Considering the presence of a large amount of noise such as smoke in the actual slag removal process, this method is used to improve the robustness of the model to noise.

[0062] By expanding and augmenting the dataset, and then using the dataset partitioning script to divide the expanded dataset into training set, validation set, and test set in a ratio of 7:2:1, a dataset that can be used for image segmentation network training is obtained.

[0063] Step S2: Refer to Figure 3 As shown in the figure, in the model training stage, the image segmentation network is used to train the data set to obtain the segmentation model; here, a lightweight MobileNet network (MobileNet network is a stack of deep separable convolution modules, deep separable convolution is a decomposable convolution operation, which can also be decomposed into two smaller convolution operations, namely deep convolution and point-by-point convolution. The overall effect of this is similar to that of a standard convolution, but it will greatly reduce the amount of calculation and the number of model parameters) is used as the backbone of the deeplabv3+ algorithm, which introduces deep convolution-based atrous spatial pyramid pooling (atrous spatial pyramid pooling ASPP is composed of 4 parallel atrous convolution modules with different convolution rates to obtain a larger receptive field and extract more contextual information. In this algorithm, the convolution of ASPP is replaced by deep convolution to reduce the number of parameters. This method improves the performance of the model on objects of different scales while further speeding up the calculation speed) structure, so that deep atrous convolutions with different sampling rates can be used to parallelly process feature maps. In addition, the algorithm uses an encoder-decoder structure. The encoder obtains image feature information, and the decoder decodes and restores the feature information. In addition, the decoder also uses shallow feature information when restoring features to restore target boundary details. During the process of loading the training data set for training, the validation set will be verified in each training round. The changes in indicators such as the accuracy and recall rate of the model can be viewed according to the real-time log. The training model indicators finally obtained in this application are: precision P = 0.99417, recall R = 1, mAP50: 0.995, mAP50-95: 0.97338.

[0064] Step S3: Use the segmentation model to obtain the liquid surface area mask of the data to be processed.

[0065] In the model inference stage, after the slag surface image is collected in real time by the industrial camera, the first step is to use the segmentation model to perform online inference on the image data. The result of the inference is the position of the liquid surface area in the image (the slag surface area in this article is an area approximately elliptical). The liquid surface area is represented by a liquid surface mask, which is essentially the coordinate set of all pixel points in the liquid surface area in the image.

[0066] Step S4: grayscale value analysis is performed on the liquid surface area mask to obtain the grayscale image statistical law of the liquid surface area, the liquid surface area is distinguished by three colors (molten iron, light slag, dark slag), and finally the slag volume ratio is calculated.

[0067] In the model inference stage, the second step is to analyze the grayscale value of the liquid surface mask and obtain the grayscale image statistics of the liquid surface area. Here, the histogram distribution of the area is first obtained through histogram statistics, and then the average histogram pixel value is obtained according to the histogram equalization. According to the pixel value, the original histogram can be divided to obtain two thresholds of the original histogram. The smaller threshold corresponds to the boundary between dark pixels and light pixels, and the larger threshold corresponds to the boundary between light pixels and bright pixels. Based on this, the liquid surface area of ​​the original image can be distinguished by three colors (molten iron, light slag, dark slag), that is, pixels less than the smaller threshold are classified as dark slag surface, pixels greater than the larger threshold are classified as bright molten iron area, and pixels between the two thresholds are classified as light slag surface. Finally, the proportion of each part in the original slag surface area is statistically calculated. As the lower computer, the PLC can compare the proportion with its own database to determine the subsequent slag removal arm action.

[0068] The present invention also provides a slag amount detection system based on deep learning, which can be implemented by executing the process steps of the slag amount detection method based on deep learning, that is, those skilled in the art can understand the slag amount detection method based on deep learning as a preferred implementation of the slag amount detection system based on deep learning. The system specifically includes the following contents:

[0069] Module M1: Preprocess the data in the actual scene, mainly grayscale processing for strong light-dark contrast, smoke occlusion and other situations, label the data and expand the data set to obtain data that can be used for image segmentation network training.

[0070] In the model data preprocessing stage, we first collect historical slag surface images of the slag tank through the on-site industrial camera, and use common data annotation software such as labelme to annotate the data. The annotated results are saved as slag surface mask images corresponding to the original images. The original images and mask image data constitute the original raw data set. Considering the problem that the data may be insufficient, the model preprocessing script is used to enhance the image data. Data enhancement is a method of generating more training data by using existing training sample data. The data enhancement methods used in this article include:

[0071] 1) Random rotation and flipping: This includes rotating the image at random angles and flipping it horizontally or vertically. Considering that the slag surface image has a certain tilt angle in actual situations, the rotation angle is controlled between -30° and +30°. This method is used to increase the robustness of the model to rotation and mirror transformations.

[0072] 2) Random cropping: Randomly crop a part of the image as a training sample. Only samples containing the slag surface area are retained, so that the model can adapt to changes in different cropping positions.

[0073] 3) Random Scaling: Randomly scale the image to increase the model’s adaptability to scale changes.

[0074] 4) Adding noise: Adding noise to the image is to simulate the actual data collection situation, such as the influence of random environmental factors, lighting changes, etc. The Gaussian noise added in this paper is a common type of image noise, which can make the model more robust and improve its adaptability to noisy environments.

[0075] 5) Random occlusion: Randomly occlude a part of the image and randomly generate a rectangular occlusion on the image. The position and size of the occlusion are randomly generated. This is because the slag scraper arm may block the slag surface in actual situations. The slag scraper arm itself is also a rectangle in the imaging. This is to simulate target recognition under occlusion.

[0076] 6) Random grayscale and random color adjustment: Random grayscale is to convert the image into a grayscale image according to random probability. Random color adjustment is to eliminate the color deviation caused by equipment and light problems during the photo shooting process by adjusting brightness, contrast, saturation, and hue. Therefore, these properties need to be adjusted to offset the disturbance caused by these factors.

[0077] 7) Image denoising: Use denoising algorithm to process the image. Considering the presence of a large amount of noise such as smoke in the actual slag removal process, this method is used to improve the robustness of the model to noise.

[0078] By expanding and augmenting the dataset, and then using the dataset partitioning script, the expanded dataset is divided into training set, validation set, and test set in a ratio of 7:2:1. At this point, a dataset that can be used for image segmentation network training is obtained.

[0079] Module M2: In the model training phase, the image segmentation network is used to train the dataset to obtain the segmentation model; the deeplabv3+ algorithm with a lightweight MobileNet network as the backbone is used here. The algorithm introduces the atrous spatial pyramid pooling (ASPP), so that the feature map can be processed in parallel using atrous convolutions of different sampling rates. This method improves the performance of the model on objects of different scales. In addition, the encoder-decoder structure of the algorithm is clear. The encoder obtains the image feature information, and the decoder decodes and restores the feature information to obtain an output feature map with the same resolution as the input image, so that accurate segmentation results can be obtained. In the process of loading the training dataset for training, the validation set will be added to each training round. The changes in the model's accuracy, recall rate and other indicators can be viewed according to the real-time log. The training model indicators obtained in this paper are: precision P = 0.99417, recall R = 1, mAP50: 0.995, mAP50-95: 0.97338.

[0080] Module M3: Use the segmentation model to obtain the liquid surface area mask of the data to be processed.

[0081] In the model inference stage, after the slag surface image is collected in real time by the industrial camera, the first step is to use the segmentation model to perform online inference on the image data. The result of the inference is the position of the liquid surface area in the image (the slag surface area in this article is an area approximately elliptical). The liquid surface area is represented by a liquid surface mask, which is essentially the coordinate set of all pixel points in the liquid surface area in the image.

[0082] Module M4: Analyze the grayscale value of the liquid surface area mask, obtain the statistical law of the grayscale image of the liquid surface area, distinguish the liquid surface area by three colors (molten iron, light slag, dark slag), and finally calculate the slag volume ratio.

[0083] In the model inference stage, the second step is to analyze the grayscale value of the liquid surface mask and obtain the grayscale image statistics of the liquid surface area. Here, the histogram distribution of the area is first obtained through histogram statistics, and then the average histogram pixel value is obtained according to the histogram equalization. According to the pixel value, the original histogram can be divided to obtain two thresholds of the original histogram. The smaller threshold corresponds to the boundary between dark pixels and light pixels, and the larger threshold corresponds to the boundary between light pixels and bright pixels. Based on this, the liquid surface area of ​​the original image can be distinguished by three colors (molten iron, light slag, dark slag), that is, pixels less than the smaller threshold are classified as dark slag surface, pixels greater than the larger threshold are classified as bright molten iron area, and pixels between the two thresholds are classified as light slag surface. Finally, the proportion of each part in the original slag surface area is statistically calculated. As the lower computer, the PLC can compare the proportion with its own database to determine the subsequent slag removal arm action.

[0084] The embodiment of the present invention provides a slag amount detection method and system based on deep learning. The slag surface image is collected in real time by an industrial camera on site, and the image is transmitted to a neural network model for analysis to obtain ROI (region of interest). Finally, the grayscale feature information of the ROI is counted to accurately calculate the proportion of molten iron and iron slag in the slag surface. This solves the problem that the traditional visual method cannot effectively identify the liquid surface due to interference such as image contrast difference, occlusion, and smoke when processing the slag liquid surface.

[0085] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, it is entirely possible to realize the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.

[0086] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A slag quantity detection method based on deep learning, It is characterized in that include: Step S1: Collect data, pre-process the data in the actual scene, annotate the data and expand the data set to obtain a data set for image segmentation network training; Step S2: Use the image segmentation network to train the data set to obtain a segmentation model; Step S3: using the segmentation model to obtain a liquid surface area mask of the data; Step S4: grayscale value analysis is performed on the liquid surface area mask to obtain the grayscale image statistical law of the liquid surface area, the liquid surface area is distinguished, and finally the slag volume ratio is calculated.

2. The slag amount detection method based on deep learning according to claim 1, It is characterized in that The step S1 comprises: collecting historical slag surface original image data of the slag pot through an on-site industrial camera, annotating the original image data using data annotation software, and saving the annotation results as a slag surface mask image corresponding to the original image data, wherein the original image data and the slag surface mask image data constitute an original raw data set; and performing data enhancement on the slag surface mask image data using a model preprocessing script.

3. The slag amount detection method based on deep learning according to claim 2, It is characterized in that The data enhancement is to generate more training data by using the existing training sample data. The data enhancement means specifically include: Random rotation and flipping: including random angle rotation and horizontal / vertical flipping of the slag surface mask image data, and controlling the rotation angle between -30° and +30°; Random cropping: Randomly crop part of the slag surface mask image data as training samples, and only retain samples containing the slag surface area, so that the model can adapt to changes in different cropping positions; Random scaling: Randomly scale the slag surface mask image data; Add noise: Add noise to the slag surface mask image data to simulate the actual data collection situation; Random occlusion: randomly occlude part of the slag surface mask image data, that is, randomly generate a rectangular occlusion on the slag surface mask image data, and the position and size of the occlusion are randomly generated; Random grayscale and random color adjustment: Random grayscale is to convert the slag mask image data into a grayscale image according to random probability. Random color adjustment is to adjust the brightness, contrast, saturation, and hue to eliminate the color deviation caused by equipment and light problems during the shooting process. Image denoising: Use denoising algorithm to process the slag surface mask image data; Finally, by expanding and augmenting the dataset, and then using the dataset partitioning script, the expanded dataset is divided into training set, validation set, and test set in a ratio of 7:2:1, and a dataset that can be used for image segmentation network training is obtained.

4. The slag amount detection method based on deep learning according to claim 1, It is characterized in that The step S3 includes: after the original image data of the slag surface is collected in real time by an industrial camera, the segmentation model is used to perform online inference on the original image data of the slag surface. The result of the inference is the position of the liquid surface area in the image. The liquid surface area is represented by a liquid surface mask, that is, a coordinate set of all pixel points in the liquid surface area in the image.

5. The slag amount detection method based on deep learning according to claim 1, It is characterized in that The step S4 comprises: obtaining the histogram distribution of the area through histogram statistics, obtaining the average histogram pixel value according to histogram equalization, dividing the original histogram according to the pixel value, and obtaining two thresholds of the original histogram, wherein the relatively small threshold corresponds to the boundary between the dark pixel point and the light pixel point, and the relatively large threshold corresponds to the boundary between the light pixel point and the bright pixel point, and accordingly distinguishing the liquid surface area of ​​the original image into three colors, namely, molten iron, light slag, and dark slag; The pixels smaller than the smaller threshold are classified as dark slag surface, the pixels larger than the larger threshold are classified as bright molten iron area, and the pixels between the two thresholds are classified as light slag surface. Finally, the proportion of each part in the original slag surface area is calculated and compared with its own database by the PLC as the lower computer to determine the subsequent slag removal arm action.

6. A slag quantity detection system based on deep learning, It is characterized in that include: Module M1: Collect data, pre-process the data in the actual scene, annotate the data and expand the data set to obtain the data set for image segmentation network training; Module M2: Use the image segmentation network to train the data set and obtain the segmentation model; Module M3: using the segmentation model to obtain a liquid surface area mask of the data; Module M4: Perform grayscale value analysis on the liquid surface area mask, obtain the statistical law of the grayscale image of the liquid surface area, distinguish the liquid surface area, and finally calculate the slag volume ratio.

7. The slag quantity detection system based on deep learning according to claim 6, It is characterized in that The module M1 includes: collecting historical slag surface original image data of the slag pot through an on-site industrial camera, annotating the original image data using data annotation software, and saving the annotation results as a slag surface mask image corresponding to the original image data. The original image data and the slag surface mask image data constitute the original raw data set; using a model preprocessing script to enhance the slag surface mask image data.

8. The slag quantity detection system based on deep learning according to claim 7, It is characterized in that The data enhancement is to generate more training data by using the existing training sample data. The data enhancement means specifically include: Random rotation and flipping: including random angle rotation and horizontal / vertical flipping of the slag surface mask image data, and controlling the rotation angle between -30° and +30°; Random cropping: Randomly crop part of the slag surface mask image data as training samples, and only retain samples containing the slag surface area, so that the model can adapt to changes in different cropping positions; Random scaling: Randomly scale the slag surface mask image data; Add noise: Add noise to the slag surface mask image data to simulate the actual data collection situation; Random occlusion: randomly occlude part of the slag surface mask image data, that is, randomly generate a rectangular occlusion on the slag surface mask image data, and the position and size of the occlusion are randomly generated; Random grayscale and random color adjustment: Random grayscale is to convert the slag mask image data into a grayscale image according to random probability. Random color adjustment is to adjust the brightness, contrast, saturation, and hue to eliminate the color deviation caused by equipment and light problems during the shooting process. Image denoising: Use denoising algorithm to process the slag surface mask image data; Finally, by expanding and augmenting the dataset, and then using the dataset partitioning script, the expanded dataset is divided into training set, validation set, and test set in a ratio of 7:2:1, and a dataset that can be used for image segmentation network training is obtained.

9. The slag quantity detection system based on deep learning according to claim 6, It is characterized in that The module M3 includes: after the original image data of the slag surface is collected in real time by an industrial camera, the segmentation model is used to perform online reasoning on the original image data of the slag surface. The result of the reasoning is the position of the liquid surface area in the image. The liquid surface area is represented by a liquid surface mask, that is, the coordinate set of all pixel points in the liquid surface area in the image.

10. The slag amount detection system based on deep learning according to claim 6, It is characterized in that The module M4 comprises: obtaining the histogram distribution of the area through histogram statistics, obtaining the average histogram pixel value according to the histogram equalization, dividing the original histogram according to the pixel value, and obtaining two thresholds of the original histogram, wherein the relatively small threshold corresponds to the boundary between the dark pixel point and the light pixel point, and the relatively large threshold corresponds to the boundary between the light pixel point and the bright pixel point, and accordingly distinguishing the liquid surface area of ​​the original image into three colors, namely, molten iron, light slag, and dark slag; The pixels smaller than the smaller threshold are classified as dark slag surface, the pixels larger than the larger threshold are classified as bright molten iron area, and the pixels between the two thresholds are classified as light slag surface. Finally, the proportion of each part in the original slag surface area is calculated and compared with its own database by the PLC as the lower computer to determine the subsequent slag removal arm action.

Citation Information

Cited By

  • Crystallizer casting powder covering state identification method based on deep learning

    CN120747815A