A real-time slab detection and macro tracking method based on deep learning
Through deep learning technology and the improved YOLOV5 model and multi-target tracking algorithm, full-time, all-round real-time detection and occlusion tracking of the slab on the roller table are achieved, solving the problems of short hardware life and poor reliability of the traditional PLC tracking method, and improving Improve the stability and efficiency of continuous casting production.
Patent Information
- Application Number
- CN202210577050.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-05-25
AI Technical Summary
The traditional PLC-based slab tracking method has short hardware life and poor reliability in high-temperature environments, resulting in the loss of slab tracking information and affecting the efficient and stable operation of continuous casting production.
Using a method based on deep learning, by installing a camera to capture the roller conveyor in real time and using the improved YOLOV5 model and multi-target tracking algorithm, the full-time, all-round real-time detection and occlusion tracking of the slab on the roller conveyor is realized, and the server computer is used for data processing. , ensuring accurate tracking of slab information.
It improves slab identification accuracy and tracking speed, reduces maintenance costs, achieves stable and reliable operation of continuous casting production, and reduces slab information loss.
Smart Images

Figure CN114998238B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology of continuous casting production process, and in particular to a slab real-time detection and macro tracking method based on deep learning. Background Art
[0002] In the steel production process from slab continuous casting to hot rolling, the produced slabs are sprayed with unique numbers according to their order requirements, and are dispatched by the MES system and transmitted via rollers. One is to directly send them to the heating furnace for the next hot rolling production; the other is to temporarily store the slabs in the slab warehouse. When the slabs move on the rollers, the dispatching system will issue slab dispatching instructions from time to time according to actual needs. Some slabs are directly sent to hot rolling, some slabs are put into the slab warehouse, and sometimes it is necessary to use an overhead crane to transfer slabs from the slab warehouse to the rollers. When using an overhead crane to transport slabs, the operation of the overhead crane will block the slabs on the rollers and affect the running speed of the rollers. If there is no complete set of real-time detection and tracking methods and systems for slabs, the slab tracking information will be lost, which will affect the efficient, stable and reliable operation of the entire continuous casting and rolling production process.
[0003] At present, the more traditional slab tracking method is a continuous casting slab tracking system based on PLC. In the actual operation of this system, its infrared sensor signal is easily triggered by mistake, which in turn interferes with the slab tracking signal and reduces the tracking accuracy. In addition, since the sensor works in a high temperature environment for a long time, the hardware life is short and the reliability is poor. When the hardware equipment is damaged for maintenance and replacement, the production line needs to be suspended, resulting in high maintenance costs. Therefore, in order to replace the traditional slab tracking method, it is necessary to develop a slab real-time detection and macro tracking method based on deep learning. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a real-time detection and macro tracking method for slabs based on deep learning, so as to realize real-time detection and tracking of multiple slabs in all time periods and in all directions during roller transport, including accurate tracking of slabs on and off the line and of slab obstruction by overhead cranes. This method has higher recognition accuracy and faster tracking speed.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A slab real-time detection and macro tracking method based on deep learning comprises the following steps:
[0007] Step 1: Based on the actual situation of the transmission roller in the continuous casting area, several cameras are installed in sections to shoot the entire roller in real time, and it is ensured that the shooting areas of adjacent cameras do not overlap;
[0008] Step 2, complete the collection of the continuous casting slab transmission line operation image data set under each camera, and mark the slab, overhead crane, and slab clamping overhead crane for each camera image;
[0009] Step 3, respectively use the data set of each camera to train the improved YOLOV5 model to obtain the optimal weight of the model, and then use the optimized improved YOLOV5 models as the slab detection optimization model under each camera;
[0010] Step 4: Use the slab detection optimization model to detect the information of each slab on the roller in the current frame of the scene image, then use the slab detection result of the current frame in conjunction with the multi-target tracking algorithm, compare it with the slab detection result of the previous frame, and update and record the tracking ID information of each slab; when the slab moves from a certain camera shooting area to the next camera shooting area, the tracking ID of the same slab remains unchanged when it crosses the camera area;
[0011] Step 5, match the slab information in the slab scheduling system with the slab tracking IDs in step 4. When the slab scheduling system sends the slab on-line and off-line instructions, the slab real-time detection and macro tracking system can identify the on-line and off-line operations of the slab on the roller table and add or delete IDs in time.
[0012] A further improvement of the technical solution of the present invention is that in step 1, 6 cameras need to be installed to capture the entire roller area of the continuous casting production line, and the image data set collected by each camera is trained separately to obtain the optimal detection model weight for the group of data; the number of cameras is adjusted to be greater than 6 or less than 6 according to the size of the roller area to cover the entire roller area.
[0013] The further improvement of the technical solution of the present invention is that: in step 3, the spatial and channel attention modules are introduced to improve the backbone network of the YOLOV5 algorithm to complete the extraction of slab features; the multi-scale feature fusion network is introduced to improve the feature pyramid network of the YOLOV5 algorithm so that the extracted multi-scale features can be effectively fused.
[0014] A further improvement of the technical solution of the present invention is that in step 4, the slab information obtained by the slab detection optimization model is used as the input of the multi-target tracking algorithm to associate the frame-by-frame detection results of the slab, thereby creating a tracking trajectory of the slab and assigning a tracking ID to each slab.
[0015] A further improvement of the technical solution of the present invention is that the multi-target tracking algorithm adopts the SORT algorithm or the DeepSORT algorithm.
[0016] A further improvement of the technical solution of the present invention is that in step 5, the slab number information of the slab scheduling system is matched with the slab tracking ID and corresponds to each tracked slab.
[0017] A further improvement of the technical solution of the present invention lies in that: in step 5, the slab goes offline, that is, the overhead crane lifts away a slab, and the slab real-time detection and macro tracking system deletes the target slab accordingly according to the slab offline information sent by the slab scheduling system; the slab goes online, that is, the overhead crane lifts a slab, the slab real-time detection and macro tracking system receives the slab online information sent by the slab scheduling system and binds it to the newly identified slab located near the unloading platform; it can identify the obstruction of the slab by the overhead crane to ensure that the operation of the overhead crane will not cause the loss of slab tracking information.
[0018] A further improvement of the technical solution of the present invention is that the slab real-time detection and macro tracking system is a system constructed by running the slab real-time detection and macro tracking method on a server computer, which can realize real-time detection of the positions of multiple slabs on the roller and accurate tracking of the same slab when it crosses the camera area.
[0019] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is:
[0020] 1. The present invention uses machine vision technology to realize real-time detection and tracking of multiple slabs in all directions and at all times during roller transport, including accurate tracking of slabs on and off the line and slab obstruction by overhead cranes. This method has higher recognition accuracy and faster tracking speed; it solves the problems of difficult maintenance and replacement, short hardware life, and poor reliability of traditional PLC-based slab tracking methods.
[0021] 2. The present invention only requires one high-performance server and six cameras, which are easy to maintain and replace, have low use costs, and can ensure stable, reliable and efficient operation of continuous casting production.
[0022] 3. The present invention uses machine vision technology to detect and track the operation of each slab on the roller in real time, and interacts with the slab scheduling system in real time, realizing unmanned calling and storage during the operation of continuous casting of multiple slabs, laying a solid foundation for efficient production of continuous casting and rolling.
[0023] 4. The present invention can realize real-time detection of the positions of multiple slabs on the roller table and accurate tracking of the same slab when it crosses the camera area. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a general flow chart of a slab real-time detection and macro tracking method based on deep learning in an embodiment of the present invention;
[0025] Figure 2 A camera installation position diagram of a slab real-time detection and macro tracking method based on deep learning in an embodiment of the present invention;
[0026] Figure 3 It is a structural diagram of an improved YOLOV5 algorithm of a slab real-time detection and macro tracking method based on deep learning in an embodiment of the present invention;
[0027] Figure 4 This is a sub-flowchart of the SORT algorithm of the slab real-time detection and macro tracking method based on deep learning in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The embodiment of the present application solves the problems of difficult maintenance and replacement, short hardware life, poor reliability, etc. of the traditional PLC-based slab tracking method in the prior art by providing a real-time slab detection and macro tracking method based on deep learning. Machine vision technology is used to realize real-time detection and tracking of multiple slabs in all time periods and in all directions during roller transportation, and real-time interaction with the slab scheduling system is achieved, thus realizing unmanned calling and storage during the operation of multiple slabs in continuous casting, with higher recognition accuracy and faster tracking speed, laying a solid foundation for efficient production of continuous casting and rolling.
[0029] It should be noted that, in the description of the present invention, “several” means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0030] The present invention is further described in detail below with reference to the accompanying drawings and embodiments:
[0031] like Figure 1 As shown, a real-time detection and macro tracking method of slabs based on deep learning, that is, a tracking method of all slabs on a roller table, includes the following steps:
[0032] Step 1: Based on the actual situation of the transmission roller in the continuous casting area, several cameras are installed in sections to shoot the entire roller in real time, and it is ensured that the shooting areas of adjacent cameras do not overlap;
[0033] Specifically: 6 cameras need to be installed to capture the entire roller area of the continuous casting production line, and the image data set collected by each camera is trained separately to obtain the optimal detection model weight for the data set; the number of cameras can be adjusted to be greater than 6 or less than 6 according to the size of the roller area to cover the entire roller area.
[0034] Step 2, complete the collection of the continuous casting slab transmission line operation image data set under each camera, and mark the slab, overhead crane, and slab clamping overhead crane for each camera image;
[0035] Step 3, respectively use the data set of each camera to train the improved YOLOV5 model to obtain the optimal weight of the model, and then use the optimized improved YOLOV5 models as the slab detection optimization model under each camera;
[0036] Specifically: the spatial and channel attention modules are introduced to improve the backbone network of the YOLOV5 algorithm to complete the extraction of slab features; the multi-scale feature fusion network is introduced to improve the feature pyramid network of the YOLOV5 algorithm, so that the extracted multi-scale features can be effectively fused.
[0037] Step 4: Use the slab detection optimization model to detect the information of each slab on the roller in the current frame of the scene image, then use the slab detection result of the current frame in conjunction with the multi-target tracking algorithm, compare it with the slab detection result of the previous frame, and update and record the tracking ID information of each slab; when the slab moves from a certain camera shooting area to the next camera shooting area, the tracking ID of the same slab remains unchanged when it crosses the camera area;
[0038] Specifically: the slab information obtained by the slab detection optimization model is used as the input of the multi-target tracking algorithm, so that the frame-by-frame detection results of the slab are associated, and then the tracking trajectory of the slab is created, and a tracking ID is assigned to each slab; the multi-target tracking algorithm adopts the SORT (abbreviation of Simple Online and Realtime Tracking) algorithm or the DeepSORT algorithm.
[0039] Step 5, match the slab information in the slab scheduling system with the slab tracking IDs in step 4. When the slab scheduling system sends the slab on-line and off-line instructions, the slab real-time detection and macro tracking system can identify the on-line and off-line operations of the slab on the roller table and add or delete IDs in time.
[0040] Specifically: the slab number information of the slab scheduling system is matched with the slab tracking ID, and corresponds to each tracked slab. When a slab goes offline, that is, the overhead crane lifts a slab away, the slab real-time detection and macro tracking system deletes the target slab accordingly according to the slab offline information sent by the slab scheduling system; when a slab goes online, that is, the overhead crane lifts a slab, the slab real-time detection and macro tracking system receives the slab online information sent by the slab scheduling system and binds it with the newly identified slab near the unloading platform; it can identify the obstruction of the slab by the overhead crane to ensure that the operation of the overhead crane will not cause the loss of slab tracking information.
[0041] Furthermore, the slab real-time detection and macro tracking system is a system constructed by running the slab real-time detection and macro tracking method on a server computer, which can realize real-time detection of the positions of multiple slabs on the roller and accurate tracking of the same slab when it crosses the camera area.
[0042] Example
[0043] This embodiment is aimed at two continuous casting machines, and finally the continuous casting slabs are transported to the production site of the hot rolling mill through a roller conveyor. Six cameras are installed on site, and the specific locations are as follows: Figure 2 As shown: 6 cameras ensure that the entire roller conveyor can be photographed, and try to ensure that the shooting areas of adjacent cameras do not overlap.
[0044] Data collection is performed based on the six cameras installed on site, and pictures are extracted from the collected videos. About 15,000 pictures are selected from each camera, and a total of about 90,000 pictures are used as the data set. The labeling software LabelImg is used to label the images into three categories, namely "slab" (slab), "crane" (overhead crane, that is, the overhead crane that has not clamped the slab), and "craneandslab" (overhead crane that has clamped the slab). When labeling, try to make the labeling box just frame the target. After labeling a picture, the LabelImg software will generate an ".xml" file, which contains information such as the labeling category, the size and coordinates of the labeling box. Since the training set of the improved YOLOV5 algorithm needs to use the format of the VOC data set, the data set also needs to be converted.
[0045] The network of the improved YOLOV5 algorithm needs to generate anchor frames of different sizes to infer the size of the target frame. The K-means clustering algorithm is used in this invention. Since the installation angles and heights of the six cameras are different, the imaged targets will also have differences in length and width, so each set of data needs to be trained separately, and the sizes of the clustered anchor frames are also different.
[0046] The input of the improved YOLOV5 algorithm uses Mosaic data enhancement, adaptive anchor box calculation, and adaptive image scaling methods. The improved YOLOV5 algorithm integrates the relevant mechanisms of other algorithms, such as: adding Focus and CSP (abbreviation of Cross Stage Partial) structures, as well as spatial and channel attention modules to the backbone network; introducing a multi-scale feature fusion BiFPN (abbreviation of Bi-directional Feature Pyramid Network, translated into Chinese as: bidirectional feature pyramid network) structure between the backbone network and the final output layer; using the bounding box regression loss function DIOU_Loss and the NMS (abbreviation of Non Maximum Suppression) algorithm for prediction box screening in the output layer. The structure diagram of the improved YOLOV5 algorithm is shown below. Figure 3 As shown, the process is:
[0047] (1) First, the input image is adaptively scaled to 640*640 size after Mosaic data enhancement, and then used as the input of the convolutional network according to the set minibatch;
[0048] (2) Feature extraction is performed through the backbone network, feature fusion is performed through the multi-scale feature fusion network, and classification prediction is performed at the output layer to obtain the position, size, and category of the target prediction box;
[0049] (3) Use the loss function to calculate the error between the predicted box and the labeled true value;
[0050] (4) The weight matrix and bias parameters in the network are iteratively updated through the gradient descent algorithm to reduce the error between the predicted box and the actual box;
[0051] (5) Obtain the weight matrix and bias parameters that minimize the loss function under a preset number of iterations;
[0052] (6) The obtained weight matrix and bias parameters are used as network parameters in the detection stage to obtain the prediction information of the image to be detected.
[0053] The improved YOLOV5 algorithm adds spatial and channel attention modules CBAM (abbreviation of Convolutional Block Attention Module) to the backbone network to enhance the feature expression of slabs under complex backgrounds. CBAM includes the Channel Attention Module (CAM) and the Spatial Attention Module (SAM) to enhance the target feature information in channels and spaces respectively. A more effective BiFPN feature fusion structure is introduced in the feature pyramid structure of the YOLOV5 algorithm.
[0054] The loss function of the improved YOLOV5 algorithm is as follows:
[0055] Confidence loss and classification loss:
[0056]
[0057] Among them, Focal Loss is the Focal loss function, α and γ are two coordination parameters to solve the imbalance problem of positive and negative samples, Pr is the predicted value of the sample, y is the sample category, y=1 means it is in this category, and y=0 means it is not in this category.
[0058] Bounding Box Loss:
[0059]
[0060] Among them, L DIoU is the DIoU loss function, b is the center point of the prediction box, and b gt is the center point of the ground-truth box, ρ 2 (b,bgt ) is the Euclidean distance between the center point of the predicted box and the center point of the real box, and c represents the Euclidean distance of the diagonal of the smallest rectangle containing the predicted box and the real box.
[0061] The training of the slab detection model is a process of iteratively updating the weight matrix and bias in the network through the gradient descent algorithm to reduce the loss between the predicted box and the actual box, and finally obtaining the weight matrix and bias that minimizes the loss function under a preset number of iterations.
[0062] After the slab detection model is trained, it is used to detect the slab and the overhead crane in the slab transmission image. During the detection process, the detection speed is not less than 12 frames per second.
[0063] The SORT algorithm is a simple online real-time multi-target tracking algorithm. It uses IoU as a measure of the target relationship between the previous and next frames, uses a Kalman filter to predict the current position, associates the detection box to the target through the Hungarian algorithm, and applies a trial period to identify false detections. The SORT algorithm uses detection as a key component, propagates the target state to future frames, associates the current detection with the existing target, and manages the life cycle of the tracked target. The SORT algorithm uses two classic but very effective methods, the Kalman filter and the Hungarian method, to handle the motion prediction and data association parts of the tracking problem respectively. This minimal tracking formula contributes to the efficiency and reliability of online tracking. The algorithm flow of the SORT algorithm is as follows Figure 4 shown.
[0064] The SORT algorithm approximates the inter-frame displacement of each object using a linear constant velocity model that is independent of other objects and the camera motion. The state of each target is modeled as:
[0065]
[0066] Where u and v represent the horizontal and vertical pixel positions of the center of the object, respectively, while s and r represent the scale (area) and aspect ratio of the object bounding box, respectively. After the object is detected, the object state is updated with the detected bounding box, where the velocity component is optimized through the Kalman filter framework. If there is no detection associated with the object, its state is simply predicted using the linear velocity model without correction.
[0067] When associating detection boxes to tracked targets, predict the new position of each target in the current frame, estimate its bounding box shape, and then calculate the allocation cost matrix by the intersection over union (IoU) between each slab detection result and all predicted bounding boxes of existing targets. Finally, the Hungarian algorithm is used to optimize the allocation. During the matching process, detections with less than IOU overlap with the target are rejected. min allocation.
[0068] The detection results of the improved YOLOV5 algorithm are associated with the SORT algorithm to achieve macro tracking of the slab in the camera's field of view, and the overhead crane is identified to identify the occlusion of the slab by the overhead crane. After a single camera achieves slab tracking in the entire field of view, the six cameras are jointly debugged and the tracking information of the six cameras is associated so that the tracking ID of the same slab remains unchanged when it crosses the camera area. Finally, the slab information in the scheduling system is matched with the tracking ID to achieve data association between the macro tracking system and the slab scheduling system.
[0069] The slab scheduling system will send the slab information to the macro tracking system when the slab enters the tracking and monitoring range. The macro tracking system will add a tracking ID and bind the slab information. When the scheduling system sends a slab offline instruction and the overhead crane lifts a slab, the macro tracking system will delete the tracking ID of the target slab accordingly. When the scheduling system sends a slab online instruction and the overhead crane lifts a slab, the macro tracking system will bind the received information with the newly identified slab located near the unloading platform. When the slab moves out of the tracking and monitoring range, the macro tracking system will automatically delete the slab ID and release the information binding.
[0070] The technical solutions of the present application can also be appropriately combined to form other implementation plans that can be understood by those skilled in the art. All equivalent changes made according to the claims of this patent are within the protection scope of the claims of this application.
Claims
1. A slab real-time detection and macro tracking method based on deep learning, characterized in that: The following steps are involved: Step 1: Based on the actual situation of the transmission roller in the continuous casting area, several cameras are installed in sections to shoot the entire roller in real time, and it is ensured that the shooting areas of adjacent cameras do not overlap; Step 2, complete the collection of the continuous casting slab transmission line operation image data set under each camera, and mark the slab, overhead crane, and slab clamping overhead crane for each camera image; Step 3, respectively use the data set of each camera to train the improved YOLOV5 model to obtain the optimal weight of the model, and then use the optimized improved YOLOV5 models as the slab detection optimization model under each camera; The spatial and channel attention modules are introduced to improve the backbone network of the YOLOV5 algorithm to complete the extraction of slab features; the multi-scale feature fusion network is introduced to improve the feature pyramid network of the YOLOV5 algorithm so that the extracted multi-scale features can be effectively fused; Step 4: Use the slab detection optimization model to detect the information of each slab on the roller in the current frame of the scene image, then use the slab detection result of the current frame in conjunction with the multi-target tracking algorithm, compare it with the slab detection result of the previous frame, and update and record the tracking ID information of each slab; when the slab moves from a certain camera shooting area to the next camera shooting area, the tracking ID of the same slab remains unchanged when it crosses the camera area; Step 5, match the slab information in the slab scheduling system with the slab tracking IDs in step 4. When the slab scheduling system sends the slab on-line and off-line instructions, the slab real-time detection and macro tracking system can identify the on-line and off-line operations of the slab on the roller table and add or delete IDs in time.
2. The method for real-time slab detection and macro tracking based on deep learning according to claim 1, characterized in that: In step 1, six cameras need to be installed to capture the entire roller area of the continuous casting production line. The image data sets collected by each camera are trained separately to obtain the optimal detection model weight for the data set. The number of cameras is adjusted to be greater than 6 or less than 6 according to the size of the roller area to cover the entire roller area.
3. The method for real-time slab detection and macro tracking based on deep learning according to claim 1, characterized in that: In step 4, the slab information obtained by the slab detection optimization model is used as the input of the multi-target tracking algorithm to associate the frame-by-frame detection results of the slabs, thereby creating a tracking trajectory for the slabs and assigning a tracking ID to each slab.
4. The method for real-time slab detection and macro tracking based on deep learning according to claim 3, characterized in that: The multi-target tracking algorithm adopts the SORT algorithm or the Deep SORT algorithm.
5. The method for real-time slab detection and macro tracking based on deep learning according to claim 1, characterized in that: In step 5, the slab number information of the slab scheduling system is matched with the slab tracking ID and corresponds to each tracked slab.
6. The method for real-time slab detection and macro tracking based on deep learning according to claim 1, characterized in that: In step 5, when the slab goes offline, i.e. the overhead crane lifts a slab away, the slab real-time detection and macro tracking system deletes the target slab accordingly according to the slab offline information sent by the slab scheduling system; when the slab goes online, i.e. the overhead crane lifts a slab, the slab real-time detection and macro tracking system receives the slab online information sent by the slab scheduling system and binds it with the newly identified slab near the unloading platform; it can identify the obstruction of the slab by the overhead crane to ensure that the operation of the overhead crane will not cause the loss of slab tracking information.
7. The method for real-time slab detection and macro tracking based on deep learning according to claim 1, characterized in that: The slab real-time detection and macro tracking system is a system constructed by running the slab real-time detection and macro tracking method on a server computer, which can realize real-time detection of the positions of multiple slabs on a roller table and accurate tracking of the same slab when it crosses the camera area.
