Track apparent disease detection method, device and equipment and storage medium
Through segmentation of orbit images and neural network algorithm processing, the track and track bed areas are determined, and the problem of slow speed of orbit detection devices in the prior art is solved, and high-speed and efficient track patrol and disease detection are achieved.
Patent Information
- Application Number
- CN202410902990.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-11-01
AI Technical Summary
The existing track apparent disease detection devices have low operating speeds and cannot patrol the tracks at high speed and efficiently at the same time.
By obtaining the grayscale image of the track and dividing it into multiple unit images, the fastener position is determined using the pre-stored neural network algorithm, combining the edge information of the rail and sleeper, the track area image and the track bed area image are determined, and the grayscale is performed Comparatively, the image of the foreign object area of the track bed composed of pixels whose difference value is greater than the threshold is obtained.
It realizes patrolling the track at high speed and efficiency while ensuring data accuracy, reduces mis-checking and missed detection of detected objects, and accurately determines the missing foreign objects and fasteners on the track.
Smart Images

Figure CN118887167A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of track inspection and detection technology, and in particular to a method, device, equipment and storage medium for detecting track surface defects. Background Art
[0002] In order to ensure the daily safe operation of trains, it is necessary to regularly inspect the apparent defects of the track. In rail transit, apparent defects of the track usually include foreign objects on the ballast, missing fasteners and broken rails. At present, for the apparent image detection of the track, the track data is usually collected and then intelligent image processing is performed to replace manual visual inspection. Specifically: first, a two-dimensional image of the track is captured by a linear array camera, and a track height map is obtained by a three-dimensional camera; then, the grayscale information of the two-dimensional image and the height information of the three-dimensional image are combined for analysis, comparison and fault identification; finally, the apparent image defect detection of the track is realized.
[0003] However, due to the low acquisition frequency of ordinary three-dimensional cameras, the existing track surface defect detection devices have a low operating speed and cannot simultaneously inspect the track at a high speed and efficiently. Summary of the invention
[0004] The present application provides a method, device, equipment and storage medium for detecting apparent defects of a track, so as to solve the problem that the existing apparent defects detection device of a track has a low operating speed and cannot simultaneously inspect the track at a high speed and with high efficiency.
[0005] In a first aspect, the present application provides a method for detecting apparent defects of a track, the method comprising:
[0006] Acquire a grayscale image of the target track, and divide the grayscale image into a plurality of unit images of the same size, wherein the grayscale image is a two-dimensional grayscale image, and each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners;
[0007] Using a pre-stored neural network algorithm, the position of the fastener in each unit image is determined respectively;
[0008] According to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, a track area image and a ballast area image are determined from the grayscale image, wherein each rail and each sleeper are displayed in the track area image;
[0009] The grayscale of the roadbed area image and the reconstructed image is compared to obtain a roadbed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold, wherein the reconstructed image refers to an image reconstructed according to the characteristics of the roadbed area image, and the difference value refers to the pixel grayscale difference value between the pixel points at the same position in the roadbed area image and the reconstructed image.
[0010] In one possible design, before obtaining a grayscale image of the target track and dividing the grayscale image into a plurality of unit images of the same size, the method includes:
[0011] A track bed area image feature library is established, wherein the track bed area image feature library stores a plurality of track bed area sample images and features of each track bed area sample image.
[0012] In a possible design, a track bed area image feature library is established, including:
[0013] Establishing an image sample set, wherein the image sample set includes a plurality of sample images of the track bed area;
[0014] Through the convolutional neural network, the features of the sample images of each trackbed area are extracted respectively;
[0015] A track bed area image feature library is obtained according to a plurality of track bed area sample images and the features of each track bed area sample image.
[0016] In one possible design, after determining the position of the fastener in each unit image respectively by a pre-stored neural network algorithm, the method includes:
[0017] The fastener missing situation is analyzed according to the position of the fastener in each unit image, wherein the fastener includes bolts and fasteners.
[0018] In one possible design, after determining the track area image and the ballast area image from the grayscale image based on the position of each fastener, the edge information of each rail, and the edge information of each sleeper, the method includes:
[0019] The wheel surface contact points displayed in each unit image are respectively obtained, wherein each wheel surface contact point refers to a portion of the corresponding rail that contacts the wheel tread;
[0020] Calculate the average grayscale value along the track direction at each wheel contact point;
[0021] Through discrete Fourier transform and amplitude normalization processing, the amplitude value of each grayscale average is calculated respectively;
[0022] By inverse discrete Fourier transform, the transformation results of each amplitude value greater than the preset amplitude value are calculated respectively to obtain the damaged position of the rail displayed in each unit image respectively.
[0023] In a possible design, before respectively acquiring the wheel surface contact point displayed in each unit image, the method includes:
[0024] Perform denoising on each unit image separately;
[0025] The wheel contact image is determined from each unit image after denoising by edge detection method.
[0026] In a possible design, after the grayscale comparison between the roadbed area image and the reconstructed image is performed to obtain a roadbed foreign body area image composed of a plurality of pixel points whose difference values are greater than a preset threshold, the method includes:
[0027] An opening operation is performed on the track bed foreign body area image to obtain an updated track bed foreign body area image.
[0028] In a second aspect, the present application provides a device for detecting apparent defects of a track, the device comprising:
[0029] An image acquisition module, used for acquiring a grayscale image of the target track and dividing the grayscale image into a plurality of unit images of the same size, wherein the grayscale image is a two-dimensional grayscale image, and each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners;
[0030] A fastener determination module, used to determine the position of the fastener in each unit image by using a pre-stored neural network algorithm;
[0031] The area determination module is used to determine the track area image and the ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, wherein each rail and each sleeper are displayed in the track area image;
[0032] The roadbed foreign body analysis module is used to compare the grayscale of the roadbed area image and the reconstructed image to obtain a roadbed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold, wherein the reconstructed image refers to an image reconstructed according to the characteristics of the roadbed area image, and the difference value refers to the pixel grayscale difference value between the pixel points at the same position in the roadbed area image and the reconstructed image.
[0033] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0034] Memory stores computer-executable instructions;
[0035] The processor executes the computer-executable instructions stored in the memory to implement a method for detecting apparent defects of a track according to the first aspect of the invention.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement a method for detecting apparent defects of a track according to the invention content of the first aspect.
[0037] In a fifth aspect, the present application provides a computer program product, including a computer program, which, when executed by a processor, is used to implement a method for detecting apparent defects of a track according to the invention content of the first aspect.
[0038] The present application provides a method, device, equipment and storage medium for detecting apparent defects of a track. The method obtains a grayscale image of a target track and divides the grayscale image into multiple unit images of the same size. The position of a fastener in each unit image is then determined using a pre-stored neural network algorithm. The track area image and the ballast area image are then determined from the grayscale image based on the position of each fastener, the edge information of each rail, and the edge information of each sleeper. Finally, the ballast area image is compared with the reconstructed image in grayscale to obtain a ballast foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold. The following technical effects are achieved: by setting a linear array camera to collect the grayscale image of the target track, and analyzing the collected grayscale image to obtain the apparent disease condition of the target track, the problem of how to inspect the track with high speed and high efficiency is solved under the condition of ensuring accurate data collection; by adopting the redundant segmentation method in the image segmentation process, the pixels in two consecutive unit images are partially overlapped, thereby reducing the false detection and missed detection caused by the segmentation of the detected object; by comparing the pixel grayscale difference values between the pixels at the same position in the roadbed area image and the reconstructed image, a roadbed foreign body area image composed of multiple pixels with difference values greater than a preset threshold is obtained, and then it is determined that there is a roadbed foreign body at the corresponding position of the roadbed foreign body area image of the target track, thereby solving the problem of how to determine the roadbed foreign body of the target track. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] Figure 1 A schematic diagram of the system architecture of a method for detecting apparent defects of a track provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a method for detecting surface defects of a track provided in an embodiment of the present application Figure 1 ;
[0043] Figure 3 A schematic diagram of a unit image provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of a method for detecting surface defects of a track provided in an embodiment of the present application Figure 2 ;
[0045] Figure 5 A schematic diagram of the structure of a track surface defect detection device provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0047] Reference numerals:
[0048] 110-track disease detection system; 111-image acquisition unit; 112-image recognition unit; 113-fastener missing analysis unit; 114-rail damage analysis unit; 115-ballast bed foreign body analysis unit;
[0049] 210-rail; 220-sleeper; 230-bolt; 240-fastener; 250-ballast area;
[0050] 300-track surface disease detection device; 310-image acquisition module; 320-fastener determination module; 330-area determination module; 340-ballast bed foreign body analysis module;
[0051] 400 - electronic device; 410 - processor; 420 - memory; 430 - communication component; 440 - bus. DETAILED DESCRIPTION
[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0053] In the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will appreciate that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference. It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more.
[0054] It should be noted that the "at..." in the embodiments of the present application can be the instant when a certain situation occurs, or it can be a period of time after a certain situation occurs, and the embodiments of the present application do not specifically limit this. In addition, the track surface disease detection method provided in the embodiments of the present application is only used as an example, and the track surface disease detection method can also include more or less content.
[0055] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0056] Track: In rail transportation, track refers to the steel rail line system that carries trains, consisting of two parallel laid rails and their related sleepers, ballast beds, fasteners and roadbed.
[0057] Track bed: It is an important part of the track and the foundation of the track frame. Track bed usually refers to the stone ballast (ballast) cushion layer laid on the roadbed surface under the railway sleepers.
[0058] Linear scan camera: a camera that uses a linear scan image sensor. Linear scan image sensors are divided into two types: monochrome and color, so line scan cameras are also divided into two types: monochrome and color.
[0059] Tread: refers to the part where the train wheels come into contact with the rails.
[0060] Opening: In image processing, it is used to remove small noise points in the image and separate connected objects. First, the noise in the image that is smaller than the size of the structural element is removed by erosion, and then the part that was mistakenly deleted during the erosion process is restored by dilation, while keeping the original large-scale features unchanged.
[0061] With the increasing expansion of modernization, the construction of rail transit is also becoming more and more prosperous. However, due to the high speed of trains and the high traffic density, track defects are gradually increasing. In order to ensure the daily safe operation of trains, it is necessary to regularly detect track surface defects. In rail transit, track surface defects usually include foreign objects in the roadbed, missing fasteners and broken rails. At present, for track surface image detection, track data is usually collected and then intelligent image processing is performed to replace manual visual inspection. Specifically: first, a two-dimensional image of the track is captured by a linear array camera, and a track height map is obtained by a three-dimensional camera; then, the grayscale information of the two-dimensional image and the height information of the three-dimensional image are combined for analysis, comparison and fault identification; finally, the track surface image defect detection is realized.
[0062] However, due to the low acquisition frequency of ordinary 3D cameras, the existing track surface defect detection devices generally have a low running speed during detection in order to ensure the accuracy of the collected data, and the running speed is usually less than 25km / h. Therefore, it cannot meet the requirements of high-speed and efficient track inspection at the same time.
[0063] In order to enable the track detection device to inspect the track quickly and efficiently and solve the above problems existing in the prior art, the embodiment of the present application proposes a method for detecting apparent track defects, which only uses a linear array camera to capture a two-dimensional image of the track, and based on the two-dimensional image, uses a variety of technical means such as deep learning algorithms, image frequency domain analysis, and pre-memorized image features of non-defective trackbeds to detect apparent track defects. Thus, the track detection device can inspect the track quickly and efficiently without obtaining a track height map through a three-dimensional camera.
[0064] Based on this, the embodiments of the present application provide a method, device, equipment and storage medium for detecting apparent defects of a track, which can be used in the field of track inspection and detection technology, aiming to solve the above technical problems of the prior art.
[0065] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0066] Figure 1 A schematic diagram of the system architecture of a method for detecting apparent defects of a track provided in an embodiment of the present application. It should be noted that: Figure 1 What is shown is merely an example of a system architecture to which the embodiments of the present application can be applied, in order to help those skilled in the art understand the technical content of the present application, but it does not mean that the embodiments of the present application cannot be used in other devices, systems, environments or scenarios.
[0067] like Figure 1 As shown, the system architecture of the method is a track defect detection system 110, which can be applied to an existing track detection device (detection train) for inspecting tracks in railway transportation to detect apparent track defects. The track defect detection system 110 includes: an image acquisition unit 111, an image recognition unit 112, a fastener missing analysis unit 113, a rail damage analysis unit 114, and a track bed foreign body analysis unit 115.
[0068] The image acquisition unit 111 is used to acquire images of the track. It uses a linear array camera, which can be a monochrome linear array camera or a color linear array camera. Its acquisition frequency can reach tens of thousands of images per second. According to the pixel size and pixel accuracy requirements of the linear array camera, multiple linear array cameras, such as 3 or 2, can be arranged side by side in a direction perpendicular to the rail. Furthermore, the pulse signal of the external odometer can be connected to trigger the shooting, so as to ensure that the image acquisition of the linear array camera is strictly synchronized with the position information of the track detection device during the high-speed movement of the track detection device. Among them, the linear array camera and the pulse signal source of the external odometer can be connected by hardware, and the linear array camera can be set to perform an exposure shooting after receiving a preset number of pulse signals, that is, the shooting trigger.
[0069] The image recognition unit 112 is used to recognize rails, sleepers, ballast and fasteners in the track image, wherein the fasteners include bolts and fasteners.
[0070] The fastener missing analysis unit 113 is used to infer the position of the missing bolt and the position of the missing fastener based on the known position of the bolt and the known position of the fastener.
[0071] The rail damage analysis unit 114 is used to identify the surface damage of the rail in the track image.
[0072] The track bed foreign matter analysis unit 115 is used to identify foreign matter on the track bed in the track image.
[0073] The image recognition unit 112, the fastener missing analysis unit 113, the rail damage analysis unit 114 and the track bed foreign matter analysis unit 115 may be arranged in the server.
[0074] Figure 2 A schematic diagram of a method for detecting surface defects of a track provided in an embodiment of the present application Figure 1 The track defect detection system in the present application is applied to the existing track detection device, and can perform apparent defect detection on multiple tracks respectively, wherein the detection method for each track is the same, and this embodiment only describes in detail the detection method for any one track. Figure 2 As shown, the method includes:
[0075] S101, obtaining a grayscale image of a target track, and dividing the grayscale image into a plurality of unit images of the same size;
[0076] Specifically, the rail defect detection system collects a two-dimensional grayscale image of the target track through a linear array camera. The server obtains the grayscale image collected by the linear array camera and divides the grayscale image into multiple unit images of the same size containing at least two sleepers, that is, each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners. The image segmentation process can be to evenly divide the collected image so that the pixels do not overlap in two consecutive unit images; or a redundant segmentation method can be used to make the pixels in two consecutive unit images partially overlap to reduce false detection and missed detection caused by the detection object being divided. In two consecutive unit images, in order to take into account the efficiency of the server in processing image data, the proportion of the pixel overlap can be set to 0-50%, such as 10%, 20%, 25% and 30%, etc. There is no specific restriction here and it can be set according to the actual situation.
[0077] By setting up a linear array camera for image acquisition, while ensuring accurate data collection, the speed of the track detection device can reach more than 80km / h, thereby completing the task of high-speed acquisition of the target track surface image, and thus achieving the purpose of high-speed and efficient track inspection.
[0078] S102, determining the position of the fastener in each unit image respectively by using a pre-stored neural network algorithm;
[0079] Specifically, the server uses an existing neural network model to identify the position of fasteners in each unit image, and the fasteners may include bolts and fasteners. The neural network model may be implemented using the YOLO (You Only Look Once) framework of an object recognition and positioning algorithm based on a deep neural network, such as the YOLO series v3 version and the YOLO series v4 version. It is easy to implement the existing technology to identify the position of fasteners in an image using an existing neural network model, and will not be described in detail here, nor will there be too many restrictions.
[0080] S103, determining a track area image and a ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper;
[0081] Specifically, the server can extract the contours of the track and sleeper from the grayscale image based on the position of each fastener, the edge information of each rail, and the edge information of each sleeper, thereby determining the track area image and the ballast area image, wherein each rail and each sleeper are displayed in the track area image.
[0082] Figure 3 A schematic diagram of a unit image provided in an embodiment of the present application, such as Figure 3 As shown, in the unit image, two rails 210, two sleepers 220, a plurality of fasteners consisting of a plurality of bolts 230 and a plurality of fasteners 240, and a ballast area 250 are shown. The ballast area 250 includes an area located between the two rails 210 and areas located outside the two rails 210, namely Figure 3 The area within the three dotted boxes.
[0083] S104, performing grayscale comparison between the ballast area image and the reconstructed image to obtain a ballast foreign body area image composed of a plurality of pixel points whose difference values are greater than a preset threshold;
[0084] Specifically, the server first extracts features of the roadbed area image in different dimensions, such as features of different textures and features of different light and dark, and reconstructs the roadbed area image based on these extracted features, and then performs grayscale comparison between the roadbed area image and the reconstructed image, that is, compares the pixel grayscale difference between the pixels at the same position in the roadbed area image and the reconstructed image, thereby obtaining a roadbed foreign body area image composed of multiple pixels whose difference values are greater than a preset threshold, and then determines that there is a roadbed foreign body at the corresponding position of the roadbed foreign body area image on the target track. Among them, the preset threshold is set in advance by the technicians.
[0085] Optionally, the server first extracts features of the track bed area image in different dimensions, and compares them with pre-stored image features of the target track without defects to determine the image features of the track bed area that are closest to the image features of the track bed area, and then reconstructs a reconstructed image of the track bed area image based on the image features of the target track without defects that are closest to the image features of the track bed area, and then performs grayscale comparison between the track bed area image and the reconstructed image to obtain a track bed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold.
[0086] The present embodiment provides a method for detecting apparent defects of a track, which obtains a grayscale image of a target track and divides the grayscale image into multiple unit images of the same size; then, the position of the fasteners in each unit image is determined respectively through a pre-stored neural network algorithm; then, based on the position of each fastener, the edge information of each rail, and the edge information of each sleeper, the track area image and the ballast area image are determined from the grayscale image; finally, the ballast area image is grayscale-contrasted with the reconstructed image to obtain a ballast foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold. The following technical effects are achieved: by setting a linear array camera to collect the grayscale image of the target track, and analyzing the collected grayscale image to obtain the apparent disease condition of the target track, the problem of how to inspect the track with high speed and high efficiency is solved under the condition of ensuring accurate data collection; by adopting the redundant segmentation method in the image segmentation process, the pixels in two consecutive unit images are partially overlapped, thereby reducing the false detection and missed detection caused by the segmentation of the detected object; by comparing the pixel grayscale difference values between the pixels at the same position in the roadbed area image and the reconstructed image, a roadbed foreign body area image composed of multiple pixels with difference values greater than a preset threshold is obtained, and then it is determined that there is a roadbed foreign body at the corresponding position of the roadbed foreign body area image of the target track, thereby solving the problem of how to determine the roadbed foreign body of the target track.
[0087] Figure 4 A schematic diagram of a method for detecting surface defects of a track provided in an embodiment of the present application Figure 2 In one possible example, Figure 4 As shown, in this embodiment Figure 2 Based on the embodiments, how to determine the missing of fasteners and the damage of rails is described in detail. Figure 4 As shown, the method includes:
[0088] S201, establishing an image sample set;
[0089] Specifically, before using the track defect detection system of the present application to detect the target track, the establishment of the track bed area image feature library can be completed first. The track bed area image feature library stores multiple track bed area sample images and the features of each track bed area sample image. The number of track bed area image feature libraries can be one, or two or three track bed area image feature libraries can be established according to the specific distribution of the track bed area. For example, a track bed area image feature library 1 is uniformly established for the track bed areas located on the outside of the two rails, and a track bed area image feature library 2 is separately established for the area located between the two rails. By establishing two track bed area image feature libraries in this way, while ensuring the integrity of the feature library data, the server's computing power can be saved and the detection efficiency can be improved.
[0090] To establish a track bed area image feature library, it is first necessary to establish an image sample set, that is: use a track detection device equipped with the track disease detection system of the present application in advance to capture a grayscale image of the target track, and select a certain number of track bed area images from them to form an image sample set. The selected track bed area images should contain as rich texture features and different light and dark change characteristics as possible.
[0091] S202, extracting features of sample images of each ballast area respectively through a convolutional neural network;
[0092] Specifically, after establishing the image sample set, each track bed area sample image in the image sample set is processed by a convolutional neural network (CNN) to extract the features of each track bed area sample image. The convolutional neural network can be set with a reasonable number of layers according to actual needs. Optionally, by setting a 5-layer convolutional neural network, each convolutional layer extracts features of different levels of the track bed area sample image, gradually transitioning from basic local features to high-order deep-level abstract features.
[0093] Activation functions can be added between each convolution layer to increase the network's expressiveness, such as using the Mish activation function to improve the model's nonlinear expressiveness and generalization capabilities. Batch normalization methods are used at appropriate locations to optimize the training process and prevent overfitting. During feature extraction, you can store the features of each layer's corresponding depth, or you can choose to store the features of the last three convolution layers' outputs corresponding depth, because the deep features of the last three layers can better represent the essential content of the image.
[0094] In the 5-layer convolutional neural network, each layer uses a 3×3 convolution kernel for feature extraction and conversion. The convolution kernel and activation function of the 5-layer convolutional neural network form a feature extraction unit. Each sample image of the roadbed area is input through the feature extraction unit to extract features at different levels. The first convolution layer outputs a feature map of 96 channels; the number of channels of the output feature map of the second convolution layer increases to 128; the third convolution layer further increases to 160 channels; the number of output channels of the fourth convolution layer increases significantly to 256; the fifth convolution layer maintains the same 256 channels as the fourth layer.
[0095] S203, obtaining a track bed area image feature library according to a plurality of track bed area sample images and features of each track bed area sample image;
[0096] Specifically, according to a plurality of track bed area sample images and the features of each track bed area sample image, a track bed area image feature library can be obtained.
[0097] Furthermore, in practical applications, in order to continuously improve the accuracy of algorithm detection, image samples of misidentified foreign objects on the roadbed are regularly collected from the manual review results and added to the image sample set. For example, images of foreign objects that should have been identified are used as positive samples, and images of normal roadbeds that are misidentified as foreign objects are used as negative samples. By re-optimizing the weight parameters of the feature extraction unit and updating the feature library, the algorithm is continuously iterated and upgraded to achieve higher detection accuracy.
[0098] Furthermore, an inverse reconstructor network structure is designed, whose purpose is to generate a reconstructed image based on the extracted deep features, that is, it can reversely map the deep features back to the original space and output the reconstructed image.
[0099] Furthermore, a part of the roadbed area images can be randomly selected to form a validation set, and then the roadbed area images in the validation set are subjected to feature extraction and reverse reconstruction processes to generate reconstructed images. Finally, the traditional neural network training strategy is adopted to continuously optimize the reconstruction loss function (i.e., calculate the grayscale difference between the reconstructed image and the roadbed area image in the validation set), and the back propagation algorithm is combined with the gradient descent method to update and optimize the weight parameters of the feature extraction unit. Finally, the weight parameters obtained through training and the last three layers of the deep feature matrix of the convolutional neural network are saved to form a complete roadbed area image feature library, which provides effective feature support for the subsequent track disease detection process.
[0100] Furthermore, the process of reconstructing the image includes: the first step is to process the image to be reconstructed through a pre-trained feature extraction unit to obtain feature representations of different channels and different depths. From these features, the deep features of the reconstructed image output in the last layer of the network are selected as the starting point of reconstruction; the second step is to calculate the similarity between the selected last layer of deep features and all the features of the corresponding channels and corresponding depths stored in the roadbed area image feature library, sort the features from high to low according to the similarity, and find several feature samples that best match the features of the image to be reconstructed; the third step is to take out the top three feature samples with the highest similarity, and add them according to the weight coefficients 0.7, 0.2 and 0.1 to fuse the feature information, use this fused feature to perform reverse operation (such as decoding operation), reconstruct to the deep features of the previous layer, and temporarily add the intermediate results obtained by the reconstruction to the feature library for use in the next round of iterations; the fourth step is to repeat the second and third steps based on the reconstructed features of the previous layer, that is, compare the similarity and fuse the features, and then reversely reconstruct to a shallower layer. This process will continue until 5 layers of reverse operation are completed, gradually restoring the information structure of the original image; in the fifth step, after a complete 5-layer reverse operation process, a result image that is as close to the original input image as possible is finally reconstructed, that is, the shallow features finally obtained are reconstructed into actual image pixel data. In other words, the existing feature library information is used to identify foreign body diseases on the roadbed.
[0101] S204, obtaining a grayscale image of the target track, and dividing the grayscale image into a plurality of unit images of the same size;
[0102] S205, determining the position of the fastener in each unit image respectively by using a pre-stored neural network algorithm;
[0103] S204-S205 are similar to S101-S102 and will not be described in detail in this embodiment.
[0104] S206, analyzing the fastener missing situation according to the position of the fastener in each unit image;
[0105] Specifically, fasteners include bolts and fasteners. Because the arrangement of bolts and fasteners in the turnout area of the track is different from that of ordinary lines, firstly, according to the position of the fasteners that are not missing in each unit image, it is judged whether each unit image is an image of the turnout area. Then, the type and position of the missing fasteners are inferred based on the geometric position relationship of the arranged pixels, that is, the position of the missing bolts and fasteners is inferred based on the known positions of the bolts and fasteners.
[0106] S207, determining a track area image and a ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper;
[0107] S207 is similar to S103 and will not be described in detail in this embodiment.
[0108] S208, performing denoising processing on each unit image respectively;
[0109] Specifically, when analyzing the damage of rails, the server can use a variety of image denoising techniques to remove noise and improve image quality for subsequent feature analysis and detection. For example, each unit image is denoised using methods such as difference method, median filtering and Fourier filtering. Among them, the difference method compares the changes in two consecutive frames of images to determine which changes are caused by the movement of real objects and which are caused by noise; median filtering is a nonlinear filtering method. For each pixel point in the unit image, the median of all pixel grayscale values in its neighborhood is taken as the new grayscale value of the point; Fourier filtering is based on the Fourier transform principle, which converts the unit image from the spatial domain to the frequency domain, selectively removes high-frequency noise components in the frequency domain, and then inverse Fourier transforms back to the spatial domain. In each unit image of the track, periodic noise or noise within a specific frequency range can be effectively suppressed.
[0110] S209, determining the wheel surface contact position image from each unit image after denoising by edge detection method;
[0111] Specifically, each wheel contact point refers to the part of the corresponding rail that contacts the wheel tread. For the processing of the wheel-rail contact surface image, that is, the determination of the wheel contact point, edge detection can be performed based on the difference in grayscale values between the contact and non-contact points between the wheel and the rail to obtain an accurate wheel contact point image. After denoising each unit image, the brightness and contrast of each unit image can be adjusted to highlight the grayscale difference between the contact area and the non-contact area. The edge detection algorithm is used to identify the contact edge. The edge detection algorithm can find the place where the grayscale changes suddenly by calculating the pixel gradient intensity, that is, the transition position from the contact area to the non-contact area. Furthermore, an appropriate threshold can be set according to the actual situation to filter out significant edge information, thereby determining the wheel contact point image in each unit image.
[0112] S210, respectively obtaining the wheel surface contact points displayed in each unit image;
[0113] Specifically, after determining the wheel surface contact image in each unit image, the server can extract the wheel surface contact displayed in each unit image to further analyze the damage of the rail.
[0114] S211, respectively calculating the grayscale average value along the track direction at each wheel surface contact point;
[0115] Specifically, the server calculates the grayscale average value of the extracted wheel contact area in the track direction and constructs a curve representing the grayscale change at the wheel contact. That is, on the extracted wheel contact area, the grayscale average value of the pixel points is calculated along the track direction to form a grayscale change curve at the wheel contact.
[0116] S212, calculating the amplitude value of each grayscale average value respectively through discrete Fourier transform and amplitude normalization processing;
[0117] Specifically, the grayscale change curve at the wheel surface contact point is subjected to discrete Fourier transform (DFT), converted into the frequency domain, and the obtained amplitude value is normalized to calculate the amplitude value of each grayscale average value respectively, and obtain the amplitude value of the grayscale average value at the wheel surface contact point in the frequency domain space.
[0118] S213, calculating the transformation results of each amplitude value greater than the preset amplitude value by inverse discrete Fourier transform, so as to obtain the damaged position of the rail displayed in each unit image;
[0119] Specifically, the technician can set a preset amplitude value in advance. If the amplitude value of the high-frequency part exceeds the preset amplitude value, it is determined that the rail is damaged. In order to accurately locate the location of the damaged rail, the amplitude value of the low-frequency part is removed, and only the amplitude value of the high-frequency part that exceeds the preset amplitude value is retained. The amplitude value of the high-frequency part is subjected to an inverse discrete Fourier transform (IDFT) to restore the position information in the spatial domain, thereby determining the location of the damaged rail displayed in each unit image.
[0120] S214, performing grayscale comparison between the ballast area image and the reconstructed image to obtain a ballast foreign body area image composed of a plurality of pixel points whose difference values are greater than a preset threshold;
[0121] S214 is similar to S104 and will not be described in detail in this embodiment.
[0122] S215, performing an opening operation on the track bed foreign body region image to obtain an updated track bed foreign body region image;
[0123] Specifically, in order to remove noise, especially small isolated noise points, in the track bed foreign object area image, while keeping the basic shape and size of the track bed foreign object image in the image unchanged, the track bed foreign object area image can be opened, that is, the track bed foreign object area image is first eroded and then expanded to obtain an updated track bed foreign object area image.
[0124] This embodiment provides a method for detecting apparent defects of a track, which obtains a grayscale image of a target track and divides the grayscale image into multiple unit images of the same size; then, the position of the fasteners in each unit image is determined respectively through a pre-stored neural network algorithm; then, based on the position of each fastener, the edge information of each rail, and the edge information of each sleeper, the track area image and the roadbed area image are determined from the grayscale image; finally, the roadbed area image is compared with the reconstructed image in grayscale to obtain a roadbed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold. The following technical effects are achieved: by setting a linear array camera to collect the grayscale image of the target track, and analyzing the collected grayscale image to obtain the apparent disease condition of the target track, the problem of how to inspect the track with high speed and high efficiency is solved under the condition of ensuring accurate data collection; by using the redundant segmentation method in the image segmentation process, the pixels in two consecutive unit images are partially overlapped, reducing the false detection and missed detection caused by the segmentation of the detected objects; by comparing the pixel grayscale difference values between the pixels at the same position in the roadbed area image and the reconstructed image, an image of the roadbed foreign body area composed of multiple pixels with a difference value greater than a preset threshold is obtained, and then the foreign body area of the roadbed is determined. There is a foreign object on the ballast bed of the target track at the corresponding position of the image of the foreign object area on the ballast bed, which solves the problem of how to determine the foreign object on the ballast bed of the target track; the type and position of the missing fasteners are inferred according to the geometric position relationship of the arranged pixels, that is, the position of the missing bolts and fasteners is inferred according to the known positions of the bolts and fasteners, which solves the problem of how to analyze the missing fasteners; the amplitude value of each grayscale average value is calculated through discrete Fourier transform and amplitude normalization processing, and the transformation result of each amplitude value greater than the preset amplitude value is calculated through inverse discrete Fourier transform, so as to obtain the damaged position of the rail displayed in each unit image, which solves the problem of how to determine the damaged position of the rail.
[0125] The embodiment of the present invention can divide the electronic device or the main control device into functional modules according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0126] Figure 5 This is a schematic diagram of the structure of a track surface defect detection device provided in an embodiment of the present application. Figure 5 As shown, the rail surface defect detection device 300 comprises:
[0127] An image acquisition module 310, a fastener determination module 320, an area determination module 330 and a track bed foreign matter analysis module 340;
[0128] An image acquisition module 310 is used to acquire a grayscale image of the target track and divide the grayscale image into a plurality of unit images of the same size, wherein the grayscale image is a two-dimensional grayscale image, and each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners;
[0129] The fastener determination module 320 is used to determine the position of the fastener in each unit image by using a pre-stored neural network algorithm;
[0130] The area determination module 330 is used to determine the track area image and the ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, wherein each rail and each sleeper are displayed in the track area image;
[0131] The track bed foreign body analysis module 340 is used to compare the grayscale of the track bed area image and the reconstructed image to obtain a track bed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold, wherein the reconstructed image refers to an image reconstructed according to the characteristics of the track bed area image, and the difference value refers to the pixel grayscale difference value between the pixel points at the same position in the track bed area image and the reconstructed image.
[0132] In a possible design, the rail surface defect detection device 300 further includes: a feature library establishment module;
[0133] The feature library establishment module is used to establish a track bed area image feature library, wherein the track bed area image feature library stores a plurality of track bed area sample images and the features of each track bed area sample image.
[0134] In a possible design, the feature library building module includes: a sample set building module, a feature extraction module and a feature library generating module;
[0135] A sample set establishment module, used to establish an image sample set, wherein the image sample set includes a plurality of sample images of the track bed area;
[0136] A feature extraction module is used to extract features of sample images of each ballast area through a convolutional neural network;
[0137] The feature library generation module is used to obtain a track bed area image feature library based on multiple track bed area sample images and the features of each track bed area sample image.
[0138] In a possible design, the rail surface defect detection device 300 further includes: a fastener missing analysis module;
[0139] The fastener missing analysis module is used to analyze the fastener missing situation according to the position of the fastener in each unit image, wherein the fastener includes bolts and fasteners.
[0140] In a possible design, the track surface defect detection device 300 further includes: a wheel surface contact acquisition module, a grayscale average value calculation module, a discrete Fourier transform module and an inverse discrete Fourier transform module;
[0141] A wheel surface contact point acquisition module is used to respectively acquire the wheel surface contact points displayed in each unit image, wherein each wheel surface contact point refers to a portion of the corresponding rail that contacts the wheel tread;
[0142] A grayscale average value calculation module is used to calculate the grayscale average value of each wheel surface contact point along the track direction;
[0143] A discrete Fourier transform module is used to calculate the amplitude value of each grayscale average value through discrete Fourier transform and amplitude normalization processing;
[0144] The inverse discrete Fourier transform module is used to calculate the transformation results of each amplitude value greater than a preset amplitude value through inverse discrete Fourier transform, so as to obtain the damaged position of the rail displayed in each unit image.
[0145] In a possible design, the track surface defect detection device 300 further includes: a denoising module and an edge detection module;
[0146] A denoising module, used to perform denoising on each unit image;
[0147] The edge detection module is used to determine the wheel surface contact image from each unit image after denoising by using the edge detection method.
[0148] In a possible design, the track surface defect detection device 300 further includes: an open operation module;
[0149] The opening operation module is used to perform an opening operation on the track bed foreign body area image to obtain an updated track bed foreign body area image.
[0150] The present embodiment provides a device for detecting apparent defects of a track, which can execute a method for detecting apparent defects of a track in the above-mentioned embodiment. The implementation principle and technical effect thereof are similar, and will not be described in detail in the present embodiment.
[0151] In the specific implementation of the aforementioned track surface defect detection device, each module can be implemented as a processor, and the processor can execute computer execution instructions stored in the memory, so that the processor executes the aforementioned track surface defect detection method.
[0152] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 400 includes: at least one processor 410 and a memory 420. The electronic device 400 also includes a communication component 430. The processor 410, the memory 420 and the communication component 430 are connected via a bus 440.
[0153] In the specific implementation process, at least one processor 410 executes the computer execution instructions stored in the memory 420, so that at least one processor 410 executes a track surface defect detection method executed by the electronic device side as above.
[0154] The specific implementation process of the processor 410 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0155] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0156] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk storage.
[0157] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0158] The above-mentioned functions implemented by the electronic device and the main control device introduce the scheme provided by the embodiment of the present invention. It can be understood that in order to implement the above-mentioned functions, the electronic device or the main control device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in the embodiment of the present invention, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present invention.
[0159] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, it is used to implement the above-mentioned method for detecting apparent defects of a track.
[0160] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0161] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.
[0162] The present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.
[0163] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions. The above program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above method embodiments are executed; and the above storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0164] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit.
[0165] So far, the technical solution of the present application has been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present application is obviously not limited to these specific embodiments, and the above embodiments are only used to illustrate the technical solution of the present application rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting apparent defects of a track, characterized in that: The method comprises: Acquire a grayscale image of the target track, and divide the grayscale image into a plurality of unit images of the same size, wherein the grayscale image is a two-dimensional grayscale image, and each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners; Determining the position of the fastener in each unit image respectively by using a pre-stored neural network algorithm; Determine a track area image and a ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, wherein each rail and each sleeper are displayed in the track area image; The grayscale of the roadbed area image and the reconstructed image is compared to obtain a roadbed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold, wherein the reconstructed image refers to an image reconstructed according to the characteristics of the roadbed area image, and the difference value refers to the pixel grayscale difference value between the pixel points at the same position in the roadbed area image and the reconstructed image.
2. The method according to claim 1, characterized in that: Before acquiring the grayscale image of the target track and dividing the grayscale image into a plurality of unit images of the same size, the method includes: A track bed area image feature library is established, wherein the track bed area image feature library stores a plurality of track bed area sample images and features of each track bed area sample image.
3. The method according to claim 2, characterized in that The step of establishing a track bed area image feature library comprises: Establishing an image sample set, wherein the image sample set includes the plurality of track bed area sample images; By using a convolutional neural network, the features of the sample images of each track bed area are extracted respectively; The track bed area image feature library is obtained according to the multiple track bed area sample images and the features of each track bed area sample image.
4. The method according to claim 1, characterized in that: After determining the position of the fastener in each unit image respectively by using the pre-stored neural network algorithm, the method includes: The fastener missing situation is analyzed according to the position of the fastener in each unit image, wherein the fastener includes bolts and fasteners.
5. The method according to claim 1, characterized in that After determining the track area image and the ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, the method comprises: Respectively obtaining wheel surface contact points displayed in each unit image, wherein each wheel surface contact point refers to a portion of the corresponding rail that contacts the wheel tread; Calculating the average grayscale value along the track direction at each wheel surface contact point; Through discrete Fourier transform and amplitude normalization processing, the amplitude value of each grayscale average is calculated respectively; By inverse discrete Fourier transform, the transformation results of each amplitude value greater than the preset amplitude value are calculated respectively to obtain the damaged position of the rail displayed in each unit image respectively.
6. The method according to claim 5, characterized in that Before respectively acquiring the wheel surface contact points displayed in each unit image, the method includes: Performing denoising processing on each of the unit images respectively; The wheel surface contact point image is determined from each unit image after denoising by edge detection method.
7. The method according to any one of claims 1 to 6, characterized in that: After the grayscale comparison between the roadbed area image and the reconstructed image is performed to obtain a roadbed foreign body area image composed of a plurality of pixel points whose difference values are greater than a preset threshold, the method comprises: An opening operation is performed on the track bed foreign matter area image to obtain an updated track bed foreign matter area image.
8. A device for detecting apparent defects of a track, characterized in that: The device comprises: An image acquisition module, used for acquiring a grayscale image of a target track and dividing the grayscale image into a plurality of unit images of the same size, wherein the grayscale image is a two-dimensional grayscale image, and each unit image shows at least two sleepers and rails fixedly connected to each sleeper by fasteners; A fastener determination module, used to determine the position of the fastener in each unit image respectively by using a pre-stored neural network algorithm; an area determination module, for determining a track area image and a ballast area image from the grayscale image according to the position of each fastener, the edge information of each rail, and the edge information of each sleeper, wherein each rail and each sleeper are displayed in the track area image; The track bed foreign body analysis module is used to compare the grayscale of the track bed area image with the reconstructed image to obtain a track bed foreign body area image composed of multiple pixel points whose difference values are greater than a preset threshold, wherein the reconstructed image refers to an image reconstructed according to the characteristics of the track bed area image, and the difference value refers to the pixel grayscale difference value between the pixel points at the same position in the track bed area image and the reconstructed image.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement a method for detecting apparent rail defects as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement a method for detecting apparent defects of a track as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Steel rail defect detection method based on image reconstruction and partitioning threshold segmentation
CN110687123A
Method for identifying fastener and steel rail diseases of track line image
CN111311567A
Steel rail scratch detection method and device, computer equipment and storage medium
CN114332113A
Dual-mode ballast bed foreign matter detection method and system based on feature reconstruction
CN116778398A
Visual disease detection method for complex scene track
CN116934667A
