An abnormal detection method and system for the drainage ditch area of a railway track

By setting up two sets of cameras on the railway tracks, the difference and mean images are generated, and combined with feature databases and identification strategies, the data storage and operation of ditch area detection in the existing technology is solved, and efficient and accurate abnormality detection is achieved.

CN120182250BActive Publication Date: 2025-07-25CRRC HANGZHOU DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510637119.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-19
Publication Date
2025-07-25
Estimated Expiration
2045-05-19

AI Technical Summary

Technical Problem

The existing railway track ditch area abnormality detection methods have problems such as large data storage, cumbersome operation and insufficient detection accuracy.

Method used

Two sets of cameras are used to synchronize the ditch images at different locations, and feature images are generated through difference and mean operations. Combined with abnormal feature library and recognition strategies, the image contrast is dynamically adjusted to identify regular and irregular defects.

Benefits of technology

It reduces the amount of data storage and processing, improves the accuracy and flexibility of detection, can quickly identify abnormal characteristics, and reduces the possibility of misjudgment and misjudgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120182250B_ABST
    Figure CN120182250B_ABST
Patent Text Reader

Abstract

The present invention innovatively provides a method and system for detecting anomalies in the drain area of railway tracks, including: two groups of cameras are arranged at the bottom of the train; according to the drain images captured by the two groups of cameras, a mean image and a difference image are respectively generated, and through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image; an abnormal feature area in the feature image is obtained, and according to the abnormal feature area, the type of abnormal feature is judged, and the type of abnormal feature includes regular defects and irregular defects; when the feature type is a regular defect, there is a pre-set abnormal feature library, the abnormal feature is compared with the abnormal feature library, and the regular feature type is output according to the comparison; when the feature type is an irregular defect, the defect type is initially judged, then the feature image is dynamically adjusted to enhance the contrast of the abnormal feature in the feature image, and through an identification strategy, the irregular feature type is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to anomaly detection, and in particular to an anomaly detection method and system for the drain area of a railway track. Background Art

[0002] In a railway track, the drain is an important component. By using the drain, the accumulated water in the track can be discharged in time, avoiding the long-term contact between water and these components, which affects the service life of the components. Moreover, when the track foundation is soaked in water for a long time, it is easy to cause the foundation to become soft and sink, affecting the stability of the track. Therefore, it is necessary to perform anomaly detection on the drain area. Track anomalies mainly include anomalies such as silt, accumulated water, and debris.

[0003] Currently, the main anomaly detection method adopted is image processing. During the image processing process, a large amount of data is collected for the track, and features of the drain, such as contours, textures, etc., are extracted through algorithms such as edge detection and morphological processing, and compared with the features in the normal state to determine whether there are anomalies. For example, the continuity of the drain edge is detected through the edge detection algorithm. If the edge is found to be discontinuous, there may be cracks or damage, and a large amount of storage and processing of the collected images are required. The storage capacity is too large and the operation is rather cumbersome. Summary of the Invention

[0004] Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide an anomaly detection method and system for the drain area of a railway track to overcome the above-mentioned defects in the prior art.

[0005] To achieve the above purpose, the present invention provides the following technical solutions:

[0006] An anomaly detection method for the drain area of a railway track, comprising

[0007] an image acquisition step. Two groups of cameras are arranged at the bottom of the train. The two groups of cameras are regularly spaced to ensure that the two groups of cameras capture drain images at different positions simultaneously and continuously shoot as the train moves.

[0008] an image processing step. According to the drain images captured by the two groups of cameras, a mean image and a difference image are respectively generated, and through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image.

[0009] a defect type judgment step. The abnormal feature area in the feature image is obtained, and according to the abnormal feature area, the occurrence frequency and distribution characteristics of the abnormal feature are judged, and the abnormal feature type is judged. The abnormal feature type includes regular defects and irregular defects.

[0010] Regular defect analysis step: when the feature type is a regular defect, there is a preset abnormal feature library. The abnormal feature is compared with the abnormal feature library, and the regular feature type is output according to the comparison.

[0011] Irregular defect analysis step: when the feature type is an irregular defect, the defect type is initially judged, then the feature image is dynamically adjusted to enhance the contrast of the abnormal feature in the feature image, and through the recognition strategy, the irregular feature type is obtained.

[0012] Preferably, in the image processing step, the first ditch image and the second ditch image collected by two groups of cameras are respectively obtained, and the difference image is obtained according to the differential operation strategy. As the train runs, the mean image is continuously obtained, and there is a preset reference image. The first mean image is obtained by performing a mean operation on the first ditch image and the second ditch image, and the second mean image is obtained by performing a mean operation on the second ditch image and the first mean image. As the train runs, when the first camera moves to the position where the second camera is located, the second mean image is used as the reference image, and a new mean image is continuously generated; in the fusion strategy, the difference image of the current ditch is fused with the mean image as the background image to generate a feature image.

[0013] Preferably, there is also an image restoration step. According to the inverse operation step in image processing, the original image is gradually restored through the feature image, and an abnormal verification sub-step is also set to obtain the regular abnormal feature and perform re-verification in the original image.

[0014] Preferably, the irregular defect analysis step includes a preliminary judgment sub-step. The preliminary judgment sub-step is used to obtain the difference image, the mean image corresponding to the feature area, and the corresponding feature parameters in the image. The feature parameters include the shape feature and the color feature of the foreign object. According to the difference image and the mean image, the swinging situation of the foreign object is analyzed, and according to the swinging situation of the foreign object, the shape of the foreign object is analyzed. The shape of the foreign object includes the blocking state and the hanging state.

[0015] Preferably, the irregular defect analysis step includes a dynamic adjustment strategy. When it is recognized that the shape of the foreign object is in the hanging state, contrast stretching is used to highlight the foreign object feature. When it is recognized that the shape of the foreign object is in the blocking state, histogram equalization is used to highlight the foreign object feature.

[0016] Preferably, the image processing step further includes a difference filtering sub-step for obtaining abnormal feature regions in the feature image, and based on the abnormal feature regions, obtaining the shape features, color features, and position features of the abnormal features. Based on the shape features, color features, and position features, a feature index is generated through a weight algorithm, and a feature threshold is preset. When the feature index is less than the feature threshold, the abnormal feature is determined to be a normal difference, and the normal difference is filtered out from the feature image, and a new feature image is generated.

[0017] Preferably, it further includes a camera dynamic adjustment step. The camera includes a first camera and a second camera. The first camera is arranged at the head of the train, and the second camera is slidably arranged at the bottom of the train. After the first camera continuously captures two groups of drainage ditches, the second camera moves to the first group of drainage ditches so that the first camera and the second camera synchronously capture two groups of drainage ditch images.

[0018] Preferably, it further includes a sensor verification step. The drainage ditch images captured by the two cameras at the same position are obtained, and the difference between the two groups of drainage ditch images is calculated. An error threshold is preset. When the difference is greater than the error threshold, a correction command is generated to adjust the parameters of the two cameras until the difference is less than the error threshold.

[0019] An abnormal detection system for the drainage ditch area of a railway track, comprising

[0020] An image acquisition module. Two cameras are arranged at the bottom of the train. The two cameras are regularly arranged at intervals to ensure that the two cameras simultaneously capture drainage ditch images at different positions and continuously shoot as the train moves.

[0021] An image processing module. Based on the drainage ditch images captured by the two cameras, a mean image and a difference image are respectively generated, and through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image.

[0022] A defect type judgment module. The abnormal feature regions in the feature image are obtained, and based on the abnormal feature regions, the occurrence frequency and distribution characteristics of the abnormal features are judged to determine the abnormal feature type. The abnormal feature type includes regular defects and irregular defects.

[0023] A regular defect analysis module. When the feature type is a regular defect, an abnormal feature library is preset, and the abnormal feature is compared with the abnormal feature library, and the regular feature type is output according to the comparison.

[0024] Irregular defect analysis module. When the feature type is an irregular defect, it initially determines the defect type, then dynamically adjusts the feature image to enhance the contrast of abnormal features in the feature image, and obtains the irregular feature type through an identification strategy.

[0025] Advantages of the present invention: By synchronously collecting images with two groups of cameras, and performing difference operation and mean operation to generate a feature image, it can reduce the data storage amount and data processing amount during the recognition process of abnormal features, and can achieve rapid recognition of abnormal features; The two groups of cameras are regularly arranged at intervals to simultaneously capture the images of the water channel, obtaining more comprehensive water channel information, avoiding the possible viewing blind spots of a single camera, and improving the detection accuracy; Through the generation and superposition of the mean image and the difference image, the abnormal features in the water channel are effectively highlighted, making it easier for inspectors or subsequent analysis algorithms to discover and identify abnormalities; By analyzing the occurrence frequency and distribution characteristics of abnormal features and combining with the comparison of the abnormal feature library, it can accurately determine the defect type, providing a basis for targeted maintenance work and improving the maintenance efficiency; The identification strategy can be based on machine learning or deep learning algorithms, such as support vector machines, convolutional neural networks, etc. Through learning a large number of labeled samples, it can achieve accurate classification of irregular defects; Dynamically adjusting the feature image according to the initial judgment result can perform adaptive processing for different types of irregular defects, improving the flexibility and adaptability of the detection system; By enhancing the image contrast and adopting an effective identification strategy, it improves the recognition accuracy of irregular defects and reduces the possibility of misjudgment and missed judgment. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is the overall flowchart of the present invention;

[0027] Figure 2 is the processing step flowchart of the present invention;

[0028] Figure 3 is the water channel image of the present invention;

[0029] Figure 4 is another water channel image of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0030] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0031] It should be noted that when a component is referred to as "fixed to" another component, it can be directly on the other component or there may be an intermediate component. When a component is considered to be "connected to" another component, it can be directly connected to the other component or there may be an intermediate component at the same time. When a component is considered to be "disposed on" another component, it can be directly disposed on the other component or there may be an intermediate component at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field to which this invention belongs. The terms used in the specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0033] The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings:

[0034] As Figures 1-4 shown, the present invention provides a method for detecting anomalies in the drainage ditch area of a railway track, including

[0035] an image acquisition step. Two sets of cameras are arranged at the bottom of the train. The two sets of cameras are regularly spaced to ensure that the two sets of cameras capture the drainage ditch images at the same time at different positions and continuously shoot as the train moves; two sets of cameras are installed at the bottom of the train. According to the surrounding environment of the track and the requirements of detection accuracy, the interval distance between the two sets of cameras is set to achieve regular interval arrangement. The two sets of cameras shoot the drainage ditch at the same time from different positions to obtain image data with spatial complementarity. During the operation of the train, the two sets of cameras keep working and continuously capture the drainage ditch images, providing a large number of data samples for subsequent analysis.

[0036] an image processing step. According to the drainage ditch images captured by the two sets of cameras, a mean image and a difference image are respectively generated, and through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image; the mean values of the drainage ditch images collected by the two sets of cameras are respectively calculated with a reference image to generate a mean image, and the images captured by the two sets of cameras at the same time are subtracted to obtain a difference image. The difference image highlights the differences between the two images, and these differences may correspond to abnormal areas in the drainage ditch, such as cracks, foreign object accumulation, etc.; by using a fusion strategy, the difference image and the mean image are superimposed. The fusion can be performed according to the gray value or color channel of the image to generate a feature image. The feature image synthesizes the information of the mean image and the difference image to generate a feature image, and the feature image reflects the abnormal features of the drainage ditch.

[0037] Defect type judgment step: Obtain the abnormal feature region in the feature image, and based on the abnormal feature region, judge the occurrence frequency and distribution characteristics of the abnormal feature, and judge the abnormal feature type. The abnormal feature type includes regular defects and irregular defects; Extract the abnormal feature region, count the occurrence frequency of the abnormal feature region in the feature image, and analyze its distribution characteristics; If the abnormal feature appears in multiple images in a similar position and form, it may belong to regular defects; If the abnormal feature appears randomly and its distribution has no obvious pattern, it may be an irregular defect;

[0038] Regular defect analysis step: When the feature type is regular defects, there is a preset abnormal feature library. Compare the abnormal feature with the abnormal feature library, and output the regular feature type according to the comparison; When it is judged as regular defects, compare the obtained abnormal feature with the preset abnormal feature library. A variety of known regular defect features are pre-stored in the abnormal feature library, and a feature matching algorithm can be used to calculate the similarity between the abnormal feature and the features in the library; According to the comparison result, output the regular feature type with the highest similarity to the abnormal feature, and clarify the specific regular defects existing in the water channel. The regular defect features include silt, water accumulation, etc., which are sustainable and observable defects; The two groups of cameras are set at regular intervals to capture the water channel images at the same time, obtaining more comprehensive water channel information, avoiding the perspective blind area that may exist in a single camera, and improving the detection accuracy; Through the generation and superposition of the mean image and the difference image, the abnormal features in the water channel are effectively highlighted, making it easier for the detection personnel or subsequent analysis algorithms to discover and identify the abnormalities; Through the analysis of the occurrence frequency and distribution characteristics of the abnormal features, combined with the comparison of the abnormal feature library, the defect type can be accurately judged, providing a basis for targeted maintenance work and improving the maintenance efficiency.

[0039] Non-regular defect analysis steps. When the feature type is a non-regular defect, initially judge the defect type, then dynamically adjust the feature image to enhance the contrast of abnormal features in the feature image, and through the recognition strategy, obtain the non-regular feature type; non-regular defect types include plastic bags, stones, sundries, etc. When it is judged as a non-regular defect, initially analyze the features such as the shape, size, and gray level of the abnormal features to roughly judge the defect type; according to the initial judgment result, dynamically adjust the feature image to enhance the contrast of abnormal features in the image. Image enhancement algorithms such as histogram equalization and contrast stretching can be used to highlight abnormal features and suppress background information; use the recognition strategy to process the enhanced feature image to accurately obtain the non-regular feature type; the recognition strategy can be based on machine learning or deep learning algorithms such as support vector machines and convolutional neural networks. Through learning a large number of labeled samples, accurate classification of non-regular defects can be achieved; dynamically adjusting the feature image according to the initial judgment result can perform adaptive processing for different types of non-regular defects, improving the flexibility and adaptability of the detection system; by enhancing the image contrast and adopting an effective recognition strategy, the recognition accuracy of non-regular defects is improved, reducing the possibility of misjudgment and missed judgment.

[0040] Image processing steps: First, obtain the first ditch image and the second ditch image collected by two groups of cameras respectively. Then, according to the differential operation strategy, obtain the difference image. As the train moves, continuously obtain the mean image, and a reference image is preset. The first ditch image and the second ditch image are subjected to mean operation to obtain the first mean image. The second ditch image and the first mean image are subjected to mean operation to obtain the second mean image. As the train runs, when the first camera moves to the position where the second camera is located, the second mean image is used as the reference image, and new mean images are continuously generated. Fusion strategy: Using the mean image as the background image, perform fusion operation on the difference image of the current ditch to generate a feature image. When the train starts to execute the ditch area detection task, the system synchronously triggers the two groups of cameras to start working, and captures the ditch images at the same moment, which are respectively recorded as the first ditch image and the second ditch image. With the help of the differential operation strategy, perform difference calculation on the corresponding pixel points of the two groups of images. During the continuous running of the train, continuously collect and calculate according to the above method to obtain a series of difference images. Perform mean operation on the collected first ditch image and the second ditch image to obtain the first mean image. Then, perform mean operation on the second ditch image and the first mean image to obtain the second mean image. As the train continues to run, when the first camera moves to the position where the second camera is located, the system sets the second mean image as the new reference image. Subsequently, based on the new reference image, combined with the newly collected ditch images, according to the above mean operation method, continuously generate new mean images. After obtaining the mean image and the difference image, use the mean image as the background image and perform fusion operation with the difference image of the current ditch to provide data support for subsequent defect type judgment.

[0041] Spatio-temporal alignment function

[0042]

[0043]

[0044] Wherein is the first ditch image, B is the bilinear difference function, is the dynamic coordinate mapping function, is the train motion speed component, D is the dynamic time planning function, is the time decay factor, is the reference time, is the time offset;

[0045] Gaussian weighted difference

[0046]

[0047] is the spatio-temporal domain difference image, is the adaptive Gaussian function, is an integration region centered at (x, y) with a radius of r. is the edge weight coefficient, and erfc is the error compensation function. is the gradient threshold, and N is the number of edge pixels.

[0048] Recursive mean generation

[0049]

[0050] is the mean image updated at the nth time. is the recursive decay factor, and T is the time window length. is the historical increment decay rate. is the current time. is the temporal gradient of the mean image.

[0051] Reference image update

[0052]

[0053] is the updated reference image, and H is the step function.

[0054] Adaptive fusion

[0055] F(x, y) is the feature image. is the mean image. is the reference image, and N is the adaptive normalization function. , is the fusion scale parameter. is the curvature function region. , is the numerical stability term.

[0056] Specific embodiment calculation

[0057] The first ditch image

[0058]

[0059] The first ditch image

[0060]

[0061] Step 1, spatio-temporal alignment

[0062] Parameter setting:

[0063]

[0064] Step 2, Gaussian weighted difference

[0065] Parameter setting:

[0066]

[0067] Step 3, recursive mean generation

[0068] Parameter setting,

[0069]

[0070] When the historical gradient is 0,

[0071] Step 4, reference update

[0072] Parameter setting,

[0073] Reference judgment:

[0074]

[0075] Step 5, adaptive fusion

[0076] Parameter setting:

[0077]

[0078] The curvature term is 0, F(2,2)=13.22

[0079] It also includes an image restoration step. According to the inverse operation steps in image processing, the original image is gradually restored through the feature image. An abnormal verification sub-step is also set to obtain regular abnormal features and verify them again in the original image.

[0080] The non-regular defect analysis steps include a preliminary judgment sub-step. The preliminary judgment sub-step is used to obtain the difference image and the mean image corresponding to the feature region, as well as the corresponding feature parameters in the image. The feature parameters include the shape feature and the color feature of the foreign object. According to the difference image and the mean image, analyze the swinging situation of the foreign object, and based on the swinging situation of the foreign object, analyze the shape of the foreign object. The shape of the foreign object includes the blocked state and the hanging state. After obtaining the feature region, the system extracts the corresponding difference image and mean image of this region. At the same time, with the help of image analysis technology, extract feature parameters such as the shape and color of the foreign object: use the contour detection algorithm, such as the Canny edge detection combined with the contour discovery algorithm. First, use the Canny algorithm to detect the edges of the image, and then obtain the contour of the foreign object through the cv2.findContours function. Based on the contour information, calculate parameters such as perimeter, area, and convex hull. Convert the image from the RGB color space to the HSV or Lab color space, which is more in line with human perception when describing colors. Calculate statistics such as the mean and variance of the color components in a specific region to accurately describe the color feature of the foreign object. According to the swinging situation of the foreign object, judge whether it is in the blocked state or the hanging state: if the position of the foreign object in the image is relatively fixed and in close contact with the ditch structure without obvious swinging signs, it is judged to be in the blocked state, such as fixed foreign objects like stones. When the foreign object shows obvious swinging, the position changes frequently, and it is not closely connected to the ditch structure, it is judged to be in the hanging state, such as foreign objects like garbage bags and fabrics.

[0081] The non-regular defect analysis steps include a dynamic adjustment strategy. When it is recognized that the shape of the foreign object is in the hanging state, contrast stretching is adopted to highlight the features of the foreign object. By setting the minimum and maximum gray values of the image, the gray range of the image is stretched to a specified interval to increase the contrast between the two. When it is recognized that the shape of the foreign object is in the blocked state, histogram equalization is adopted to highlight the features of the foreign object; calculate the gray histogram of the image, count the frequency of each gray level, and according to the cumulative distribution function, map the gray values of the original image to a new gray range to make the gray distribution of the image more uniform and enhance the contrast of the image.

[0082] The image processing steps also include a difference filtering sub-step, which is used to obtain the abnormal feature regions in the feature image, and based on the abnormal feature regions, obtain the shape features, color features, and position features of the abnormal features. According to the shape features, color features, and position features, a feature index is generated through a weight algorithm. A feature threshold is preset. When the feature index is less than the feature threshold, it is determined that the abnormal feature is a normal difference, and the normal difference is filtered out from the feature image, and a new feature image is generated; considering that there may be differences in the gray distribution of different regions of the image, the local threshold method calculates the threshold for different sub-regions of the image respectively. For example, the adaptive threshold method dynamically calculates the threshold of each pixel point according to the pixel value distribution in the neighborhood of the pixel point, so as to better adapt to the uneven illumination in the image and accurately extract the abnormal feature regions; to comprehensively describe the shape of the abnormal feature regions, multiple algorithms are used to calculate relevant parameters. By recording the direction codes of adjacent pixel points on the contour, the shape of the contour can be described, which can be used to analyze the trend and change trend of the contour. Geometric parameters such as the perimeter, area, and aspect ratio of the region are calculated. Among them, the perimeter can be obtained by calculating the sum of the distances between adjacent points using the discretized contour points; the area can be obtained by counting the number of pixel points in the region; the aspect ratio is determined by calculating the ratio of the length and width of the circumscribed rectangle of the region; the color features are extracted by means of color space conversion and statistical methods. In the RGB color space, statistics such as the mean and variance of the RGB three channels of the pixel points in the region are calculated to reflect the color distribution of the region; by calculating the distance between the region and the image boundary, as well as the relative position relationship with other reference points or regions, the position features are further clarified; the weight algorithm is used to integrate the extracted shape, color, and position features into a feature index; a large amount of labeled data is used to train the optimal weight values through machine learning algorithms such as linear regression and decision trees, so that the model can better distinguish normal differences and real abnormal features; the system presets a feature threshold and compares the generated feature index with the threshold. When the feature index is less than the feature threshold, it is determined that the abnormal feature is a normal difference. To filter out the normal difference from the feature image, a masking operation is used. By creating a masking image with the same size as the feature image, in the masking image, the pixel values of the corresponding normal difference regions are set to 0, and the other regions are set to 255. Then, the masking image and the feature image are subjected to a bitwise AND operation to obtain the new feature image after filtering out the normal difference; after the above difference filtering steps, the system can effectively remove the normal differences in the feature image and highlight the real abnormal features, providing more reliable data support for accurately judging the defect types in the railway track gutter area in the subsequent process.

[0083] It also includes a camera dynamic adjustment step. The camera includes a first camera and a second camera. The first camera is arranged at the head of the train, and the second camera is slidably arranged at the bottom of the train. After the first camera continuously captures two groups of drainage ditches, the second camera moves to the first group of drainage ditches so that the first camera and the second camera synchronously capture images of two groups of drainage ditches. The first camera at the head of the train continuously collects images of the railway track drainage ditches at a set frequency. Using an image recognition algorithm, the position and features of the drainage ditches are identified from the collected images. A target detection algorithm can be used, such as the YOLO series algorithms based on deep learning. YOLO regards the target detection task as a regression problem and can simultaneously predict the bounding box and class probability of the target in a single neural network, quickly and accurately identifying the drainage ditches in the image; when the first camera continuously captures images of two groups of drainage ditches, the position coordinates of the two groups of drainage ditches in the image are determined through image analysis. Combining parameters such as the train running speed and the shooting time interval, the position of the drainage ditches in the actual track is calculated, and precise marking is achieved by means of an odometer or GPS positioning technology. Based on the actual position information of the two groups of drainage ditches, a moving path is planned for the second camera at the bottom of the train. The A* algorithm is used. This algorithm is a heuristic search algorithm that finds the optimal path from the current position to the target position (the first group of drainage ditches) by calculating the sum of the actual cost and the estimated cost from the starting point to the ending point, ensuring that the second camera moves with the shortest path and the fastest speed. According to the planned path, the second camera realizes sliding movement through the motor drive system. When the second camera moves to the first group of drainage ditches, it is necessary to ensure that the first camera and the second camera capture images synchronously. A time synchronization algorithm is used, such as NTP (Network Time Protocol), to obtain a unified time source through the network, calibrate the shooting times of the two cameras, ensure that they capture images at the same moment, and the two groups of drainage ditch images obtained have time consistency; based on the time synchronization signal, a shooting trigger mechanism is designed. When the synchronous shooting signal is received, the first camera and the second camera are simultaneously triggered to capture images, ensuring that the two groups of drainage ditch images collected can reflect the state of the drainage ditches at the same moment, providing reliable data for subsequent image processing and analysis.

[0084] It also includes a sensor verification step, which acquires the images of the drainage ditch captured by two groups of cameras at the same position, calculates the difference between the two groups of drainage ditch images, and presets an error threshold. When the difference is greater than the error threshold, a correction command is generated to adjust the parameters of the two groups of cameras until the difference is less than the error threshold. When the two groups of cameras move to the same position, they simultaneously capture the images of the railway track drainage ditch. To ensure the accuracy of subsequent comparison, the acquired images need to be accurately paired. The image feature matching algorithm, such as the SIFT (Scale-Invariant Feature Transform) algorithm, is used. The SIFT algorithm detects the key points in the image, calculates the descriptors of the regions around the key points, and then matches the corresponding points in different images based on the similarity of the descriptors. Specifically, the SIFT algorithm first constructs the scale space of the image, detects the extreme points in the scale space as key points; then, generates a unique descriptor for each key point, and the descriptor contains the gradient information of the region around the key point; finally, by comparing the Euclidean distances of the key point descriptors in different images, the feature matching between images is realized, so as to determine whether the images captured by the two groups of cameras are of the same drainage ditch scene. For the paired two groups of drainage ditch images, the difference is calculated pixel by pixel. Usually, the absolute difference calculation method is adopted, and the system presets an error threshold, and the calculated image difference is compared with the error threshold. If the difference is greater than the error threshold, it indicates that there are significant differences between the images collected by the two groups of cameras, and the parameters of the cameras need to be corrected. At this time, a correction command is generated. After receiving the correction command, the parameters of the two groups of cameras need to be adjusted to reduce the image difference. Common adjustment parameters include focal length, exposure time, gain, etc. An iterative optimization algorithm, such as the gradient descent algorithm, can be used. Taking the focal length adjustment as an example, first define an objective function, which uses the image difference as a measure, and the goal is to minimize the image difference. Then, calculate the gradient of the objective function with respect to the focal length, and adjust the focal length value according to the gradient direction. In each iteration process, change the focal length according to a certain step size, re-capture the image and calculate the difference until the image difference is less than the error threshold. Through continuous iteration, the optimal camera parameters are gradually found to ensure that the images collected by the two groups of cameras have high consistency.

[0085] An abnormal detection system for the drainage ditch area of a railway track, comprising

[0086] an image acquisition module, where two groups of cameras are arranged at the bottom of the train, and the two groups of cameras are regularly spaced to ensure that the two groups of cameras simultaneously capture the images of the drainage ditch at different positions and continuously capture images as the train moves;

[0087] an image processing module, which respectively generates a mean image and a difference image according to the images of the drainage ditch captured by the two groups of cameras, and superimposes and displays the difference image and the mean image through a fusion strategy to generate a feature image;

[0088] The defect type judgment module obtains the abnormal feature regions in the feature image, and based on the abnormal feature regions, judges the occurrence frequency and distribution characteristics of the abnormal features, and judges the abnormal feature type. The abnormal feature type includes regular defects and irregular defects;

[0089] The regular defect analysis module, when the feature type is a regular defect, presets an abnormal feature library, compares the abnormal features with the abnormal feature library, and outputs the regular feature type according to the comparison;

[0090] The irregular defect analysis module, when the feature type is an irregular defect, preliminarily judges the defect type, then dynamically adjusts the feature image to enhance the contrast of the abnormal features in the feature image, and obtains the irregular feature type through the recognition strategy.

[0091] The above is only the preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions falling within the idea of the present invention belong to the protection scope of the present invention. It should be noted that for those of ordinary skill in the art, several improvements and refinements made without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for detecting anomalies in the drainage area of a railway track, characterized in that, Including: An image acquisition step. There are two groups of cameras installed at the bottom of the train. The two groups of cameras are regularly spaced to ensure that the two cameras capture the drain images at different positions simultaneously and continuously shoot as the train moves. An image processing step. According to the drain images captured by the two groups of cameras, a mean image and a difference image are respectively generated. And through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image. The first drain image and the second drain image collected by the two groups of cameras are respectively obtained. And according to a differential operation strategy, a difference image is obtained. As the train travels, a mean image is continuously obtained. And a reference image is preset. The first drain image and the second drain image are subjected to a mean operation to obtain a first mean image. The second drain image and the first mean image are subjected to a mean operation to obtain a second mean image. As the train runs, when the first camera moves to the position where the second camera is located, the second mean image is used as the reference image, and a new mean image is continuously generated. Fusion strategy: Using the mean image as the background image, the difference image of the current drain is subjected to a fusion operation to generate a feature image. A defect type judgment step. An abnormal feature area in the feature image is obtained, and according to the abnormal feature area, the occurrence frequency and distribution characteristics of the abnormal feature are judged, and the abnormal feature type is judged. The abnormal feature type includes regular defects and irregular defects. A regular defect analysis step. When the feature type is a regular defect, an abnormal feature library is preset, and the abnormal feature is compared with the abnormal feature library, and a regular feature type is output according to the comparison. An irregular defect analysis step. When the feature type is an irregular defect, the defect type is initially judged, then the feature image is dynamically adjusted to enhance the contrast of the abnormal feature in the feature image, and through an identification strategy, an irregular feature type is obtained.

2. The abnormal detection method for the drainage ditch area of a railway track according to claim 1, wherein, It also includes an image restoration step. According to the inverse operation step in image processing, the original image is gradually restored through the feature image. An abnormal verification sub-step is also set up to obtain regular abnormal features and conduct re-verification in the original image.

3. The abnormal detection method for the ditch area of a railway track according to claim 1, characterized in that, The irregular defect analysis step includes a preliminary judgment sub-step. The preliminary judgment sub-step is used to obtain the difference image and the mean image corresponding to the feature area and the corresponding feature parameters in the image. The feature parameters include the shape feature and color feature of the foreign object. According to the difference image and the mean image, the swinging condition of the foreign object is analyzed, and according to the swinging condition of the foreign object, the form of the foreign object is analyzed. The form of the foreign object includes a blocked state and a hanging state.

4. The abnormal detection method for the drain area of a railway track according to claim 3, characterized in that The irregular defect analysis step includes a dynamic adjustment strategy. When it is recognized that the form of the foreign object is a hanging state, contrast stretching is adopted to highlight the foreign object feature. When it is recognized that the form of the foreign object is a blocked state, histogram equalization is adopted to highlight the foreign object feature.

5. The abnormal detection method for the ditch area of a railway track according to claim 1, characterized in that, The image processing step further includes a differential filtering sub-step for obtaining abnormal feature regions in the feature image, and based on the abnormal feature regions, obtaining the shape features, color features, and position features of the abnormal features. According to the shape features, color features, and position features, a feature index is generated through a weight algorithm, and a feature threshold is preset. When the feature index is less than the feature threshold, the abnormal feature is determined to be a normal difference, and the normal difference is filtered out from the feature image, and a new feature image is generated.

6. The abnormal detection method for the drain area of a railway track according to claim 1, characterized in that It further includes a camera dynamic adjustment step. The camera includes a first camera and a second camera. The first camera is disposed at the head of the train, and the second camera is slidably disposed at the bottom of the train. After the first camera continuously captures two sets of drainage ditches, the second camera moves to the first set of drainage ditches so that the first camera and the second camera synchronously capture two sets of drainage ditch images.

7. A method for detecting anomalies in the drainage ditch area of a railway track according to claim 1, characterized in that, It further includes a sensor verification step of obtaining the drainage ditch images captured by the two cameras at the same position, calculating the difference between the two sets of drainage ditch images, and presetting an error threshold. When the difference is greater than the error threshold, a correction command is generated to adjust the parameters of the two cameras until the difference is less than the error threshold.

8. An abnormal detection system for the drain area of a railway track, characterized in that, It includes: An image acquisition module. Two cameras are disposed at the bottom of the train. The two cameras are regularly spaced to ensure that the two cameras simultaneously capture drainage ditch images at different positions and continuously capture images as the train moves. An image processing module. Based on the drainage ditch images captured by the two cameras, a mean image and a difference image are respectively generated, and through a fusion strategy, the difference image and the mean image are superimposed and displayed to generate a feature image. The first drainage ditch image and the second drainage ditch image captured by the two cameras are respectively obtained, and a difference image is obtained according to a differential operation strategy. As the train travels, a mean image is continuously obtained. A reference image is preset. The first mean image is obtained by performing a mean operation on the first drainage ditch image and the second drainage ditch image. The second mean image is obtained by performing a mean operation on the second drainage ditch image and the first mean image. As the train runs, when the first camera moves to the position where the second camera is located, the second mean image is used as the reference image, and a new mean image is continuously generated; a fusion strategy. Using the mean image as the background image, a fusion operation is performed on the difference image of the current drainage ditch to generate a feature image. A defect type judgment module. The abnormal feature regions in the feature image are obtained, and based on the abnormal feature regions, the occurrence frequency and distribution features of the abnormal features are judged, and the abnormal feature type is judged. The abnormal feature type includes regular defects and irregular defects. A regular defect analysis module. When the feature type is a regular defect, an abnormal feature library is preset, and the abnormal feature is compared with the abnormal feature library, and the regular feature type is output according to the comparison. An irregular defect analysis module. When the feature type is an irregular defect, the defect type is initially judged, then the feature image is dynamically adjusted to enhance the contrast of the abnormal feature in the feature image, and the irregular feature type is obtained through an identification strategy.

Citation Information

Patent Citations

  • Mass measuring method and device based on belt conveyor

    CN109163775A

  • Aviation transparent part defect collection and detection method based on mixed illumination

    CN119310108A