Next Article in Journal
Distributed Channel Allocation and Time Slot Optimization for Green Internet of Things
Next Article in Special Issue
A Miniaturized Nickel Oxide Thermistor via Aerosol Jet Technology
Previous Article in Journal
Inverse Source Data-Processing Strategies for Radio-Frequency Localization in Indoor Environments
Previous Article in Special Issue
Linear Extended State Observer-Based Motion Synchronization Control for Hybrid Actuation System of More Electric Aircraft
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Road Lane Detection Robust to Shadows Based on a Fuzzy System Using a Visible Light Camera Sensor

Division of Electronics and Electrical Engineering, Dongguk University, 30 Pildong-ro 1-gil, Jung-gu, Seoul 100-715, Korea
*
Author to whom correspondence should be addressed.
Sensors 2017, 17(11), 2475; https://doi.org/10.3390/s17112475
Submission received: 22 August 2017 / Revised: 21 October 2017 / Accepted: 25 October 2017 / Published: 28 October 2017
(This article belongs to the Special Issue Mechatronic Systems for Automatic Vehicles)

Abstract

:
Recently, autonomous vehicles, particularly self-driving cars, have received significant attention owing to rapid advancements in sensor and computation technologies. In addition to traffic sign recognition, road lane detection is one of the most important factors used in lane departure warning systems and autonomous vehicles for maintaining the safety of semi-autonomous and fully autonomous systems. Unlike traffic signs, road lanes are easily damaged by both internal and external factors such as road quality, occlusion (traffic on the road), weather conditions, and illumination (shadows from objects such as cars, trees, and buildings). Obtaining clear road lane markings for recognition processing is a difficult challenge. Therefore, we propose a method to overcome various illumination problems, particularly severe shadows, by using fuzzy system and line segment detector algorithms to obtain better results for detecting road lanes by a visible light camera sensor. Experimental results from three open databases, Caltech dataset, Santiago Lanes dataset (SLD), and Road Marking dataset, showed that our method outperformed conventional lane detection methods.

1. Introduction

Detecting road lane markings is an important task in autonomous vehicles [1,2,3]. Most recent algorithms for lane detection are vision-based. Images captured from various types of cameras such as visible light camera sensors are processed to extract all meaningful feature data such as edges, lane orientation, and line boundaries, and they are combined with the distance information measured by radar sensors. A vision-based system requires camera calibration before operating, good environmental situations and road conditions, and high processing speed to detect lane boundaries in real time to match the speed of the vehicles. Therefore, most of the methods based on handcrafted features propose three main steps of processing [1,4,5,6,7]: (1) pre-processing: enhancing illumination of the original image captured from the camera; (2) main-processing: extracting features of road lane markings such as edges, texture, and color; and (3) post-processing: removing outliers or clustering detected line segments.
Unlike traffic signs, severe shadows can exist on road lanes, and this factor leads to challenging problems for automatic recognition and classification of road lanes. For example, owing to the effect of overly bright or overly dark illuminations, a solid lane can be divided into smaller units; therefore, it can be falsely recognized as a dashed lane [6]. Therefore, we propose a method of road lane detection by using a fuzzy inference system (FIS) to overcome the effect of shadows on input images. Detailed explanations of previous approaches are provided in the Section 2.

2. Related Works

Previous research on road lane detection used visible light and night-vision cameras, or combinations of the two, to enhance the accuracy. Previous studies on camera-based lane detection can be classified into model-based and feature-based methods. The first approach uses the structure of the road to create a mathematical model to detect and track road lane named model-based methods. A popular mathematical model is B-splines [4,8,9,10,11]; this model can form any arbitrary shape using a set of control points. Xu et al. detected road lanes based on an open uniform B-spline curve model and maximum deviation of position shift (MDPS) method to search control points, but the method resulted in a large deviation, and, consequently, it could not fit the road model for the case when the road surface was not level [8]. Li et al. adopted an extended Kalman filter with a B-spline curves model for continuous lane detection [9]. Truong et al. [4] combined the vector-lane-concept and non-uniform B-splines (NUBS) interpolation method to construct the left and right boundaries of road lanes. On the other hand, Jung et al. used the linear model to fit the near vision field, while the parabolic model was used to fit the far field to approximate lane boundaries in video sequences [12]. Zhou et al. presented a lane detection algorithm based on a geometrical model and the Gabor filter [13]. However, they assumed the road in front of the vehicle was approximately planar and marked, which is often correct on the highway and freeway; and the geometrical model built in this research required four parameters: starting position, lane orientation, lane width, and lane curvature. In previous research [14], Yoo et al. proposed a lane detection method based on gradient-enhancing conversion to guarantee an illuminating-robust performance. In addition, an adaptive Canny edge detector, a Hough transformation (HT), and a quadratic curve model are used in their method. Li et al. adopted an inverse perspective mapping (IPM) model to locate a straight line in an image [15]. The IPM model was also used in [5,15,16,17,18]. Chiu et al. proposed a lane detection method based on color segmentation, thresholding, and fitting the model of a quadratic function [19].
These methods start with the hypothesis of the road model, and then match the edge with the road structure model. They only use a few parameters to model the road structure. Therefore, the performance of lane marking detection is affected by the accurate definition of mathematical model, and the key problem is how to choose and fit the road model. That is why these methods work well only when they are fed with complete initial parameters of the camera or the structure of the road.
As the second category, feature-based methods or handcrafted feature-based methods have been researched to address this issue. These methods extract features such as edges, gradient, histogram and frequency domain features to locate lane markings [6,20,21,22,23,24,25,26,27]. The main advantages are that this approach is not sensitive to the structure of road, model, or camera parameters. However, these feature-based methods require a noticeable color contrast between lane markings and road surface, as well as good illumination conditions. Therefore, some works perform a variety of color-space transformations to hue, saturation, and lightness (HSL), and luminance, chroma blue, and chroma red (YCbCr) to address this issue. In addition, others use the original red, green, and blue (RGB) image. In previous research, Wang et al. [25] combined the self-clustering algorithm (SCA), fuzzy C-mean, and fuzzy rules to enhance lane boundary information and to make it suitable for various light conditions. At the beginning of their process, they converted the RGB image into that in YCbCr space so that the illumination component can be maintained, because they only required monochromatic information of each frame for processing. Sun et al. [28] introduced the method that converts the RGB image into that in the HSI color model, and applied fuzzy C-mean for intensity difference segmentation. These methods worked well when road and lane markings produced separate clusters; however, the intensity values of the road surface and road lanes are often classified into the same cluster, and, consequently, the fundamental issue of the color lane and road lanes being converted into the same value is not resolved. Although it belongs to the model-based approach, a linear discriminant analysis (LDA)-based gradient-enhancing method was introduced in the research of Yoo et al. [14] to dynamically generate a conversion vector that can be adapted for range illumination and different road conditions. Next, they achieved optimal RGB weights that maximize gradients at lane boundaries. However, their conversion method cannot work well in a case of extremely different multi-illumination conditions. This is because they assumed that multiple illuminations are not included in one scene. Wang et al. [18] simply used the Canny edge detector and HT to obtain the line data, then created the filter conditions according to the vanishing point and other location features. First, their algorithm saved the detected lane and vanishing points in near history, then clustered and integrated to determine the detection output based on the historical data; and finally, a new vanishing point was updated for the next circuit. Convolutional neural network (CNN)-based lane detection with the image captured by camera (laterally-mounted camera) at the side mirror of the vehicle was proposed [22]. In previous research [6], the authors proposed a method for road lane detection that distinguishes between dashed and solid lanes. However, they used the predetermined region-of-interest (ROI) without the detection of the vanishing point, and used the line segment detector whose parameters were not adaptively changed according to the shadows on the road image. Therefore, their performances of road lane detection were affected by the shadows on the images.
As previously mentioned, these feature-based methods or handcrafted features-based methods work well only under visible and clear road conditions where the road lane markings can be easily separated from the ground by enhancing the contrast and brightness of the image. However, they have the limitations of detecting correct road lane in case of severe shadows from objects, trees or buildings. To address this issue, we propose a method to overcome poor illumination problems to get better results of detecting a road lane. In the following four ways, our research is novel compared to previous research.
-
First, to evaluate the level of shadows in the ROI of the road image, we use two features as the inputs for FIS: hue, saturation, and value (HSV) color difference based on local background area (feature 1) and gray difference based on global background area (feature 2). Two features from different color and gray space are used for FIS to consider the characteristics of shadow in various color and gray spaces.
-
Second, using FIS based on these two features, we can estimate the level of shadows depending on the output of FIS after the defuzzification process. We modeled the input membership functions based on the training data of two features and maximum entropy criterion to enhance the accuracy of FIS. The procedure of intensive training which is required in training-based method such as neural network, support vector machine, and deep learning is not necessary for using FIS.
-
Third, by adaptively changing the parameters of the line segment detector (LSD) and CannyLines detector algorithms based on the output of FIS, more accurate line detection can be possible based on the fusion of the detection results by LSD and CannyLines detector algorithms, irrespective of severe shadows on the road image.
-
Previous researches did not discriminate the solid and dashed lanes in the detected road lanes although it is necessary for autonomous vehicle. However, even the solid and dashed lanes are discriminated (including the detection of starting and ending positions of dashed lanes) in the detected road lanes by our method.
In Table 1, we show the summarized comparisons of the proposed and existing methods.
The remainder of this paper is organized as follows: in Section 3, our proposed system and methodology are introduced. In Section 4, the experimental setup is explained and the results are presented. Section 5 presents both our conclusions and discussions on ideas for future work.

3. Proposed Method

3.1. Overview of Proposed Method

Figure 1 depicts the overall procedure for our method. The input image is captured by the frontal-viewing camera, and has various sizes (640 × 480 pixels or 800 × 600 pixels). In order to reduce computational complexity as well as noise, ROI for lane detection is automatically defined based on the detected vanishing point from the input image only in case that the correct vanishing point is detected (see the condition of Figure 1 in Section 3.2). If it fails to detect the correct vanishing point, the predetermined ROI is empirically defined. Next, by using two input features such as HSV color difference based on local background area (feature 1) and gray difference based on global background area (feature 2), FIS outputs the level of shadow in the current selected ROI image. Based on the FIS output value, the parameters for line segment detector algorithms are changed adaptively to enhance the accuracy of line detection. Next, three steps focus on eliminating invalid line segments based on the properties of road lanes, such as angle and vanishing point, and the correct left and right boundaries of road lanes are finally detected. We detail each step in the next sections.

3.2. Detect Vanishing Point and Specify ROI

In the first step, the vanishing point is detected and the ROI where the road lane is detected is automatically defined in the input image only in case that the correct vanishing point is detected. If it is failed to detect the correct vanishing point, the ROI is empirically defined. By performing the road lane detection within the ROI instead of the whole image, various noises in the captured image by the frontal-viewing camera as shown in Figure 2, can be reduced in the procedure of lane detection. In addition, the effect of environmental conditions such as sunshine, rain, or extreme weather conditions can be lessened in the case using ROI compared to that using the whole image.
In general, the vanishing point is considered one of the most important keys to retaining a valid road lane, because road lanes are assumed to converge at one point within the captured image. As shown in Figure 2, lane markings always appear within the lower part of the image, but this depends on each camera configuration, and the input image can also include other objects (e.g., car hoods in Figure 2b–f).
The vanishing point is detected as follows [24]: Left and right road lane markings usually appear like two sides of a trapezoid based on the perspective projection of the frontal-viewing camera. Therefore, we can assume that all left and right lane boundaries can converge at one point called the vanishing point. First, line segments are detected by algorithms called LSD [32,33] and CannyLines [34] using consistent texture orientation. Let S = { s 1 ,   s 2 ,   ,   s k } be the set of line segments extracted from image. Each line segment s i , ( i = 1 ,   2 ,   , k ) is defined as:
s i = { x 1 i ,   y 1 i ,   x 2 i ,   y 2 i , θ i } ,   ( i = 1 ,   2 ,   , k )
where ( x 1 i ,   y 1 i ) and ( x 2 i ,   y 2 i ) are the coordinates of the starting point and the ending point of line segment s i , respectively. θ i is the angle of line segment s i . Next, we define the length of line segment ith ( l e n i ) as the length weight ( W L ). The longer line segment represents more pixels in the same direction, as well as a higher voting weight which increases the voting score. Second, Gaussian weight is calculated in Equation (2) [24]. In the voting space image, we not only consider the intersected point between two line segments, but also its 5 × 5 neighboring points. Based on Gaussian distribution, those involved points have different values to make the lines vote more smoothly, and thus improve the accuracy of the detection of the vanishing point:
W G ( x , y ) = exp ( x 2 + y 2 2 σ 2 )
where the candidate vanishing point ( x , y ) is computed in the neighborhood space 5 × 5 matrix, 2 x ,   y 2 ,   σ = 1.5 . In Equation (2), (x, y) is the candidate vanishing point. Because there can be errors in the detected (x, y) position just based on line segments, the neighborhood space of 5 × 5 pixels based on the (x, y) is also considered by using Gaussian distribution. By using the weight of Gaussian distribution, the less weight is assigned to the position (of candidate vanishing point) far from (x, y) when determining the final vanishing point as shown in Equation (3). In addition, the less weight is given to the position (of candidate vanishing point) which is determined based on shorter line segment ( W L ) as shown in Equation (3). The score of the current selected pixel is then calculated as follows:
I ( x , y ) s c o r e = W L + W G ( x , y )
Finally, we create a matrix space which is the same size as the input image and initialized to 0. Next, we update the score of each element in the matrix that corresponds to each pixel in the input image by adding I ( x , y ) s c o r e into the current value at the same position. Here, ( x , y ) is coordinate of current element in matrix and it is also a coordinate of current selected pixel in input image. The point that has the largest value is considered the vanishing point [24].
Figure 3b shows examples of detecting the vanishing point and defined ROI based on the vanishing point. Incorrect vanishing point caused by the car hood can be removed, and correct one is obtained, which produce the correct ROI as shown in Figure 3b. In addition, although incorrect line segments can be generated by shadows, the voting methods considering the Gaussian function-based weight and the length weight of line segment as shown in Equations (2) and (3) can prevent the detection of incorrect vanishing point by the incorrect line segments by shadows as shown in Figure 3b.
In order to prevent an incorrect ROI caused by inaccurate detection of the vanishing point, the y position of the vanishing point is compared to the upper y position of the predetermined ROI of Figure 3a (which is manually determined according to the database). If the difference between these two y positions is larger than the threshold (30 pixels), the predetermined ROI is used for lane detection, assuming that detection of the vanishing point fails. The diagram of these procedures are shown in Figure 4. In next Section 3.3 and Section 3.4, we would explain the method of extracting features 1 and 2 as the inputs to FIS to measure the level of shadows.

3.3. Calculating Feature 1 (HSV Color Difference Based on Local Background Area)

Figure 5 shows the flowchart for determining shadow for feature 1. As the first step of Figure 5, the ROI of RGB color space is converted to that of HSV color space [35]. In the HSV color space, the V component is a direct measure of intensity. Pixels that belong to shadow should have a lower value of V than those in the nonshadow regions, and the hue (H) component of shadow pixels changes within a certain limited range. Moreover, shadow usually lowers the saturation (S) component. In conclusion, a pixel p is considered to be part of shadow if its value is satisfactory with the following three equations [36]:
t h r V a l p h a I p V B p V t h r V b e t a
I p S B p S t h r S
| I p H B p H | t h r H
where I p E and B p E represent the specific channel of HSV color space (E = H, S, and V, respectively) for the pixel p in the current input image (I) and in the background ROI (B) (blue boxes of Figure 6a,c,e), respectively. The values t h r V a l p h a ,   t h r V b e t a ,   t h r S ,   and   t h r H represent the threshold values, and these values are respectively 0.16, 0.64, 100, and 100. These optimal values were empirically determined by experiments with training data. It is unnecessary to recalculate the thresholds even if the camera is modified. In our experiment of Section 4, we used same thresholds with three different databases where the different cameras were used. Among these thresholds, those which affect shadow detection most are t h r V a l p h a and t h r V b e t a , because t h r V a l p h a is used to define a maximum threshold for the darkening effect of shadows on the background pixel, whereas t h r V b e t a prevents the system from incorrectly identifying the too dark (nonshadow) pixels as shadow pixels [37].
From the ROI of Figure 3, the ROI for lane detection is reduced by removing the left and right upper areas of the images as shown in Figure 6a,c,e to extract the features used as the input to FIS. Figure 6b,d,f shows the binarization image of extracted shadow within these ROIs based on Equations (4)–(6) and Figure 5. Thus, the average number of shadow pixels in this ROI is calculated as feature 1 in our research.

3.4. Calculating Feature 2 (Gray Difference Based on Global Background Area)

Figure 7 shows the flowchart for determining shadow for feature 2. While feature 1 is calculated in HSV color space, feature 2 is calculated in gray image to consider the characteristics of shadow in various color and gray spaces. Two thresholds for lower and upper bound threshold t h r l o w and t h r h i g h are determined to calculate feature 2. According to the kinds of experimental databases, the threshold values are a little changed, and the ranges of these two thresholds are 16~17 and 48~50, respectively. These ranges of optimal thresholds were empirically determined by experiments with training data. Next, the mean value of all pixels whose value is in the range from t h r l o w to t h r h i g h is calculated as μ m e a n . For example, there are four pixels inside the ROI of Figure 8, and their pixel values (gray levels) are 20, 15, 33, and 40, respectively. Because three pixels of 20, 33, and 40 (except for 15) belong to the range from t h r l o w to t h r h i g h , μ m e a n is calculated as 31((20 + 33 + 40)/3). Finally, the pixel (x, y) which satisfied the condition of Equation (7) is determined as shadow:
| I ( x , y )   μ m e a n | t h r m e d i u m
where I ( x , y ) is the pixel value at coordinate x and y in the ROI for lane detection of Figure 8a,c; and the optimal threshold ( t h r m e d i u m ) was also empirically determined by experiments with training data. According to the kinds of experimental databases, the threshold value is a little changed, and the range of this threshold is 24~26, respectively. Next, the average number of shadow pixels in this ROI is calculated as feature 2 in our research.
According to the position of camera, the detected position of vanishing point can be changed in the input image and the consequent ROI of Figure 8 can be also changed, which can influence the threshold values of Figure 7. However, the changes of threshold values are not large as explained above, and for the experiments of Section 4, we used the similar threshold values in three different databases of the Caltech dataset, Santiago Lanes Dataset (SLD), and Road Marking dataset where the positions of cameras are different.

3.5. Designing Fuzzy Membership Functions and Rule Table

For the next step, our method measures the level of shadow included in the ROI by using FIS using two features (features 1 and 2) as inputs as shown in Figure 1. The range of each feature is represented from 0 to 1 by min-max scaling to use two features as inputs to FIS. The input values are separated into two classes (low (L) and high (H)) in the membership function. In general, there is an overlapped area between these two value classes, and we define the shape of the input membership function as a linear function. Linear membership functions have been widely adopted in the FIS because the algorithm is less complex and the calculation speed is very fast compared to the nonlinear membership function [38,39,40]. With the training data, we obtained the distributions of features 1 and 2, and based on maximum entropy criterion, we designed the input member ship functions as follows:
F L _ f e a t u r e   i ( x ) = { 1   for   0 x p L _ i a L _ i x + b L _ i   for   p L _ i x q L _ i 0   for   q L _ i x 1
F H _ f e a t u r e   i ( x ) = { 0   for   0 x p H _ i a H _ i x + b H _ i   for   p H _ i x q H _ i 1   for   q H _ i x 1
where a L _ i is 1/( p L _ i q L _ i ) and b L _ i   is q L _ i /( q L _ i p L _ i ). In addition, a H _ i is 1/( p H _ i q H _ i ) and b H _ i is q H _ i /( q H _ i p H _ i ). In Equations (8) and (9), i = 1 and 2, and F L _ f e a t u r e   i ( x ) is the L membership function of feature i, whereas F H _ f e a t u r e   i ( x ) is its H membership function. Next, we can obtain the following equations:
P r o b L _ f e a t u r e   i = x = 0 1 F L _ f e a t u r e   i ( x ) D i s t L _ f e a t u r e   i ( x )
P r o b H _ f e a t u r e   i = x = 0 1 F H _ f e a t u r e   i ( x ) D i s t H _ f e a t u r e   i ( x )
In Equations (10) and (11), i = 1 and 2. In addition, D i s t L _ f e a t u r e   i ( x ) is the L (data) distribution of feature i (nonshadow data of Figure 9), whereas D i s t H _ f e a t u r e   i ( x ) is the H (data) distribution of feature i (shadow data of Figure 9). Based on Equations (10) and (11), the entropy can be calculated as follows:
H ( p L i ,   q L i ,   p H i ,   q H i ) = P r o b L _ f e a t u r e   i log ( P r o b L _ f e a t u r e   i ) P r o b H _ f e a t u r e   i log ( P r o b H _ f e a t u r e   i )
where i = 1 and 2. Based on the maximum entropy criterion [41,42], the optimal parameters of ( p L _ i ,   q L _ i ,   p H _ i ,   q H _ i ) of feature i are calculated by being selected when the entropy H (   p L _ i ,   q L _ i ,   p H _ i ,   q H _ i ) is maximized. From this, the input membership functions of features 1 and 2 are defined as shown in Figure 9.
These membership functions are used to convert input values to a degree of membership. The output value of FIS is also described in the form of a linear function from the membership function to determine whether selected ROI contains more shadow or less. In our research, we designed the output membership function using three functions of low (L), medium (M), and high (H) as shown in Figure 10. We define the output fuzzy rule as “L” in the case when the level of shadow is close to 0 (minimum) and “H” when the level of shadow is close to 1 (maximum), as shown in Table 2. Thus, the optimal output value of FIS can be obtained using these output membership functions: the fuzzy rule table, and the combination of the defuzzification method with Min and Max rules.

3.6. Determining Shadow Score Based on Defuzzification Methods

Using the two normalized input features, four corresponding values can be calculated using the input membership functions as shown in Figure 11. Four functions are defined as g f 1 L ( · ) ,   g f 1 H ( · ) ,   g f 2 L ( · ) , and g f 2 H ( · ) . The corresponding output values of the four functions with input values of f1 (feature 1) and f2 (feature 2) are shown by   ( g f 1 L ,   g f 1 H )   and   ( g f 2 L , g f 2 H ) . For example, suppose that the two input values for f1 and f2 are 0.20 and 0.50, respectively, as shown in Figure 11. The values of ( g f 1 L ,   g f 1 H )   and   ( g f 2 L , g f 2 H ) are (0.80(L), 0.20(H)) and (0.00(L), 1.00(H)), respectively, as shown in Figure 11. With these values, we can obtain the following four combinations: (0.80(L), 0.00(L)); (0.80(L), 1.00(H)); (0.20(H), 0.00(L)); and (0.20(H), 1.00(H)).
With these four combinations, a value is selected by the Min or Max rule with the fuzzy rules in Table 2. In the Min method, the minimum value is selected from each combination, whereas the Max method selects the maximum value. For example, for (0.80(L), 1.00(H)), in the case of the Min rule, 0.80 is selected and M is determined (if “L” and “H,” then “M” as shown in Table 2). Finally, the obtained value is 0.80(M). In the case of the Max rule, 1.00 is selected with M, and the obtained value is 1.00(M). These obtained values are called “inference values” (IVs). Table 3 shows the obtained IVs by the Min or Max rule with the rule table of Table 2 from these four combinations of (0.80(L), 0.00(L)); (0.80(L), 1.00(H); (0.20(H), 0.00(L)); and (0.20(H), 1.00(H)).
Using four IVs, we can obtain the final output of FIS by one of the five defuzzification methods. In our research, we only consider five methods for defuzzification: first of maxima (FOM), last of maxima (LOM), middle of maxima (MOM), mean of maxima (MeOM), and center of gravity (COG) [38,43,44]. The FOM method selects the minimum value ( w 1 ) among the values calculated using the maximum IV (( I V 1 ( L ) and V 2 ( M ) of Figure 12a), LOM selects the maximum value ( w 3 ) among the values calculated using the maximum IV (( I V 1 ( L ) and I V 2 ( M ) ). The MOM gets the middle value of the weight value from FOM and LOM ( ( w 1 + w 3 ) / 2 ) , and MeOM gets the mean value ( ( w 1 + w 2 + w 3 ) / 3 ). The output of FIS obtained by the COG is w 5 as represented in Figure 12b, which is calculated from the COG of three regions ( R 1 ,   R 2 ,   and   R 3 ) . We compared the five defuzzification methods and used one method (COG) which shows the best performance. That is, w 5 is used as f u z z y s c o r e of the Equations (13) and (14) to adaptive change the parameters of LSD and CannyLines detector.

3.7. Adaptively Change Input Parameters for Line Segment Detector Algorithms

The obtained output of FIS in Section 3.6 represents the level of shadow in the input image, and then based on this output, the input parameters of line segment detector algorithms are changed adaptively, as shown in Equations (13) and (14). That is because more line segments are usually extracted from the boundaries of shadows in the case when the image including the larger level of shadows is compared to the image including the lesser level of shadows.
In this paper, we combine two robust line segment detection algorithms to efficiently detect road lane markings boundaries from an input image. They are called LSD algorithm [32,33] in OpenCV library [45] and CannyLines detector [34], which are applied into the ROI of the input image, sequentially. The LSD method has several parameters to control meaningful line segments as follows; and the scale is adjusted in our research because it affects line segment detection more than sigma_scale:
(1)
Scale ( α of Equation (13)): The scale of the image that is used to find the lines; its range is from 0 to 1. The 1 means that the original image is used for line segment detection. A smaller value shows that the image of a smaller size is used for line segment detection. For example, 0.5 means the image whose width and height are respectively half compared to those of the original image is used for line segment detection
(2)
Sigma_scale: Sigma value for Gaussian filter
Based on the output of FIS, we update the LSD parameter (scale) dynamically based on Equation (13). In this Equation, α 0 is the default scale (0.8) of the LSD parameter, and f u z z y s c o r e is the output of FIS, whose range is from 0 to 1. The image of larger f u z z y s c o r e means that the larger levels of shadows are included. Therefore, in this case, we use the smaller α for LSD, which means the image size is reduced for line segment detection. With the image of smaller size, the high frequency edges of the image disappear compared to that of larger size. Therefore, the line segments from the boundary of the shadow tends to be reduced:
α = ( α 0 + 0.2 ) f u z z y s c o r e
Most of the parameters of the CannyLines detector related to the input image are determined by the image itself. However, there are still some parameters which can be adjusted, and μ v is adjusted in our research because it affects line segment detection more than other parameters:
(1)
μ v : Denotes the lower limit of a gradient magnitude
(2)
θ s : Represents the minimal length of an edge segment to be considered for splitting and equals twice that of the possibly shortest edge segment
(3)
θ m : Represents the maximal direction deviation tolerance of two close-direction line segments to be considered for merging
Based on the output of FIS, the parameter of the CannyLines detector is also updated by Equation (14). The value μ 0 is the default value (70) of the lower limit of a gradient magnitude. As explained previously, the image of larger f u z z y s c o r e means that the larger levels of shadows are included. Based on Equation (14), consequently, μ v becomes larger. A larger μ v means that the higher limit of a gradient magnitude is used, which causes the reduction of the detected line segment by the CannyLines detector:
μ v = μ 0 · 10 · f u z z y s c o r e
As shown in Figure 13, through the adaptive adjusting of parameters of the LSD and CannyLines detector, we can find that the incorrect line segments are reduced in the result image.

3.8. Detecting Correct Lane Boundaries by Eliminating Invalid Line Segments Based on Angle and Vanishing Point

As shown in Figure 13b,d, there are still incorrect line segments after adaptively adjusting the parameters by the output of FIS. Therefore, in the next step, incorrect line segments are removed based on the characteristics of the road lane.
Because the car always operates between two road lanes, left and right road lane markings appear like two sides of a trapezoid in the image as shown in Figure 13. Therefore, only the left and right road lanes that satisfy the angle condition are maintained, regardless of their location [6]. In detail, we separate the ROI into two areas of left and right-side ROIs based on the middle position in the horizontal direction of ROI. That is, we decide that all line segments whose starting point has an x-coordinate of the range [0, W R O I 2 1 ] belong to the left side-ROI; whereas, all the others belong to the right-side ROI. Here, W R O I is the width of the ROI. Then, we define empirically the range of angle of the road lane for left side-ROI and right-side ROI as θ l e f t ( 25 ° 75 ° ) and θ r i g h t ( 105 ° 155 ° ) , respectively. Any line segments whose angle does not belong to these ranges ( θ l e f t ( 25 ° 75 ° ) and θ r i g h t ( 105 ° 155 ° ) ) are removed. As shown in Figure 14, incorrect line segments are removed after using the angle condition.
There are still incorrect line segments after using the angle condition as shown in Figure 15a,c,e. Therefore, we use the vanishing point condition to remove these line segments. As explained in Section 3.2, all left and right boundaries of road lane markings intersect at a point called the vanishing point. Once the vanishing point is detected, we can obtain its x and y coordinates as x v p and y v p . Next, we can calculate slope a and y-intercept b of each detected line segment, and calculate the linear equation of this straight line with x v p to get the y coordinate value. Finally, we compare the distance value between y v p and the y coordinate value by using the linear equation of a straight line with a certain threshold value as shown in Equation (15), and remove the line segments if this distance value exceeds a certain threshold value. Figure 15b,d,f shows the results by using the vanishing point condition:
| y v p ( a · x v p + b ) | t h r d i s t
In the case of a curved lane, the angle condition is not valid. For example, in Figure 16b the angle of the right lane of the upper region is similar to that of the left lane by the curved road. Therefore, the above angle condition is applied only in the middle and lower areas of ROI. In the upper area of ROI, the line segment whose angle is much different from that of the line segment detected below the region is removed. Detailed algorithms are referenced in [6].
However, in our research, the curved lanes are not detected correctly because of the vanishing point. This problem is depicted in Figure 16b. Based on the vanishing point condition, we only keep line segments that have an extension crossing the vanishing point; thus, we cannot detect the whole curved lane marking, but the part of the curved lane (of Figure 16b) can be removed by the vanishing point condition. To solve this problem, we apply the vanishing point condition only in the lower areas (below the violet line of Figure 16b) of ROI based on the detected vanishing point.
After eliminating the line segments according to angle and vanishing point conditions, multiple groups of line segments that belong to road lane markings remain. In this final step, we use methods similar to those that were used in [6] to combine small fragmented line segments into a single line. We define a 3 ° of angle difference and three of the Euclidean distance difference as the stopping conditions, which means that we concatenate any two adjacent lines that have smaller than 3 ° and three pixels of angle difference and the Euclidean distance difference, respectively.

4. Experimental Results

We tested our proposed method with various datasets as shown in Figure 17, Figure 18 and Figure 19. For the Caltech dataset, 1016 images were used, and the size of the image was 640 × 480 pixels [5]. For the Santiago Lanes Dataset (SLD), 1201 images with the size of 640 × 480 pixels were used [46]. In addition, the Road Marking dataset consists of various subsidiary dataset with more than 3000 frames captured under various illumination conditions, and the image size is 800 × 600 pixels [47,48]. These databases were collected at different times along the day. We performed the experiments on a desktop computer with Intel CoreTM i7 3.47 GHz, 12 GB memory of RAM, and the algorithm was implemented by Visual C++ 2015 and OpenCV library (version 3.1).
The ground-truth (starting and ending) positions of road lane markings were manually marked in the images to measure the accuracy of lane detection. Because our goal is to discriminate dashed and solid lanes in addition to lane detection, we manually detect the ground-truth point, and then compare it with detected starting and ending points with a certain interdistance threshold value to determine whether the detected line is correct or not.
In our method, we only consider whether the detected line segment is a lane mark or not, so negative data do not occur (i.e., ground-truth data of a non-lane), and true negative (TN) errors are 0% in our experiments. Other kinds of errors such as true positive (TP), false positive (FP), and false negative (FN) are defined and calculated to obtain precision, recall, and F-measure as shown in Equations (16)–(18) [49,50]. The number of TP, FP, and FN are represented as #TP, #FP and #FN, respectively:
Precision = # TP # TP + # FP
Recall = # TP # TP + # FN
F measure = 2 × Precision · Recall Precision + Recall
Table 4, Table 5 and Table 6 show the accuracies of our method with each dataset.
Figure 20 shows correct lane detection using our method with various datasets. In addition, Figure 21 shows some examples of incorrect detection results. In Figure 21a, our method incorrectly recognized non-road lane objects such as crosswalks, road-signs, text symbols, and pavement as lane markings. In those cases, there are no dynamic conditions to distinguish which one belongs to a road lane and which one belongs to non-road lane objects. In addition, Figure 21b shows the effect of shadows on our method. Although our method uses the fuzzy rule to determine the amount of shadow in the image to automatically change the lane detector parameter, it still fails in some cases where extreme illumination occurs.
In the next experiment, we compare the performance of our method with some other methods: the Hoang et al. method [6], Aly method [5], Truong method [4], Kylesf method [7] and Nan method [1]. In [6], the line segment was detected by the LSD algorithm to detect the road lane. However, in [6], the lane detection was performed within the smaller ROI compared to the ROI in our research, and the number of images including shadows is smaller than that in our research. Therefore, the accuracies of lane detection, even with the same database using the methods [6] in Table 7, are lower than those reported in [6]. Owing to the same reasons, the accuracies by the methods [4,5] reported in [6] are different from those in Table 7. In other methods, they converted the input image by IPM with HT [5,7] to detect a straight line, and the random sample consensus (RANSAC) algorithm [5] to fit lane makers. We empirically found the optimal thresholds for these methods [1,4,5,6,7]. As shown in Table 7 and Figure 22, our method outperforms previous methods. The reason why the accuracies by [1,4,5,7] are too low is that they did not detect the left and right boundaries of road lane, and did not discriminate the dashed and solid lanes. That is, their method did not detect the starting point and ending point of road marking as well as the left and right boundaries of road lane. Although the method [6] has these two functionalities, their method is more affected by the shadows in the image, and the accuracies by [6] are lower than ours. Moreover, this method [6] uses fixed ROI for detecting road lane and does not detect the vanishing point; thus, it generates more irrelevant line segments. That is why precision by this method is lower than that by our method. As shown in Figure 22a, we included the examples with the presence of vehicles on the same road lane of the detection vehicle. These cases were already included in our experimental databases. As shown in Figure 22a and Table 7, the presence of cars on the same road lane does not affect our detection results.
As the next experiment, we measured the processing time per frame by our method as shown in Table 8. As shown in Table 8, we can confirm that our method can be operated at a fast speed (about 40.4 frames/s (1000/24.77)).
In other previous researches [51,52,53,54], they showed the high performance of road lane detection irrespective of various weather conditions, traffic, and curved lanes, etc. However, they did not discriminate the solid and dashed lanes in the detected road lanes although it is necessary for autonomous vehicle. Different from them, even the solid and dashed lanes are discriminated in the detected road lanes by our method. In addition, more severe shadows are considered in our research compared to the examples of three results in [51,52,53,54]. In other methods [55,56], they can detect the road lane in difficult environments, but the method [55] did not discriminate the solid and dashed lanes in the detected road lanes either. The method [56] discriminated the solid and dashed lanes in the detected road lanes. However, they did not detect the exact starting and ending positions of all the dashed lanes although the accurate detection of these positions are necessary for the prompt or predictive decision of the moment of crossing road lane by fast moving autonomous vehicle. Different from them, in addition to the discrimination of the solid and dashed lanes, the accurate starting and ending positions of dashed lane are also detected by our method.

5. Conclusions

In this study, we proposed a method to overcome severe shadows in the image, for obtaining better road lane detection results. We used two features as the inputs for FIS: HSV color difference based on local background area (feature 1) and gray difference based on global background area (feature 2) for evaluating the level of shadow in the ROI of a road image. Two features from different color and gray spaces were used for FIS for considering the characteristics of shadow in various color and gray spaces. Using FIS based on these two features, we estimated the level of shadows based on the output of FIS after the defuzzification process. We modeled the input membership functions based on the training data of two features and maximum entropy criterion for enhancing the accuracy of FIS. By adaptively changing the parameters of LSD and CannyLines detector algorithms based on the output of FIS, more accurate line detection was possible based on the fusion of the detection results by LSD and CannyLines detector algorithms, irrespective of severe shadows on the road image. Experiments with three open databases showed that our method outperformed previous methods, irrespective of severe shadows in the images. Because tracking information in successive image frames was not used in our method, the detection of lanes by our method was not affected by the speed of the car.
However, complex traffic with the presence of cars can affect our performance when detecting vanishing points and line segments, determining shadow levels, and locating final road lanes, which is the limitation of our system. Nevertheless, our three experimental databases do not include these cases, and we could not measure the effect of the presence of cars on the performance of our system.
In future, we would collect our own database including the complex traffic with the presence of cars, and measure the effect of these cases on our performance. In addition, we plan to solve this limitation by deep learning-based lane detection. Also, we plan to use a deep neural network for discriminating dashed and solid lane markings under various illumination conditions, as well as for detecting both straight and curved lanes. In addition, we would research to combine our method with a model-based method to enhance the performance of lane detection.

Acknowledgments

This research was supported by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2015R1D1A1A01056761), by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIP; Ministry of Science, ICT & Future Planning) (NRF-2017R1C1B5074062), and by the Basic Science Research Program through the National Research Foundation of Korea (NRF) funded by the Ministry of Education (NRF-2017R1D1A1B03028417).

Author Contributions

Toan Minh Hoang and Kang Ryoung Park designed the overall system for road lane detection, and they wrote the paper. Na Rae Baek, Se Woon Cho, and Ki Wan Kim helped to implement fuzzy inference system and experiments.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Nan, Z.; Wei, P.; Xu, L.; Zheng, N. Efficient Lane Boundary Detection with Spatial-Temporal Knowledge Filtering. Sensors 2016, 16, 1276. [Google Scholar] [CrossRef] [PubMed]
  2. Lee, B.-Y.; Song, J.-H.; Im, J.-H.; Im, S.-H.; Heo, M.-B.; Jee, G.-I. GPS/DR Error Estimation for Autonomous Vehicle Localization. Sensors 2015, 15, 20779–20798. [Google Scholar] [CrossRef] [PubMed]
  3. Hernández, D.C.; Kurnianggoro, L.; Filonenko, A.; Jo, K.H. Real-Time Lane Region Detection Using a Combination of Geometrical and Image Features. Sensors 2016, 16, 1935. [Google Scholar] [CrossRef] [PubMed]
  4. Truong, Q.-B.; Lee, B.-R. New Lane Detection Algorithm for Autonomous Vehicles Using Computer Vision. In Proceedings of the International Conference on Control, Automation and Systems, Seoul, Korea, 14–17 October 2008; pp. 1208–1213. [Google Scholar]
  5. Aly, M. Real Time Detection of Lane Markers in Urban Streets. In Proceedings of the IEEE Intelligent Vehicles Symposium, Eindhoven, Netherlands, 4–6 June 2008; pp. 7–12. [Google Scholar]
  6. Hoang, T.M.; Hong, H.G.; Vokhidov, H.; Park, K.R. Road Lane Detection by Discriminating Dashed and Solid Road Lanes Using a Visible Light Camera Sensor. Sensors 2016, 16, 1313. [Google Scholar] [CrossRef] [PubMed]
  7. Advanced-Lane-Detection. Available online: https://github.com/kylesf/Advanced-Lane-Detection (accessed on 26 October 2017).
  8. Xu, H.; Wang, X.; Huang, H.; Wu, K.; Fang, Q. A Fast and Stable Lane Detection Method Based on B-spline Curve. In Proceedings of the IEEE 10th International Conference on Computer-Aided Industrial Design & Conceptual Design, Wenzhou, China, 26–29 November 2009; pp. 1036–1040. [Google Scholar]
  9. Li, W.; Gong, X.; Wang, Y.; Liu, P. A Lane Marking Detection and Tracking Algorithm Based on Sub-Regions. In Proceedings of the International Conference on Informative and Cybernetics for Computational Social Systems, Qingdao, China, 9–10 October 2014; pp. 68–73. [Google Scholar]
  10. Deng, J.; Kim, J.; Sin, H.; Han, Y. Fast Lane Detection Based on the B-Spline Fitting. Int. J. Res. Eng. Technol. 2013, 2, 134–137. [Google Scholar]
  11. Wang, Y.; Teoh, E.K.; Shen, D. Lane Detection and Tracking Using B-Snake. Image Vis. Comput. 2004, 22, 269–280. [Google Scholar] [CrossRef]
  12. Jung, C.R.; Kelber, C.R. A Robust Linear-Parabolic Model for Lane Following. In Proceedings of the 17th Brazilian Symposium on Computer Graphics and Image Processing, Curitiba, Brazil, 17–20 October 2004; pp. 72–79. [Google Scholar]
  13. Zhou, S.; Jiang, Y.; Xi, J.; Gong, J.; Xiong, G.; Chen, H. A Novel Lane Detection Based on Geometrical Model and Gabor Filter. In Proceedings of the IEEE Intelligent Vehicles Symposium, San Diego, CA, USA, 21–24 June 2010; pp. 59–64. [Google Scholar]
  14. Yoo, H.; Yang, U.; Sohn, K. Gradient-Enhancing Conversion for Illumination-Robust Lane Detection. IEEE Trans. Intell. Transp. Syst. 2013, 14, 1083–1094. [Google Scholar] [CrossRef]
  15. Li, Z.; Cai, Z.-X.; Xie, J.; Ren, X.-P. Road Markings Extraction Based on Threshold Segmentation. In Proceedings of the International Conference on Fuzzy Systems and Knowledge Discovery, Chongqing, China, 29–31 May 2012; pp. 1924–1928. [Google Scholar]
  16. Kheyrollahi, A.; Breckon, T.P. Automatic Real-Time Road Marking Recognition Using a Feature Driven Approach. Mach. Vis. Appl. 2012, 23, 123–133. [Google Scholar] [CrossRef]
  17. Borkar, A.; Hayes, M.; Smith, M.T. A Novel Lane Detection System with Efficient Ground Truth Generation. IEEE Trans. Intell. Transp. Syst. 2012, 13, 365–374. [Google Scholar] [CrossRef]
  18. Wang, J.; Duan, J. Lane Detection Algorithm Using Vanishing Point. In Proceedings of the International Conference on Machine Learning and Cybernetics, Tianjin, China, 14–17 July 2013; pp. 735–740. [Google Scholar]
  19. Chiu, K.-Y.; Lin, S.-F. Lane Detection Using Color-Based Segmentation. In Proceedings of the Intelligent Vehicles Symposium, Las Vegas, NV, USA, 6–8 June 2005; pp. 706–711. [Google Scholar]
  20. Ding, D.; Lee, C.; Lee, K.-Y. An Adaptive Road ROI Determination Algorithm for Lane Detection. In Proceedings of the TENCON 2013–2013 IEEE Region 10 Conference, Xi’an, China, 22–25 October 2013; pp. 1–4. [Google Scholar]
  21. Yu, X.; Beucher, S.; Bilodeau, M. Road Tracking, Lane Segmentation and Obstacle Recognition by Mathematical Morphology. In Proceedings of the Intelligent Vehicles’ 92 Symposium, Detroit, MI, USA, 29 June–1 July 1992; pp. 166–172. [Google Scholar]
  22. Gurghian, A.; Koduri, T.; Bailur, S.V.; Carey, K.J.; Murali, V.N. DeepLanes: End-To-End Lane Position Estimation Using Deep Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognitions Workshops, Las Vegas, NV, USA, 26 June–1 July 2016; pp. 38–45. [Google Scholar]
  23. Suddamalla, U.; Kundu, S.; Farkade, S.; Das, A. A Novel Algorithm of Lane Detection Addressing Varied Scenarios of Curved and Dashed Lanemarks. In Proceedings of the International Conference on Image Processing Theory, Tools and Applications, Orleans, France, 10–13 November 2015; pp. 87–92. [Google Scholar]
  24. Wu, Z.; Fu, W.; Xue, R.; Wang, W. A Novel Line Space Voting Method for Vanishing-Point Detection of General Road Images. Sensors 2016, 16, 948. [Google Scholar] [CrossRef] [PubMed]
  25. Wang, J.-G.; Lin, C.-J.; Chen, S.-M. Applying Fuzzy Method to Vision-Based Lane Detection and Departure Warning System. Expert Syst. Appl. 2010, 37, 113–126. [Google Scholar] [CrossRef]
  26. Guo, K.; Li, N.; Zhang, M. Lane Detection Based on the Random Sample Consensus. In Proceedings of the International Conference on Information Technology, Computer Engineering and Management Sciences, Nanjing, China, 24–25 September 2011; pp. 38–41. [Google Scholar]
  27. Son, J.; Yoo, H.; Kim, S.; Sohn, K. Real-Time Illumination Invariant Lane Detection for Lane Departure Warning System. Expert Syst. Appl. 2015, 42, 1816–1824. [Google Scholar] [CrossRef]
  28. Sun, T.-Y.; Tsai, S.-J.; Chan, V. HSI Color Model Based Lane-Marking Detection. In Proceedings of the IEEE Intelligent Transportation Systems Conference, Toronto, ON, Canada, 17–20 September 2006; pp. 1168–1172. [Google Scholar]
  29. Li, H.; Feng, M.; Wang, X. Inverse Perspective Mapping Based Urban Road Markings Detection. In Proceedings of the International Conference on Cloud Computing and Intelligent Systems, Hangzhou, China, 30 October–1 November 2013; pp. 1178–1182. [Google Scholar]
  30. Chang, C.-Y.; Lin, C.-H. An Efficient Method for Lane-Mark Extraction in Complex Conditions. In Proceedings of the International Conference on Ubiquitous Intelligence & Computing and International Conference on Autonomic & Trusted Computing, Fukuoka, Japan, 4–7 September 2012; pp. 330–336. [Google Scholar]
  31. Benligiray, B.; Topal, C.; Akinlar, C. Video-Based Lane Detection Using a Fast Vanishing Point Estimation Method. In Proceedings of the IEEE International Symposium on Multimedia, Irvine, CA, USA, 10–12 December 2012; pp. 348–351. [Google Scholar]
  32. Von Gioi, R.G.; Jakubowicz, J.; Morel, J.-M.; Randall, G. LSD: A Line Segment Detector. Image Process. Line 2012, 2, 35–55. [Google Scholar] [CrossRef]
  33. Von Gioi, R.G.; Jakubowicz, J.; Morel, J.-M.; Randall, G. LSD: A Fast Line Segment Detector with a False Detection Control. IEEE Trans. Pattern Anal. Mach. Intell. 2010, 32, 722–732. [Google Scholar] [CrossRef] [PubMed]
  34. Lu, X.; Yao, J.; Li, K.; Li, L. CannyLines: A Parameter-free Line Segment Detector. In Proceedings of the IEEE International Conference on Image Processing, Québec City, QC, Canada, 27–30 September 2015; pp. 507–511. [Google Scholar]
  35. Huang, W.; Kim, K.Y.; Yang, Y.; Kim, Y.-S. Automatic Shadow Removal by Illuminance in HSV Color Space. Comput. Sci. Inf. Technol. 2015, 3, 70–75. [Google Scholar] [CrossRef]
  36. Cucchiara, R.; Grana, C.; Piccardi, M.; Prati, A.; Sirotti, S. Improving Shadow Suppression in Moving Object Detection with HSV Color Information. In Proceedings of the IEEE Intelligent Transportation Systems Conference, Oakland, CA, USA, 25–29 August 2001; pp. 334–339. [Google Scholar]
  37. Cucchiara, R.; Grana, C.; Piccardi, M.; Prati, A. Detecting Moving Objects, Ghosts, and Shadows in Video Streams. IEEE Trans. Pattern Anal. Mach. Intell. 2003, 25, 1337–1342. [Google Scholar] [CrossRef]
  38. Zhao, J.; Bose, B.K. Evaluation of Membership Functions for Fuzzy Logic Controlled Induction Motor Drive. In Proceedings of the IEEE Annual Conference of the Industrial Electronics Society, Sevilla, Spain, 5–8 November 2002; pp. 229–234. [Google Scholar]
  39. Bayu, B.S.; Miura, J. Fuzzy-based Illumination Normalization for Face Recognition. In Proceedings of the IEEE Workshop on Advanced Robotics and Its Social Impacts, Tokyo, Japan, 7–9 November 2013; pp. 131–136. [Google Scholar]
  40. Barua, A.; Mudunuri, L.S.; Kosheleva, O. Why Trapezoidal and Triangular Membership Functions Work So Well: Towards a Theoretical Explanation. J. Uncertain. Syst. 2014, 8, 164–168. [Google Scholar]
  41. Cheng, H.D.; Chen, J.R.; Li, J. Threshold Selection Based on Fuzzy C-partition Entropy Approach. Pattern Recognit. 1998, 31, 857–870. [Google Scholar] [CrossRef]
  42. Pujol, F.A.; Pujol, M.; Jimeno-Morenilla, A.; Pujol, M.J. Face Detection Based on Skin Color Segmentation Using Fuzzy Entropy. Entropy 2017, 19, 26. [Google Scholar] [CrossRef]
  43. Leekwijck, W.V.; Kerre, E.E. Defuzzification: Criteria and Classification. Fuzzy Sets Syst. 1999, 108, 159–178. [Google Scholar] [CrossRef]
  44. Broekhoven, E.V.; Baets, B.D. Fast and Accurate Center of Gravity Defuzzification of Fuzzy System Outputs Defined on Trapezoidal Fuzzy Partitions. Fuzzy Sets Syst. 2006, 157, 904–918. [Google Scholar] [CrossRef]
  45. Feature Detection. Available online: http://docs.opencv.org/3.0-beta/modules/imgproc/doc/feature_detection.html#createlinesegmentdetector (accessed on 26 October 2017).
  46. Santiago Lanes Dataset. Available online: http://ral.ing.puc.cl/datasets.htm (accessed on 26 October 2017).
  47. Road Marking Dataset. Available online: http://www.ananth.in/RoadMarkingDetection.html (accessed on 26 October 2017).
  48. Wu, T.; Ranganathan, A. A Practical System for Road Marking Detection and Recognition. In Proceedings of the Intelligent Vehicles Symposium, Alcalá de Henares, Spain, 3–7 June 2012; pp. 25–30. [Google Scholar]
  49. Sensitivity and Specificity. Available online: http://en.wikipedia.org/wiki/Sensitivity_and_specificity (accessed on 26 October 2017).
  50. F1 Score. Available online: https://en.wikipedia.org/wiki/F1_score (accessed on 26 October 2017).
  51. Curved Lane Detection. Available online: https://www.youtube.com/watch?v=VlH3OEhZnow (accessed on 26 October 2017).
  52. Real-Time Lane Detection and Tracking System. Available online: https://www.youtube.com/watch?v=0v8sdPViB1c (accessed on 26 October 2017).
  53. Lane Tracking and Vehicle Tracking (Rainy Day). Available online: https://www.youtube.com/watch?v=JmxDIuCIIcg (accessed on 26 October 2017).
  54. Awesome CV: Simple Lane Lines Detection. Available online: https://www.youtube.com/watch?v=gWK9x5Xs_TI (accessed on 26 October 2017).
  55. Detecting and Generating Road/Lane Boundaries Even in the Absence of Lane Markers. Available online: https://www.youtube.com/watch?v=pzbmcPJgdIU (accessed on 26 October 2017).
  56. Mobileye—Collision Prevention Systems Working While Raining. Available online: https://www.youtube.com/watch?v=39QMYkx89j0 (accessed on 26 October 2017).
Figure 1. Overall procedure for the proposed method.
Figure 1. Overall procedure for the proposed method.
Sensors 17 02475 g001
Figure 2. Examples of input images: (a) Image only with road lanes; (b,c) Images with other road markings; (d,e,f) Images with shadows.
Figure 2. Examples of input images: (a) Image only with road lanes; (b,c) Images with other road markings; (d,e,f) Images with shadows.
Sensors 17 02475 g002aSensors 17 02475 g002b
Figure 3. Predetermined ROI, and automatically defined ROI based on vanishing point within the input image: (a) Predetermined ROI; (b) Automatically defined RO with the detected vanishing point of green cross shape.
Figure 3. Predetermined ROI, and automatically defined ROI based on vanishing point within the input image: (a) Predetermined ROI; (b) Automatically defined RO with the detected vanishing point of green cross shape.
Sensors 17 02475 g003
Figure 4. Overall procedure of detecting vanishing point.
Figure 4. Overall procedure of detecting vanishing point.
Sensors 17 02475 g004
Figure 5. Flowchart for determining shadow for feature 1.
Figure 5. Flowchart for determining shadow for feature 1.
Sensors 17 02475 g005
Figure 6. Examples of extracted shadows for calculating feature 1. Background ROI (B) of Equations (4)–(6) and Figure 5 is shown by the blue box in Figure 6a,c,e: (a,c,e) Image in the ROI; (b,d,f) binarization image of detected shadow by Figure 5.
Figure 6. Examples of extracted shadows for calculating feature 1. Background ROI (B) of Equations (4)–(6) and Figure 5 is shown by the blue box in Figure 6a,c,e: (a,c,e) Image in the ROI; (b,d,f) binarization image of detected shadow by Figure 5.
Sensors 17 02475 g006
Figure 7. Flowchart for determining shadow for feature 2.
Figure 7. Flowchart for determining shadow for feature 2.
Sensors 17 02475 g007
Figure 8. Examples of extracted shadows for calculating feature 2: (a,c) Image in the ROI; (b,d) binarization image of detected shadow by Figure 7.
Figure 8. Examples of extracted shadows for calculating feature 2: (a,c) Image in the ROI; (b,d) binarization image of detected shadow by Figure 7.
Sensors 17 02475 g008
Figure 9. Input fuzzy membership functions for features 1 and 2, which are designed by maximum entropy criterion with training data.
Figure 9. Input fuzzy membership functions for features 1 and 2, which are designed by maximum entropy criterion with training data.
Sensors 17 02475 g009
Figure 10. Output membership functions.
Figure 10. Output membership functions.
Sensors 17 02475 g010
Figure 11. Obtaining the output value of the input membership function for two features: (a) feature 1; (b) feature 2.
Figure 11. Obtaining the output value of the input membership function for two features: (a) feature 1; (b) feature 2.
Sensors 17 02475 g011aSensors 17 02475 g011b
Figure 12. Output score values of FIS using defuzzification methods. (a) FOM, LOM, and MOM; (b) COG.
Figure 12. Output score values of FIS using defuzzification methods. (a) FOM, LOM, and MOM; (b) COG.
Sensors 17 02475 g012aSensors 17 02475 g012b
Figure 13. Examples of comparison between before and after adaptively adjusting the parameters by the output of FIS: (a) Default parameters for LSD; (b) Adjusted parameters for LSD; (c) Default parameters for CannyLines detector; (d) Adjusted parameters for CannyLines detector.
Figure 13. Examples of comparison between before and after adaptively adjusting the parameters by the output of FIS: (a) Default parameters for LSD; (b) Adjusted parameters for LSD; (c) Default parameters for CannyLines detector; (d) Adjusted parameters for CannyLines detector.
Sensors 17 02475 g013
Figure 14. Number of detected line segment based on the angle condition: (a) Before using the angle condition; (b) After using the angle condition.
Figure 14. Number of detected line segment based on the angle condition: (a) Before using the angle condition; (b) After using the angle condition.
Sensors 17 02475 g014
Figure 15. Remove irrelevant line segments based on the vanishing point condition: (a,c,e) Before using the vanishing point condition; (b,d,f) After using the vanishing point condition.
Figure 15. Remove irrelevant line segments based on the vanishing point condition: (a,c,e) Before using the vanishing point condition; (b,d,f) After using the vanishing point condition.
Sensors 17 02475 g015
Figure 16. Detected vanishing point. VP means the detected vanishing point: (a) straight road lane markings; (b) curved lane markings.
Figure 16. Detected vanishing point. VP means the detected vanishing point: (a) straight road lane markings; (b) curved lane markings.
Sensors 17 02475 g016
Figure 17. Examples of the Caltech dataset: (a) Cordova 1; (b) Cordova 2; (c) Washington 1; and (d) Washington 2.
Figure 17. Examples of the Caltech dataset: (a) Cordova 1; (b) Cordova 2; (c) Washington 1; and (d) Washington 2.
Sensors 17 02475 g017aSensors 17 02475 g017b
Figure 18. Examples of the SLD dataset.
Figure 18. Examples of the SLD dataset.
Sensors 17 02475 g018
Figure 19. Examples of the Road Marking dataset.
Figure 19. Examples of the Road Marking dataset.
Sensors 17 02475 g019
Figure 20. Correct lane detection: (ad) Caltech dataset ((a) Cordova 1; (b) Cordova 2; (c) Washington 1; (d) Washington 2); (e) SLD dataset; (f) Road marking dataset.
Figure 20. Correct lane detection: (ad) Caltech dataset ((a) Cordova 1; (b) Cordova 2; (c) Washington 1; (d) Washington 2); (e) SLD dataset; (f) Road marking dataset.
Sensors 17 02475 g020aSensors 17 02475 g020b
Figure 21. Incorrect lane detection due to (a) nonroad lane objects, and (b) shadow.
Figure 21. Incorrect lane detection due to (a) nonroad lane objects, and (b) shadow.
Sensors 17 02475 g021aSensors 17 02475 g021b
Figure 22. Comparison of lane detection: (a) our method; (b) Hoang et al.’s method [6]; (c) Aly method [5]; (d) Kylesf method [7]; (e) Truong et al.’s method [4]; (f) Nan et al.’s method [1].
Figure 22. Comparison of lane detection: (a) our method; (b) Hoang et al.’s method [6]; (c) Aly method [5]; (d) Kylesf method [7]; (e) Truong et al.’s method [4]; (f) Nan et al.’s method [1].
Sensors 17 02475 g022aSensors 17 02475 g022b
Table 1. Comparisons of previous and proposed methods on road lane detection.
Table 1. Comparisons of previous and proposed methods on road lane detection.
CategoryModel-Based MethodsFeature-Based Methods
Not Considering Severe Shadows on Road ImageConsidering Severe Shadows on Road Images (Proposed Method)
Methods
-
B-spline model [4,8,9,10,11]
-
Parabolic model [12]
-
Local road model or geometrical model [13]
-
Quadratic curve model [14,19]
-
IPM [5,15,16,17,18,29]
-
Using edge features [30], EDLines method [31], and illumination invariant lane features [27]
-
SCA, fuzzy C-mean and fuzzy rules in YCbCr space [25]
-
Canny edge detector and HT [18]
-
Fuzzy C-mean in HSI color space [28]
-
Line segment detector [6]
-
Convolutional neural network (CNN) [22]
FIS-based estimation of the level of shadows and adaptive change of the parameters of LSD and CannyLines detector algorithms
AdvantagesHigh performance and accuracy of road lane detection by using mathematical models
-
Performance is not affected by the model parameters or the initial parameters of the camera
-
Algorithm is simple with fast processing speed
Accurate road lane detection can be possible irrespective of severe shadows on road image
DisadvantagesIt works well only when complete initial parameters of the camera or the structure of the road are providedIt works well only in visible and clear road conditions where the road lane markings can be easily separated from the ground by enhancing the contrast and brightness of the imageAdditional procedure for designing fuzzy membership function and fuzzy rule tables is necessary
Table 2. Fuzzy rules based on features 1 and 2.
Table 2. Fuzzy rules based on features 1 and 2.
Input 1 (Feature 1)Input 2 (Feature 2)Output of FIS
LLL
LHM
HLM
HHH
Table 3. IVs obtained with four combinations.
Table 3. IVs obtained with four combinations.
Feature 1Feature 2IV
MIN RuleMAX Rule
0.80(L)0.00(L)0.00(L)0.80(L)
0.80(L)1.00(H)0.80(M)1.00(M)
0.20(H)0.00(L)0.00(M)0.20(M)
0.20(H)1.00(H)0.20(H)1.00(H)
Table 4. Experimental results by our method with the Caltech datasets.
Table 4. Experimental results by our method with the Caltech datasets.
Database#TP#FP#FNPrecisionRecallF-Measure
Cordova 112011001410.920.890.91
Cordova 28242301220.780.870.82
Washington 112422593280.830.790.81
Washington 21611432990.970.840.90
Total48786328900.890.850.87
Table 5. Experimental results by our method with the SLD datasets.
Table 5. Experimental results by our method with the SLD datasets.
Database#TP#FP#FNPrecisionRecallF-Measure
SLD643055314930.920.810.86
Table 6. Experimental results by our method with the Road Marking datasets.
Table 6. Experimental results by our method with the Road Marking datasets.
Database#TP#FP#FNPrecisionRecallF-Measure
Road marking51289996400.840.890.86
Table 7. Comparative experimental results by our method and previous methods.
Table 7. Comparative experimental results by our method and previous methods.
CriterionMethodsCaltech DatasetSLDRoad-Marking
Cordova 1Cordova 2Washington 1Washington 2
PrecisionOurs0.920.780.830.970.920.84
[6]0.820.680.620.880.860.73
[5]0.110.170.10.120.110.1
[4]0.540.30.540.420.400.58
[7]0.50.410.420.670.380.64
[1]0.750.420.450.520.780.78
RecallOurs0.890.870.790.840.810.89
[6]0.850.720.720.830.780.82
[5]0.080.130.060.050.080.02
[4]0.520.320.450.260.380.13
[7]0.220.330.320.310.290.16
[1]0.450.570.460.460.440.49
F-measureOurs0.910.820.810.900.860.86
[6]0.830.700.670.850.820.77
[5]0.090.150.080.070.090.03
[4]0.530.310.490.320.390.21
[7]0.310.370.360.420.330.26
[1]0.560.480.450.490.560.60
Table 8. Processing time per each frame by our method (unit: milliseconds).
Table 8. Processing time per each frame by our method (unit: milliseconds).
DatabaseProcessing Time
Cordova 123.47
Cordova 224.02
Washington 129.55
Washington 227.33
SLD dataset17.58
Road marking dataset30.98
Average24.77

Share and Cite

MDPI and ACS Style

Hoang, T.M.; Baek, N.R.; Cho, S.W.; Kim, K.W.; Park, K.R. Road Lane Detection Robust to Shadows Based on a Fuzzy System Using a Visible Light Camera Sensor. Sensors 2017, 17, 2475. https://doi.org/10.3390/s17112475

AMA Style

Hoang TM, Baek NR, Cho SW, Kim KW, Park KR. Road Lane Detection Robust to Shadows Based on a Fuzzy System Using a Visible Light Camera Sensor. Sensors. 2017; 17(11):2475. https://doi.org/10.3390/s17112475

Chicago/Turabian Style

Hoang, Toan Minh, Na Rae Baek, Se Woon Cho, Ki Wan Kim, and Kang Ryoung Park. 2017. "Road Lane Detection Robust to Shadows Based on a Fuzzy System Using a Visible Light Camera Sensor" Sensors 17, no. 11: 2475. https://doi.org/10.3390/s17112475

APA Style

Hoang, T. M., Baek, N. R., Cho, S. W., Kim, K. W., & Park, K. R. (2017). Road Lane Detection Robust to Shadows Based on a Fuzzy System Using a Visible Light Camera Sensor. Sensors, 17(11), 2475. https://doi.org/10.3390/s17112475

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop