Track section status detection method and system
By analyzing the pixel brightness level and dust grayscale characteristics in the three-dimensional image, the real cracks on the track rail surface are identified, which solves the dust covering problem in traditional detection methods, achieves accurate assessment of track status and risk warning, and improves the efficiency of railway operations. Safety and efficiency.
Patent Information
- Application Number
- CN202410256517.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-03-06
AI Technical Summary
Traditional detection methods are difficult to accurately identify real cracks on the track rail surface, especially when small cracks are covered by dust, resulting in inaccurate detection of track rail status, increasing the risk of track breakage and difficulty in maintenance.
By acquiring the three-dimensional image of the track surface in real time, analyzing the brightness level of pixels, obtaining dust grayscale characteristics, identifying real cracks, calculating the size and number of cracks, conducting risk assessments, and providing the risk status of the track surface.
It improves the accuracy and efficiency of track status detection, reduces dust interference, realizes automated risk assessment, and promotes the intelligence and operational efficiency of the railway system.
Smart Images

Figure CN118038443B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of track section status detection, and in particular to a track section status detection method and system. Background Art
[0002] When the UAV obtains the track surface images in real time, relevant research is conducted on the size and number of actual cracks on the track surface.
[0003] The acquired three-dimensional image is preprocessed to obtain the preprocessed image and then the pixels in the image are analyzed to obtain the brightness level of the pixels, thereby determining the direction of the next experimental operation.
[0004] After obtaining the brightness level of the pixel points in the track surface image, it is necessary to obtain the dust grayscale feature through the brightness level, and use the dust grayscale feature to identify whether it is a real crack, and further detect the size and number of the real cracks. Then, the risk assessment is performed based on the size and number of the real cracks to obtain the risk status of the track surface.
[0005] As for the defects in detecting the risk status of the track surface, the traditional detection of the track surface status has small cracks that are covered by dust and difficult to be found by the human eye. It does not take into account the identification of true and false cracks, and does not obtain the risk status of the track surface by the size and number of real cracks. As a result, the traditional detection of the track surface status is not accurate enough, which may cause the subsequent track steel rail surface to be subjected to pressure loads for a long time, and the real cracks will evolve into cracks, increasing the risk of track steel rail breakage, and increasing the difficulty of track maintenance workers in maintaining the track surface in the later stage, which is time-consuming and labor-intensive.
[0006] Therefore, how to obtain the dust degree through the brightness level of the pixel points of the three-dimensional image of the track surface, and then obtain the size and number of the real cracks through the dust degree to judge the risk status of the track surface is an issue that needs to be solved and optimized urgently. Summary of the invention
[0007] In order to more accurately detect the risk status of the track rail surface, the present invention provides a track section status detection method and system.
[0008] In order to solve the above technical problems, the technical solutions provided by the present invention are as follows:
[0009] In a first aspect, a method for detecting a track segment state comprises the following steps:
[0010] Acquire the three-dimensional image of the track surface in real time, and process the three-dimensional image to obtain pre-processed data;
[0011] Analyze the pixels of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixels;
[0012] Obtaining dust grayscale features according to the brightness level of the pixel;
[0013] According to the dust grayscale characteristics, identifying real cracks on the track surface;
[0014] Obtaining the size of the real crack and the number of the real cracks;
[0015] According to the size and number of real cracks, the risk assessment of the track surface is carried out to obtain the risk assessment result of the track surface condition.
[0016] In any of the above solutions, it is preferred that a three-dimensional image of the track surface is acquired in real time, and the three-dimensional image is processed to obtain pre-processed data, including:
[0017] Acquire three-dimensional image data of track surface in real time;
[0018] Segment each frame of 3D image data and decompose each frame of 3D image into three plane images of different dimensions, namely, top surface image, side surface image and front surface image, which correspond to different viewing angles of the track surface respectively;
[0019] Preprocessing the three plane images respectively to obtain preprocessing data;
[0020] Performing edge detection on the preprocessed data by using an edge detection algorithm to obtain edge features of the track surface, and generating an edge image based on the edge features of the track surface;
[0021] According to edge information in the edge image, each plane image is divided into a plurality of sub-regions;
[0022] Representative pixels are selected in each sub-region for analysis, and at least ten pixels are selected in each sub-region to obtain analysis results.
[0023] In any of the above solutions, preferably, analyzing the pixel points of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixel points includes:
[0024] The pixel points of each frame of the three-dimensional image in the preprocessed data are identified by a deep learning algorithm to obtain the identified pixel points;
[0025] According to the identified pixels, the color features of the pixels are extracted;
[0026] Convert the color features of the pixels into brightness levels. For color pixels, convert the color values into grayscale values to obtain the corresponding brightness.
[0027] The calculated brightness level is divided into four gradients.
[0028] In any of the above solutions, preferably, obtaining dust grayscale features according to the brightness level of the pixel point includes:
[0029] According to the brightness level of the pixel, the degree of dust in the crack is obtained;
[0030] The crack dustiness is analyzed by principal component analysis to obtain the spectral characteristics;
[0031] Obtain spectral reflectance according to spectral feature algorithm to obtain dust value ripple matrix;
[0032] The dust grayscale features are obtained according to the dust value ripple matrix.
[0033] In any of the above solutions, preferably, identifying the real cracks on the track surface according to the dust grayscale characteristics includes:
[0034] According to the acquired dust grayscale features, a grayscale co-occurrence matrix reflecting the spatial relationship of grayscale values in the image is constructed;
[0035] The texture feature parameters are calculated by calculating the sum of squares of elements in the gray-level co-occurrence matrix;
[0036] According to the texture feature parameters, dust and real cracks are distinguished through a preset threshold to obtain the real crack information.
[0037] In any of the above solutions, preferably, obtaining the size of the real crack and the number of the real cracks includes:
[0038] According to the dust grayscale characteristics and texture characteristics obtained by analysis, the real cracks on the track surface are identified;
[0039] The identified real cracks are marked, and the number of marks is counted to obtain the total number of cracks.
[0040] In any of the above solutions, it is preferred that risk assessment of the track surface is performed according to the size and number of real cracks to obtain a risk assessment result of the track surface state, including:
[0041] Process the identified cracks, subdivide them into horizontal and vertical cracks, and extract the crack skeleton, which is the crack shape composed of a single pixel width;
[0042] The extracted crack skeleton is processed to remove the burrs and burrs on the edges to obtain a processed crack skeleton;
[0043] According to the processed crack skeleton, the length of the crack skeleton is calculated by the curve length calculation method, and the average width of the crack area is calculated to obtain the estimated crack width value;
[0044] Multiply the calculated crack length by the estimated crack width value to obtain the relative area of the crack;
[0045] Conduct risk assessment tests based on the relative area of cracks combined with the total number of cracks to obtain risk assessment results;
[0046] Determine the risk status of the track section based on the risk assessment results.
[0047] In a second aspect, a track section status detection system includes:
[0048] The acquisition module is used to acquire a three-dimensional image of the track surface in real time and process the three-dimensional image to obtain pre-processed data; analyze the pixel points of each frame of the three-dimensional image in the pre-processed data to obtain the brightness level of the pixel points; and obtain the grayscale characteristics of dust according to the brightness level of the pixel points;
[0049] The processing module is used to identify the real cracks on the track surface according to the dust grayscale characteristics; obtain the size of the real cracks and the number of the real cracks; and perform risk assessment on the track surface according to the size of the real cracks and the number of the real cracks to obtain a risk assessment result of the track surface status.
[0050] According to a third aspect, a computing device includes:
[0051] one or more processors;
[0052] A storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the track segment status detection method.
[0053] In a fourth aspect, a computer-readable storage medium stores a program, which implements a track segment status detection method when executed by a processor.
[0054] Compared with the prior art, the present invention has the following beneficial effects:
[0055] The above scheme of the present invention pre-processes the three-dimensional image of the track surface acquired in real time, then analyzes the pixel points of each frame of the three-dimensional image in the pre-processed image to obtain the pixel point brightness level, and then obtains the dust grayscale feature according to the pixel point brightness level. Through the dust grayscale feature, the real cracks on the track surface are identified, and then the risk of the track surface is evaluated according to the size and number of the real cracks, so as to more accurately detect the risk status of the track surface. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings are used for further understanding of the present invention and are used to explain the present invention together with the embodiments of the present invention, but do not constitute a limitation of the present invention.
[0057] Figure 1 It is a flow chart of a track section status detection method provided in an embodiment of the present invention.
[0058] Figure 2 It is a schematic diagram of a track section status detection system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0060] In order to better understand the above technical solution, the technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0061] It should be pointed out that the above steps are only a preferred implementation order. In the specific implementation process, some steps can be replaced without affecting the overall implementation effect. In order to more clearly explain the technical solution of this application, the following content explains this solution in a preferred manner.
[0062] like Figure 1 As shown, the present invention provides a method for detecting a track section state, the method comprising the following steps:
[0063] Step 11, acquiring a three-dimensional image of the track surface in real time, and processing the three-dimensional image to obtain pre-processed data;
[0064] Step 12, analyzing the pixels of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixels;
[0065] Step 13, obtaining dust grayscale features according to the brightness level of the pixel points;
[0066] Step 14, identifying real cracks on the track surface according to the dust grayscale features;
[0067] Step 15, obtaining the size of the real crack and the number of the real cracks;
[0068] Step 16: Perform risk assessment on the track surface according to the size and number of the real cracks to obtain a risk assessment result of the track surface status.
[0069] In an embodiment of the present invention, by acquiring and processing a three-dimensional image of the track surface in real time, the method can quickly provide the current state information of the track, and the analysis and processing of the three-dimensional image can capture more details and depth information than the traditional two-dimensional image, thereby improving the accuracy and efficiency of detecting cracks and other track defects. By performing brightness level analysis on the pixels in the preprocessed data and further acquiring the grayscale features of the dust, the method can effectively distinguish between dust and real cracks, reduce the interference of environmental factors such as dust on the track state detection, and improve the reliability of detection. The recognition method based on the grayscale features of dust can accurately identify the real cracks on the track surface, and further acquire the size and number of these cracks. By performing risk assessment on the track surface according to the size and number of real cracks, the method can provide a risk assessment result of the track state. This helps railway operators to perform preventive maintenance and take timely measures to prevent further expansion of cracks, thereby improving the safety and service life of the track. The method realizes an automated process for track state detection, from image acquisition to output of risk assessment results, reducing the need for manual intervention. This helps to improve the intelligence level of the railway system, reduce operating costs, and improve operating efficiency.
[0070] In the embodiment of the present invention, it is necessary to select a time within 40 minutes after sunrise or before sunset before using the drone to take pictures. The light in this period is relatively uniform, without strong direct light or too dark light. The drone is used to take all-round real-time pictures of the rail surface. Before using the drone to obtain a three-dimensional image of the rail surface, it is necessary to check in advance whether the camera of the drone is intact to ensure that the image of the rail surface remains clear and complete.
[0071] In a preferred embodiment of the present invention, the above step 11 may include:
[0072] Step 111, acquiring three-dimensional image data of the track surface in real time;
[0073] Step 112, segmenting each frame of 3D image data, and decomposing each frame of 3D image into three plane images of different dimensions, namely, a top surface image, a side surface image and a front surface image, which respectively correspond to different viewing angles of the track surface;
[0074] Step 113, preprocessing the three plane images respectively to obtain preprocessed data;
[0075] Step 114, performing edge detection on the preprocessed data by using an edge detection algorithm to obtain edge features of the track surface, and generating an edge image according to the edge features of the track surface;
[0076] Step 115, dividing each plane image into a plurality of sub-regions according to edge information in the edge image;
[0077] Step 116, selecting representative pixel points in each sub-region for analysis, and selecting at least ten pixel points in each sub-region to obtain analysis results.
[0078] In the embodiment of the present invention, the three-dimensional image is decomposed into three plane images of different dimensions, namely, the top surface, the side surface and the front surface, through step 112, so that various detailed information of the track surface can be fully captured. This multi-angle detection method helps to reduce blind spots and improve the comprehensiveness of track state detection; step 113 pre-processes the three plane images respectively, which can effectively remove noise, enhance key information, etc., thereby improving the accuracy and efficiency of subsequent processing. In addition, pre-processing can also optimize the data format and structure, and provide convenience for subsequent complex analysis. Step 114 extracts the edge features of the track surface through the edge detection algorithm to generate an edge image, which helps to accurately identify the contour and key structure of the track and provide accurate boundary information for subsequent sub-area division and representative pixel point analysis. Step 115 divides the plane image into multiple sub-areas according to the edge information in the edge image. This division method can ensure that each sub-area has similar features, which is convenient for subsequent local analysis and processing. Step 116 selects representative pixels in each sub-area for analysis, and ensures the reliability and stability of the analysis results by selecting at least ten pixels. This analysis method can reduce the amount of calculation while maintaining an effective assessment of the track state. The combination of the above steps can significantly improve the accuracy of track status detection. Multi-angle image acquisition, precise edge detection, effective area division and representative pixel point analysis together form a powerful detection framework that helps to timely detect various potential problems on the track surface.
[0079] In another preferred embodiment of the present invention, the above step 11 may further include:
[0080] When processing the three-dimensional image data of the track surface, in order to better capture the state information of the track from different angles, step 11 performs an image segmentation operation. The purpose of this step is to decompose the original three-dimensional image data into multiple two-dimensional plane images, each plane image represents a specific perspective (such as the top surface, the side surface or the front surface), so as to facilitate a more detailed analysis of various features of the track surface;
[0081] Specifically, step 112 implements image segmentation through a series of image processing techniques, which may include threshold segmentation, region growing, edge detection, morphological operations, etc. When processing three-dimensional images, it is first necessary to determine the appropriate segmentation method and parameters based on the characteristics of the image and the geometric structure of the track surface.
[0082] Then, each frame of 3D image data is processed according to the determined segmentation strategy. During the processing, the image may be divided into different regions or layers according to the grayscale value, color, texture and other characteristics of the pixels, as well as their positions and relationships in 3D space. These regions or layers correspond to different parts of the track surface and different perspectives.
[0083] Finally, plane images representing different perspectives are extracted from the segmented images. For example, the top image mainly shows the upper structure of the track surface, the side image shows the side profile and height changes of the track, and the front image shows the width and straightness of the track. These plane images will serve as the basic data for subsequent analysis to further extract the status characteristics and abnormal information of the track surface.
[0084] Through this step of processing, richer and more intuitive track surface information can be obtained from the 3D image data, providing strong support for subsequent status detection, fault diagnosis and preventive maintenance. At the same time, this segmentation method also helps to reduce the complexity of data processing and improve the real-time and accuracy of the detection system.
[0085] In another preferred embodiment of the present invention, the above step 113 may include:
[0086] The Gaussian filter is used to smooth the planar grayscale image to achieve the effect of filtering out noise;
[0087] Setting the size of the Gaussian filter kernel to (2k+1)×(2k+1), the following formula can be generated:
[0088]
[0089] Where 1≤i, j≤(2k+1), δ is the standard deviation, i and j are the indices in the Gaussian filter kernel, which vary from 1 to (2k+1). In this 3×3 kernel, the values of i and j are 1, 2, and 3; H i is an element in the Gaussian filter kernel, which represents the weight value at position (i, j).
[0090] The following is a δ=1.4, taking a Gaussian convolution kernel of size 3×3 as an example, the specific formula is as follows:
[0091]
[0092] When the size of window A in the image is 3×3, the pixel of the waveform that needs to be filtered out is e. After Gaussian filtering, the brightness value of e can be expressed as:
[0093]
[0094] Among them, sum represents the sum of all elements in the set matrix, A is a local window in the image, whose size is the same as the filter kernel (3×3 in this example), e is the pixel point at the center of this window, and it is also the pixel point updated by Gaussian filtering, H is the Gaussian filter kernel, and the kernel size is (2k+1)×(2k+1). The kernel size of the Gaussian filter is variable, but it is usually odd number × odd number to ensure that there is a center point. In this example, k=1, so the kernel size is 3×3.
[0095] Step 114 performs edge detection on the denoised plane image to obtain an edge image. The specific steps are as follows:
[0096] (1) The finite difference of the first-order partial derivative is used to calculate the gradient amplitude and direction of the pixel point.
[0097] The edge direction of each pixel can be located by the gradient change in the image. Two filters are used to detect the horizontal and vertical changes in the image respectively. The two filters correspond to G x and G y By calculating the horizontal G x and vertical G y The first-order derivative value of can be used to obtain the gradient amplitude G and direction θ of the pixel point. The specific formula is as follows:
[0098]
[0099] Where G represents the gradient strength (or gradient amplitude), which reflects the edge strength at the pixel point; Gx represents the gradient in the x direction, which is calculated by the difference between the pixel point and the adjacent pixels in the horizontal direction; Gy represents the gradient in the y direction, which is calculated by the difference between the pixel point and the adjacent pixels in the vertical direction; arctan is the inverse tangent function, which is used to calculate the direction of the gradient.
[0100] (2) Non-maximum suppression (NMS) is used to process the gradient amplitude to eliminate the spurious response caused by edge detection.
[0101] For each pixel, first calculate its gradient strength and direction, and then compare its gradient strength with the gradient strength of adjacent pixels along the gradient direction of the pixel. If the gradient strength of the current pixel is the local maximum (that is, greater than the gradient strength of the adjacent pixels along the gradient direction), the pixel is retained as an edge point; otherwise, the pixel is suppressed (or discarded). Through the finite difference method of the first-order partial derivative, the edge information in the image can be effectively extracted, providing a basis for subsequent edge detection. Non-maximum suppression can remove points that are not edge maxima, thereby refining the edges and making the edge detection results more accurate and clear. This method is robust to noise because noise usually does not produce strong gradient changes and will not be retained in the non-maximum suppression stage.
[0102] (3) Use dual threshold detection to determine the edges that actually exist and those that may be hidden.
[0103] In order to more accurately show the real edge, the edge pixels need to be further screened. Due to the influence of color changes and noise, some non-edge pixels may be mistakenly detected as edge pixels. In order to deal with these false detections, a double threshold method is used for filtering. Specifically, a high threshold and a low threshold are set. Pixels with gradient values exceeding the high threshold are considered strong edge pixels, while pixels with gradient values between the low threshold and the high threshold are considered weak edge pixels. Pixels with gradient values below the low threshold are considered non-edge pixels and are suppressed. The choice of threshold should be adjusted according to the input content and characteristics of the image.
[0104] (4) The method of suppressing isolated weak edges is used to further optimize the edge detection results.
[0105] Since weak edge pixels may originate from real edges or from color changes or noise, they need to be further distinguished. Generally speaking, weak edge pixels connected to strong edge pixels are more likely to be caused by real edges, while isolated weak edge pixels are more likely to be caused by noise or color changes. In order to better track these connection relationships, the 8 pixels around each weak edge pixel can be checked. If at least one of them is a strong edge pixel, the weak edge pixel is considered to be a real edge pixel and is retained; otherwise, it is considered to be caused by noise or color changes and is suppressed.
[0106] In the embodiment of the present invention, the above-mentioned edge detection method can more accurately distinguish between real edge pixels and non-edge pixels, thereby improving the accuracy of edge detection. At the same time, the dual threshold method can also suppress false detection caused by color changes and noise to a certain extent. The method of suppressing isolated weak edges can further optimize the edge detection results, remove false edge pixels caused by noise or color changes, and retain real edge pixels. This method can improve the continuity and accuracy of edge detection, so that the detection results are more in line with the visual perception of the human eye.
[0107] In a preferred embodiment of the present invention, the above step 12 may include:
[0108] Step 121, identifying the pixel points of each frame of the three-dimensional image in the pre-processed data by using a deep learning algorithm to obtain the identified pixel points;
[0109] Step 122, extracting color features of the pixels according to the identified pixels;
[0110] Step 123, converting the color features of the pixel points into brightness levels, and for color pixels, converting the color values into grayscale values to obtain corresponding brightness;
[0111] Step 124, dividing the calculated brightness level into four gradients.
[0112] In an embodiment of the present invention, a deep learning algorithm is used in step 121 to identify the pixels in the preprocessed data. This advanced algorithm can use a large amount of data for training to learn the complex relationship between the pixels and cracks or other track features. This greatly improves the accuracy of pixel recognition and lays a solid foundation for subsequent feature extraction and crack detection. In step 122, the color features of the pixels are extracted. The color features can provide rich information in track detection, such as the material, aging degree, and pollution of the track. This information is crucial for accurately assessing the track state. In step 123, the color features are converted into brightness levels. For color pixels, the corresponding brightness is obtained by converting them into grayscale values. This step simplifies the data processing process, reduces the multi-dimensional color information to a single brightness dimension, and retains enough information for subsequent crack detection and analysis. In step 124, the calculated brightness level is divided into four gradients. This division method helps to distinguish different brightness areas on the track surface, such as highlight areas may correspond to cracks or reflections, while low-brightness areas may correspond to stains or shadows. This helps the subsequent algorithm to more accurately identify real cracks. The entire process of step 12 is automated, from pixel recognition to feature extraction to brightness level classification, without manual intervention. This greatly improves the detection efficiency and also provides the possibility for subsequent intelligent processing. By continuously optimizing the deep learning model and feature extraction method, the performance and accuracy of this method can be further improved.
[0113] In another preferred embodiment of the present invention, the above step 121 may include:
[0114] Analyze the pixels of each frame of the 3D image in the preprocessed data to obtain the brightness level of the pixels. The system will process the pre-prepared 3D image data and analyze each pixel in each frame of the image. The purpose of the analysis is to determine the brightness level of each pixel. The brightness level is determined based on the brightness value of the pixel, which involves the brightness or intensity of the color in the image;
[0115] The pixel points of each frame of the 3D image in the preprocessed data are identified by a deep learning algorithm to obtain the identified pixel points. The system will use the deep learning algorithm to process and analyze the pixel points in the 3D image data. The deep learning algorithm can learn and identify complex patterns and features in the image. By identifying the pixel points, the image information can be further extracted and analyzed.
[0116] According to the identified pixels, the color features of the pixels are extracted. After the pixels are identified by the deep learning algorithm, the system will extract the color features of these pixels. Color features are an important aspect in image processing. They contain information about the distribution and changes of colors in the image, which helps to further analyze and understand the image content;
[0117] Convert the color features of the pixels into brightness levels. For colored pixels, convert the color values into grayscale values to obtain the corresponding brightness. The system converts the extracted color features into brightness levels. For colored pixels, this means converting their color values into grayscale values, which represent the brightness information of the pixels. In this way, the system can process and analyze the brightness of the pixels in a more uniform and comparable way.
[0118] The system divides the calculated brightness levels into four gradients. This division helps to analyze and understand the brightness changes in the image more carefully, and can identify and distinguish different areas and features in the image based on different brightness gradients.
[0119] Specifically, step 121 divides the edge image into multiple sub-regions to improve processing efficiency.
[0120] The planar image of each sub-area is magnified to 30 billion pixels to improve its resolution, thereby capturing more detailed information.
[0121] At least ten pixels are selected from the enlarged image of each sub-region as samples for subsequent deep learning processing.
[0122] Adopting CNN (convolutional neural network) deep learning algorithm, through the stacked structure of convolution layer, pooling layer and fully connected layer, it can automatically identify pixel samples in edge images. Specifically including:
[0123] Determine the number of convolution kernels d of the convolution layer and the size FxF of each convolution kernel (usually F is a small positive integer, such as 3, 5, etc.); for grayscale images, the number of channels is 1, so j here is equal to 1. Since we are currently discussing grayscale edge images, assume that j = 1; prepare the input data area I, which is a two-dimensional matrix corresponding to a local area of the image; for each convolution kernel (filter) W, apply it to the input data area I. The dot product operation D of the convolution kernel W and the input data area I is:
[0124] D=∑(W ij ×I (x+i)(y+j) )
[0125] Here, i and j traverse the size of the convolution kernel, and x and y are the current positions of the convolution kernel sliding on the input image. As the convolution kernel slides on the input image at the specified step size, each position will get a dot product result, and these results constitute a channel of the output feature map. By sliding the window, the entire input image is traversed from left to right and from top to bottom, the convolution kernel is applied to each local area, and the dot product results are calculated. The dot product results of all positions are combined to form a two-dimensional matrix, that is, a channel of the output feature map. Since there are d convolution kernels, each convolution kernel will generate an output feature channel. Therefore, the final output feature map will be a matrix with d channels.
[0126] According to the calculation method of the first convolution kernel, similar operations are performed on the remaining d-1 convolution kernels; each convolution kernel will be independently applied to the input feature map to generate a new channel of the output feature. Calculate the output feature channel of each convolution kernel, and repeat the following process for each remaining convolution kernel: Place the convolution kernel in the upper left corner of the input feature map (or the appropriate starting position, depending on the use of padding); Perform the convolution operation, that is, calculate the dot product between the convolution kernel and the local area of the input feature at the current position; Move the convolution kernel to the right or downward according to the specified step size, and repeat the convolution operation until the entire input feature map is traversed; Combine the convolution results at all positions into a two-dimensional matrix, which is the output feature channel corresponding to the current convolution kernel; Determine the size of the output feature. The size O of the output feature can be calculated using the following formula (for each dimension, such as width and height):
[0127]
[0128] Where W is the size (width or height) of the input feature map, F is the size of the convolution kernel, P is the amount of padding, and S is the stride. If the width and height of the input feature are not equal, then the output size in each dimension needs to be calculated separately. This formula takes into account the effects of padding and stride on the output feature size. Padding can increase the boundaries of the input feature map, thereby controlling the size of the output feature map; the stride determines the rate at which the convolution kernel slides on the input feature map, which in turn affects the size of the output feature map.
[0129] After the convolution layer, the pooling layer is used to reduce the size of the features and the amount of computation. During the pooling process, the pooling window slides on the input feature map according to the specified step size, aggregates and counts the feature values in each window (such as taking the maximum value, average value, etc.), and then uses the statistical results as the values of the corresponding positions in the output feature map to obtain the feature vector. Since the step size of the pooling operation is usually greater than 1 (such as a 2x2 pooling window with a step size of 2), the size of the output feature map will be significantly reduced, thereby reducing the amount of computation and the number of parameters in the subsequent layers.
[0130] When the input feature vector passes through the fully connected layer, a matrix-vector product operation occurs. Specifically, the input feature vector is multiplied by the weight matrix and then the bias term is added. This process can be expressed mathematically as: y = W x +b, where W is the weight matrix, x is the input feature vector, b is the bias vector, and y is the output vector; the result of the matrix-vector product is nonlinearly transformed through an activation function to increase the network's expressive power;
[0131] Therefore, the pixel points selected from the plane image are automatically identified through the convolutional layer, pooling layer and fully connected layer of the above convolutional neural network.
[0132] In another preferred embodiment of the present invention, the above step 122 may include:
[0133] Due to the different positions of pixels on the image, they may have obvious differences in brightness. In particular, the pixels selected for the cracked parts are usually darker and darker, so the brightness level is lower. In contrast, the other intact parts of the image are lighter and brighter, so the brightness level is higher.
[0134] In order to analyze this brightness difference, the S (saturation) component and I (brightness) component are extracted from the HSI color space, and the R, G, and B components are extracted from the RGB original image as the color features of the pixel samples. These features will be used to further analyze the grayscale color depth of the pixel at different positions and determine the brightness level of the pixel accordingly.
[0135] In the embodiment of the present invention, the statistical characteristics of the color histogram are used to measure the randomness and information volume of the information. Specifically, the entropy index is used, denoted as E. The greater the entropy, the greater the randomness of the information, that is, the greater the amount of information. The calculation formula of entropy is:
[0136]
[0137] Where L is the number of bins in the histogram, p(Z i ) is the ratio of the number of pixels in the i-th bin to the total number of pixels in the image.
[0138] In another preferred embodiment of the present invention, the above step 123 may include:
[0139] Since the overall color of the three-dimensional image of the rail surface is dark, the three-dimensional color plane image is grayed out through the conversion formula from RGB to grayscale value according to the calculated color feature vector v, so as to obtain a grayscale image. The grayscale image contains only one grayscale information. This image contains a small amount of data and takes less time to process. The calculation formula of the weighted average method is:
[0140] Gray=0.299R+0.587G+0.114B
[0141] Among them, Gray is the gray value;
[0142] R: Red represents the value of the red channel of each pixel in the image;
[0143] G: Green represents the value of the green channel of each pixel in the image;
[0144] B: Blue represents the value of the blue channel of each pixel in the image;
[0145] In addition, 0.299, 0.587, and 0.114 are weight values, which are derived based on the average response of the human eye to different color sensitivities. These weight values reflect the contribution of different colors to brightness perception, among which green is given the highest weight because it contributes the most to brightness perception, red is in the middle, and blue contributes relatively little to brightness in the visual perception of the human eye, so it is given the lowest weight in the formula. This weighted combination can help more accurately simulate the human eye's perception of brightness when converting a color plane image into a grayscale image, thereby producing a more natural effect visually;
[0146] According to the grayscale image, the darker the pixel color, the higher the brightness level, and vice versa, the lighter the pixel color, the lower the brightness level.
[0147] In another preferred embodiment of the present invention, the above step 124 may include:
[0148] The brightness of the selected pixel samples is divided into four levels, namely the first gradient, the second gradient, the third gradient and the fourth gradient. According to the gray chromaticity bar, the pixels with the lightest brightness are divided into the first gradient; the pixels with lighter brightness are divided into the second gradient; the pixels with darker brightness are divided into the third gradient; and the pixels with the darkest brightness are divided into the fourth gradient.
[0149] In an embodiment of the present invention, the detailed operation of step 24 is to divide the brightness of the selected pixel samples into four levels: the first gradient, the second gradient, the third gradient and the fourth gradient. This division is based on the brightness depth of the pixel points, which helps to analyze the brightness changes in the image more carefully. Specifically, according to the gray chromaticity bar, the pixel points with the lightest brightness are divided into the first gradient, the pixel points with lighter brightness are divided into the second gradient, the pixel points with darker brightness are divided into the third gradient, and the pixel points with the darkest brightness are divided into the fourth gradient; by carefully dividing the brightness of the pixel points, the brightness changes and detail differences in the image can be captured more accurately. This is crucial for subsequent image processing, feature extraction, and target recognition tasks. Multi-gradient brightness division helps the algorithm better adapt to image changes under different lighting conditions. Whether in bright or dim environments, the algorithm can effectively identify and process key information in the image through gradient division. By dividing the brightness levels of the pixels, calculations and optimizations can be performed more targeted in subsequent processing. For example, in image processing, only pixels within a specific gradient range can be operated, thereby reducing unnecessary computational overhead. In machine learning and computer vision tasks, accurate feature extraction is crucial. By dividing the gradient of pixel brightness, it is easier to extract key features related to the task, thereby improving the accuracy of classification or recognition. For image analysis tasks that require human intuitive understanding (such as medical diagnosis, security monitoring, etc.), gradient division can generate image visualization results that are easier to observe and understand.
[0150] In an embodiment of the present invention, by identifying pixels through a deep learning algorithm, information in the image can be more accurately extracted and analyzed, thereby improving the overall recognition accuracy; extracting the color features of the pixels and converting them into brightness levels can provide richer image feature information, which is helpful for a more comprehensive understanding and analysis of the image content; converting the color values of color pixels into grayscale values can reduce the complexity of data processing while retaining sufficient brightness information for analysis; dividing the brightness levels into four gradients can perform a more detailed analysis and understanding of the brightness changes in the image, which is helpful for identifying and distinguishing different areas and features in the image, and further improving the accuracy and effect of image processing.
[0151] In a preferred embodiment of the present invention, the above step 13 may include:
[0152] Step 131, obtaining the degree of dust of the crack according to the brightness level of the pixel point;
[0153] Step 132, performing principal component analysis on the crack dustiness to obtain spectral characteristics;
[0154] Step 133, obtaining spectral reflectance according to a spectral feature algorithm to obtain a dust value ripple matrix;
[0155] Step 134, obtaining dust grayscale features according to the dust value ripple matrix.
[0156] In the embodiment of the present invention, by step 131, the dust degree of the crack is obtained according to the brightness level of the pixel point, and the dust coverage of the crack area can be accurately quantified. In step 132, the principal component analysis (PCA) is used to process the crack dust degree, which can extract the main spectral features in the data and reduce the dimension of the data. This helps to reduce the computational complexity and improve the efficiency of feature extraction. The spectral reflectance is obtained by the spectral feature algorithm in step 133, and the dust value ripple matrix can be further obtained. As a measure of physical properties, the spectral reflectance provides important information about the interaction between dust and the track surface, which helps to more accurately identify dust and real cracks. Step 134 obtains dust grayscale features according to the dust value ripple matrix, which can comprehensively describe the distribution, density and type of dust on the track surface. This provides strong support for subsequent crack identification and risk assessment. Through the processing of this series of steps, the accuracy and reliability of track status detection can be significantly improved. Accurate dust grayscale feature extraction helps to reduce false alarms and missed alarms and improve the efficiency and safety of track maintenance. This method realizes an automated processing flow, from pixel brightness level analysis to dust grayscale feature extraction, without manual intervention. This will help promote the automation and intelligent development of track status detection and reduce the cost and risk of manual inspection.
[0157] In another preferred embodiment of the present invention, the above step 13 may include:
[0158] Step 131, according to the brightness level of the pixel points, the dust degree of the crack is obtained. The pixel points of the crack on the grayscale image appear dark, and the brightness level is at the third gradient or the fourth gradient, which contrasts with the pixel points of the surrounding flat surface with the brightness level of the first gradient or the second gradient. When the dust degree appears as small spots on the image, the pixel points on the crack appear as a series of continuous high grayscale value pixels. When the small spots accumulate in the pixels with lower brightness, the crack here is more obvious and the dust degree is higher. On the contrary, the small spots in the pixels with higher brightness are more dispersed, and the crack is finer and the dust degree is lower.
[0159] In another preferred embodiment of the present invention, the above step 132 may include:
[0160] Convert the brightness level data of the image pixels into a format suitable for PCA processing. This usually means reshaping the image into a two-dimensional array (or matrix) where each row represents a pixel and each column represents a brightness level or color channel value. Perform PCA processing on the prepared data to extract the main spectral features in the image. PCA is a dimensionality reduction technique that creates new orthogonal variables (i.e., principal components) that are linear combinations of the original data and are ranked according to their ability to explain the variability of the data. PCA generates a set of principal components (PCs), each of which is a linear combination of the original brightness levels or color channel values. These principal components are ranked from largest to smallest according to their ability to explain the variability of the data. The first few principal components (i.e., those that explain most of the variability of the data) are selected as the effective set representing the spectral features of the image.
[0161] In an embodiment of the present invention, through PCA, high-dimensional image data (each pixel may have multiple brightness levels or color channel values) can be reduced to a lower-dimensional space while retaining the most important information. This simplifies the complexity of data processing and analysis. PCA helps to remove noise and redundant information in the image while highlighting important spectral features. This is crucial for subsequent tasks such as image classification, recognition, or anomaly detection. Since PCA reduces the dimensionality of the data, subsequent calculations and analysis can be performed on a smaller data set, thereby improving computational efficiency. By selecting the first few principal components for visualization, the structure and variability of the image data can be more intuitively understood. This is very useful for exploratory data analysis or interpreting complex image sets.
[0162] In another preferred embodiment of the present invention, the above step 133 may include:
[0163] Using the principal components obtained by PCA and their corresponding weights, these weights are applied back to the original spectral band data. The purpose of this step is to calculate the representation of each pixel in the spectral feature space after dimensionality reduction, namely, the spectral reflectance, which reflects the reflectance characteristics of each pixel in different spectral bands.
[0164] Construct a dust value ripple matrix: Based on the calculated spectral reflectance, a ripple matrix representing the dust value is constructed. This matrix identifies the presence and distribution of dust by analyzing the changes in the spectral reflectance of each pixel. Since dust affects the spectral reflectance characteristics of the surface of an object, dust can be effectively detected by analyzing these changes.
[0165] In the embodiment of the present invention, by analyzing the change of spectral reflectance, dust in the image can be accurately identified and located. This method utilizes the influence of dust on spectral reflectance characteristics and improves the accuracy and sensitivity of dust detection. By constructing a dust value ripple matrix, the distribution and density of dust in the image can be quantified. This helps to gain a deeper understanding of the degree of dust pollution and distribution, and provides strong support for subsequent cleaning or processing. This step can automatically process a large amount of image data, quickly and accurately identify and quantify dust. This greatly improves work efficiency and reduces the impact of manual intervention and subjective judgment.
[0166] In another preferred embodiment of the present invention, the above step 34 may include:
[0167] By analyzing the dust value ripple matrix, specific areas and features of dust in the image can be identified, which usually manifest as abnormal changes in grayscale values or specific patterns.
[0168] Based on the identified dust areas, the grayscale histograms of these areas are calculated. The grayscale histogram is a statistical tool used to represent the distribution of the number of pixels at different gray levels in an image.
[0169] From the calculated grayscale histogram, corresponding grayscale features can be extracted, such as grayscale mean, grayscale variance, skewness, kurtosis, etc. These features can be used to further describe the properties and characteristics of the dust area.
[0170] In a preferred embodiment of the present invention, the above step 14 may include:
[0171] Step 141, constructing a gray level co-occurrence matrix reflecting the spatial relationship of gray values in the image according to the acquired dust gray features;
[0172] Step 142, calculating the texture feature parameters by calculating the square sum of elements in the gray level co-occurrence matrix;
[0173] Step 143 , based on the texture feature parameters, dust and real cracks are distinguished by a preset threshold value to obtain real crack information.
[0174] In the embodiment of the present invention, in step 141, a grayscale co-occurrence matrix is constructed according to the obtained dust grayscale features, and this matrix can reflect the spatial relationship of grayscale values in the image. The description of this spatial relationship helps to capture the different features of cracks and dust at the grayscale level, laying the foundation for subsequent accurate distinction. Step 142 extracts texture feature parameters by calculating the sum of squares of elements in the grayscale co-occurrence matrix. These parameters provide a quantitative description of the image texture, making the distinction between cracks and dust more objective and accurate. This quantification method helps to reduce the subjectivity of human judgment and improve the reliability of detection. Step 143 can effectively distinguish dust from real cracks according to texture feature parameters and preset thresholds. This distinction method is based on the difference in texture features between dust and cracks, which can significantly reduce the false alarm rate and improve the accuracy of track state detection. By constructing a grayscale co-occurrence matrix and calculating texture feature parameters, this method realizes rapid detection of track state. Compared with traditional manual inspections or methods based on simple image processing, this method greatly improves detection efficiency and reduces the time and labor cost required for detection. This method realizes an automated processing flow, and can complete the distinction between dust and real cracks without human intervention. This lays the foundation for the intelligent development of track condition detection and helps promote the intelligent upgrade of railway systems. By accurately identifying real crack information, this method can provide targeted guidance for track maintenance. Maintenance personnel can formulate reasonable maintenance plans based on information such as the location, size and number of cracks to improve the safety and service life of the track.
[0175] In another preferred embodiment of the present invention, the above step 14 further includes the following contents:
[0176] Specifically, the larger the texture autocorrelation value is, the higher the consistency is. Since cracks on the rail surface will expand irregularly in the horizontal or vertical direction when they are subjected to pressure loads, when cracks first appear on the rail surface, the higher the overall consistency of the cracks is, and the less cracks are if there are no obvious interruptions and bifurcations.
[0177] The greater the contrast value of the crack texture, the deeper the texture depth. When the track surface is subjected to pressure load and cracks are generated, the pressure on the crack is too large or the pressure time is too long, which makes the crack texture depth deeper and the length and width of the crack are relatively large.
[0178] The larger the energy value of the crack texture, the coarser the coarseness, the coarser the crack texture, the wider the crack width. In any case, the smaller the energy value, the smaller the coarseness, the finer the crack texture, and the smaller the crack width. At the same time, as the coarseness increases and the grayscale becomes darker, the crack texture becomes denser and the grayscale uniformity becomes more uniform. Conversely, the smaller the coarseness and the lighter the grayscale, the sparser the crack texture and the grayscale uniformity becomes more unevenly distributed.
[0179] In a preferred embodiment of the present invention, the above step 15 may include:
[0180] Step 151, identifying real cracks on the track surface according to the dust grayscale features and texture features obtained by analysis;
[0181] Step 152, marking the identified real cracks and counting the number of marks to obtain the total number of cracks.
[0182] In the embodiment of the present invention, through step 151, the analysis is combined with the dust grayscale feature and the texture feature to accurately identify the real cracks on the track surface. This identification method integrates a variety of feature information, effectively improves the accuracy and reliability of identification, and avoids the situation where dust or other interference factors are misjudged as cracks. In step 152, the identified real cracks are marked, and the number of marks is counted to obtain the total number of cracks. This marking and statistical method helps to intuitively display the distribution and number of cracks, and provides important data support for subsequent maintenance and repair work. By accurately identifying and counting the number of cracks, a strong basis can be provided for track maintenance decisions. Maintenance personnel can formulate reasonable maintenance plans and priorities based on the number and distribution of cracks, take timely measures to repair cracks, avoid further expansion and deterioration of cracks, and thus ensure the safety and stability of the track. Through the automated crack identification and statistical process, the efficiency of track status detection can be significantly improved. Compared with traditional manual inspections and manual statistical methods, this method greatly reduces the need for manual participation and subjective judgment, improves the accuracy and consistency of detection, and also reduces the detection cost and time cost. The above step 15 provides important data support and decision-making basis for track maintenance and repair work by accurately identifying real cracks and effectively marking and counting them, improves detection efficiency and accuracy, and helps to ensure the safety and stability of the track.
[0183] In another preferred embodiment of the present invention, the above step 151 further includes the following contents:
[0184] Based on the above, a true and false crack identification table is made as follows:
[0185]
[0186] In a preferred embodiment of the present invention, the above step 152 may include:
[0187] Normalize the total number of dust grayscale pixels in the sub-region to obtain the total number of cracks;
[0188] The total amount of normalized pixel data can be directly recorded as the total number of cracks.
[0189] In an embodiment of the present invention, the normalization process can convert the total amount of dust grayscale pixels in different ranges to a unified scale, thereby simplifying the subsequent data processing and analysis process. This helps to reduce computational complexity and improve computational efficiency. Through the normalization process, the dust grayscale pixel data in different sub-regions or at different time points can be compared on the same scale, which helps to more accurately evaluate the number and distribution of cracks. The total amount of normalized pixel data is directly recorded as the total number of cracks, making the results more intuitive, easier to understand and explain. This is particularly important for non-professionals because they may not have the ability to process complex data. Normalization helps to reduce errors caused by differences in the total range of dust grayscale pixel points, thereby improving the accuracy of crack number assessment. The method can be easily integrated into an automated detection system to achieve automatic detection and reporting of the number of cracks. Due to the simplified calculation process, the method may require less computing resources (such as CPU time, memory, etc.) while achieving the same accuracy, thereby helping to save hardware costs and energy consumption.
[0190] In a preferred embodiment of the present invention, the above step 16 may include:
[0191] Step 161, processing the identified cracks, subdividing the cracks into horizontal cracks and vertical cracks, and extracting the crack skeleton, where the skeleton is the crack shape composed of a single pixel width;
[0192] Step 162, processing the extracted crack skeleton to remove burrs and burrs on the edges to obtain a processed crack skeleton;
[0193] Step 163, calculating the length of the crack skeleton according to the processed crack skeleton by a curve length calculation method, and calculating the average width of the crack area to obtain an estimated crack width value;
[0194] Step 164, multiplying the calculated crack length by the estimated crack width value to obtain the relative area of the crack;
[0195] Step 165, performing risk assessment detection based on the relative area of the cracks combined with the total number of cracks to obtain a risk assessment result;
[0196] Step 166, determining the risk status of the track section based on the risk assessment results.
[0197] In an embodiment of the present invention, through step 161, the identified cracks are subdivided and processed, and the transverse cracks and longitudinal cracks can be accurately distinguished, and the crack skeleton can be effectively extracted. This precise classification and extraction helps to more accurately describe the morphology and characteristics of the cracks, and provides a reliable basis for subsequent analysis and risk assessment. Step 162 processes the extracted crack skeleton to remove the punctures and burrs on the edges, so as to obtain a smoother and more accurate crack skeleton. This processing can reduce noise and interference and improve the accuracy of crack feature extraction. Through step 163, according to the processed crack skeleton, the length of the crack and the estimated crack width value can be accurately calculated. These size parameters are important indicators for evaluating the severity and risk level of the crack, and are crucial for formulating a reasonable maintenance plan. Step 164 multiplies the calculated crack length by the estimated crack width value to obtain the relative area of the crack. This parameter can more comprehensively reflect the scale of the crack and its impact on track safety, and provides a strong basis for risk assessment. Through steps 165 and 166, a comprehensive risk assessment is performed based on the relative area of the cracks and the total number of cracks, and then the risk status of the track section is determined. This comprehensive assessment method can comprehensively consider the number and scale of cracks, and provide scientific and accurate guidance for track maintenance and safety management. The entire process of step 16 realizes automated processing and analysis, greatly improving the accuracy and efficiency of track status detection. This helps to timely discover and repair track cracks, reduce the cost of manual inspection and maintenance, and improve the safety and reliability of the railway system. The above step 16 provides comprehensive and accurate data support and scientific guidance for track maintenance and safety management through precise crack classification and extraction, optimized crack skeleton processing, accurate crack size calculation, effective crack area assessment, and comprehensive risk assessment and status determination, which significantly improves the efficiency and accuracy of detection and maintenance.
[0198] In another preferred embodiment of the present invention, the above step 163 may include:
[0199] The discretization calculation formula of the curve length is used to calculate the length of the crack skeleton in the image. The specific formula is as follows:
[0200]
[0201] Among them, x i ,y i They represent the horizontal and vertical coordinates of the pixel points on the crack skeleton respectively, and n is the total number of pixel points on the skeleton, which is added from (i=1) to (n-1) to avoid exceeding the array boundary.
[0202] According to the crack skeleton length (L) and the area of the entire image region A region ratio, determine the relative length L R ,in,
[0203] By W = r × L R Calculate the relative width W of the crack, where r represents the aspect ratio.
[0204] In an embodiment of the present invention, by calculating the actual length and relative width of the crack skeleton, the size and shape of the crack can be quantified more accurately, thereby improving the accuracy of crack detection; the aspect ratio, as an adjustable parameter, can be adjusted according to different application scenarios and requirements to adapt to different types of crack detection tasks; the use of a discretized curve length calculation formula can improve the calculation efficiency while ensuring a certain degree of accuracy.
[0205] In another preferred embodiment of the present invention, the above step 164 may include:
[0206] The average width of the crack is calculated by averaging the width values of all pixels in the crack area; the average width of the crack is used and the relative length of the crack L R Calculate the relative area A of the crack region R , the calculation formula is:
[0207]
[0208] in, is the average width of the crack (usually in pixels), L R is the relative length of the crack (unitless, the ratio of the length to a reference value).
[0209] In the embodiment of the present invention, by calculating the relative area of the crack, the size and importance of the crack can be quantified more accurately, which helps to more accurately assess the damage degree of the track. The use of relative area instead of absolute area makes the method adaptable to images of different resolutions and sizes. The complex morphology of the crack is simplified to a relative area value, which facilitates subsequent risk assessment and maintenance decisions. Through automated image processing and analysis technology, a large number of track images can be processed quickly to improve detection efficiency.
[0210] In another preferred embodiment of the present invention, the above step 165 may include:
[0211] For cracks in each sub-region, according to their relative area (A R ) and the total number of cracks in the sub-area (N), and calculate the risk probability of each crack (p i ),
[0212]
[0213] Among them, A R,i is the relative area of the ith crack, is the sum of the relative areas of all cracks in this sub-region.
[0214] Let the risk probability p i Calculate the risk entropy H. Risk entropy is a measure of the risk in the system. Its calculation formula is:
[0215]
[0216] Where N is the total number of cracks in the sub-region, p i is the risk probability of the i-th crack;
[0217] Risk assessment is performed based on the calculated risk entropy H. When (H<0.01), it is considered to be risk-free; when (0.01≤H<0.10), it is considered to be low risk; when (0.10≤H<1.00), it is considered to be medium risk; and when (H≥1.00), it is considered to be high risk. These thresholds can be adjusted according to specific application scenarios.
[0218] In the embodiment of the present invention, by calculating the risk entropy considering the relative area and number of each crack, the overall risk level in the sub-region can be more accurately evaluated. Using the risk entropy as an evaluation indicator, it can be flexibly applied to images of different sizes and resolutions, as well as sub-regions with different crack morphologies and distributions. By quantifying the risk level into levels such as no risk, low risk, medium risk, and high risk, it can provide strong support for maintenance decision-making and safety management, and can be automated through programming, thereby improving processing speed and accuracy and reducing the cost and error of manual intervention.
[0219] In another preferred embodiment of the present invention, the above step 166 may further include:
[0220] When H<0.01, it is the initial stage and the track surface is in normal state;
[0221] When 0.01≤H<0.10, as the track carries trains continuously, and due to weather changes, the temperature and humidity change accordingly, which accelerates the corrosion process of the track material, affects the durability of the track material, promotes the formation and expansion of cracks, and the repeated pressure and stress cycles of the train wheel-rail loads lead to the formation of micro cracks; at this time, the track is in a low-risk state;
[0222] When 0.10≤H<1.00, the rolling contact between the train wheel and the track can also produce a high stress concentration area, causing rolling contact fatigue. At the same time, the interaction between the pressure and stress of the train's repeated load on the rail surface drives the track to crack along the energy concentration direction in a micro-risk state, presenting horizontal or vertical micro-cracks; at this time, the track is in a medium-risk state;
[0223] When H≥1.00, under the condition of long-term load and temperature change, microcracks are caused by dust and small particles raised by the wheels when the train is running, which enter the cracks. Then the dust and small particles accumulate, and the tips of the microcracks are constantly unstable and damaged under the promotion of friction, causing the microcracks to continue to expand and appear as cracks. At this time, the track is in a high-risk state;
[0224] When the track surface is in a low-risk state, track maintenance workers need to detect cracks and take corresponding maintenance measures based on the relative area and total number of cracks to prevent the low-risk state from evolving into a medium-risk or high-risk state.
[0225] like Figure 2 As shown, the present invention also provides a track section status detection system, comprising:
[0226] The acquisition module 10 is used to acquire a three-dimensional image of the track surface in real time, and process the three-dimensional image to obtain pre-processed data; analyze the pixel points of each frame of the three-dimensional image in the pre-processed data to obtain the brightness level of the pixel points; and obtain the grayscale characteristics of dust according to the brightness level of the pixel points;
[0227] The processing module 20 is used to identify the real cracks on the track surface according to the dust grayscale characteristics; obtain the size of the real cracks and the number of real cracks; and perform risk assessment on the track surface according to the size of the real cracks and the number of real cracks to obtain a risk assessment result of the track surface status.
[0228] Optionally, a three-dimensional image of the track surface is acquired in real time, and the three-dimensional image is processed to obtain pre-processed data, including:
[0229] Acquire three-dimensional image data of track surface in real time;
[0230] Segment each frame of 3D image data and decompose each frame of 3D image into three plane images of different dimensions, namely, top surface image, side surface image and front surface image, which correspond to different viewing angles of the track surface respectively;
[0231] Preprocessing the three plane images respectively to obtain preprocessing data;
[0232] Performing edge detection on the preprocessed data by using an edge detection algorithm to obtain edge features of the track surface, and generating an edge image based on the edge features of the track surface;
[0233] According to edge information in the edge image, each plane image is divided into a plurality of sub-regions;
[0234] Representative pixels are selected in each sub-region for analysis, and at least ten pixels are selected in each sub-region to obtain analysis results.
[0235] Optionally, analyzing the pixels of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixels includes:
[0236] The pixel points of each frame of the three-dimensional image in the preprocessed data are identified by a deep learning algorithm to obtain the identified pixel points;
[0237] According to the identified pixels, the color features of the pixels are extracted;
[0238] Convert the color features of the pixels into brightness levels. For color pixels, convert the color values into grayscale values to obtain the corresponding brightness.
[0239] The calculated brightness level is divided into four gradients.
[0240] Optionally, obtaining dust grayscale features according to the brightness level of the pixel point includes:
[0241] According to the brightness level of the pixel, the degree of dust in the crack is obtained;
[0242] The crack dustiness is analyzed by principal component analysis to obtain the spectral characteristics;
[0243] Obtain spectral reflectance according to spectral feature algorithm to obtain dust value ripple matrix;
[0244] The dust grayscale features are obtained according to the dust value ripple matrix.
[0245] Optionally, identifying real cracks on the track surface according to the dust grayscale features includes:
[0246] According to the acquired dust grayscale features, a grayscale co-occurrence matrix reflecting the spatial relationship of grayscale values in the image is constructed;
[0247] The texture feature parameters are calculated by calculating the sum of squares of elements in the gray-level co-occurrence matrix;
[0248] According to the texture feature parameters, dust and real cracks are distinguished through a preset threshold to obtain the real crack information.
[0249] Optionally, obtain the size of the real crack and the number of real cracks, including:
[0250] According to the dust grayscale characteristics and texture characteristics obtained by analysis, the real cracks on the track surface are identified;
[0251] The identified real cracks are marked, and the number of marks is counted to obtain the total number of cracks.
[0252] Optionally, a risk assessment is performed on the track surface according to the size and number of the real cracks to obtain a risk assessment result of the track surface condition, including:
[0253] Process the identified cracks, subdivide them into horizontal and vertical cracks, and extract the crack skeleton, which is the crack shape composed of a single pixel width;
[0254] The extracted crack skeleton is processed to remove the burrs and burrs on the edges to obtain a processed crack skeleton;
[0255] According to the processed crack skeleton, the length of the crack skeleton is calculated by the curve length calculation method, and the average width of the crack area is calculated to obtain the estimated crack width value;
[0256] Multiply the calculated crack length by the estimated crack width value to obtain the relative area of the crack;
[0257] Conduct risk assessment tests based on the relative area of cracks combined with the total number of cracks to obtain risk assessment results;
[0258] Determine the risk status of the track section based on the risk assessment results.
[0259] It should be noted that the system is a system corresponding to the above method, and all implementation methods in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0260] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0261] The embodiment of the present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.
[0262] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0263] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0264] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0265] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0266] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting a track section state, characterized in that: The following steps are involved: Acquire the three-dimensional image of the track surface in real time, and process the three-dimensional image to obtain pre-processed data; Analyze the pixels of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixels; Obtaining dust grayscale features according to the brightness level of the pixel; According to the dust grayscale characteristics, identifying real cracks on the track surface; Obtaining the size of the real crack and the number of the real cracks; According to the size and number of real cracks, the risk assessment of the track surface is carried out to obtain the risk assessment result of the track surface state; Acquire the three-dimensional image of the track surface in real time and process the three-dimensional image to obtain pre-processed data, including: Acquire three-dimensional image data of track surface in real time; Segment each frame of 3D image data and decompose each frame of 3D image into three plane images of different dimensions, namely, top surface image, side surface image and front surface image, which correspond to different viewing angles of the track surface respectively; Preprocessing the three plane images respectively to obtain preprocessing data; Performing edge detection on the preprocessed data by using an edge detection algorithm to obtain edge features of the track surface, and generating an edge image based on the edge features of the track surface; According to edge information in the edge image, each plane image is divided into a plurality of sub-regions; Select representative pixels in each sub-region for analysis, and select at least ten pixels in each sub-region to obtain analysis results; Analyzing the pixels of each frame of the three-dimensional image in the preprocessed data to obtain the brightness level of the pixels, including: The pixel points of each frame of the three-dimensional image in the preprocessed data are identified by a deep learning algorithm to obtain the identified pixel points; According to the identified pixels, the color features of the pixels are extracted; Convert the color features of the pixels into brightness levels. For color pixels, convert the color values into grayscale values to obtain the corresponding brightness. Divide the calculated brightness level into four gradients; According to the brightness level of the pixel point, the dust grayscale feature is obtained, including: According to the brightness level of the pixel, the degree of dust in the crack is obtained; The crack dustiness is analyzed by principal component analysis to obtain the spectral characteristics; Obtain spectral reflectance according to spectral feature algorithm to obtain dust value ripple matrix; Obtain dust grayscale features according to the dust value ripple matrix; According to the dust grayscale characteristics, real cracks on the rail surface are identified, including: According to the acquired dust grayscale features, a grayscale co-occurrence matrix reflecting the spatial relationship of grayscale values in the image is constructed; The texture feature parameters are calculated by calculating the sum of squares of elements in the gray-level co-occurrence matrix; According to the texture feature parameters, dust and real cracks are distinguished through a preset threshold to obtain real crack information; Get the size and number of real cracks, including: According to the dust grayscale characteristics and texture characteristics obtained by analysis, the real cracks on the track surface are identified; Mark the identified real cracks and count the number of marks to obtain the total number of cracks; According to the size and number of real cracks, the track surface is risk assessed to obtain the risk assessment results of the track surface condition, including: Process the identified cracks, subdivide them into horizontal and vertical cracks, and extract the crack skeleton, which is the crack shape composed of a single pixel width; The extracted crack skeleton is processed to remove the burrs and burrs on the edges to obtain a processed crack skeleton; According to the processed crack skeleton, the length of the crack skeleton is calculated by the curve length calculation method, and the average width of the crack area is calculated to obtain the estimated crack width value; Multiply the calculated crack length by the estimated crack width value to obtain the relative area of the crack; Conduct risk assessment tests based on the relative area of cracks combined with the total number of cracks to obtain risk assessment results; Determine the risk status of the track section based on the risk assessment results; The three plane images are preprocessed respectively to obtain preprocessed data, including: Gaussian filter is used to smooth the planar grayscale image; Setting the size of the Gaussian filter kernel to (2k+1)×(2k+1) yields the following formula: Where 1≤i, j≤(2k+1), δ is the standard deviation, i and j are the indices in the Gaussian filter kernel, ranging from 1 to (2k+1). In this 3×3 kernel, the values of i and j are 1, 2, and 3; H i is an element in the Gaussian filter kernel, representing the weight value at position (i, j); The edge detection algorithm is used to perform edge detection on the preprocessed data to obtain the edge features of the track surface, and an edge image is generated based on the edge features of the track surface. The specific steps are as follows: The finite difference of the first-order partial derivative is used to calculate the gradient amplitude and direction of the pixel point. The specific steps are as follows: The edge direction of each pixel is located by the gradient change in the image, and two filters are used to detect the horizontal and vertical changes in the image respectively. The two filters correspond to G x and G y ; By calculating the horizontal G x and vertical G y The first-order derivative value of the pixel point is obtained by the gradient amplitude G and direction θ. The specific formula is as follows: In the formula, G represents the gradient strength (or gradient amplitude), which reflects the edge strength at the pixel point; Gx represents the gradient in the x direction, which is calculated by the difference between the pixel point and the adjacent pixels in the horizontal direction; Gy represents the gradient in the y direction, which is calculated by the difference between the pixel point and the adjacent pixels in the vertical direction; arctan is the inverse tangent function, which is used to calculate the direction of the gradient; Non-maximum suppression is used to process the gradient amplitude to eliminate the spurious response caused by edge detection. The specific steps are as follows: For each pixel, calculate its gradient strength and direction, and compare its gradient strength with the gradient strength of adjacent pixels along the gradient direction of the pixel; if the gradient strength of the current pixel is the local maximum and is greater than the gradient strength of the adjacent pixels along the gradient direction, retain the pixel as an edge point; otherwise, suppress or discard the pixel; extract the edge information in the image through the finite difference method of the first-order partial derivative; Double threshold detection is used to determine the actual and potentially hidden edges. The specific steps are as follows: A high threshold and a low threshold are set. Pixels with gradient values exceeding the high threshold are considered strong edge pixels, and pixels with gradient values between the low threshold and the high threshold are considered weak edge pixels; pixels with gradient values below the low threshold are considered non-edge pixels and are suppressed.
2. A track section status detection system, characterized in that: Applied in the method as claimed in claim 1, comprising: The acquisition module is used to acquire a three-dimensional image of the track surface in real time and process the three-dimensional image to obtain pre-processed data; analyze the pixel points of each frame of the three-dimensional image in the pre-processed data to obtain the brightness level of the pixel points; and obtain the grayscale characteristics of dust according to the brightness level of the pixel points; The processing module is used to identify the real cracks on the track surface according to the dust grayscale characteristics; obtain the size of the real cracks and the number of real cracks; and perform risk assessment on the track surface according to the size of the real cracks and the number of real cracks to obtain a risk assessment result of the track surface status.
3. A computing device, characterized in that: include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, which implements the method according to claim 1 when executed by a processor.
