원시데이터 수집 시스템
선정목록으로

A 3D Laser Profiling System for Rail Surface Defect Detection

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Zhimin Xiong — State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China
  2. Qingquan Li — State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China|||Shenzhen Key Laboratory of Spatial Smart Sensing and Services, Shenzhen University, Shenzhen 518060, China
  3. Qingzhou Mao — State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China
  4. Qin Zou — School of Computer Science, Wuhan University, Wuhan 430079, China
DOI
10.3390/s17081791
저널
Sensors
발행년도
2017
발행기관
Multidisciplinary Digital Publishing Institute
피인용수
111
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.3390/s17081791
토픽
Surface Roughness and Optical Measurements
OpenAlex ID
W2742694207

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Rail surface defects such as the abrasion, scratch and peeling often cause damages to the train wheels and rail bearings. An efficient and accurate detection of rail defects is of vital importance for the safety of railway transportation. In the past few decades, automatic rail defect detection has been studied; however, most developed methods use optic-imaging techniques to collect the rail surface data and are still suffering from a high false recognition rate. In this paper, a novel 3D laser profiling system (3D-LPS) is proposed, which integrates a laser scanner, odometer, inertial measurement unit (IMU) and global position system (GPS) to capture the rail surface profile data. For automatic defect detection, first, the deviation between the measured profile and a standard rail model profile is computed for each laser-imaging profile, and the points with large deviations are marked as candidate defect points. Specifically, an adaptive iterative closest point (AICP) algorithm is proposed to register the point sets of the measured profile with the standard rail model profile, and the registration precision is improved to the sub-millimeter level. Second, all of the measured profiles are combined together to form the rail surface through a high-precision positioning process with the IMU, odometer and GPS data. Third, the candidate defect points are merged into candidate defect regions using the K-means clustering. At last, the candidate defect regions are classified by a decision tree classifier. Experimental results demonstrate the effectiveness of the proposed laser-profiling system in rail surface defect detection and classification.

본문 72,619자

본문 펼치기
# _sensors_ _Article_ ## A 3D Laser Profiling System for Rail Surface Defect Detection Zhimin Xiong <sup>1</sup> , Qingquan Li <sup>1,2,</sup> *, Qingzhou Mao <sup>1</sup> and Qin Zou <sup>3</sup> 1 State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China; sagittarius@whu.edu.cn (Z.X.); qzhmao@whu.edu.cn (Q.M.) 2 Shenzhen Key Laboratory of Spatial Smart Sensing and Services, Shenzhen University, Shenzhen 518060, China 3 School of Computer Science, Wuhan University, Wuhan 430079, China; qzou@whu.edu.cn * Correspondence: liqq@szu.edu.cn; Tel.: +86-138-2358-8966 Received: 4 July 2017; Accepted: 2 August 2017; Published: 4 August 2017 Abstract: Rail surface defects such as the abrasion, scratch and peeling often cause damages to the train wheels and rail bearings. An efficient and accurate detection of rail defects is of vital importance for the safety of railway transportation. In the past few decades, automatic rail defect detection has been studied; however, most developed methods use optic-imaging techniques to collect the rail surface data and are still suffering from a high false recognition rate. In this paper, a novel 3D laser profiling system (3D-LPS) is proposed, which integrates a laser scanner, odometer, inertial measurement unit (IMU) and global position system (GPS) to capture the rail surface profile data. For automatic defect detection, first, the deviation between the measured profile and a standard rail model profile is computed for each laser-imaging profile, and the points with large deviations are marked as candidate defect points. Specifically, an adaptive iterative closest point (AICP) algorithm is proposed to register the point sets of the measured profile with the standard rail model profile, and the registration precision is improved to the sub-millimeter level. Second, all of the measured profiles are combined together to form the rail surface through a high-precision positioning process with the IMU, odometer and GPS data. Third, the candidate defect points are merged into candidate defect regions using the K-means clustering. At last, the candidate defect regions are classified by a decision tree classifier. Experimental results demonstrate the effectiveness of the proposed laser-profiling system in rail surface defect detection and classification. Keywords: rail surface defect; defect detection; iterative closest point; laser imaging 1. Introduction The rail surface defect is an important factor that affects the operation safety of rails. Common rail surface defects such as abrasion, corrugation, scratch, corrosion and peeling would cause damage to the train wheels and the rail bearings, which will not only shorten the service life of train parts, but also bring a potential critical safety crisis to the trains. Therefore, the research and development of automatic methods for rail surface defect detection is very important, which on the one hand achieves an effective maintenance of the train-operation safety by timely and accurate defect location and recognition and, on the other hand, improves the passenger comfort and environmental protection, reduces noise and the energy loss caused by rail defects. Automatic detection of defects from rail surface images is a very challenging problem. In the past two decades, many research works and achievements have been made by using two-dimensional (2D) imaging for rail surface defect detection. However, there are still some problems left unsolved. From the perspective of texture analysis, filtering and wavelet transform-based approaches are widely used for defects detection by analyzing the local spatial patterns, e.g., the Gabor filter, curvelet transform _Sensors_ 2017, _17_ [, 1791; doi:10.3390/s17081791](http://dx.doi.org/10.3390/s17081791) [www.mdpi.com/journal/sensors](http://www.mdpi.com/journal/sensors) _Sensors_ 2017, _17_, 1791 2 of 19 and Gabor wavelet transform [1–4]. However, due to the heavy computation cost, these methods are incapable of real-time handling of a large number of per-pixel convolution operations on a high resolution rail image. Meanwhile, heavy random noise sometimes may be brought by complicated rail track conditions and camera thermal effects, which make it difficult to discriminate defective regions from the background noise. Another group of research works focuses on intensity histogram analysis for rail surface defect detection, for instance the geometrical analysis method that directly performs a gray-level histogram [5] and the threshold method calculating a threshold at the valley of two peaks or at the left bottom rim of a single peak histogram [6]. Generally, the intensity-based methods heavily depend on the image quality, which would be affected by the defect shape, orientation, surface material, texture, etc. In addition, there may exist many oxide scales on the rail surface, and the color of the oxide scale may be very similar to some surface texture caused by defects such as scarring, indentation, and so on, which makes it difficult to distinguish the defects by intensity analysis. It is worth noticing that real-time automatic detection methods have also been studied. In [7], a real-time visual inspection system was put forward to detect discrete rail surface defects, which was reported to run on a 216-km/h testing speed. In [8], an automatic visual inspection system was developed for detecting partial abrasion by using a probabilistic topic model. However, these systems were tailored to detect some particular rail defects and are limited in the general rail surface detect detection, which requires locating defects of a wide variety and correctly identifying their types. In this paper, we design and manufacture a three-dimensional laser profiling system (3D-LPS) to achieve high-speed information acquisition on the rail surface under a complex environment. The 3D-LPS integrates the laser scanner, odometer, IMU, GPS, etc. Two laser scanners are used to capture the depth information of the rail surface. Combined with the position of GPS, the attitude of IMU and the mileage of the odometer, the depth data can be used to generate the 3D point cloud of the rail surface. Then, a 3D rail defect detection method is proposed, which first extracts the point cloud of the rail surface and then calculates the deviation between the defective point cloud and the discrete standard rail model. Specifically, an adaptive iterative closet point algorithm is presented to achieve accurate registration of the defective point cloud and the standard model, with a registration accuracy of sub-millimeters. After this, the k-means algorithm is used to cluster the defects and extract the characteristics of each defect area. At last, a decision tree classifier is employed to identify the type of rail surface defect. In practice, five types of common rail surface defects are studied, which are abrasion, corrugation, scratch, corrosion and peeling, and experiments show that the proposed rail surface defect detection method can locate the defects with millimeter precision and classify the defects with a high accuracy rate. The remainder of this paper is organized as follows. Section 2 overviews the related work on rail surface defect detection. Section 3 introduces the design of the proposed 3D-LPS. Section 4 introduces our rail surface defect detection method. Section 5 reports the experimental results from about a 400-m railway for about 400,000 profiles, and Section 6 concludes the paper. 2. Related Work _2.1._ _Rail Surface Defect Detection_ Rail detection technology mainly uses magnetic induction, ultrasonic technology, laser measurement technology and image processing technology. Many research works have been done and many achievements made on this aspect. Toliyat Hamid A. The work in [2] adopts the magnetic coil and Hall sensors to acquire signals and decomposes the signals by applying wavelet coefficients, and the,n a method of detecting rail defects based on the wavelet transform is proposed, which is combined with the autoregressive spectrum, energy monitoring and differentiation dimension. Papaelias M. [9] proposes the alternating current field measurement (ACFM) method by introducing a remote uniform current into an area under test and monitoring the magnetic field variations associated with the current flowing. Clark [10] concludes about the early technologies _Sensors_ 2017, _17_, 1791 3 of 19 based on ultrasonic testing. Bartoli I. [11] and Coccia S. [12] of the University of California-San Diego (UCSD) studied the use of ultrasonic waves for long-range rail defect detection and established a guided wave propagation model. The Federal Railway Authority (FRA) and Lanza di Scalea F. [13] of UCSD combine ultrasonic detectors and laser sensors to detect transverse defects under horizontal shelling. Alippi C. [14] and Babenko P. [15] use the laser ranging scanner to obtain the depth of the rail, combined with the matching camera to obtain the optical image, so as to detect rail defects. Deutsch E. [16] takes line-scan cameras and a special image acquisition method of the spectral image differencing procedure to obtain defects on the rail surface and then detects the defects by means of image processing. In the past few decades, the most common non-destructive testing technique used to detect defects in rails is ultrasonic testing. Rose, Zumpano et al. [17,18] study the guided wave propagation technologies and adopt algorithms like continuous wavelet transform, the ray-tracing algorithm, etc., to extract defects. These technologies perform relatively well in detecting deep surface-breaking and internal defects, but the rail surface defects are usually not detected by this high-speed ultrasonic technique. In recent years, image recognition technology has been widely used to detect defects based on local spatial patterns of intensity; for instance, the Gabor filter [1] and wavelet transform [2]. Mandriota [3] and Marino [4] compare three filtering approaches (Gabor filter, wavelet transform and Gabor wavelet transform) based on texture analysis of the rail surface to extract texture features for rail corrugation detection. However, these spectral methods are not fit for real-time processing because they involve a large amount of convolution operations per pixel of high resolution rail images. Furthermore, there exists heavy random noise mainly caused by complicated rail track conditions and camera thermal effects, which make it difficult to distinguish noise from the defective region. Xie [19] reviews recent advances in surface inspection using computer vision and image processing techniques, particularly those based on texture analysis methods, and divides the techniques into four categories: statistical approaches, structural approaches, filter-based methods and model-based approaches. Lin [5] adopts geometrical analysis directly on a gray-level histogram curve of the smoothed rail head surface image to locate defects. Li [7] puts forward a real-time visual inspection system (VIS) to detect discrete rail surface defects. VIS acquires rail image and cuts the rail track subimage by the track extraction algorithm, subsequently enhancing the contrast using the local normalization method and, at last, detecting defects using the defect localization based on the projection profile. VIS is very fast and can run on a 216-km/h test train in real time. Feng [8] proposes an automatic visual inspection system for detecting partial abrasion using the probabilistic topic model. Yuan [6] proposes an improved Otsu method named the weight object variance (WOV); the weight ensures that the threshold always is a value that is located at the valley of two peaks or at the left bottom rim of a single peak histogram. However, these image-based technologies heavily depend on image quality, which is directly affected by defect shape, orientation, surface material, texture, etc., and also has some needs for a special light source, which is difficult to integrate and is expensive. Furthermore, there are many oxide scales on the rail surface, and the color of the oxide scale is very similar to some surface defects, such as scarring, indentation, and so on; therefore, it is difficult to distinguish by the use of a two-dimensional image. More importantly, these technologies can only recognize particular rail defects and cannot classify several defects correctly. With the rapid development of laser sensors, the acquisition of fast and high-precision point cloud data becomes possible and applicable on surface information, which solves the difficulty of information acquisition on the rail surface under a complex environment. In the past few years, the 3D vision system, especially the line-structured optical scanning system, has been applied to many aspects of surface defect detection [20–24], but there have been few mature automatic defect extraction algorithms proposed. _Sensors_ 2017, _17_, 1791 4 of 19 _2.2._ _Defect Point Registration_ 3D point cloud data registration is the most critical part of surface defect detection. In order to compare with the standard data, it is necessary to register the collected point cloud data with the discrete standard CAD model to facilitate the corresponding coordinate difference. The registration algorithm is widely used in machine vision and image processing. The main processes include: feature extraction, feature representation, matching calculation and evaluation. According to the different features, the 3D point cloud registration algorithm can be divided into internal features matching and external features matching. The internal features are independent of the coordinate system, such as the curvature and the distance between two points, and the external features are related to the coordinate system, for instance the tangent plane of the surface [25]. The internal features matching is a reduced dimension and indirect matching method; it includes the surface signature method [26,27], the spin-image method [28], the geometric histogram method [29], the harmonic shape image method [30], the splashes method [31], etc. Because of the reduced dimension processing, the calculation speed is faster, but the precision is not high. The most commonly-used algorithm in external features matching is the label method [32,33] and the optimal matching algorithm. The label method requires pasting at least three markers or positioning balls on the measured object as a physical feature point. Through the coordinates of the three points, the position between the coordinate system can be calculated. In order to improve the accuracy of the calculation, more labels or positioning balls need to be placed on the measured object, which is obviously not applicable for full inspection or on-line measurement. The most commonly-used optimal algorithm is the ICP algorithm, and many scholars have studied it. The ICP method was presented by Besl and McKay [34]. The goal of this method is to obtain an accurate solution by minimizing the distance between point-correspondences, known as the closest point. According to the strategy of determining the corresponding point pair, a variety of optimization algorithms has evolved [35–38], and the main bottlenecks of these algorithms are the search and optimization calculation of the corresponding point pair and being more sensitive to the initialization location of the point cloud and CAD model; especially for objects that do not have obvious geometric features, the convergence effect is not ideal. In order to achieve higher registration accuracy, the iteration times are more, which is more time consuming. In this paper, the line structure optical scanning method is adopted to obtain the rail surface point cloud, which is of high precision, fast and convenient. On the basis of the conventional ICP algorithm, the Kalman filter model [39–41] is used to predict the transformation of the current profile through the recursion of the adjacent continuous profiles, which greatly reduces the iteration times. At last, the optimal registration parameters are selected by synthetically evaluating segmented ICP and overall ICP. 3. Design of the 3D-LPS _3.1._ _System Principle_ The key technologies of 3D surface defect detection include the 3D data acquisition and 3D point cloud processing aspects. Research works in 3D surface defect detection are mainly concentrated on the 3D visual sensors and data registration between the 3D point cloud and CAD model. In the rail surface defect detection, the first step is to obtain surface point cloud data. As the line structure optical scanner has been applied to many aspects of surface defect detection, this system adopts the Keyence LJ-V7000 type profilometer for rail surface profile acquisition. The measurement principle is shown in Figure 1. _Sensors_ 2017, _17_, 1791 5 of 19 ### Line Laser Camera Profile B Camera Image Image A Image B Profile A Figure 1. System principle. In Figure 1, the line laser irradiates vertically and forms a light band on the surface of the object to be measured. The camera is tilted at an angle with respect to the line laser and takes a photo of the object surface. Then, the light band on the surface will reflect the object surface profile in the laser projection surface. In the situation that the relative position relationship between the camera and the line laser is determined and unchanged, for the same object profile, it can be seen that the image’s position of the light band on the camera (Image A to Image B) will change with the object’s depth (Profile A to Profile B) outside. Therefore, by detecting the position and shape of the light band’s image on the camera, the physical coordinates of the light band are calculated, that is to say the physical coordinates of the surface profile are calculated. With the object not moving, the carrier platform moves along and divides the measured object surface into many profiles, so as to achieve the goal of measuring the physical coordinates of all of the surface points. _3.2._ _System Architecture_ According to the discussion above, once the rail surface profile is obtained, the deviation between the defective surface and the standard model can be calculated. To achieve the goal of detecting the whole surface defects, continuous measurement should be taken. Thus, several different kinds of sensors are integrated into one whole system, e.g., laser scanner, odometer, IMU, GPS, etc. The architecture of 3D-LPS is shown in Figure 2. It can be seen that the system is highlighted at five levels. The multi-sensors level lists all of the sensors involved in the 3D-LPS. The system-integration level is responsible for the synchronization of the whole system under a unified spatio-temporal benchmark. On this level, each sensor is fixed on the carrier platform, and calibration of each sensor should be done. The data-collection level connects the hardware and the software to capture various data in a computer. Once the data have been collected, the data processing level fuses the raw data to extract the 3D point cloud of a rail surface. Through data registration with the standard model, the defect-detection level analyses the deviation between the defective rail surface and the standard rail model and hence locates and recognizes the defects. _Sensors_ 2017, _17_, 1791 6 of 19 <u>Defect points</u> <u>Defect points</u> <u>Defect</u> <u>Defect</u> location clustering Recognition Classification <u>Defect</u> Recognition Defect <u>Defect points</u> Detection location <u>Defect points</u> clustering ~~Rail surface points~~ ~~Rail surface points~~ Data Pre-processing generation and Model correction Processing <u>registration</u> generation and <u>registration</u> <u>Data collection</u> <u>Data collection</u> Data collection PC hardware software Data <u>Data collection</u> Collection hardware <u>Data collection</u> Data collection PC software ~~Spatio-temporal~~ benchmark and multi<u>sensor synchronization</u> ~~Spatio-temporal~~ System <u>Carrie construct and</u> <u>Sensor and System</u> benchmark and multi Integration Equipment commission calibration <u>sensor synchronization</u> <u>Sensor and System</u> Multi- <u>Laser</u> Accelerometer GPS Odometer Gyroscope Sensors Scanner Figure 2. System architecture. In 3D-LPS, the arrangement of each part is shown in Figure 3: the laser scanners (6,7) are installed on the side of the platform (1) to obtain the rail surface profile; the odometer (2) is equipped on the wheel and collects the distance and speed data of the platform; the GPS (4) is fixed above the platform and records the platform’s location data; the IMU (3) is mounted on the middle of the platform gaining the platform’s attitude data; the synchronization control unit (5) provides unified spatio-temporal benchmark; all of the sensor data and synchronous data are transferred to the computer (8) for fusion processing; the power-supply module (9) is placed on the platform to supply power for all equipment and sensors. Figure 3. System components’ arrangement. _3.3._ _Pre-Processing_ The rail surface profile data collected by the laser scanners cannot be directly used for the extraction of rail surface defect and needs to be pre-processed. Firstly, a motion correction model is designed to correct the error caused by slight rotation of the platform. Then, each sensor’s coordinate should be unified to the same coordinate system, where the IMU coordinate system is taken as the reference coordinate system. _Sensors_ 2017, _17_, 1791 7 of 19 Motion correction model: As shown in Figure 4, the platform body is supported by three wheels on the rail surface. During the movement of the platform, the three support points would not leave the rail top; therefore, it is reasonable to assume that only horizontal rotation of the IMU exists between adjacent profiles. AT this point, if the platform has slight rotation, it may cause the profile captured by the laser scanner not to be perpendicular to the rail, which cannot match the standard rail model. Z Plane A2 Plane A3 z <u>θ</u> <u>O</u> <sup>~~o~~</sup> X Plane A1 Figure 4. Motion correction model. Suppose the rail surface profile gained at time _t_ 1 is _A_ 1 as shown in Figure 4; at time _t_ 2, the platform moves forward and obtains profile _A_ 2; the rotation angle between the adjacent profile _A_ 1 and _A_ 2 is _θ_ ; if the correct profile at time _t_ 2 is supposed to be _A_ 3, then _A_ 3 will be parallel to _A_ 1, so _A_ 3 is the projection of _A_ 2 on _A_ 1. Thus, suppose the original point coordinate of the left and right rail surface profile is _PL_ 0, _PR_ 0; the corrected point coordinate of left and right rail surface profile will be Equations (1) and (2).  _PL_ = _PL_ 0    (1)   (2) _PR_ = _PR_ 0 cos _θ_ _−_ sin _θ_ 0 sin _θ_ cos _θ_ 0 0 0 1 cos _θ_ _−_ sin _θ_ 0 sin _θ_ cos _θ_ 0 0 0 1 Unified coordinate transformation: Choose the IMU coordinate system as the reference coordinate system; suppose the coordinate of the left laser scanner coordinate center in the referenced coordinate system is ( _RL_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> <sup>); the same, the right laser scanner coordinate center is (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> <sup>); then, the coordinate</sup> _L_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>); the same, the right laser scanner coordinate center is (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> system is ( _RL_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> <sup>); the same, the right laser scanner coordinate center is (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> <sup>); then, the coordinate</sup> of the left and right rail surface profile in the referenced coordinate system can be expressed as Equations (3) and (4). _PL_ <sup>_I_</sup> _PR_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>=</sup> <sup>_R_</sup> _L_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>=</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>_PL_</sup> <sup>+</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>_PR_</sup> <sup>+</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> _L_ <sup>_I_</sup> (3) _R_ <sup>_I_</sup> (4) In practical work, as the IMU moves along the rail direction, the trajectory of the IMU coordinate origin can be calculated by the GPS’s location, the IMU’s attitude and the odometer’s mileage. Therefore, the pre-processed point cloud reflects the relative position of the actual rail surface points. _Sensors_ 2017, _17_, 1791 8 of 19 _3.4._ _Calibration of 3D-LPS_ The 3D-LPS needs to be calibrated before actual measurement. The main work of calibration is to find out the transformation parameters of the left and right laser scanner coordinate center in the referenced coordinate system, ( _RL_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> <sup>) and (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> <sup>).</sup> <sup>As shown in Figure 5, the left laser scanner has a</sup> _L_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>) and (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> referenced coordinate system, ( _RL_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> <sup>) and (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> <sup>).</sup> <sup>As shown in Figure 5, the left laser scanner has a</sup> right deflection angle of _αl_, scanning the inner side of the left rail. The right laser scanner has a left deflection angle of _αr_, scanning the inner side of the right rail. αl αr Laser Scanner Figure 5. System calibration. The specific calibration steps are: (i) Choose the center of the left rail top as the coordinate origin; use the gauging rule measuring the gauge _G_ between the left and right rail; measure the distance from the center of the right rail top to the center of the left rail top; record as _D_ ; (ii) According to _D_ and the standard rail model, let the center of the left standard rail model top be the coordinate origin, then the center of the right standard rail model top will be located on ( _D_, 0); (iii) Let the structured light vertically project onto the rail top and capture the rail surface profile; (iv) Adjust the left rail surface profile manually until it completely matches with the left standard rail model; calculate the transformation parameters as ( _RL_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _L_ <sup>_I_</sup> _L_ <sup>_I_</sup> <sup>); the same for (</sup> <sup>_R_</sup> _R_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>,</sup> <sup>_T_</sup> _R_ <sup>_I_</sup> _R_ <sup>_I_</sup> <sup>).</sup> 4. Rail Surface Defect Detection Method After pre-processing, the rail surface point cloud is unified into the same coordinate system, and it should be matched with the standard rail model to calculate the rail defects. This section introduces the ICP algorithm and points out the problem of ICP, then proposes an AICP algorithm based on the Kalman filter model, which improves the registration accuracy to the sub-millimeter level, so as to locate the defect area accurately. On this basis, the k-means algorithm [42–44] is used to cluster the defects and extract the characteristics of each defect area; at last, the decision tree classifier is taken to identify the type of rail surface defect. _4.1._ _Rail Profile Registration_ ICP: For the 3D point set registration problem, the most widely-used and the most influential one is the ICP algorithm proposed by Besl and Mckay in 1992. The ICP algorithm is a 3D object alignment algorithm based on a pure geometric model; its essence is the optimal matching algorithm based on the least squares method. It repeats the process of first determining the set of corresponding relationships and then calculating the optimal rigid transformation until a convergence criterion of correct matching is met, so that the optimal match of the two matching data satisfies the certain degree of metric, so as to find the the translation transformation _T_ and rotation transformation _R_ between the target point set _P_ and the reference point set _Q_ . Suppose the target point set is _{Pi_, _i_ = 1, 2... _}_, and the reference point set is _{Qi_, _i_ = 1, 2... _}_ ; in the _k_ -th iteration, find the point set _{Qi_ <sup>_k_</sup> <sup>,</sup> <sup>_i_</sup> <sup>=</sup> <sup>1, 2...</sup> <sup>_}_</sup> <sup>from</sup> <sup>_Q_</sup> <sup>that</sup> <sup>corresponds</sup> <sup>with</sup> <sup>target</sup> <sup>point</sup> <sup>set</sup> <sup>_P_</sup> <sup>,</sup> <sup>then</sup> <sup>calculate</sup> <sup>the</sup> _Sensors_ 2017, _17_, 1791 9 of 19 transformation matrix between _P_ and _{Qi_ <sup>_k_</sup> transformation matrix between _P_ and _{Qi_ <sup>_k_</sup> <sup>,</sup> <sup>_i_</sup> <sup>=</sup> <sup>1, 2...</sup> <sup>_}_</sup> <sup>,</sup> <sup>and</sup> <sup>update</sup> <sup>the</sup> <sup>original</sup> <sup>point</sup> <sup>set</sup> <sup>until</sup> <sup>the</sup> average distance between the dataset is less than the given _τ_ ; that is to say, satisfy the following formula _i_ <sup>_n_</sup> =1 <sup>_∥Qi −_</sup> <sup>(</sup> <sup>_RPi_</sup> <sup>+</sup> <sup>_T_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup> <sup>=</sup> <sup>_min_</sup> <sup>.</sup> <sup>The specific steps are:</sup> _f_ ( _R_, _T_ ) = ∑ _i_ <sup>_n_</sup> (i) Take point set _Pi_ <sup>_k_</sup> (i) Take point set _Pi_ <sup>_k_</sup> <sup>from target point set</sup> <sup>_P_</sup> <sup>;</sup> (ii) Calculate the point set _Qi_ <sup>_k_</sup> Calculate the point set _Qi_ <sup>_k_</sup> <sup>from reference point set</sup> <sup>_Q_</sup> <sup>as the corresponding point set of</sup> <sup>_P_</sup> _i_ <sup>_k_</sup> <sup>, and</sup> make _∥Qi_ <sup>_k_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_k∥_</sup> <sup>=</sup> <sup>_min_</sup> <sup>;</sup> _i_ <sup>_k_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>from reference point set</sup> <sup>_Q_</sup> <sup>as the corresponding point set of</sup> <sup>_P_</sup> _i_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>to</sup> <sup>_Q_</sup> _i_ <sup>_k_</sup> make _∥Qi_ <sup>_k_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_k∥_</sup> <sup>=</sup> <sup>_min_</sup> <sup>;</sup> (iii) Calculate the transformation from _Pi_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>, and make</sup> <sup>_∥Q_</sup> _i_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_k_</sup> (iii) Calculate the transformation from _Pi_ <sup>_k_</sup> <sup>to</sup> <sup>_Q_</sup> _i_ <sup>_k_</sup> <sup>, and make</sup> <sup>_∥Q_</sup> _i_ <sup>_k_</sup> <sup>_−_</sup> <sup>_P_</sup> _i_ <sup>_k∥_</sup> <sup>=</sup> <sup>_min_</sup> <sup>, then record the rotation</sup> vector as _R_ <sup>_k_</sup> and translation vector as _T_ <sup>_k_</sup> ; (iv) Update the point set, and compute _Pi_ <sup>_k_</sup> <sup>+1</sup> = _R_ <sup>_k_</sup> _Pi_ <sup>_k_</sup> <sup>+</sup> <sup>_Tk_</sup> <sup>;</sup> (v) Calculate the average distance between _Pi_ <sup>_k_</sup> <sup>and</sup> <sup>_Q_</sup> _i_ <sup>_k_</sup> <sup>, and record as</sup> <sup>_dk_</sup> <sup>+1</sup> <sup>=</sup> _n_ <sup><u>1</u></sup> <sup>∑</sup> _i_ <sup>_n_</sup> =1 <sup>_∥P_</sup> _i_ <sup>_k_</sup> <sup>+1</sup> _−_ _Qi_ <sup>_k∥_</sup> <sup>2;</sup> (vi) If _d_ <sup>_k_</sup> <sup>+1</sup> _≥_ _τ_, then return to Step 2 until _d_ <sup>_k_</sup> <sup>+1</sup> _<_ _τ_ or the iteration times are greater than the preset maximum iteration times. The ICP algorithm has a good effect on point set registration; however, in this application, there is sometimes a big difference between the defective rail surface point cloud and the standard rail model. For example, if the abrasion wear is serious, or the scratches are deep, then the defective rail surface point cloud would be very different from the standard rail model, resulting in poor registration and even matching errors. That is why it is necessary to improve the ICP algorithm to match the rail surface point cloud registration. AICP: Generally, the rail top and rail side are easily abraded and scratched, which usually causes the defective rail surface, different from the standard model. The bottom of the rail only has corrosion because of no contact with the wheel, but the corrosion will not make the rail bottom’s shape very different from the standard model, so this is an important reference of the data registration afterwards. At the same time, when the system is moving along the rail, it obtains the rail surface profile every 1 mm. In such a small interval, there is not enough time for the system’s attitude to change suddenly when obtaining adjacent profiles. Thus, the transformation between the current rail surface profile and the standard model is closely related to the transformation between the adjacent profile and the standard model. On this basis, this paper proposes an AICP algorithm, using the Kalman filter model to predict the transformation of the current profile through the recursion of the adjacent continuous profiles and then calculating the average distance between each part of point cloud and the standard point cloud under this transformation parameter and, at last, choosing the corresponding optimal transformation parameter by evaluating these average distances. The specific steps are: (i) Suppose the _N_ -th profile point set is _P_ <sup>_N_</sup>, and take the transformation (translation _T_ <sup>_N−_</sup> <sup>1</sup> and rotation _R_ <sup>_N−_</sup> <sup>1</sup> ) between the ( _N −_ 1)-th profile point set _P_ <sup>_N−_</sup> <sup>1</sup> and the standard model _QM_ as the predicted transformation from _P_ <sup>_N_</sup> to _QM_ ; (ii) Divide the rail surface profile into two parts: the rail head part and rail bottom part. Pay (iv) Update the point set, and compute _Pi_ <sup>_k_</sup> <sup>+1</sup> = _R_ <sup>_k_</sup> _Pi_ <sup>_k_</sup> <sup>+</sup> <sup>_Tk_</sup> <sup>;</sup> (v) Calculate the average distance between _Pi_ <sup>_k_</sup> <sup>and</sup> <sup>_Q_</sup> _i_ <sup>_k_</sup> _n_ <sup><u>1</u></sup> <sup>∑</sup> _i_ <sup>_n_</sup> _i_ <sup>_n_</sup> =1 <sup>_∥P_</sup> _i_ <sup>_k_</sup> <sup>+1</sup> _i_ <sup>_k_</sup> <sup>+1</sup> = _R_ <sup>_k_</sup> _Pi_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>, and record as</sup> <sup>_dk_</sup> <sup>+1</sup> <sup>=</sup> _n_ <sup><u>1</u></sup> _i_ <sup>_k_</sup> <sup>+1</sup> _−_ _Qi_ <sup>_k_</sup> _i_ <sup>_k_</sup> <sup>and</sup> <sup>_Q_</sup> _i_ <sup>_k_</sup> attention that the rail head is different from the rail head clarified by Lin; the rail head here is just part of the whole rail head and is the upper part of the profile points, which is used to distinguish from the bottom part of the profile points, the rail head point set _PH_ <sup>_N_</sup> <sup>and the rail bottom point set</sup> _PB_ <sup>_N_</sup> <sup>, with the (</sup> <sup>_RN−_</sup> <sup>1,</sup> <sup>_TN−_</sup> <sup>1) as the initial value.</sup> <sup>Calculate the transformation from</sup> <sup>_P_</sup> _H_ <sup>_N_</sup> <sup>,</sup> <sup>_P_</sup> _B_ <sup>_N_</sup> <sup>to</sup> <sup>_QM_</sup> separately, and record as ( _R_ <sup>_N_</sup> _H_ <sup>,</sup> <sup>_T_</sup> _H_ <sup>_N_</sup> <sup>),(</sup> <sup>_R_</sup> _B_ <sup>_N_</sup> <sup>,</sup> <sup>_T_</sup> _B_ <sup>_N_</sup> <sup>), then output each part’s average distance</sup> <sup>_dN_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> <sup>;</sup> _B_ <sup>_N_</sup> <sup>, with the (</sup> <sup>_RN−_</sup> <sup>1,</sup> <sup>_TN−_</sup> <sup>1) as the initial value.</sup> <sup>Calculate the transformation from</sup> <sup>_P_</sup> _H_ <sup>_N_</sup> <sup>,</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> _H_ <sup>_N_</sup> <sup>),(</sup> <sup>_R_</sup> _B_ <sup>_N_</sup> _H_ <sup>_N_</sup> <sup>,</sup> <sup>_P_</sup> _B_ <sup>_N_</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_T_</sup> _H_ <sup>_N_</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> _B_ <sup>_N_</sup> <sup>,</sup> <sup>_T_</sup> _B_ <sup>_N_</sup> separately, and record as ( _R_ <sup>_N_</sup> _H_ <sup>,</sup> <sup>_T_</sup> _H_ <sup>_N_</sup> <sup>),(</sup> <sup>_R_</sup> _B_ <sup>_N_</sup> <sup>,</sup> <sup>_T_</sup> _B_ <sup>_N_</sup> <sup>), then output each part’s average distance</sup> <sup>_dN_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> <sup>;</sup> (iii) Calculate the minimum value of _d_ <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> <sup>,</sup> <sup>and</sup> <sup>take</sup> <sup>the</sup> <sup>transformation</sup> <sup>corresponding</sup> <sup>with</sup> _B_ <sup>_N_</sup> <sup>), then output each part’s average distance</sup> <sup>_dN_</sup> _H_ (iii) Calculate the minimum value of _d_ <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> <sup>,</sup> <sup>and</sup> <sup>take</sup> <sup>the</sup> <sup>transformation</sup> <sup>corresponding</sup> <sup>with</sup> <sup>the</sup> minimum value as the calculated transformation from _P_ <sup>_N_</sup> to _QM_ ; (iv) Calculate the average distance _d_ <sup>_N_</sup> from _P_ <sup>_N_</sup> to _QM_ under the transformation parameter ( _R_ <sup>_N−_</sup> <sup>1</sup>, _T_ <sup>_N−_</sup> <sup>1</sup> ); (v) Evaluate the _min_ ( _d_ <sup>_N_</sup> _H_ _B_ <sup>_N_</sup> <sup>)</sup> <sup>and</sup> <sup>_dN_</sup> <sup>;</sup> <sup>the</sup> <sup>greater</sup> <sup>the</sup> <sup>distance,</sup> <sup>the</sup> <sup>smaller</sup> <sup>the</sup> <sup>weight</sup> <sup>and</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> the smaller the probability. Update the probability _p_ <sup>_N−_</sup> <sup>1</sup> = _~~√~~_ _<u>d</u>_ <sup>_N_</sup> _B_ ( _min_ ( _d_ <sup>_N_</sup> _H_ _B_ <sup>_N_</sup> <sup>))2+(</sup> <sup>_dN_</sup> <sup>)2</sup> <sup>and</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> _p_ _′_ _N_ = _~~√~~_ _<u>min</u>_ <u>(</u> _<u>d</u>_ <sup>_N_</sup> _<u>H</u>_ _B_ _~~√~~_ _<u>min</u>_ <u>(</u> _<u>d</u>_ <sup>_N_</sup> _<u>H</u>_ <sup><u>,</u></sup> <sup>_<u>d</u>_</sup> _<u>B</u>_ <sup>_N_</sup> <sup><u>)</u></sup> ( _min_ ( _d_ <sup>_N_</sup> _H_ <sup>,</sup> <sup>_N_</sup> _H_ <sup>,</sup> <sup>_d_</sup> _B_ <sup>_N_</sup> <sup>_N_</sup> _<u>H</u>_ <sup><u>,</u></sup> <sup>_<u>d</u>_</sup> _<u>B</u>_ <sup>_N_</sup> _<u>B</u>_ <sup><u>)</u></sup> _B_ <sup>_N_</sup> <sup>))2+(</sup> <sup>_dN_</sup> <sup>)2</sup> <sup>;</sup> (vi) According to the Kalman filter model, update the transformation between _P_ <sup>_N_</sup> and _QM_ as _′_ _N_ ). ( _R_ <sup>_N_</sup>, _T_ <sup>_N_</sup> ) = _p_ <sup>_N−_</sup> <sup>1</sup> ( _R_ <sup>_N−_</sup> <sup>1</sup>, _T_ <sup>_N−_</sup> <sup>1</sup> ) + _p_ _′_ _N_ ( _R′_ _′_ _N_, _T_ _Sensors_ 2017, _17_, 1791 10 of 19 _4.2._ _Rail Defect Detection_ As shown in Figure 6, after being processed by AICP, the point set registration accuracy is down to the sub-millimeter level. It is easy to locate the candidate defective area accurately by comparing the deviation of registered rail surface profile and the standard model with the given threshold. By combining the continuous defective profiles together, the candidate defect points are merged into candidate defect regions. The minimum circumscribed rectangle and center of each defect region are calculated for the using the k-means clustering, which connects the small defect region with large defect area and clusters the defect regions with similar characteristic together. At last, the location, shape, depth, length, width, gradient, minimum circumscribed rectangle and other geography characteristics can be calculated. The specific steps are: (i) Suppose the current profile is _P_ = _{Pi|i_ = 1, 2... _n}_ after registration. Let _n_ stand for the point number in current profile, and let the standard model be _QM_ = _{Qj|i_ = 1, 2... _m}_ . For every point _Pi_, take its x coordinate as the reference, and choose the point in _QM_ that has the closest x coordinate value with _Pi_ as _Pi_ ’s corresponding point, then pick out _P_ ’s corresponding point set _Q_ = _{Qi|i_ = 1, 2... _n}_ in _QM_ ; (ii) Make the deviation of _Q_ and _P_, and calculate the deviation set _D_ = _{Di_ = _Qi −_ _Pi|i_ = 1, 2... _n}_ ; (iii) Let _τD_ be the depth threshold of the rail surface defect, and pick out the point in _P_ that has a deviation value in _D_ greater than _τD_ as the defect point, then gather these defect points as the current profile’s defect point set _C_ = _{Dk|Dk_ _>_ _τD_, 1 _<_ _k <_ _n}_ ; _k_ means the defect point number in the current profile; (iv) Take continuous defective profiles as a defect point set _PD_ = _PDst|s_ = 1, 2... _N_ ; _t_ = 1, 2... _sk_, and let _sk_ be the defect point number of the _s_ -th profile (v) Use k-means method to cluster all of the defect point sets, and divide into _M_ bounding boxes _DB_ = _DBm|m_ = 1, 2... _M_ ; each box would contain several defect point set. Record its number _Nm_, and calculate its center _Cm_, radius _Rm_ and distance between different defect point sets _Dm_ ; Calibration Data Origin Rail Surface Points <u>Data Processing</u> IMU Data Data Collection and Processing Points Registration Rail Surface Points Rail Surface Model <u>Registration with AICP</u> <u>Location Defect Points</u> <u>After AICP</u> Defect Detection Defect Points Cluster Defect Classification Figure 6. Defect detection and classification procedure. According to the process above, Step 3 defines a depth threshold _τD_, which is an empirical value. For rails in service, their head parts have more or less abrasion, so _τD_ is necessary to highlight serious _Sensors_ 2017, _17_, 1791 11 of 19 defects and is mainly determined by rail service time. In this step, _τD_ takes a value of 1 mm on the rail head and 0.5 mm on the rail bottom. Step 4 obtains many small defects. In this step, the location, depth, length, width, gradient, minimum circumscribed rectangle can be figured out. Step 5 connects some defects together to provide regional characteristics, for example the center, radius, maximum class separation distance, minimum class separation distance, and so on. All of these characteristics help to achieve defect detection and provide effective information for defect classification. _4.3._ _Rail Defect Classification_ According to the discussion above, different defects have different characteristics. In general, the train wheel contacts and rubs against the rail head, which causes abrasion, corrugation, scratch and peeling. Therefore, the corrosion on the rail bottom could be distinguished by position, but corrosion on the rail head is still mixed with other defects. As we know, the friction will cause the rail head (the part contacting the train wheel) to be lower than the standard rail model, then the depth deviation for the rail model is positive. The other way around, the corrosion on the rail head will return to a negative depth deviation, which differentiates the rail head corrosion from the other four defects. Among the four classes of defect, abrasion and corrugation have a smooth profile, but scratching and peeling have sharp edges, so the difference is reflected in the gradient. Abrasion and corrugation can be distinguished by wave peaks and wave troughs. Scratching is always long and narrow, that is to say the length-width ratio is bigger than peeling. Based on these judgments, the decision tree (DT) [45–47] is adopted to classify the defect and constructed as follows in Figure 7. Position bottom head Corro sion 5. Experiments and Results Depth Deviation negative positive Corro sion Gradient < threshold >= threshold Wave Peaks and Length-Width Ratio Wave Troughs No Yes < ratio >= ratio Abras ion Corru gation Peel ing Scrat ch Figure 7. Decision tree construction. The 3D-LPS is jointly developed by Wuhan University and Shenzhen University. In order to verify its performance, a series of experiments indoors and outdoors is performed. Some of the experimental environment is shown in Figure 8. The parameters of each sensor are selected as: the odometer installation wheel circumference is 500 mm, and the odometer’s frequency is 500 Hz, which means the odometer will output a pulse every 1 mm. The pulse triggers the laser scanner to capture a profile. Eight hundred points are sampled on one profile. The accuracy in the width direction is 0.3 mm and in the height direction is 0.01 mm. The IMU has an attitude accuracy of 0.02 <sup>_◦_</sup> and an azimuth accuracy of 0.05 <sup>_◦_</sup> . The platform moves at a speed of about 1.5 m/s. _Sensors_ 2017, _17_, 1791 12 of 19 In order to evaluate the accuracy of the calibration, The static collected dataset Data 1 is constructed to verify the unilateral and bilateral precision, respectively. For the purpose of verifying the matching effect of the proposed AICP algorithm, the dynamic collected dataset Data 2 is constructed to compare with ICP in terms of iteration times, calculation time, bias after registration and the matching accuracy. In order to verify the effectiveness of the defect detection algorithm, an indoor short-range defective marker dataset Data 3 is constructed to compare the recognition results with the ground truth results. An outdoor long-range rail defect dataset Data 4 is collected to compare the classification results with the results obtained by human vision. Figure 8. Experiment environment. _5.1._ _System Calibration Accuracy Verification_ Data 1 is used to verify the accuracy of system calibration. The calibration is a critical component of a measurement system [48]. For the Wuhan high-speed rail, ten groups of rail surface profiles are obtained in different sleepers, and the gauge of the sleeper is measured by a gauging rule. The rail with a specification of 60 kg/m is used, and it has a standard gauge of 1435 mm. Under the calibration parameters, we calculate the average distance _DHM_ between the rail head surface profile and the standard rail model, the average distance _DBM_ between the rail bottom surface profile and the standard rail model to evaluate the calibration accuracy of unilateral laser sensor and the IMU center. We calculate the gauge of the left rail profile and the right rail profile _GP_ and compare it with the gauge measured by the gauging rule to evaluate the calibration accuracy of the left laser sensor and the right laser sensor. The results are shown in Table 1. It can be seen from the results that, under the calibration parameters, the rail profiles measured in different places on the rail are well coincident with the standard rail model. From Table 1, the deviation between the gauge calculated under the calibration parameter and the gauge measured by the gauging rule proves the accuracy of the system calibration. The average distance between the rail head surface profile and the standard rail model is about 1–2 mm, which is larger than the average distance between the rail bottom surface profile and the standard rail model. This is reasonable because the rail used in the experiment has only been in service for a short time, and the rail head has a slightly abrasion, while the right side rail head has a deeper abrasion than the left side. Meanwhile, the inner side of _Sensors_ 2017, _17_, 1791 13 of 19 the rail was abraded more seriously. Even with the above complications, the system calibration still achieves an accuracy of sub-millimeters. Table 1. System calibration accuracy. ID _D_ <sup>_L_</sup> <sup>_L_</sup> _<u>HM</u>_ <sup>(mm)</sup> _D_ <sup>_R_</sup> <sup>_R_</sup> _<u>HM</u>_ <sup>(mm)</sup> _D_ <sup>_L_</sup> <sup>_L_</sup> _<u>BM</u>_ <sup>(mm)</sup> _D_ <sup>_R_</sup> <sup>_R_</sup> _<u>BM</u>_ <sup>(mm)</sup> _GP_ (mm) _GM_ (mm) 1 0.95 0.53 1.95 1.41 1435.34 1435.42 2 0.86 0.51 1.89 1.53 1435.46 1435.57 3 0.63 0.54 1.81 1.24 1435.81 1436.02 4 0.72 0.41 1.74 1.28 1436.35 1436.29 5 0.78 0.38 1.75 1.32 1436.19 1436.24 6 0.91 0.61 1.79 1.43 1436.25 1436.37 7 0.87 0.42 1.71 1.35 1435.78 1436.12 8 0.76 0.58 1.85 1.38 1435.49 1435.42 9 0.92 0.49 1.91 1.41 1435.81 1435.64 10 1.12 0.64 1.95 1.49 1436.06 1436.31 _5.2._ _Comparison of AICP with ICP_ Data 2 is used to verify the efficiency and effectiveness of the AICP algorithm. For Shenzhen Metro Line 1, a 400 m-long rail is profiled dynamically, and four typical rail sections are selected. The first section has very few defects. The second section has some defects on the rail head. The third section has some defects on the rail bottom. The forth section has some defects on both the rail head and the rail bottom. We choose 1000 profiles for each section manually and compute the statistics value to study the difference. The result is listed in Table 2. The iteration times _IT_, the calculation time _CT_, the total calculation time _TT_, the accuracy rate of registration _AR_ and the average distance _D_ of the ICP and AICP are calculated, which are listed in Table 2. In Table 2, the unit for _CT_ and _TT_ is seconds, and the unit for _D_ is millimeters; the subscript F denotes the full rail profile; H denotes the head part; and B denotes the bottom part. Some examples are shown in Figure 9, where the black point set denotes the standard rail model, the blue point set denotes the full rail profile ICP matching result, the green point set denotes the results of rail head part in ICP matching, the cyan point set denotes the results of the rail bottom part in ICP matching and the red point set denotes the AICP algorithm matching results. As shown in the " _TT_ " column of Table 2, the AICP algorithm is faster than the ICP algorithm. In Group 1, the measured profiles have a few defects as shown in Figure 9a, and the results of ICP are similar to AICP on both the rail head and the rail bottom, shown in the _D_ columns. In Group 2, comparing the _DH_ column and the _DB_ column, we can see that if taking the rail head part as the reference, _DH_ is much bigger, which indicates that there are defects on the rail head part, as shown in Figure 9b. From the blue parts, we can see that the rail head has an abrasion of about 1 mm. When taking the head part as the reference (the green part), the bottom part is obviously not correctly matched to the model bottom. In Group 3, comparing the _DH_ column and the _DB_ column, we can see that if taking the rail bottom part as the reference, _DB_ is much bigger, which indicates that there are defects on the rail bottom part, as shown in Figure 9c. From the blue parts, we can see that there is corrosion on the rail bottom. When taking the bottom part as the reference (the cyan), the head part is obviously not correctly matched to the model head. In Group 4, evaluating the _DH_ column and the _DB_ column, we can see that if taking the rail head part as the reference, _DH_ and _DB_ are both much bigger, which indicates that there are defects on the both rail head part and the rail bottom part, as shown in Figure 9d, where the blue parts themselves do not match the model. Let us take the red part as the best matched transform; we can see that the rail head has abrasion on the top and the side, and the rail bottom has obvious changes from the rail model. In this case, the matching results of ICP with the rail head as the reference are bad, and the matching results with the rail bottom as the reference are totally wrong. From the comparison results, we can conclude that the proposed AICP is much faster and more effective than the ICP, and it brings good matching results in each case. _Sensors_ 2017, _17_, 1791 14 of 19 Table 2. Effect of AICP and ICP. ID Type Statistical value _ITF_ _CTF_ _DF_ _ITH_ _CTH_ _DH_ _ITB_ _CTB_ _DB_ _TT_ _AR_ Average value 26.8 0.267 0.273 55.6 0.173 0.196 48.3 0.163 0.067 0.603 99.9% Standard deviation 2.21 0.048 0.011 3.22 0.018 0.012 3.64 0.024 0.006 - Maximum value 30 0.346 0.291 60 0.198 0.213 54 0.203 0.075 - Average value 22.4 0.238 0.273 35.1 0.117 0.196 48.2 0.161 0.067 0.516 99.9% Standard deviation 1.02 0.006 0.012 1.45 0. 003 0.014 2.74 0.022 0.006 - Maximum value 24 0.246 0.293 37 0.121 0.217 52 0.198 0.075 - Average value 25.8 0.264 0.423 51.3 0.148 0.361 46.2 0.162 0.069 0.574 33.3% Standard deviation 2.24 0.045 0.012 5.62 0.024 0.025 3.12 0.022 0.007 - Maximum value 29 0.338 0.441 61 0.186 0.395 50 0.192 0.081 - Average value 24.6 0.241 0.424 33.5 0.119 0.364 49.6 0.164 0.068 0.525 99.9% Standard deviation 1.84 0.018 0.012 3.23 0.005 0. 026 2.81 0.018 0.006 - Maximum value 27 0.268 0.443 38 0.127 0.396 53 0.191 0.077 - Average value 27.8 0.322 0.418 30.6 0.109 0.201 74.8 0.297 0.157 0.728 33.4% Standard deviation 2.31 0.052 0.013 3.21 0.008 0.015 5.47 0.017 0.011 - Maximum value 31 0.407 0.442 35 0.121 0.223 82 0.323 0.173 - Average value 14.5 0.188 0.418 45.2 0.139 0.201 24.3 0.109 0.155 0.436 99.9% Standard deviation 4.67 0.038 0.014 3.18 0.016 0.013 6.74 0.011 0.011 - Maximum value 22 0.237 0.445 50 0.168 0.219 35 0.127 0.175 - Average value 21.6 0.237 0.566 53.4 0.167 0.471 53.6 0.306 0.408 0.721 0.01% Standard deviation 6.43 0.074 0.035 4.36 0.025 0.023 7.01 0.049 0.015 - Maximum value 30 0.357 0.621 60 0.205 0.503 63 0.382 0.445 - Average value 26.7 0.257 0.568 30.2 0.109 0.472 16.8 0.129 0.098 0.495 99.9% Standard deviation 3.21 0.021 0.029 3.43 0.008 0.016 4.92 0.018 0.013 - Maximum value 32. 0.288 0.618 35 0.122 0.496 24 0.158 0.117 - 1 2 3 4 ICP AICP ICP AICP ICP AICP ICP AICP 20 0 -2 ~~0~~ -40 -60 -80 -100 -120 -140 -160 -40 <u>-20</u> <u>0</u> <u>20</u> <u>40</u> 60 80 <u>100</u> (a) 20 0 -20 -40 -60 -80 -100 -120 -140 -160 -100 <u>-80</u> <u>-60</u> <u>-40</u> <u>-20</u> <u>0</u> <u>20</u> <u>40</u> (b) 20 0 -20 -40 -60 -80 -100 -120 -140 -160 -40 <u>-20</u> <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> <u>100</u> (c) 20 0 -20 -40 -60 -80 -100 -120 -140 -160 -100 <u>-80</u> <u>-60</u> <u>-40</u> <u>-20</u> <u>0</u> <u>20</u> <u>40</u> (d) Figure 9. Result of ICP and AICP: ( a ) With less defects; ( b ) With defects on the rail head; ( c ) With defects on the rail bottom; ( d ) With defects on both the head and bottom. _Sensors_ 2017, _17_, 1791 15 of 19 _5.3._ _Rail Surface Defect Extraction_ Data 3 is used to evaluate the defect-extraction performance of the proposed algorithm. A 1.5-m rail is placed indoors, and 10 artificial defects are made. We measure and record the length and maximum depth of each defect with a micrometer. We scan all of the defects and repeat 10 times. We compare the defect length (that is, along the direction of rail extension) _Len_, the defect width (that is, perpendicular to the direction of rail extension) _Wid_ and the maximum depth _Dmax_ extracted by the 3D-LPS with the actual length _Length_, actual width _Width_ and the actual maximum depth _Depth_ measured by human workers. In this procedure, the k-means clustering algorithm takes k = 5 to divide the defective region every 100 profiles (100 mm long). The center of the longest continuous defective region is chosen to be the original cluster center; thus, two cluster centers (one on the rail top and the other on the rail bottom) can be quickly computed. The other three centers are randomly chosen outside of these two continuous regions. In this way, the computation time is proven to be greatly shortened. The results are shown in Table 3. Table 3. Result of rail surface defect extraction. ID _Len_ (mm) _Length_ (mm) _Wid_ (mm) _Width_ (mm) _Dmax_ (mm) _Depth_ (mm) 1 22 22.76 1.5 1.56 1.7745 1.80 2 15 15.54 1.2 1.24 0.8174 0.84 3 18 18.18 1.8 1.78 1.3548 1.36 4 4 4.08 32.7 32.64 0.6854 0.66 5 4 4.12 26.4 26.22 0.8123 0.80 6 5 4.96 15.3 15.12 1.0254 1.08 7 5 4.92 7.8 7.76 1.1214 1.12 8 5 4.94 10.2 10.24 1.0146 0.98 9 6 6.08 9.3 9.38 0.8564 0.86 10 6 6.12 10.5 10.68 0.9631 0.96 As shown in Table 3, 10 typical artificial defect areas are made and measured. Groups 1–3 are the result of defect extraction of vertical defects on the rail top, as shown in Figure 10a. Groups 4–6 are the result of defect extraction of horizontal defects on the rail top, as shown Figure 10c. Groups 7 and 8 are the result of defect extraction of horizontal defects on the rail edge, as shown in Figure 10b. Groups 9 and 10 are the result of defect extraction of sloping defects on the rail edge, as shown in Figure 10d. Experimental results show that the proposed algorithm is very sensitive to defects with an obvious change in depth and can locate the defects accurately with a millimeter length accuracy and a sub-millimeter depth accuracy. To be more exact, the system can recognize defects with length (along the direction of the rail extension) larger than 2 mm, width (perpendicular to the direction of the rail extension) larger than 0.6 mm and depth larger than 0.5 mm. The algorithm is less sensitive to changes in length, and the defect area detected is larger than the ground truth. This is mainly because the defect depth of the edge area is too small (sub-millimeter level) to be observed by human vision. In summary, the proposed algorithm is effective at detecting defects with an obvious change in depth. _Sensors_ 2017, _17_, 1791 16 of 19 3# 1# 2# (a) (c) 4# (b) (d) Figure 10. Examples of typical artificial defect extraction: ( a ) Vertical defects on the top; ( b ) Horizontal defects on the edge; ( c ) Horizontal defects on the top; ( d ) Sloping defects on the edge. _5.4._ _Result of Defect Classification_ Data 4 is used to validate the defect classification accuracy of the 3D-LPS. For the Wuhan high-speed rail, Shenzhen Metro Line 1 and indoor rail, 450 defects (150 abrasion, 80 corrugation, 50 scratch, 120 corrosion, 50 peeling) are collected as a dataset to validate the accuracy of the classification module. The rail defects are extracted from the rail surface point cloud and classified into five categories: abrasion, corrugation, scratch, corrosion and peeling. The ground-truth types of the defective area are identified by human eyes in the point cloud using the visualization software CloudCompare. The results are shown in Table 4. Table 4. Classification result by DT. Predicted Defect Type Abrasion Corrugation Scratch Corrosion Peeling Total Abrasion 141 6 2 0 1 150 Corrugation 6 74 0 0 0 80 Actual Scratch 3 2 43 0 2 50 Corrosion 0 0 0 120 0 120 Peeling 2 1 3 0 44 50 Table 4 shows the confusion matrix of the classification results obtained by our decision tree classifier (DT). The confusion matrix is used to evaluate the classification accuracy and reliability. _Sensors_ 2017, _17_, 1791 17 of 19 From Table 4, we can see that 422 (141 + 74 + 43 + 120 + 44) defects are correctly classified, which denotes an overall accuracy of 93.78%. The corrosion classification accuracy is up to 100%, which is because the position (head or bottom) and depth deviations (positive or negative) are accurate and unique. The abrasion and corrugation are less correctly classified. A possible reason is that the choice of the depth deviation threshold is not robust enough. The scratching and peeling are two types that are easily confused (two scratches incorrectly classified as peeling and three peelings as scratches) due to the fact that the gradient threshold is hard to set. Another important reason for incorrect classification is that some defects are the mixture of multiple types of defects. For example, scratching or peeling can exist in abrasion or corrugation (in this test, 11 scratches and nine peelings coexist with abrasion and corrugation, but 5 scratches, 3 peelings and 3 abrasions are classified incorrectly, the miss-classification ratio coming from coexisting defects is up to 55%), and we will try to solve this problem in our future work. Overall, the experimental results show that the proposed classification algorithm is effective and reliable. 6. Conclusions This paper introduced a 3D laser profiling system for rail surface defect detection to acquire rail surface’s depth data accurately and efficiently and proposed an AICP algorithm based on the Kalman filter model. The improved ICP algorithm takes into account the characteristics that the attitude of adjacent profiles changes smoothly and slowly, and the initial value of ICP for the current profile is predicted by the adjacent continuous profiles, which greatly improves the convergence speed. On the other hand, partly registration was calculated to select the optimal registration parameters, and the Kalman filter model was adopted to update the final optimal registration parameters, which solves the problem of the wrong match in the ICP algorithm. Using the proposed AICP algorithm, the registration achieved an accuracy of sub-millimeters and made possible the accurate location of defects. In addition, the k-means algorithm was employed to cluster the defects and extract the characteristics of each defect area, based on which a decision tree classifier was applied to identify the type of rail surface defect. The experimental results showed that the proposed algorithm can register the rail surface profile with the standard rail model quickly and accurately and locate the defect area correctly, as well as achieving a good performance on defect classification. In our future work, we will try other learning algorithm, such as SVM [49,50], to train the classifier to further improve the classification accuracy. Acknowledgments: The authors would like to thank Chaoyang Shi for the helpful discussion and Zhipeng Chen and Liang Zhang for doing the experiments. This research is partially supported by the National Natural Science Foundation of China under Grant No. 41371377, No. 91546106 and No. 61301277, the National Key Research and Development Program of China under Grant No. 2016YFB0502203 and No. 2016YFF0103502, the Shenzhen future industry development funding program under Grant No. 201507211219247860 and the Fundamental Research Funds for the Central Universities. Author Contributions: Zhimin Xiong collected and analyzed the data, made charts and diagrams, performed the experiments and wrote the paper; Qingquan Li conceived the structure and provided guidance; Qingzhou Mao conceived and designed the experiments, designed and integrated the hardware equipment; Qin Zou searched the literature and modified the manuscript. Conflicts of Interest: The authors declare no conflict of interest. References 1. Kumar, A.; Pang, G.K. Defect detection in textured materials using Gabor filters. _IEEE Trans._ _Ind._ _Appl._ 2002, _38_, 425–440. 2. Toliyat, H.A.; Abbaszadeh, K.; Rahimian, M.M.; Olson, L.E. Rail defect diagnosis using wavelet packet decomposition. _IEEE Trans._ _Ind._ _Appl._ 2003, _39_, 1454–1461. 3. Mandriota, C.; Nitti, M.; Ancona, N.; Stella, E.; Distante, A. Filter-based feature selection for rail defect detection. _Mach. Vis._ _Appl._ 2004, _15_, 179–185. 4. Marino, F.; Stella, E. _ViSyR: A Vision System for Real-Time Infrastructure Inspection_ ; INTECH Open Access: Rijeka, Croatia, 2007. _Sensors_ 2017, _17_, 1791 18 of 19 5. Jie, L.; Siwei, L.; Qingyong, L.; Hanqing, Z.; Shengwei, R. Real-time rail head surface defect detection: A geometrical approach. In Proceedings of the IEEE International Symposium on Industrial Electronics, Lausanne, Switzerland, 8–10 July 2009; pp. 769–774. 6. Yuan, X.C.; Wu, L.S.; Peng, Q. An improved Otsu method using the weighted object variance for defect detection. _Appl._ _Surf._ _Sci._ 2015, _349_, 472–484. 7. Li, Q.; Ren, S. A real-time visual inspection system for discrete surface defects of rail heads. _IEEE Trans._ _Instrum._ _Meas._ 2012, _61_, 2189–2199. 8. Feng, H.; Jiang, Z.; Xie, F.; Yang, P.; Shi, J.; Chen, L. Automatic fastener classification and defect detection in vision-based railway inspection systems. _IEEE Trans._ _Instrum._ _Meas._ 2014, _63_, 877–888. 9. Papaelias, M.P.; Lugg, M.; Roberts, C.; Davis, C. High-speed inspection of rails using ACFM techniques. _NDT E Int._ 2009, _42_, 328–335. 10. Clark, R. Rail flaw detection: Overview and needs for future developments. _NDT E Int._ 2004, _37_, 111–118. 11. Bartoli, I.; di Scalea, F.L.; Fateh, M.; Viola, E. Modeling guided wave propagation with application to the long-range defect detection in railroad tracks. _NDT E Int._ 2005, _38_, 325–334. 12. Coccia, S.; Bartoli, I.; Salamone, S.; Phillips, R.; di Scalea, F.; Fateh, M.; Carr, G. Noncontact ultrasonic guided wave detection of rail defects. _Transp._ _Res._ _Rec._ _J. Transp._ _Res._ _Board_ 2009, 77–84, doi:10.3141/2117-10. 13. Lanza di Scalea, F.; Rizzo, P.; Coccia, S.; Bartoli, I.; Fateh, M. Laser-air-coupled hybrid noncontact system for defect detection in rail tracks: Status of FRA prototype development at University of California-San Diego. _Transp._ _Res._ _Rec._ 2006, _1943_, 57–64. 14. Alippi, C.; Casagrande, E.; Scotti, F.; Piuri, V. Composite real-time image processing for railways track profile measurement. _IEEE Trans._ _Instrum._ _Meas._ 2000, _49_, 559–564. 15. Babenko, P. Visual Inspection of Railroad Tracks. Ph.D. Thesis, University of Central Florida, Orlando, FL, USA, 2009. 16. Deutschl, E.; Gasser, C.; Niel, A.; Werschonig, J. Defect detection on rail surfaces by a vision based system. In Proceedings of the Intelligent Vehicles Symposium, Parma, Italy, 14–17 June 2004; pp. 507–511. 17. Rose, J.L.; Avioli, M.J.; Mudge, P.; Sanderson, R. Guided wave inspection potential of defects in rail. _NDT E Int._ 2004, _37_, 153–161. 18. Zumpano, G.; Meo, M. A new damage detection technique based on wave propagation for rails. _Int._ _J._ _Solids Struct._ 2006, _43_, 1023–1046. 19. Xie, X. A review of recent advances in surface defect detection using texture analysis techniques. _Electron. Lett._ _Comput._ _Vis._ _Image Anal._ 2008, _7_, 1–22. 20. Forest, J.; Salvi, J. A review of laser scanning three-dimensional digitisers. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, Lausanne, Switzerland, 30 September–4 October 2002; Volume 1, pp. 73–78. 21. Graebling, P.; Lallement, A.; Zhou, D.Y.; Hirsch, E. Optical high-precision three-dimensional vision-based quality control of manufactured parts by use of synthetic images and knowledge for image-data evaluation and interpretation. _Appl._ _Opt._ 2002, _41_, 2627–2643. 22. Zhang, G.; He, J.; Li, X. 3D vision inspection for internal surface based on circle structured light. _Sens. Actuators A Phys._ 2005, _122_, 68–75. 23. Van Gestel, N.; Cuypers, S.; Bleys, P.; Kruth, J.P. A performance evaluation test for laser line scanners on CMMs. _Opt._ _Lasers Eng._ 2009, _47_, 336–342. 24. Wu, B.; Xue, T.; Zhang, T.; Ye, S. A novel method for round steel measurement with a multi-line structured light vision sensor. _Meas._ _Sci._ _Technol._ 2010, _21_, 025204. 25. Salvi, J.; Matabosch, C.; Fofi, D.; Forest, J. A review of recent range image registration methods with accuracy evaluation. _Image Vis._ _Comput._ 2007, _25_, 578–596. 26. Yamany, S.M.; Farag, A.A. Free-form surface registration using surface signatures. In Proceedings of the Seventh IEEE International Conference on Computer Vision, Kerkyra, Greece, 20–27 September 1999; Volume 2, pp. 1098–1104. 27. Yamany, S.M.; Farag, A.A. Surface signatures: An orientation independent free-form surface representation scheme for the purpose of objects registration and matching. _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._ 2002, _24_, 1105–1120. 28. Johnson, A.E. Spin-Images: A Representation for 3-D Surface Matching. Ph.D. Thesis, Carnegie Mellon University, Pittsburgh, PA, USA, 1997. _Sensors_ 2017, _17_, 1791 19 of 19 29. Ashbrook, A.; Fisher, R.; Werghi, N.; Robertson, C. Aligning Arbitrary Surfaces Using Pairwise Geometric Histograms. In _Noblesse Workshop on Non-Linear Model Based Image Analysis_ ; Springer: Berlin, Germany, 1998; pp. 103–108. 30. Zhang, D. Harmonic Shape Images: A 3D Free-Form Surface Representation and Its Applications in Surface Matching. Ph.D. Thesis, Carnegie Mellon University Pittsburgh, Pittsburgh, PA, USA, 1999. 31. Stein, F.; Medioni, G. Structural indexing: Efficient 3-D object recognition. _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach. Intell._ 1992, _14_, 125–145. 32. Hummel, R.A.; Zucker, S.W. On the foundations of relaxation labeling processes. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 1983, _3_, 267–287. 33. Li, N.; Cheng, P.; Sutton, M.; McNeill, S. Three-dimensional point cloud registration by matching surface features with relaxation labeling method. _Exp._ _Mech._ 2005, _45_, 71–82. 34. Besl, P.J.; McKay, N.D. Method for registration of 3-D shapes. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 1992, _14_, 586–606. 35. Keerthi, S.S.; Shevade, S.K.; Bhattacharyya, C.; Murthy, K.R. A fast iterative nearest point algorithm for support vector machine classifier design. _IEEE Trans._ _Neural Netw._ 2000, _11_, 124–136. 36. Rusinkiewicz, S.; Levoy, M. Efficient variants of the ICP algorithm. In Proceedings of the Third International Conference on 3-D Digital Imaging and Modeling, Quebec City, QC, Canada, 28 May–1 June 2001; pp. 145–152. 37. Chetverikov, D.; Svirko, D.; Stepanov, D.; Krsek, P. The trimmed iterative closest point algorithm. In Proceedings of the 16th International Conference on Pattern Recognition, Quebec City, QC, Canada, 11–15 August 2002; Volume 3, pp. 545–548. 38. Stewart, C.V.; Tsai, C.L.; Roysam, B. The dual-bootstrap iterative closest point algorithm with application to retinal image registration. _IEEE Trans._ _Med._ _Imaging_ 2003, _22_, 1379–1394. 39. Bishop, G.;Welch, G. An introduction to the kalman filter. In Proceedings of the Special Interest Group on Computer Graphics and Interactive Techniques, Los Angeles, CA, USA, 12–17 August 2001; 40. Julier, S.J.; Uhlmann, J.K. New extension of the Kalman filter to nonlinear systems. _Int._ _Soc._ _Opt._ _Photonics_ 1997, _3_, 182–193. 41. Chen, Z.; Zou, H.; Jiang, H.; Zhu, Q.; Soh, Y.C.; Xie, L. Fusion of WiFi, smartphone sensors and landmarks using the Kalman filter for indoor localization. _Sensors_ 2015, _15_, 715–732. 42. Kanungo, T.; Mount, D.M.; Netanyahu, N.S.; Piatko, C.D.; Silverman, R.; Wu, A.Y. An efficient k-means clustering algorithm: Analysis and implementation. _IEEE Trans._ _Pattern Anal._ _Mach._ _Intell._ 2002, _24_, 881–892. 43. Zhang, C.; Xiao, X.; Li, X.; Chen, Y.J.; Zhen, W.; Chang, J.; Zheng, C.; Liu, Z. White Blood Cell Segmentation by Color-Space-Based K-Means Clustering. _Sensors_ 2014, _14_, 16128–16147. 44. Zou, Q.; Ni, L.; Wang, Q.; Hu, Z.; Li, Q.; Wang, S. Local Pattern Collocations Using Regional Co-Occurrence Factorization. _IEEE Trans._ _Multimed._ 2017, _19_, 492–505. 45. Friedl, M.A.; Brodley, C.E. Decision tree classification of land cover from remotely sensed data. _Remote Sens. Environ._ 1997, _61_, 399–409. 46. Pal, M.; Mather, P.M. An assessment of the effectiveness of decision tree methods for land cover classification. _Remote Sens._ _Environ._ 2003, _86_, 554–565. 47. Madzarov, G.; Gjorgjevikj, D.; Chorbev, I. A multi-class SVM classifier utilizing binary decision tree. _Informatica_ 2009, _33_, 233–241. 48. Li, Q.; Zou, Q.; Mao, Q.; Chen, X.; Li, B. Efficient calibration of a laser dynamic deflectometer. _IEEE Trans._ _Instrum._ _Meas._ 2013, _62_, 806–813. 49. Chang, C.C.; Lin, C.J. LIBSVM: A library for support vector machines. _ACM Trans._ _Intell._ _Syst._ _Technol._ 2011, _2_, 27. 50. Zou, Q.; Ni, L.; Wang, Q.; Li, Q.; Wang, S. Robust Gait Recognition by Integrating Inertial and RGBD Sensors. _IEEE Trans._ _Cybern._ 2017, 1–15, doi:10.1109/TCYB.2017.2682280. _⃝_ c 2017 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution [(CC BY) license (http://creativecommons.org/licenses/by/4.0/).](http://creativecommons.org/licenses/by/4.0/.)

섹션 본문 34문단 · 37,412자

(제목 없음)

1Rail surface defects such as the abrasion, scratch and peeling often cause damages to the train wheels and rail bearings. An efficient and accurate detection of rail defects is of vital importance for the safety of railway transportation. In the past few decades, automatic rail defect detection has been studied; however, most developed methods use optic-imaging techniques to collect the rail surface data and are still suffering from a high false recognition rate. In this paper, a novel 3D laser profiling system (3D-LPS) is proposed, which integrates a laser scanner, odometer, inertial measurement unit (IMU) and global position system (GPS) to capture the rail surface profile data. For automatic defect detection, first, the deviation between the measured profile and a standard rail model profile is computed for each laser-imaging profile, and the points with large deviations are marked as candidate defect points. Specifically, an adaptive iterative closest point (AICP) algorithm is proposed to register the point sets of the measured profile with the standard rail model profile, and the registration precision is improved to the sub-millimeter level. Second, all of the measured profiles are combined together to form the rail surface through a high-precision positioning process with the IMU, odometer and GPS data. Third, the candidate defect points are merged into candidate defect regions using the K-means clustering. At last, the candidate defect regions are classified by a decision tree classifier. Experimental results demonstrate the effectiveness of the proposed laser-profiling system in rail surface defect detection and classification.

Introduction

2The rail surface defect is an important factor that affects the operation safety of rails. Common rail surface defects such as abrasion, corrugation, scratch, corrosion and peeling would cause damage to the train wheels and the rail bearings, which will not only shorten the service life of train parts, but also bring a potential critical safety crisis to the trains. Therefore, the research and development of automatic methods for rail surface defect detection is very important, which on the one hand achieves an effective maintenance of the train-operation safety by timely and accurate defect location and recognition and, on the other hand, improves the passenger comfort and environmental protection, reduces noise and the energy loss caused by rail defects.

3Automatic detection of defects from rail surface images is a very challenging problem. In the past two decades, many research works and achievements have been made by using two-dimensional (2D) imaging for rail surface defect detection. However, there are still some problems left unsolved. From the perspective of texture analysis, filtering and wavelet transform-based approaches are widely used for defects detection by analyzing the local spatial patterns, e.g., the Gabor filter, curvelet transform based on ultrasonic testing. Bartoli I. [11] and Coccia S. [12] of the University of California-San Diego (UCSD) studied the use of ultrasonic waves for long-range rail defect detection and established a guided wave propagation model. The Federal Railway Authority (FRA) and Lanza di Scalea F. [13] of UCSD combine ultrasonic detectors and laser sensors to detect transverse defects under horizontal shelling. Alippi C. [14] and Babenko P. [15] use the laser ranging scanner to obtain the depth of the rail, combined with the matching camera to obtain the optical image, so as to detect rail defects. Deutsch E. [16] takes line-scan cameras and a special image acquisition method of the spectral image differencing procedure to obtain defects on the rail surface and then detects the defects by means of image processing.

4In the past few decades, the most common non-destructive testing technique used to detect defects in rails is ultrasonic testing. Rose, Zumpano et al. [17,18] study the guided wave propagation technologies and adopt algorithms like continuous wavelet transform, the ray-tracing algorithm, etc., to extract defects. These technologies perform relatively well in detecting deep surface-breaking and internal defects, but the rail surface defects are usually not detected by this high-speed ultrasonic technique.

5In recent years, image recognition technology has been widely used to detect defects based on local spatial patterns of intensity; for instance, the Gabor filter [1] and wavelet transform [2]. Mandriota [3] and Marino [4] compare three filtering approaches (Gabor filter, wavelet transform and Gabor wavelet transform) based on texture analysis of the rail surface to extract texture features for rail corrugation detection. However, these spectral methods are not fit for real-time processing because they involve a large amount of convolution operations per pixel of high resolution rail images. Furthermore, there exists heavy random noise mainly caused by complicated rail track conditions and camera thermal effects, which make it difficult to distinguish noise from the defective region. Xie [19] reviews recent advances in surface inspection using computer vision and image processing techniques, particularly those based on texture analysis methods, and divides the techniques into four categories: statistical approaches, structural approaches, filter-based methods and model-based approaches. Lin [5] adopts geometrical analysis directly on a gray-level histogram curve of the smoothed rail head surface image to locate defects. Li [7] puts forward a real-time visual inspection system (VIS) to detect discrete rail surface defects. VIS acquires rail image and cuts the rail track subimage by the track extraction algorithm, subsequently enhancing the contrast using the local normalization method and, at last, detecting defects using the defect localization based on the projection profile. VIS is very fast and can run on a 216-km/h test train in real time. Feng [8] proposes an automatic visual inspection system for detecting partial abrasion using the probabilistic topic model. Yuan [6] proposes an improved Otsu method named the weight object variance (WOV); the weight ensures that the threshold always is a value that is located at the valley of two peaks or at the left bottom rim of a single peak histogram. However, these image-based technologies heavily depend on image quality, which is directly affected by defect shape, orientation, surface material, texture, etc., and also has some needs for a special light source, which is difficult to integrate and is expensive. Furthermore, there are many oxide scales on the rail surface, and the color of the oxide scale is very similar to some surface defects, such as scarring, indentation, and so on; therefore, it is difficult to distinguish by the use of a two-dimensional image. More importantly, these technologies can only recognize particular rail defects and cannot classify several defects correctly. With the rapid development of laser sensors, the acquisition of fast and high-precision point cloud data becomes possible and applicable on surface information, which solves the difficulty of information acquisition on the rail surface under a complex environment. In the past few years, the 3D vision system, especially the line-structured optical scanning system, has been applied to many aspects of surface defect detection [20][21][22][23][24], but there have been few mature automatic defect extraction algorithms proposed.

Defect Point Registration

63D point cloud data registration is the most critical part of surface defect detection. In order to compare with the standard data, it is necessary to register the collected point cloud data with the discrete standard CAD model to facilitate the corresponding coordinate difference. The registration algorithm is widely used in machine vision and image processing. The main processes include: feature extraction, feature representation, matching calculation and evaluation. According to the different features, the 3D point cloud registration algorithm can be divided into internal features matching and external features matching. The internal features are independent of the coordinate system, such as the curvature and the distance between two points, and the external features are related to the coordinate system, for instance the tangent plane of the surface [25]. The internal features matching is a reduced dimension and indirect matching method; it includes the surface signature method [26,27], the spin-image method [28], the geometric histogram method [29], the harmonic shape image method [30], the splashes method [31], etc. Because of the reduced dimension processing, the calculation speed is faster, but the precision is not high. The most commonly-used algorithm in external features matching is the label method [32,33] and the optimal matching algorithm. The label method requires pasting at least three markers or positioning balls on the measured object as a physical feature point. Through the coordinates of the three points, the position between the coordinate system can be calculated. In order to improve the accuracy of the calculation, more labels or positioning balls need to be placed on the measured object, which is obviously not applicable for full inspection or on-line measurement. The most commonly-used optimal algorithm is the ICP algorithm, and many scholars have studied it. The ICP method was presented by Besl and McKay [34]. The goal of this method is to obtain an accurate solution by minimizing the distance between point-correspondences, known as the closest point. According to the strategy of determining the corresponding point pair, a variety of optimization algorithms has evolved [35][36][37][38], and the main bottlenecks of these algorithms are the search and optimization calculation of the corresponding point pair and being more sensitive to the initialization location of the point cloud and CAD model; especially for objects that do not have obvious geometric features, the convergence effect is not ideal. In order to achieve higher registration accuracy, the iteration times are more, which is more time consuming.

7In this paper, the line structure optical scanning method is adopted to obtain the rail surface point cloud, which is of high precision, fast and convenient. On the basis of the conventional ICP algorithm, the Kalman filter model [39][40][41] is used to predict the transformation of the current profile through the recursion of the adjacent continuous profiles, which greatly reduces the iteration times. At last, the optimal registration parameters are selected by synthetically evaluating segmented ICP and overall ICP.

System Principle

8The key technologies of 3D surface defect detection include the 3D data acquisition and 3D point cloud processing aspects. Research works in 3D surface defect detection are mainly concentrated on the 3D visual sensors and data registration between the 3D point cloud and CAD model. In the rail surface defect detection, the first step is to obtain surface point cloud data. As the line structure optical scanner has been applied to many aspects of surface defect detection, this system adopts the Keyence LJ-V7000 type profilometer for rail surface profile acquisition. The measurement principle is shown in Figure 1. In Figure 1, the line laser irradiates vertically and forms a light band on the surface of the object to be measured. The camera is tilted at an angle with respect to the line laser and takes a photo of the object surface. Then, the light band on the surface will reflect the object surface profile in the laser projection surface. In the situation that the relative position relationship between the camera and the line laser is determined and unchanged, for the same object profile, it can be seen that the image's position of the light band on the camera (Image A to Image B) will change with the object's depth (Profile A to Profile B) outside. Therefore, by detecting the position and shape of the light band's image on the camera, the physical coordinates of the light band are calculated, that is to say the physical coordinates of the surface profile are calculated. With the object not moving, the carrier platform moves along and divides the measured object surface into many profiles, so as to achieve the goal of measuring the physical coordinates of all of the surface points.

System Architecture

9According to the discussion above, once the rail surface profile is obtained, the deviation between the defective surface and the standard model can be calculated. To achieve the goal of detecting the whole surface defects, continuous measurement should be taken. Thus, several different kinds of sensors are integrated into one whole system, e.g., laser scanner, odometer, IMU, GPS, etc. The architecture of 3D-LPS is shown in Figure 2. It can be seen that the system is highlighted at five levels. The multi-sensors level lists all of the sensors involved in the 3D-LPS. The system-integration level is responsible for the synchronization of the whole system under a unified spatio-temporal benchmark. On this level, each sensor is fixed on the carrier platform, and calibration of each sensor should be done. The data-collection level connects the hardware and the software to capture various data in a computer. Once the data have been collected, the data processing level fuses the raw data to extract the 3D point cloud of a rail surface. Through data registration with the standard model, the defect-detection level analyses the deviation between the defective rail surface and the standard rail model and hence locates and recognizes the defects. In 3D-LPS, the arrangement of each part is shown in Figure 3: the laser scanners (6,7) are installed on the side of the platform (1) to obtain the rail surface profile; the odometer (2) is equipped on the wheel and collects the distance and speed data of the platform; the GPS (4) is fixed above the platform and records the platform's location data; the IMU (3) is mounted on the middle of the platform gaining the platform's attitude data; the synchronization control unit (5) provides unified spatio-temporal benchmark; all of the sensor data and synchronous data are transferred to the computer (8) for fusion processing; the power-supply module (9) is placed on the platform to supply power for all equipment and sensors.

Pre-Processing

10The rail surface profile data collected by the laser scanners cannot be directly used for the extraction of rail surface defect and needs to be pre-processed. Firstly, a motion correction model is designed to correct the error caused by slight rotation of the platform. Then, each sensor's coordinate should be unified to the same coordinate system, where the IMU coordinate system is taken as the reference coordinate system. Figure 4, the platform body is supported by three wheels on the rail surface. During the movement of the platform, the three support points would not leave the rail top; therefore, it is reasonable to assume that only horizontal rotation of the IMU exists between adjacent profiles. AT this point, if the platform has slight rotation, it may cause the profile captured by the laser scanner not to be perpendicular to the rail, which cannot match the standard rail model. Suppose the rail surface profile gained at time t 1 is A 1 as shown in Figure 4; at time t 2 , the platform moves forward and obtains profile A 2 ; the rotation angle between the adjacent profile A 1 and A 2 is θ; if the correct profile at time t 2 is supposed to be A 3 , then A 3 will be parallel to A 1 , so A 3 is the projection of A 2 on A 1 . Thus, suppose the original point coordinate of the left and right rail surface profile is P L0 , P R0 ; the corrected point coordinate of left and right rail surface profile will be Equations (1) and (2).

Motion correction model: As shown in

11Unified coordinate transformation: Choose the IMU coordinate system as the reference coordinate system; suppose the coordinate of the left laser scanner coordinate center in the referenced coordinate system is (R I L , T I L ); the same, the right laser scanner coordinate center is (R I R , T I R ); then, the coordinate of the left and right rail surface profile in the referenced coordinate system can be expressed as Equations (3) and (4).

12In practical work, as the IMU moves along the rail direction, the trajectory of the IMU coordinate origin can be calculated by the GPS's location, the IMU's attitude and the odometer's mileage. Therefore, the pre-processed point cloud reflects the relative position of the actual rail surface points.

Calibration of 3D-LPS

13The 3D-LPS needs to be calibrated before actual measurement. The main work of calibration is to find out the transformation parameters of the left and right laser scanner coordinate center in the referenced coordinate system, (R I L , T I L ) and (R I R , T I R ). As shown in Figure 5, the left laser scanner has a right deflection angle of α l , scanning the inner side of the left rail. The right laser scanner has a left deflection angle of α r , scanning the inner side of the right rail. The specific calibration steps are:

14(i) Choose the center of the left rail top as the coordinate origin; use the gauging rule measuring the gauge G between the left and right rail; measure the distance from the center of the right rail top to the center of the left rail top; record as D; (ii) According to D and the standard rail model, let the center of the left standard rail model top be the coordinate origin, then the center of the right standard rail model top will be located on (D, 0); (iii) Let the structured light vertically project onto the rail top and capture the rail surface profile; (iv) Adjust the left rail surface profile manually until it completely matches with the left standard rail model; calculate the transformation parameters as (R I L , T I L ); the same for (R I R , T I R ).

Rail Surface Defect Detection Method

15After pre-processing, the rail surface point cloud is unified into the same coordinate system, and it should be matched with the standard rail model to calculate the rail defects. This section introduces the ICP algorithm and points out the problem of ICP, then proposes an AICP algorithm based on the Kalman filter model, which improves the registration accuracy to the sub-millimeter level, so as to locate the defect area accurately. On this basis, the k-means algorithm [42][43][44] is used to cluster the defects and extract the characteristics of each defect area; at last, the decision tree classifier is taken to identify the type of rail surface defect.

Rail Profile Registration

16ICP: For the 3D point set registration problem, the most widely-used and the most influential one is the ICP algorithm proposed by Besl and Mckay in 1992. The ICP algorithm is a 3D object alignment algorithm based on a pure geometric model; its essence is the optimal matching algorithm based on the least squares method. It repeats the process of first determining the set of corresponding relationships and then calculating the optimal rigid transformation until a convergence criterion of correct matching is met, so that the optimal match of the two matching data satisfies the certain degree of metric, so as to find the the translation transformation T and rotation transformation R between the target point set P and the reference point set Q. Suppose the target point set is {P i , i = 1, 2...}, and the reference point set is {Q i , i = 1, 2...}; in the k-th iteration, find the point set {Q k i , i = 1, 2...} from Q that corresponds with target point set P, then calculate the transformation matrix between P and {Q k i , i = 1, 2...}, and update the original point set until the average distance between the dataset is less than the given τ; that is to say, satisfy the following formula

17The specific steps are:

18(i) Take point set P k i from target point set P; (ii) Calculate the point set Q k i from reference point set Q as the corresponding point set of P k i , and make Q k i − P k i = min; (iii) Calculate the transformation from P k i to Q k i , and make Q k i − P k i = min, then record the rotation vector as R k and translation vector as T k ; (iv) Update the point set, and compute P k+1 i = R k P k i + T k ; (v) Calculate the average distance between P k i and Q k i , and record as d k+1

19Step 2 until d k+1 < τ or the iteration times are greater than the preset maximum iteration times.

20The ICP algorithm has a good effect on point set registration; however, in this application, there is sometimes a big difference between the defective rail surface point cloud and the standard rail model. For example, if the abrasion wear is serious, or the scratches are deep, then the defective rail surface point cloud would be very different from the standard rail model, resulting in poor registration and even matching errors. That is why it is necessary to improve the ICP algorithm to match the rail surface point cloud registration.

21AICP: Generally, the rail top and rail side are easily abraded and scratched, which usually causes the defective rail surface, different from the standard model. The bottom of the rail only has corrosion because of no contact with the wheel, but the corrosion will not make the rail bottom's shape very different from the standard model, so this is an important reference of the data registration afterwards. At the same time, when the system is moving along the rail, it obtains the rail surface profile every 1 mm. In such a small interval, there is not enough time for the system's attitude to change suddenly when obtaining adjacent profiles. Thus, the transformation between the current rail surface profile and the standard model is closely related to the transformation between the adjacent profile and the standard model. On this basis, this paper proposes an AICP algorithm, using the Kalman filter model to predict the transformation of the current profile through the recursion of the adjacent continuous profiles and then calculating the average distance between each part of point cloud and the standard point cloud under this transformation parameter and, at last, choosing the corresponding optimal transformation parameter by evaluating these average distances. The specific steps are:

Rail Defect Detection

22As shown in Figure 6, after being processed by AICP, the point set registration accuracy is down to the sub-millimeter level. It is easy to locate the candidate defective area accurately by comparing the deviation of registered rail surface profile and the standard model with the given threshold. By combining the continuous defective profiles together, the candidate defect points are merged into candidate defect regions. The minimum circumscribed rectangle and center of each defect region are calculated for the using the k-means clustering, which connects the small defect region with large defect area and clusters the defect regions with similar characteristic together. At last, the location, shape, depth, length, width, gradient, minimum circumscribed rectangle and other geography characteristics can be calculated. The specific steps are: According to the process above, Step 3 defines a depth threshold τ D , which is an empirical value. For rails in service, their head parts have more or less abrasion, so τ D is necessary to highlight serious defects and is mainly determined by rail service time. In this step, τ D takes a value of 1 mm on the rail head and 0.5 mm on the rail bottom.

23Step 4 obtains many small defects. In this step, the location, depth, length, width, gradient, minimum circumscribed rectangle can be figured out.

24Step 5 connects some defects together to provide regional characteristics, for example the center, radius, maximum class separation distance, minimum class separation distance, and so on. All of these characteristics help to achieve defect detection and provide effective information for defect classification.

Rail Defect Classification

25According to the discussion above, different defects have different characteristics. In general, the train wheel contacts and rubs against the rail head, which causes abrasion, corrugation, scratch and peeling. Therefore, the corrosion on the rail bottom could be distinguished by position, but corrosion on the rail head is still mixed with other defects. As we know, the friction will cause the rail head (the part contacting the train wheel) to be lower than the standard rail model, then the depth deviation for the rail model is positive. The other way around, the corrosion on the rail head will return to a negative depth deviation, which differentiates the rail head corrosion from the other four defects. Among the four classes of defect, abrasion and corrugation have a smooth profile, but scratching and peeling have sharp edges, so the difference is reflected in the gradient. Abrasion and corrugation can be distinguished by wave peaks and wave troughs. Scratching is always long and narrow, that is to say the length-width ratio is bigger than peeling. Based on these judgments, the decision tree (DT) [45][46][47] is adopted to classify the defect and constructed as follows in Figure 7.

Experiments and Results

26The 3D-LPS is jointly developed by Wuhan University and Shenzhen University. In order to verify its performance, a series of experiments indoors and outdoors is performed. Some of the experimental environment is shown in Figure 8. The parameters of each sensor are selected as: the odometer installation wheel circumference is 500 mm, and the odometer's frequency is 500 Hz, which means the odometer will output a pulse every 1 mm. The pulse triggers the laser scanner to capture a profile. Eight hundred points are sampled on one profile. The accuracy in the width direction is 0.3 mm and in the height direction is 0.01 mm. The IMU has an attitude accuracy of 0.02 • and an azimuth accuracy of 0.05 • . The platform moves at a speed of about 1.5 m/s. In order to evaluate the accuracy of the calibration, The static collected dataset Data 1 is constructed to verify the unilateral and bilateral precision, respectively. For the purpose of verifying the matching effect of the proposed AICP algorithm, the dynamic collected dataset Data 2 is constructed to compare with ICP in terms of iteration times, calculation time, bias after registration and the matching accuracy. In order to verify the effectiveness of the defect detection algorithm, an indoor short-range defective marker dataset Data 3 is constructed to compare the recognition results with the ground truth results. An outdoor long-range rail defect dataset Data 4 is collected to compare the classification results with the results obtained by human vision.

System Calibration Accuracy Verification

27Data 1 is used to verify the accuracy of system calibration. The calibration is a critical component of a measurement system [48]. For the Wuhan high-speed rail, ten groups of rail surface profiles are obtained in different sleepers, and the gauge of the sleeper is measured by a gauging rule. The rail with a specification of 60 kg/m is used, and it has a standard gauge of 1435 mm. Under the calibration parameters, we calculate the average distance D HM between the rail head surface profile and the standard rail model, the average distance D BM between the rail bottom surface profile and the standard rail model to evaluate the calibration accuracy of unilateral laser sensor and the IMU center. We calculate the gauge of the left rail profile and the right rail profile G P and compare it with the gauge measured by the gauging rule to evaluate the calibration accuracy of the left laser sensor and the right laser sensor. The results are shown in Table 1.

28It can be seen from the results that, under the calibration parameters, the rail profiles measured in different places on the rail are well coincident with the standard rail model. From Table 1, the deviation between the gauge calculated under the calibration parameter and the gauge measured by the gauging rule proves the accuracy of the system calibration. The average distance between the rail head surface profile and the standard rail model is about 1-2 mm, which is larger than the average distance between the rail bottom surface profile and the standard rail model. This is reasonable because the rail used in the experiment has only been in service for a short time, and the rail head has a slightly abrasion, while the right side rail head has a deeper abrasion than the left side. Meanwhile, the inner side of the rail was abraded more seriously. Even with the above complications, the system calibration still achieves an accuracy of sub-millimeters.

Comparison of AICP with ICP

29Data 2 is used to verify the efficiency and effectiveness of the AICP algorithm. For Shenzhen Metro Line 1, a 400 m-long rail is profiled dynamically, and four typical rail sections are selected. The first section has very few defects. The second section has some defects on the rail head. The third section has some defects on the rail bottom. The forth section has some defects on both the rail head and the rail bottom. We choose 1000 profiles for each section manually and compute the statistics value to study the difference. The result is listed in Table 2. The iteration times IT, the calculation time CT, the total calculation time TT, the accuracy rate of registration AR and the average distance D of the ICP and AICP are calculated, which are listed in Table 2. In Table 2, the unit for CT and TT is seconds, and the unit for D is millimeters; the subscript F denotes the full rail profile; H denotes the head part; and B denotes the bottom part.

30Some examples are shown in Figure 9, where the black point set denotes the standard rail model, the blue point set denotes the full rail profile ICP matching result, the green point set denotes the results of rail head part in ICP matching, the cyan point set denotes the results of the rail bottom part in ICP matching and the red point set denotes the AICP algorithm matching results. As shown in the "TT" column of Table 2, the AICP algorithm is faster than the ICP algorithm. In Group 1, the measured profiles have a few defects as shown in Figure 9a, and the results of ICP are similar to AICP on both the rail head and the rail bottom, shown in the D columns. In Group 2, comparing the D H column and the D B column, we can see that if taking the rail head part as the reference, D H is much bigger, which indicates that there are defects on the rail head part, as shown in Figure 9b. From the blue parts, we can see that the rail head has an abrasion of about 1 mm. When taking the head part as the reference (the green part), the bottom part is obviously not correctly matched to the model bottom. In Group 3, comparing the D H column and the D B column, we can see that if taking the rail bottom part as the reference, D B is much bigger, which indicates that there are defects on the rail bottom part, as shown in Figure 9c. From the blue parts, we can see that there is corrosion on the rail bottom. When taking the bottom part as the reference (the cyan), the head part is obviously not correctly matched to the model head. In Group 4, evaluating the D H column and the D B column, we can see that if taking the rail head part as the reference, D H and D B are both much bigger, which indicates that there are defects on the both rail head part and the rail bottom part, as shown in Figure 9d, where the blue parts themselves do not match the model. Let us take the red part as the best matched transform; we can see that the rail head has abrasion on the top and the side, and the rail bottom has obvious changes from the rail model. In this case, the matching results of ICP with the rail head as the reference are bad, and the matching results with the rail bottom as the reference are totally wrong. From the comparison results, we can conclude that the proposed AICP is much faster and more effective than the ICP, and it brings good matching results in each case.

Rail Surface Defect Extraction

31Data 3 is used to evaluate the defect-extraction performance of the proposed algorithm. A 1.5-m rail is placed indoors, and 10 artificial defects are made. We measure and record the length and maximum depth of each defect with a micrometer. We scan all of the defects and repeat 10 times. We compare the defect length (that is, along the direction of rail extension) Len, the defect width (that is, perpendicular to the direction of rail extension) Wid and the maximum depth D max extracted by the 3D-LPS with the actual length Length, actual width Width and the actual maximum depth Depth measured by human workers. In this procedure, the k-means clustering algorithm takes k = 5 to divide the defective region every 100 profiles (100 mm long). The center of the longest continuous defective region is chosen to be the original cluster center; thus, two cluster centers (one on the rail top and the other on the rail bottom) can be quickly computed. The other three centers are randomly chosen outside of these two continuous regions. In this way, the computation time is proven to be greatly shortened. The results are shown in Table 3. As shown in Table 3 Figure 10d. Experimental results show that the proposed algorithm is very sensitive to defects with an obvious change in depth and can locate the defects accurately with a millimeter length accuracy and a sub-millimeter depth accuracy. To be more exact, the system can recognize defects with length (along the direction of the rail extension) larger than 2 mm, width (perpendicular to the direction of the rail extension) larger than 0.6 mm and depth larger than 0.5 mm. The algorithm is less sensitive to changes in length, and the defect area detected is larger than the ground truth. This is mainly because the defect depth of the edge area is too small (sub-millimeter level) to be observed by human vision. In summary, the proposed algorithm is effective at detecting defects with an obvious change in depth.

Result of Defect Classification

32Data 4 is used to validate the defect classification accuracy of the 3D-LPS. For the Wuhan high-speed rail, Shenzhen Metro Line 1 and indoor rail, 450 defects (150 abrasion, 80 corrugation, 50 scratch, 120 corrosion, 50 peeling) are collected as a dataset to validate the accuracy of the classification module. The rail defects are extracted from the rail surface point cloud and classified into five categories: abrasion, corrugation, scratch, corrosion and peeling. The ground-truth types of the defective area are identified by human eyes in the point cloud using the visualization software CloudCompare. The results are shown in Table 4. Table 4 shows the confusion matrix of the classification results obtained by our decision tree classifier (DT). The confusion matrix is used to evaluate the classification accuracy and reliability.

33From Table 4, we can see that 422 (141 + 74 + 43 + 120 + 44) defects are correctly classified, which denotes an overall accuracy of 93.78%. The corrosion classification accuracy is up to 100%, which is because the position (head or bottom) and depth deviations (positive or negative) are accurate and unique. The abrasion and corrugation are less correctly classified. A possible reason is that the choice of the depth deviation threshold is not robust enough. The scratching and peeling are two types that are easily confused (two scratches incorrectly classified as peeling and three peelings as scratches) due to the fact that the gradient threshold is hard to set. Another important reason for incorrect classification is that some defects are the mixture of multiple types of defects. For example, scratching or peeling can exist in abrasion or corrugation (in this test, 11 scratches and nine peelings coexist with abrasion and corrugation, but 5 scratches, 3 peelings and 3 abrasions are classified incorrectly, the miss-classification ratio coming from coexisting defects is up to 55%), and we will try to solve this problem in our future work. Overall, the experimental results show that the proposed classification algorithm is effective and reliable.

Conclusions

34This paper introduced a 3D laser profiling system for rail surface defect detection to acquire rail surface's depth data accurately and efficiently and proposed an AICP algorithm based on the Kalman filter model. The improved ICP algorithm takes into account the characteristics that the attitude of adjacent profiles changes smoothly and slowly, and the initial value of ICP for the current profile is predicted by the adjacent continuous profiles, which greatly improves the convergence speed. On the other hand, partly registration was calculated to select the optimal registration parameters, and the Kalman filter model was adopted to update the final optimal registration parameters, which solves the problem of the wrong match in the ICP algorithm. Using the proposed AICP algorithm, the registration achieved an accuracy of sub-millimeters and made possible the accurate location of defects. In addition, the k-means algorithm was employed to cluster the defects and extract the characteristics of each defect area, based on which a decision tree classifier was applied to identify the type of rail surface defect. The experimental results showed that the proposed algorithm can register the rail surface profile with the standard rail model quickly and accurately and locate the defect area correctly, as well as achieving a good performance on defect classification. In our future work, we will try other learning algorithm, such as SVM [49,50], to train the classifier to further improve the classification accuracy.

참고문헌 43건

  1. ViSyR: a Vision System for Real-Time Infrastructure Inspection 2007 10.5772/4985
  2. Defect detection in textured materials using Gabor filters IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2002 10.1109/28.993164
  3. A new damage detection technique based on wave propagation for rails International Journal of Solids and Structures · Elsevier BV · 2005 10.1016/j.ijsolstr.2005.05.006
  4. Noncontact Ultrasonic Guided Wave Detection of Rail Defects Transportation Research Record Journal of the Transportation Research Board · SAGE Publishing · 2009 10.3141/2117-10
  5. High-speed inspection of rails using ACFM techniques NDT & E International · Elsevier BV · 2009 10.1016/j.ndteint.2008.12.008
  6. Three-dimensional point cloud registration by matching surface features with relaxation labeling method Experimental Mechanics · Springer Nature · 2005 10.1007/bf02428992
  7. Modeling guided wave propagation with application to the long-range defect detection in railroad tracks NDT & E International · Elsevier BV · 2004 10.1016/j.ndteint.2004.10.008
  8. Laser-Air-Coupled Hybrid Noncontact System for Defect Detection in Rail Tracks Status of FRA Prototype Development at University of California-San Diego Transportation Research Record Journal of the Transportation Research Board · SAGE Publishing · 2006 10.3141/1943-08
  9. New extension of the Kalman filter to nonlinear systems Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 1997 10.1117/12.280797
  10. A performance evaluation test for laser line scanners on CMMs Optics and Lasers in Engineering · Elsevier BV · 2008 10.1016/j.optlaseng.2008.06.001
  11. Structural indexing: efficient 3-D object recognition IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1992 10.1109/34.121785
  12. Decision tree classification of land cover from remotely sensed data Remote Sensing of Environment · Elsevier BV · 1997 10.1016/s0034-4257(97)00049-7
  13. A novel method for round steel measurement with a multi-line structured light vision sensor Measurement Science and Technology · IOP Publishing · 2010 10.1088/0957-0233/21/2/025204
  14. Automatic Fastener Classification and Defect Detection in Vision-Based Railway Inspection Systems IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2013 10.1109/tim.2013.2283741
  15. Guided wave inspection potential of defects in rail NDT & E International · Elsevier BV · 2003 10.1016/j.ndteint.2003.04.001
  16. A method for registration of 3-D shapes IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1992 10.1109/34.121791
  17. Rail flaw detection: overview and needs for future developments NDT & E International · Elsevier BV · 2003 10.1016/j.ndteint.2003.06.002
  18. 3D vision inspection for internal surface based on circle structured light Sensors and Actuators A Physical · Elsevier BV · 2005 10.1016/j.sna.2005.04.012
  19. A Real-Time Visual Inspection System for Discrete Surface Defects of Rail Heads IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2012 10.1109/tim.2012.2184959
  20. An assessment of the effectiveness of decision tree methods for land cover classification Remote Sensing of Environment · Elsevier BV · 2003 10.1016/s0034-4257(03)00132-9
  21. Optical high-precision three-dimensional vision-based quality control of manufactured parts by use of synthetic images and knowledge for image-data evaluation and interpretation Applied Optics · Optica Publishing Group · 2002 10.1364/ao.41.002627
  22. A Review of Recent Advances in Surface Defect Detection using Texture analysis Techniques ELCVIA Electronic Letters on Computer Vision and Image Analysis · Computer Vision Center Press · 2008 10.5565/rev/elcvia.268
  23. On the Foundations of Relaxation Labeling Processes IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1983 10.1109/tpami.1983.4767390
  24. Aligning Arbitrary Surfaces using Pairwise Geometric Histograms Springer eBooks · Springer Nature · 1998 10.1007/978-1-4471-1597-7_16
  25. A Multi-class SVM Classifier Utilizing Binary Decision Tree Informatica · IOS Press · 2009
  26. Fusion of WiFi, Smartphone Sensors and Landmarks Using the Kalman Filter for Indoor Localization Sensors · Multidisciplinary Digital Publishing Institute · 2015 10.3390/s150100715
  27. A review of recent range image registration methods with accuracy evaluation Image and Vision Computing · Elsevier BV · 2006 10.1016/j.imavis.2006.05.012
  28. Efficient Calibration of a Laser Dynamic Deflectometer IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2013 10.1109/tim.2013.2240932
  29. Defect detection in textured materials using optimized filters IEEE Transactions on Systems Man and Cybernetics Part B (Cybernetics) · Institute of Electrical and Electronics Engineers · 2002 10.1109/tsmcb.2002.1033176
  30. The dual-bootstrap iterative closest point algorithm with application to retinal image registration IEEE Transactions on Medical Imaging · Institute of Electrical and Electronics Engineers · 2003 10.1109/tmi.2003.819276
  31. LIBSVM ACM Transactions on Intelligent Systems and Technology · Association for Computing Machinery · 2011 10.1145/1961189.1961199
  32. White Blood Cell Segmentation by Color-Space-Based K-Means Clustering Sensors · Multidisciplinary Digital Publishing Institute · 2014 10.3390/s140916128
  33. An efficient k-means clustering algorithm: analysis and implementation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2002 10.1109/tpami.2002.1017616
  34. Surface signatures: an orientation independent free-form surface representation scheme for the purpose of objects registration and matching IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2002 10.1109/tpami.2002.1023806
  35. Free-form surface registration using surface signatures 1999 10.1109/iccv.1999.790402
  36. A fast iterative nearest point algorithm for support vector machine classifier design IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 2000 10.1109/72.822516
  37. Rail defect diagnosis using wavelet packet decomposition IEEE Transactions on Industry Applications · Institute of Electrical and Electronics Engineers · 2003 10.1109/tia.2003.816474
  38. Local Pattern Collocations Using Regional Co-occurrence Factorization IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2016 10.1109/tmm.2016.2619912
  39. Robust Gait Recognition by Integrating Inertial and RGBD Sensors IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcyb.2017.2682280
  40. Composite real-time image processing for railways track profile measurement IEEE Transactions on Instrumentation and Measurement · Institute of Electrical and Electronics Engineers · 2000 10.1109/19.850395
  41. An improved Otsu method using the weighted object variance for defect detection Applied Surface Science · Elsevier BV · 2015 10.1016/j.apsusc.2015.05.033
  42. Filter-based feature selection for rail defect detection Machine Vision and Applications · Springer Science+Business Media · 2004 10.1007/s00138-004-0148-3
  43. Laser–Air-Coupled Hybrid Noncontact System for Defect Detection in Rail Tracks Transportation Research Record Journal of the Transportation Research Board · SAGE Publishing · 2006 10.1177/0361198106194300108