A method for generating a track data set, a track identification method and a system
By generating and using orbital data sets, combined with the polyline marking method and the anchor point-based orbital network structure, the problem of the lack of orbital data sets in the existing technology is solved, and the accuracy of orbital identification and real-time detection speed are improved.
Patent Information
- Application Number
- CN202210699253.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-06-20
AI Technical Summary
The lack of public orbit data sets in the existing technology has hindered deep learning methods in orbit recognition, making it difficult to process complex backgrounds or obtain accurate recognition results.
By obtaining a real track image set, using the polyline marking method to mark the track, generating annotated track images, and correcting them according to preset standards, a track data set is constructed, and the anchor point-based track network structure is used for downsampling and classification prediction, and the track position is identified.
It provides a real and reliable orbit data set, suitable for convolutional neural network training, improves the accuracy of orbit identification and real-time detection speed, and solves the problem of insufficient data of deep learning methods.
Smart Images

Figure CN114998689B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of track identification, and in particular to a method for generating a track data set, and a track identification method and system based on the track data set. Background Art
[0002] Track recognition technology is a technology that can identify and detect track areas that appear in railway videos. Specifically, given an input image, the track recognition algorithm outputs a segmentation map or a series of pixels to represent the track area. Nowadays, train driving safety is an issue that needs to be focused on in train operation. Among them, obstacle detection and damage detection are the key points to ensure train driving safety. The detection of obstacles on the train track is an important part of track recognition technology. The biggest challenges of track recognition technology include light changes, track changes, and fast speed requirements.
[0003] In order to solve the above problems, the existing track recognition technology provides a variety of algorithms, mainly including: (1) track recognition method based on traditional manual features; (2) track recognition method based on deep convolutional neural network segmentation. The traditional manual feature method usually extracts linear features first, and then detects specific tracks based on the linear features. Figure 1 As shown in the figure, the input image is processed by linear operators such as Roberts, Prewitt and Sobel, and then the binary output image of the track is detected. This type of method has a good effect on simple backgrounds. On the other hand, the deep learning segmentation method uses a large amount of data and deep neural networks to detect and segment the track area. Figure 1 As shown in the figure, the input image passes through the convolutional neural network and then outputs the binary segmentation map of the track. These methods can show robustness to the real background.
[0004] Although there are many existing track recognition algorithms, there is no publicly available track dataset or high-speed network architecture that can be directly processed in the prior art. Traditional methods usually process test images directly, which makes it difficult to handle complex backgrounds or obtain accurate recognition results. Because deep learning methods require strong robustness, a large number of track images that can be directly processed are required to train convolutional neural networks. However, as mentioned above, there is currently no publicly available track dataset, which hinders deep learning methods. Summary of the invention
[0005] The present invention provides a method for generating a track data set, a track identification method and a system, aiming to solve the problem in the prior art that there are no large numbers of track data sets available for deep learning.
[0006] To achieve the above object, according to a first aspect of the present invention, the present invention proposes a method for generating a track data set, comprising:
[0007] Acquire a track image set, wherein the track image set includes a plurality of real track images;
[0008] Use the broken line marking method to mark the tracks in each real track image to obtain a marked track image;
[0009] Each annotated track image is annotated and corrected according to a preset annotation standard to obtain a track data set corresponding to the track image set.
[0010] Preferably, in the above-mentioned method for generating a track data set, the step of obtaining the track data set includes:
[0011] Get real track video;
[0012] An adaptive frame interval extraction algorithm is used to extract multiple real track images from the real track video to obtain a track image set.
[0013] Preferably, in the above-mentioned method for generating a track data set, the step of using a broken line marking method to mark the track in each real track image comprises:
[0014] Different types of polylines are used to label each track in the real track image;
[0015] According to the position of the track in the real track image, each track in the real track image is numbered to obtain a labeled track image.
[0016] Preferably, in the above-mentioned method for generating a track data set, the step of correcting the annotation of each annotated track image according to a preset annotation standard comprises:
[0017] Using the preset annotation standard, respectively detect and annotate the polyline and number of each track in the track image;
[0018] Use the broken line marking method to re-mark the tracks that do not meet the preset marking standards until the broken lines and numbers of the tracks meet the preset marking standards;
[0019] Detect the scene information in each labeled track image separately;
[0020] Using the scene information, the scene attributes of each labeled track image are annotated separately.
[0021] According to a second aspect of the present invention, the present invention further provides a track identification method based on a track data set, comprising:
[0022] Constructing a track dataset, wherein the track dataset includes a plurality of annotated track images using polylines to represent tracks;
[0023] Using the anchor-based track network structure, all the annotated track images in the track dataset are downsampled respectively to obtain a high-level feature map corresponding to the annotated track image, wherein the high-level feature map includes a grid unit formed by the anchor points;
[0024] Use the track network structure to classify and predict the high-level feature map, and obtain the predicted probability of the existence of a track in each grid cell in each annotated track image;
[0025] The predicted probability is verified using the polyline, and when the predicted probability is verified, the track network structure is used to identify the track location.
[0026] Preferably, in the track identification method, the step of downsampling all the annotated track images in the track data set using the anchor-based track network structure to obtain a high-level feature map corresponding to the annotated track image comprises:
[0027] Input the labeled track image into the backbone network of the track network structure;
[0028] The backbone network is used to downsample the labeled track image to obtain a high-level feature map.
[0029] Preferably, in the track recognition method, the step of using the backbone network to perform downsampling operation on the labeled track image includes:
[0030] Use anchor points to segment high-level feature maps and obtain multiple grid cells;
[0031] The backbone network is used to downsample high-level feature maps with multiple grid cells to obtain track features.
[0032] Preferably, in the above track identification method, the step of using the track network structure to classify and predict the high-level feature map includes:
[0033] Inputting the high-level feature map into a classifier of the track network structure; wherein the high-level feature map includes track features;
[0034] Using the classifier, the predicted probability of the existence of a track for each grid cell in the labeled track image is predicted based on the number of tracks, anchor points and grid cells contained in the high-level feature map, as well as the track features.
[0035] Preferably, the track identification method uses a broken line to verify the prediction probability, and when the prediction probability is verified, the step of using the track network structure to identify the track position includes:
[0036] Use the grid cells where the polyline intersects the anchor point as the position label of the track;
[0037] Calculate the classification loss function of the track network structure based on the predicted probability of the existence of a track in each grid cell and the location label of the track;
[0038] Use the labeled track images to continuously train the track network structure until the classification loss function converges;
[0039] When the classification loss function converges, the predicted probability of the existence of tracks in all grid cells corresponding to the labeled track image is used to calculate the predicted expected value of the track position in the labeled track image as the identified track position.
[0040] According to a third aspect of the present invention, the present invention further provides a track identification system, comprising:
[0041] A memory, a processor, and a track identification program stored in the memory and executable on the processor. When the track identification program is executed by the processor, the steps of the track identification method described in any of the above technical solutions are implemented.
[0042] In summary, the method for generating a track data set provided by the above technical solution of the present invention obtains a track image set, which includes a large number of real track images, so that the tracks of the track data set generated by the track image set are real and reliable; then the track on each real track image is marked using a broken line marking method, thereby obtaining a marked track image; because the track has been marked with a broken line on the marked track image, the marked track image can verify the prediction result of the neural network through the broken line, thereby obtaining a marked track image suitable for the neural network; in addition, each marked track image is corrected according to the preset marking standard, and a broken line mark that accurately corresponds to the track position can be obtained. By performing the above operation on each real track image in the track image set, the corresponding track data set can be obtained, which is convenient for subsequent convolutional neural network training. In summary, the above method can solve the problem that a large number of track data sets that are not disclosed in the prior art lead to obstruction of deep learning methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0044] Figure 1 is a structural schematic diagram of a track identification system provided by an embodiment of the present invention;
[0045] Figure 2is a structural schematic diagram of a track network structure based on anchor points provided by an embodiment of the present invention;
[0046] Figure 3 is a structural schematic diagram of a polyline annotation image provided by an embodiment of the present invention;
[0047] Figure 4 is a structural schematic diagram of a grid-shaped annotated track image provided by an embodiment of the present invention;
[0048] Figure 5 is a schematic flow chart of a method for generating a track data set provided by an embodiment of the present invention;
[0049] Figure 6 yes Figure 5 A schematic diagram of a flow chart of a method for acquiring a track data set provided in the illustrated embodiment;
[0050] Figure 7 yes Figure 5 A schematic flow chart of a method for marking a track using a broken line marking method provided by the illustrated embodiment;
[0051] Figure 8 yes Figure 5 A schematic flow chart of a method for correcting a labeling track image provided by the illustrated embodiment;
[0052] Fig. 9 It is a schematic flow chart of a track identification method based on a track data set provided by an embodiment of the present invention;
[0053] Fig.10 yes Fig. 9 A schematic flow chart of a down-sampling method for annotating a track image provided by the illustrated embodiment;
[0054] Fig.11 yes Fig.11 A schematic flow chart of an image downsampling method provided by the illustrated embodiment;
[0055] Fig.12 yes Fig. 9 A schematic flow chart of a classification prediction method for a high-level feature graph provided in the illustrated embodiment;
[0056] Fig.13 yes Fig. 9 A schematic flow chart of a track position identification method provided by the illustrated embodiment;
[0057] Fig.14 is a structural schematic diagram of a track identification system provided by an embodiment of the present invention;
[0058] Fig.15This is a comparison chart of the recognition effects of the track network structure Rail-Net and other track recognition algorithms.
[0059] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0061] The main technical problems solved by the embodiments of the present invention are:
[0062] There are many track recognition algorithms, but there is no publicly available track dataset containing a large number of images that can be directly processed. Traditional methods usually process test images directly, which makes it difficult to handle complex backgrounds or obtain accurate recognition results. Because deep learning methods require strong robustness, a large number of track images that can be directly learned are needed to train convolutional neural networks. However, as mentioned above, there is currently no publicly available track dataset, which hinders deep learning methods.
[0063] In order to solve the above problems, the following embodiments of the present application provide a solution for generating a track data set, and further provide a track identification solution for the track data set. The track image set containing the real track image is annotated using a broken line marking method, and the track in each real track image is annotated to obtain an annotated track image, thereby forming a track data set, thereby facilitating the subsequent training of a convolutional neural network.
[0064] To achieve this, see Figure 5 , Figure 5 A schematic diagram of a flow chart of a method for generating a track data set provided by an embodiment of the present invention, such as Figure 5 As shown, the method for generating the orbital dataset includes:
[0065] S110: Acquire a track image set, wherein the track image set includes a plurality of real track images. The track image set is extracted from a real train running video, and a large number of real track images are obtained by extracting images through adaptive frame intervals.
[0066] S120: Using a broken line marking method to mark the tracks in each real track image, respectively, to obtain a marked track image.
[0067] Track images are collected from real train video and cut into a series of images. The track positions are marked in the images, with polylines representing the tracks and numerical values representing the primary and secondary tracks. Unqualified annotations are checked and repaired. After obtaining the data set, the network is trained and a suitable basic network is selected to extract features. The classifier uses features based on the features of the anchor points to predict each track and finally select the track location.
[0068] S130: performing annotation correction on each annotated track image according to a preset annotation standard to obtain a track data set corresponding to the track image set.
[0069] The present invention collects real track images with rich backgrounds and proposes a public track dataset containing 7432 pairs of images and labels to solve the problem of missing data sets. In addition, the current deep learning method needs to output the category of each pixel, which leads to large video memory access, high computational complexity and slow running speed, which is not conducive to real-time track detection. The present invention proposes an anchor-based track detection network, which replaces the segmentation method with a classification method, reduces the number of outputs, greatly improves the running speed, and is more suitable for real-time track detection.
[0070] In summary, the method for generating a track data set provided by an embodiment of the present invention obtains a track image set, which includes a large number of real track images, so that the tracks of the track data set generated by the track image set are real and reliable; then the track on each real track image is marked using a broken line marking method, thereby obtaining a marked track image; because the track has been marked with a broken line on the marked track image, the marked track image can verify the prediction result of the neural network through the broken line, thereby obtaining a marked track image suitable for the neural network; in addition, each marked track image is corrected according to a preset marking standard, and a broken line mark that accurately corresponds to the track position can be obtained. By performing the above operation on each real track image in the track image set, the corresponding track data set can be obtained, which is convenient for subsequent convolutional neural network training. In summary, the above method can solve the problem that a large number of track data sets that are not disclosed in the prior art lead to obstruction of deep learning methods.
[0071] As a preferred embodiment, Figure 6 As shown, the steps of obtaining the orbital data set include:
[0072] S111: Acquire a real track video.
[0073] S112: extracting multiple real track images from the real track video using an adaptive frame interval extraction algorithm to obtain a track image set.
[0074] First, we obtain real track videos from real train running videos under different conditions to collect rich railway data. By capturing videos of trains running on various railways. As the speed of the train changes, we use adaptive frame intervals to extract pictures to ensure that there is enough difference between adjacent frames. In the end, we can get a large number of long videos and extract thousands of real track images of different frames. The real track images of different frames extracted in this application contain different environments: lighting, road structure and view. Compared with the current track dataset, the current acquisition environment is richer.
[0075] In addition, as a preferred embodiment, Figure 7 As shown, in the method for generating a track data set provided in an embodiment of the present application, the step of marking the tracks in each real track image using the broken line marking method includes:
[0076] S121: Use different types of polylines to mark each track in the real track image, for example, use polylines of different colors to mark different tracks.
[0077] S122: numbering each track in the real track image according to the position of the track in the real track image to obtain a labeled track image.
[0078] See also Figure 3 Compared with the current segmentation and labeling method, the method of marking the broken lines and numbers in the embodiment of the present application maintains good characterization ability and improves the labeling speed. This stage is called the rough stage by preliminarily marking the tracks with broken lines. LabelMe is used to mark the tracks, and one broken line represents one track, which conforms to the slender structure of the track. In addition, we use different numbers to indicate different tracks to encode the priority of the paths. The central pair of tracks in the image are numbered 1 and 2 because they are the main tracks of the view. Other tracks are labeled according to their distance from the main track, and the larger the distance, the larger the number obtained.
[0079] In addition, as a preferred embodiment, Figure 8 As shown, in the method for generating a track data set provided in an embodiment of the present application, the step of correcting the annotation of each annotated track image according to a preset annotation standard includes:
[0080] S131: Using a preset annotation standard, respectively detect and annotate the broken lines and numbers of each track in the track image.
[0081] S132: Re-mark the track that does not meet the preset marking standard using the broken line marking method until the broken line and number of the track meet the preset marking standard.
[0082] S133: Detect scene information in each labeled track image respectively.
[0083] S134: Using the scene information, annotate the scene attributes of each annotated track image.
[0084] Annotations are made in the rough stage and they are carefully refined. In the refinement stage, incomplete annotations at the tail need to be supplemented. This stage is called the refinement stage, by checking the annotations and improving their quality. After the rough stage, there may be incomplete and inaccurate annotations for non-main tracks, track tails, and the order of tracks. Therefore, it is necessary to improve the quality of the rough annotations in the refinement stage: by checking all rough annotations and carefully refining the broken lines and numbers of these annotations. In addition to annotating tracks, scene attribute annotations are also performed on all images to explore the generalization of the algorithm. These images contain various lighting, structures, and views in the context. In the embodiment of the present application, the context is divided into sun, rainy day, night, curve, slope, span, straight line, close-up, and long-distance lens; some images include multiple scene attributes.
[0085] After constructing the above track data set, the present application regards track identification technology as a problem based on anchor point selection rather than a segmentation problem. The conventional segmentation method is to convert the marked track polyline into a multi-value graph, while the present application embodiment converts the polyline into a series of horizontal positions. Figure 4 , that is, by intersecting the anchor points with the polylines, different tracks are arranged in the same anchor point (same row) using grid cells of different colors. In this way, the image can be segmented using predefined rows, i.e. anchor points and uniform columns.
[0086] See Fig. 9 , Fig. 9 A track identification method based on a track data set provided in an embodiment of the present invention includes:
[0087] S210: Constructing a track data set, wherein the track data set includes a plurality of annotated track images using polylines to represent tracks; the annotated track images use polylines to represent tracks, and the polylines used in the annotated track images can be used as a verification set to verify whether the tracks predicted by the subsequent track network structure are correct.
[0088] S220: downsample all the annotated track images in the track dataset using the anchor-based track network structure to obtain a high-level feature map corresponding to the annotated track image, wherein the high-level feature map includes a grid unit formed by the anchor points. Figure 2 , Figure 2It is a schematic diagram of the track network structure. The track network structure is a deep convolutional neural network. When the deep convolutional neural network is trained on the track data set, it can use anchor points to establish a grid, where the anchor points are rows in the grid, and use the grid to segment and annotate the track image. In this way, the grid cells where the anchor points intersect the broken lines can be used as class labels, and the class labels can be used to verify the track prediction probability of the track network structure. In addition, the track network structure downsamples all the annotated track images separately, and the obtained high-level feature map can include a large number of track features of the track, so as to predict the probability of the existence of the track in the network unit composed of the anchor points in the image through the track features. Specifically, Figure 2 As shown, the input image is input into the track network structure, and the backbone network of the track network structure is used to reshape the image to extract features, and then classify it to obtain a prediction result. The reshaped prediction result is classified and selected to obtain an output image with track features, that is, a high-level feature map (output image).
[0089] S230: Use the track network structure to classify and predict the high-level feature map, and obtain the predicted probability of the existence of the track for each grid cell in each labeled track image. Because the intersection area formed by the intersection of the anchor point and the track, that is, the grid cell, can represent the different positions of the track, by selecting the broken line track position as the class label of each track, a classification problem can be formed using predefined rows and columns. In this way, when using the track network structure to predict the track of the above-mentioned high-level feature map, the predicted probability of the existence of the track for each grid cell in each labeled track image can be obtained, thereby classifying the grid cells into grid cells with tracks and grid cells without tracks.
[0090] S240: Use the broken line to verify the predicted probability, and use the track network structure to identify the track position when the predicted probability is verified. Because there is a broken line in the annotated track image, the broken line represents the real track. In this way, the above-mentioned track network structure based on the anchor point, the grid unit (i.e., the class label or position label) where the anchor point and the broken line intersect can become the intersection area of the anchor point and the track. The position label can be used to verify whether the predicted probability of the existence of the track in the grid unit predicted by the track network structure is correct. By repeatedly executing the above steps S230 and S240, the track network structure can be continuously trained, and the trained track network structure can be used to identify the track position.
[0091] Combination Figure 4The track position selection shown in the figure shows that: the polyline intersects with the anchor point in a certain column, and is within a certain grid unit. Different colors are used to display the intersection area (grid unit) of different tracks, where the grid units with the same color represent the position of the track. Therefore, these track positions are selected as the class label of each track, and the predefined rows and columns can form a classification problem. The above track recognition algorithm can output the predicted class label instead of the segmentation map to reduce the computational cost through the track network structure based on the anchor point.
[0092] In the technical solution provided by the embodiment of the present application, a track data set is constructed, and then the track network structure based on anchor points is used to train the track data set. Specifically, the track network structure is a deep convolutional neural network based on anchor points, so that the intersection area of the anchor point and the broken line in the original annotated track image, that is, the class label can be used to verify the prediction probability of the track network structure. Because the grid is formed by using anchor points, a large number of grid units are obtained. In this way, the grid unit composed of rows and columns can be processed as a classification problem by using the track network structure to predict whether there is a track for each grid unit. Then, the broken line, that is, the class label (grid unit where the broken line exists) where the broken line intersects with the anchor point, is used to verify the prediction probability of the track network structure for the track position (that is, the grid unit where the track exists). When the prediction probability is verified, that is, the track network structure is trained using a large number of annotated track images to complete the training, and a certain correct prediction probability is obtained, it means that the track network structure has high predictability, and the track network structure can be used to identify the track position and make a high-precision prediction of the track position in the track image.
[0093] Among them, as a preferred embodiment, Fig.10 As shown, in the above step S220, all the annotated track images in the track data set are downsampled respectively using the anchor-based track network structure to obtain a high-level feature map corresponding to the annotated track image, specifically including:
[0094] S221: Input the labeled track image into the backbone network of the track network structure.
[0095] S222: Use the backbone network to downsample the labeled track image to obtain a high-level feature map.
[0096] In the technical solution provided in the embodiment of the present application, a rail network structure Rail-Net based on anchor points is provided, such as Figure 3 As shown, the network structure of Rail-Net includes an 18-layer ResNet as the backbone network and a classifier. Compared with the traditional segmentation method, the embodiment of the present application discards the upsampling and segmentation modules to reduce the memory usage.
[0097] The embodiment of the present application first extracts the high-level feature map of the image through the backbone network. Specifically, an 18-layer ResNet is used as the backbone network. The input labeled track image size is 288×800×3. After 1 / 32 downsampling in the backbone network, the high-level feature map of size 9×25×512 is output. Then, the high-level feature map is used by the classifier to predict the tracks on all anchor points.
[0098] Among them, as a preferred embodiment, Fig.11 As shown, the above step S222: using the backbone network to perform downsampling operation on the labeled track image includes:
[0099] S2221: Use anchor points to segment high-level feature maps and obtain multiple grid cells.
[0100] S2222: Use the backbone network to downsample the high-level feature map with multiple grid cells to obtain track features.
[0101] In the technical solution provided in the embodiment of the present application, anchor points are used to segment high-level feature maps to obtain multiple grid units, and then a backbone network is used to downsample the high-level feature maps of the multiple grid units, so that different track features can be distributed in the multiple grid units to obtain a large number of track features.
[0102] In addition, as a preferred embodiment, Fig.12 As shown, the above step S230: the step of using the track network structure to classify and predict the high-level feature map includes:
[0103] S231: Inputting the high-level feature map into the classifier of the track network structure; wherein the high-level feature map includes track features.
[0104] S232: Using a classifier, according to the number of tracks, the number of anchor points and the number of grid cells contained in the high-level feature graph, and the track features, respectively predict the predicted probability of the existence of a track in each grid cell in the labeled track image.
[0105] Assume that the number of tracks in the image is C, the number of anchor points is h, and the number of grid cells is w. Also assume that X is the track feature extracted by the backbone network, f ij (X) is a classifier used to select the track position on the i-th track and the j-th row anchor; then the predicted probability of the existence of a track in the grid cell in the image can be written as:
[0106] P i,j,: =f ij (X),sti∈[1,C],j∈[1,h],
[0107] Where P i,j,:It is a (w+1)-dimensional vector, which represents the predicted probability of the grid cell of the j-th anchor point of the ith track. On this basis, a dimension is added to represent the background, so the predicted probability is (w+1)-dimensional instead of w-dimensional. The solution provided in the embodiment of the present application predicts the probability distribution of all positions in each row, and finally selects the correct position based on the probability distribution.
[0108] Specifically, a 1×1 convolutional layer reduces the feature map to 9×25×8, and then flattens the feature map into a 1800-dimensional vector. These operations are superior to global average pooling because the vector contains global spatial information and avoids computational redundancy.
[0109] Finally, the classifier converts the vector into a C×h×(w+1) prediction matrix. The classifier consists of a 1800-2048 fully connected layer, a ReLU layer, and a 2048-C×h×(w+1) fully connected layer. In the setting of the embodiment of the present application, the number of tracks C is 4, the number of anchor points h is 52, and the number of grid units w is 200.
[0110] In addition, as a preferred embodiment, Fig.13 As shown, the above step S240: using the broken line to verify the predicted probability, and using the track network structure to identify the track position when the predicted probability verification passes, specifically includes:
[0111] S241: Use the grid unit where the polyline intersects the anchor point as the position label of the track; the position label is the class label mentioned above.
[0112] S242: Calculate the classification loss function of the track network structure based on the predicted probability of the existence of a track in each grid cell and the location label of the track.
[0113] S243: Use the labeled track images to continuously train the track network structure until the classification loss function converges.
[0114] S244: When the classification loss function converges, the predicted probability of the existence of tracks in all grid cells corresponding to the labeled track image is used to calculate the predicted expected value of the track position in the labeled track image as the identified track position.
[0115] In this embodiment of the application, the cross entropy loss L is used in the training stage. CE , assuming T i,j,: is the position label of the track (obtained by the intersection of the polyline and the grid cell, that is, the grid cell where the polyline exists), L cls is the classification loss function, then the formula is:
[0116]
[0117] In the embodiment of the present application, the predicted expected value of the track position is output in the test phase of the track network structure. First, the softmax function provides the probability of each track position:
[0118] Prob i,j,: =softmax(P i,j,1:w )
[0119] Where P i,j,1:w is a w-dimensional vector, and Prob i,j,: represents the probability of each position. This calculation only includes 1 to w because the background category is not included. Next, the predicted expected value of the track position Loc i,j It can be written as:
[0120]
[0121] Among them, Prob i,j,k That is, the probability of the i-th rail, the j-th anchor point, and the k-th position.
[0122] Based on the same concept of the above method embodiment, the embodiment of the present invention also proposes a track identification system for implementing the above method of the present invention. Since the principles and methods of solving the problems in the system embodiment are similar, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0123] See also Fig.14 , Fig.14 A schematic diagram of the structure of a track identification system provided by an embodiment of the present invention. Fig.14 As shown, the track identification system includes:
[0124] A communication line 1002, a memory 1004, a processor 1001, and a track identification program stored in the memory 1004 and executable on the processor 1001. When the track identification program is executed by the processor, the steps of the track identification method provided in any of the above embodiments are implemented.
[0125] In the technical solution provided in the above embodiment of the present application, the track network structure Rail-Net is compared with the traditional manual method and the deep learning segmentation method. Rail-Net uses 18 layers of Resnet as the backbone network and uses the fully connected layer as the classifier. The traditional manual method uses the Sobel operator and polynomial fitting to match the rails. The deep learning segmentation method selects the same backbone as Rail-Net and selects a convolutional block similar to FPN for segmentation. We show the quantitative and qualitative comparison results below.
[0126] Quantitatively, we compare the accuracy, floating point operations per second (FLOPs), running memory usage, and frame rate (FPS) in each scenario, and the results are shown in Table 1 below. If the difference between the predicted value and the true value is less than the threshold, the prediction is considered accurate. We divide the accurate predictions by the total number, which is the accuracy rate. As can be seen in Table 1 below, Rail-Net has achieved advantages in all aspects. In terms of accuracy, Rail-Net is 50.65% and 5.86% higher than the manual method and segmentation method, respectively, surpassing the alternative methods in most cases. For frame rate FPS, Rail-Net runs 7.16 times and 1.64 times faster than the manual method and segmentation method, and the running memory usage and floating point operations are smaller than the other methods.
[0127]
[0128] Table 1: Evaluation accuracy and frame rate of each method
[0129] In addition, we select the actual labels and predicted labels for daylight and nighttime conditions to colorize and show the effect of each method (such as Ground truth, Hand-crafted, Segmentation, and Rail-Net), as shown in Figure 2. Fig.15 As shown. It can be seen that Rail-Net outperforms other methods, showing advanced completeness and accuracy. Specifically, traditional manual methods cannot identify lane categories or path positions in the distance because the Sobel operator cannot handle complex contexts, resulting in strange fitting curves. In addition, deep learning segmentation methods confuse non-primary tracks and backgrounds because secondary tracks are much smaller than primary tracks. In contrast, the anchor-based Rail-Net must select a specific position in a row, producing a more complete result.
[0130] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0131] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.
[0135] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0136] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for generating a track dataset, It is characterized in that include: Acquire a track image set, wherein the track image set includes a plurality of real track images; Using a broken line marking method to mark the tracks in each of the real track images, respectively, to obtain a marked track image; Performing annotation correction on each of the annotated track images according to a preset annotation standard to obtain a track data set corresponding to the track image set; The step of respectively marking the track in each of the real track images using a broken line marking method comprises: Using different types of polylines to respectively label each track in the real track image; Numbering each track in the real track image according to the position of the track in the real track image to obtain the labeled track image; The step of performing annotation correction on each of the annotated track images according to a preset annotation standard comprises: Using the preset annotation standard, respectively detecting the broken line and number of each track in the annotated track image; Re-marking the track that does not meet the preset marking standard using the broken line marking method until the broken line and number of the track meet the preset marking standard; Detect the scene information in each labeled track image separately; The scene information is used to respectively annotate the scene attributes of each annotated track image.
2. The method for generating a track data set according to claim 1, It is characterized in that The step of obtaining the track image set includes: Get real track video; An adaptive frame interval extraction algorithm is used to extract multiple real track images from the real track video to obtain the track image set.
3. A track identification method based on a track data set, further processing the track data set according to any one of claims 1-2, It is characterized in that include: Constructing a track data set, wherein the track data set includes a plurality of annotated track images using polylines to represent tracks; Downsampling all the annotated track images in the track data set respectively using an anchor-based track network structure to obtain a high-level feature map corresponding to the annotated track image, wherein the high-level feature map includes a grid unit formed by the anchor points; Using the track network structure to perform classification prediction on the high-level feature map, respectively obtaining the prediction probability of the existence of a track in each grid cell in each labeled track image; The predicted probability is verified using the broken line, and the track position is identified using the track network structure when the predicted probability is verified.
4. The track identification method according to claim 3, It is characterized in that The step of downsampling all the annotated track images in the track data set using the anchor-based track network structure to obtain a high-level feature map corresponding to the annotated track image comprises: Inputting the labeled track image into the backbone network of the track network structure; The labeled track image is downsampled using the backbone network to obtain the high-level feature map.
5. The track identification method according to claim 4, It is characterized in that The step of using the backbone network to perform a downsampling operation on the labeled track image comprises: Using anchor points to segment the high-level feature map to obtain a plurality of grid units; The high-level feature map with the plurality of grid cells is downsampled using the backbone network to obtain track features.
6. The track identification method according to claim 5, It is characterized in that The step of using the track network structure to perform classification prediction on the high-level feature map comprises: Inputting the high-level feature map into a classifier of the track network structure; wherein the high-level feature map includes track features; The classifier is used to predict the probability of the existence of a track in each grid cell in the labeled track image according to the number of tracks, anchor points and grid cells contained in the high-level feature map and the track features.
7. The track identification method according to claim 6, It is characterized in that The step of using the broken line to verify the predicted probability, and using the track network structure to identify the track position when the predicted probability is verified, comprises: Using the grid unit where the polyline intersects the anchor point as the position label of the track; Calculating a classification loss function of the track network structure according to the predicted probability of the existence of a track in each grid cell and the position label of the track; Using the labeled track image to continuously train the track network structure until the classification loss function converges; When the classification loss function converges, the predicted probability of the existence of tracks in all grid cells corresponding to the labeled track image is used to calculate the predicted expected value of the track position in the labeled track image as the identified track position.
8. A track identification system, It is characterized in that include: A memory, a processor, and a track identification program stored in the memory and executable on the processor, wherein the track identification program implements the steps of the track identification method as claimed in claim 3 when executed by the processor.
