Abstract

Foggy weather seriously deteriorates the performance of freeway systems, particularly regarding traffic safety and efficiency. General macroscopic traffic models have difficulty reflecting the characteristics of a freeway under foggy weather conditions. In the present study, a macroscopic traffic model using a correction factor under foggy weather conditions is therefore proposed, which is regulated according to the different levels of visibility and curve radius of the freeway using the Takagi–Sugeno (T-S) model. Based on the proposed traffic model, a local ramp metering strategy with density correction under foggy weather conditions is proposed to improve traffic safety. The proposed local ramp metering strategy regulates the on-ramp flow using the T-S model according to the mainstream density, speed, and visibility. The correction factors are determined based on the parameters of the consequent part in the T-S model, which are optimized using the particle swarm optimization algorithm. The sum of the mean absolute percentage error of the mainstream traffic density and speed is used to evaluate the proposed traffic model. The real-time crash-risk prediction model, which reflects the degree of traffic safety, is used to evaluate the proposed local ramp metering strategy. Simulations using VISSIM and MATLAB show that the proposed traffic model is suitable under foggy weather conditions and that the proposed local ramp metering strategy achieves a better performance in reducing fog-related crashes.

1. Introduction

Foggy weather not only deepens the uncertainty, complexity, and randomness of freeway systems but also brings about a decrease in traffic efficiency and an increase in the number of crashes [1]. Fog-related crashes are mainly related to poor visibility and a large curve radius, which is the radius of a circularly curved section of a freeway [2].

Traffic management strategies for improving traffic safety and efficiency under foggy weather conditions can be divided into two types: advisory strategies and control strategies [3]. Advisory strategies using atmospheric and pavement data combined with the traffic flow and incident data can provide more timely and accurate freeway traffic information for travelers and thereby reduce fog-related crashes [4]. Dynamic traffic information can be automatically conveyed to travelers through dynamic message signs and freeway advisory announcements provided through a radio station. Control strategies can be divided into two types as well: speed management strategies and traffic flow management strategies. Regarding speed management, automatic visibility warning systems estimate a safe traffic speed for motorists based on the real-time visibility of the freeway as derived from visibility sensors to reduce fog-related crashes [5]. Real-time speed recommendations derived from visibility warning systems can be conveyed using an intelligent transportation system [6, 7]. A visibility warning system is widely used to ensure traffic safety under foggy weather conditions. Using six types of visibility sensors with forward-scatter technology and 25 closed circuit TV cameras, the Alabama Department of Transportation implemented a visibility warning system to reduce fog-related crashes [3]. The Utah Department of Transportation used an Adverse Visibility Information System Evaluation, which provides real-time speed recommendations for motorists, to reduce fog-related crashes [8, 9]. However, visibility warning systems have significant challenges in terms of cost and the application of appropriate sensor technologies.

In terms of traffic flow management, control strategies are applied to permit or restrict the traffic flow and regulate the freeway capacity. Ramp metering has been recognized as an effective and economic way to regulate mainstream freeway traffic flow at the cost of increasing or decreasing the on-ramp queue length [10]. Existing ramp metering strategies, including fixed-time and real-time ramp metering, have been used well. Based on historical traffic data, fixed-time ramp metering strategies may lead to freeway congestion or underutilization. Real-time ramp metering strategies including local responsive and coordinated ramp metering strategies regulate the mainstream traffic flow based on real-time traffic data. Local ramp metering strategies such as demand capacity, occupancy control, and Asservissement Linéaire d’Entrée Autoroutière (ALINEA) determine the on-ramp flow based on the real-time mainstream traffic conditions. Among them, ALINEA is the most typical type of ramp metering strategy owing to its closed-loop control [11]. Extended algorithms of ALINEA such as downstream-measurement-based adaptive ALINEA (AD-ALINEA), upstream-measurement-based adaptive ALINEA (AU-ALINEA) [12], and proportional-integral extension of ALINEA (PI-ALINEA) [13] have recently been proposed. In addition, intelligent control algorithms such as iterative learning control [1416], fuzzy logic control (FLC), neural network control [17], and a reinforcement learning control algorithm [18] are used in local ramp metering. Coordinated ramp metering strategies such as METALINE, FLOW, the Zone algorithm, Helper, and SWARM aim at improving the network-wide traffic efficiency of freeways by making full use of all on-ramps. However, the complexity and cost of coordinated ramp metering are much higher than those of local ramp metering [19].

A freeway system is an interconnected nonlinear system that can be represented using a set of linear state equations by applying a fuzzy model. Therefore, FLC appears to be more suitable for ramp metering than an analytic control algorithm. A fuzzy logic controller based on six input variables and three output variables was proposed for ramp metering, which took into account the upstream and downstream traffic states and the length of the on-ramp queue [20]. Experimentally, the fuzzy controller proved its superior performance in reducing congestion and dealing with traffic incidents. In addition, a T-S-type fuzzy controller based on the mainstream density, speed, and queue length applied as inputs and the desired mainstream density applied as the output was proposed [21]. The proposed T-S-type fuzzy controller implements an optimal ramp metering according to the different traffic states using the PSO algorithm. The self-adjusted fuzzy ramp metering strategy based on the correction factor was proposed [21]. The fuzzy control rules of the proposed self-adjusted fuzzy ramp metering strategy are replaced with correction factors. The proposed correction factors simplify the rule definitions of the three-dimensional fuzzy controller. Based on the fuzzy logic algorithm, many different control strategies such as a genetic-fuzzy algorithm [22] and a genetic-fuzzy algorithm with the optimization algorithm [23] have been proposed. Moreover, a ramp metering strategy based on the fuzzy logic algorithm achieves a good robustness and rapid response to traffic demand [24].

Although studies on local ramp metering under normal weather conditions have been exploited well, few studies have been conducted on local ramp metering under foggy weather conditions. In this study, a macroscopic traffic model based on a model correction factor (cm) under foggy weather conditions is proposed using the T-S model. The traffic model is regulated using the T-S model according to the different degrees of visibility and the curve radius of the freeway. Freeway traffic data derived from the VISSIM simulator are used for traffic modelling under foggy weather conditions. The sum of the mean absolute percentage error based on the mainstream traffic density and speed is used to evaluate the proposed traffic model. The traffic model parameters are optimized using the PSO algorithm. The proposed traffic model is simulated in MATLAB.

Based on the proposed macroscopic traffic model, a local ramp metering strategy based on a density correction factor (cd) under foggy weather conditions is proposed. Based on a T-S-type FLC, the proposed local ramp metering strategy regulates the on-ramp flow according to the mainstream density, mainstream speed, and visibility. A real-time crash-risk prediction model reflecting the level of safety of the freeway traffic is used to evaluate the proposed local ramp metering strategy. The parameters of the proposed ramp metering strategy are also optimized using the PSO algorithm, and the proposed local ramp metering strategy is simulated in MATLAB.

2. Macroscopic Traffic Model under Foggy Weather Conditions

2.1. T-S-Type Fuzzy Theory

In this study, the T-S model is adopted for use as a macroscopic traffic model and for local ramp metering under foggy weather conditions. For a T-S-type fuzzy controller, xm is denoted as the m-th input variable, with , where M is the number of input variables; in addition, is denoted as the input fuzzy subset of the input variable xm corresponding to the i-th fuzzy rule, in which , where N is the number of fuzzy rules. The i-th fuzzy rule is expressed in the IF-THEN form as follows:where is a constant parameter of the consequent part related to the i-th fuzzy rule, in which , and denotes the output value corresponding to this rule.

In addition, denotes the membership value of the input variable xm corresponding to the linguistic variable , and refers to the membership value of the i-th fuzzy rule, which is calculated as follows:

The final output of the T-S model is expressed as follows:

2.2. Macroscopic Traffic Model with Correction Factor under Foggy Weather Conditions

Considering such factors as the topography and construction costs in the design of a freeway plane alignment, circular curved sections are unavoidable and are applied as a main linear section of a freeway. Owing to the particularity of its linear conditions and the complexity of driving behaviors, such sections have become areas with a high incidence of traffic accidents. The freeway friction coefficient and visibility are reduced under foggy weather conditions, adding to the complexity of driving behaviors on curved sections. The curve radius is the main characteristic of a circular curved section of a freeway, and the crash risk will increase with a decrease in the curve radius. The freeway visibility and curve radius are two of the most critical factors affecting the traffic model applied under foggy weather conditions. METANET [25] is a well-known macroscopic traffic model. However, it has difficulty reflecting freeway characteristics under foggy weather. Therefore, in this study, a traffic model applied under foggy weather conditions that introduces a model correction factor (cm) into the METANET traffic model is proposed. This model correction factor can reflect the effects of foggy weather on a freeway because the factor is regulated according to the different levels of visibility and the curve radius of the freeway. The model correction factor is directly determined using the T-S model. The proposed traffic model is expressed as follows:where T is the length of the time step; k indicates the time step t = kT, where denotes the number of lanes in the segment i; and are the average speed and average mainstream density in the segment i at the time step kT, respectively; represents the mainstream flow through the segment i entering the next segment during the time step kT; ui(k) represents the on-ramp metering flow entering the segment i at the time step kT; the notations , ρjam, , and represent the free-flow speed, the jam density, the length of the segment i, and the static speed in the segment i at the time step kT, respectively; m, γ, τ, δ, and θ are global parameters reflecting the freeway characteristics; and cm denotes the model correction factor. Equations (4)–(7) are for determining the conservation, traffic parameter relationship, dynamic mean speed, and static speed-density relationship, respectively.

2.3. Model Correction Factor Regulation Based on T-S Model

The visibility and curve radius are the two most important factors affecting freeway traffic under the foggy weather condition. Thus, in this study, the freeway visibility and curve radius are applied as input variables of the T-S model, and the model correction factor is applied as the output variable. The freeway visibility and curve radius can be obtained from a freeway information system. The freeway visibility and curve radius at the time step kT are denoted as r(k) and b(k), respectively. Assume that A(r) and A(b) are the input fuzzy sets of the input variables r(k) and b(k), respectively. Two input fuzzy subsets are defined for each input fuzzy set. The normalized domain of the input fuzzy sets and the input variables is [−1, 1]. It is assumed that the actual physical domains of the visibility and radius curve are [r1, r2] and [b1, b2], respectively. The mean values of rm and bm and the scaling factors Kr and Kb are used to transform the physical domains [r1, r2] and [b1, b2] into the normalized domains [−1, 1] and [−1, 1], respectively, the mathematical formulas of which are as follows:

Thus, the measured values r(k) and b(k) can be transformed into the normalized domain using the appropriate scaling factors as follows:

The membership function of normalized input fuzzy sets described using a trapezoidal function [26] is as shown in Figure 1.

There are four different combinations of input variables in the fuzzy rules, as summarized in Table 1.

An example of a fuzzy rule is expressed in the IF-THEN form as follows:where , in which j = 0, 1, 2, is a constant parameter of the consequent part corresponding to the i-th fuzzy rule and denotes the output value corresponding to the i-th fuzzy rule.

According to equations (1)–(3), the model correction factor (cm) is calculated as follows:

The T-S model of the model correction factor contains four fuzzy rules, and each fuzzy rule has three parameters to be regulated. Thus, the T-S model regulates a total of 12 parameters. Including , τ, ρjam, m, γ, θ, and δ, there are a total of 19 parameters to be regulated in the proposed traffic model. The performance of the T-S model depends on the structure and parameter identification. However, in this study, the performance of the T-S model is merely related to the parameters of the consequent part because the input fuzzy sets are predefined. Therefore, to minimize the performance objective, the problem of traffic modelling under foggy weather conditions is equivalent to seeking the optimal values of the 19 parameters. The PSO algorithm is adopted to optimize these parameters.

2.4. Parameter Regulation Based on PSO

As a swarm intelligence algorithm, PSO is inspired by the search strategy applied in the foraging behaviors of organisms such as flocking bird [27]. The PSO algorithm is based on a population iterative search. For the parameter optimization, each particle denotes a set of candidate solutions. Each particle includes the position and velocity, which determine its direction and distance of flight, as well as the fitness value calculated using a fitness function. During the particle search process, each particle can update its position in a better direction by tracking the individual and global best positions. If the number of iterations reaches the maximum, the global best position of the particle swarm is the optimal solution. During each iteration, each particle updates its velocity and position by tracking the individual and global best positions as follows [28]:where i refers to the index of the particle, j represents the index of the iteration, denotes the velocity of the i-th particle during the j-th iteration, denotes the position of the i-th particle during the j-th iteration, is the individual best position of the i-th particle during the j-th iteration, is the global best position of the particle swarm during the j-th iteration, is the inertia weight, c1 and c2 are learning factors regulating the attraction of the individual and global best positions to the particle, and r1 and r2 are random values within the range of zero to 1.

During the application of the PSO algorithm, the fitness function is used to evaluate the effectiveness of the parameter optimization during the k-th iteration. The sum of the mean absolute percentage error of the mainstream traffic density and speed is used for the fitness function. The fitness function is expressed as follows:where k indicates the time step t = kT, where is the total time period; and are the actual mainstream density and the density derived from the proposed traffic model at the time step kT, respectively; and and are the actual mainstream speed and the speed derived from the proposed traffic model at the time step kT, respectively; in addition, the data on and under foggy weather conditions can be obtained from a freeway information system.

The mainstream traffic flow is a product of the mainstream traffic density and speed, and thus, the mainstream flow is indirectly taken into account through the fitness function. It is known that the speed, density, and flow are considered to be explanatory variables of the freeway traffic model. Therefore, the fitness function, which includes the mainstream speed, density, and flow, represents a comprehensive assessment of the proposed traffic model.

The implementation steps of the PSO algorithm are divided into two parts: initialization and iteration.

2.4.1. Initialization Part

Step 1. Set the particle swarm size as 100, the number of particle dimensions as 19, the maximum number of iterations as 300, both c1 and c2 as 2, and the inertia weight as 0.8.

Step 2. Initialize the position and velocity vectors for each particle randomly while taking into account the particle limits.

Step 3. Input the traffic data on the flow, speed, and density.

Step 4. Randomly set the initial solution of each particle, and initialize the individual and global best positions.

2.4.2. Iteration Part

Step 1. Calculate the fitness value of each particle according to equations (4)–(7) and (12).

Step 2. Determine the individual and global best positions for the i-th particle at the j-th iteration, and if the fitness value is smaller than the previous fitness value, let the individual best position  = ; otherwise, the individual best position remains unchanged. In addition, if the individual best position is smaller than the global best position , let  = ; otherwise, the global best position remains unchanged.

Step 3. Update the velocity and position of each particle according to equation (11).

Step 4. Repeat the iteration part until the maximum number of iterations is satisfied.

3. Local Ramp Metering under Foggy Weather Conditions

During the past several decades, studies on local ramp metering under normal weather conditions have been well exploited. However, the problem of local ramp metering under foggy weather conditions has been rarely studied. Because of traffic safety, on-ramps are typically closed under foggy weather conditions. The consequence of closing an on-ramp is not only a reduction in the mainstream traffic flow but also a decrease in the traffic efficiency. Therefore, improving the freeway traffic efficiency during foggy weather on the basis of ensuring traffic safety is a popular area of study. Owing to the complexity of foggy weather conditions, the desired density varies from moment to moment, which cannot be properly solved using PI-ALINEA. Thus, the application of local ramp metering under foggy weather conditions is proposed.

A ramp metering strategy similar to PI-ALINEA is applied in the present paper. PI-ALINEA is expressed as follows:where KP and KR are the gain factors for the proportional and integral terms, respectively.

The proposed local ramp metering strategy based on the density correction factor (cd) can regulate the on-ramp flow according to the freeway traffic state. In addition, the density correction factor (cd) is directly determined using the T-S model. The proposed local ramp metering strategy based on the density correction factor (cd) can be expressed as follows:where KP and KR are the gain factors for the proportional and integral terms, respectively; is the predefined density value; and cd represents the density correction factor.

The mainstream traffic density (ρ), speed (), and visibility (r) of the freeway are three key factors affecting the traffic safety under foggy weather conditions. Thus, this paper sets the mainstream traffic density (ρ), speed (), and visibility (r) as input variables of the T-S model and the density correction factor (cd) as the output variable. Assume that A(ρ), A(), and A(r) are input fuzzy sets of the mainstream density, speed, and visibility, respectively. Two fuzzy subsets are defined for each input fuzzy set. The normalized domains of the input fuzzy sets and input variables are all [−1, 1]. Assume that the actual physical domains of the visibility, speed, and visibility are [ρ1, ρ2], , and [r1, r2], respectively. The mean values of ρm, , and rm and the scaling factors Kρ, , and Kr transform the physical domains [ρ1, ρ2], , and [r1, r2] into the normalized domains [−1, 1], [−1, 1], and [−1, 1], respectively, the mathematical formulas of which are as follows:

Thus, the measured values r(k) and b(k) can be transformed into the normalized domain as follows:

The membership function of the normalized input fuzzy sets described using a trapezoidal function is shown in Figure 2.

Owing to dynamic characteristics of a traffic flow, when the mainstream traffic density is high, the mainstream traffic speed should be low. Therefore, four different combinations of input variables are applied in the fuzzy rules, as summarized in Table 2.

For example, the i-th fuzzy rule is expressed as follows:where , in which j = 0, 1, 2, 3, is a constant parameter of the consequent part corresponding to the i-th fuzzy rule and denotes the output value corresponding to the i-th fuzzy rule.

According to equations (1)–(3), the density correction factor (cd) can be calculated as follows:

According to equations (15) and (18), the desired density can be calculated as follows:

The T-S model of the density correction factor contains four fuzzy rules, each of which has four parameters to be regulated. Thus, the T-S model has 16 parameters to regulate in the proposed local ramp metering strategy. The PSO algorithm is used to optimize these 16 parameters.

The principle and implementation steps of the PSO algorithm are described in Section 2.4. The determined difference is the fitness function. Freeway traffic safety during foggy weather conditions is the primary control target. Thus, the real-time crash-risk prediction model, which reflects the traffic safety, is used as the fitness function to evaluate the proposed local ramp metering. The real-time crash-risk prediction model is actually described as a logistic regression function of the freeway traffic variables and regulates the model parameters using the actual freeway traffic incident data. The real-time crash-risk prediction model [29] is calculated as follows:where and are the average speed in the upstream and downstream segments during the time period ΔT, respectively; denotes the average occupancy in the upstream segment during the time period ΔT; RCRI represents the rear-end collision risk induced by kinematic waves; and and are the average speed of the λ-th lane in the upstream and downstream segments during the time interval Δt, respectively. In addition, is the average occupancy of the λ-th lane in the upstream segment during the time interval Δt; σ(OU) and σ(OD) are the standard deviation of the occupancy in the upstream and downstream segments during the time period ΔT, respectively; λi is the number of lanes in the segment i; N1 is the number of time intervals in a single time period (N1 = ΔTt); is the probability of a crash; and α1, α2, α3, and α4 are constant parameters.

In this study, the performance of the T-S model is simply related to the parameters of the consequent part because the input fuzzy sets are predefined. Therefore, the problem of local ramp metering under foggy weather conditions is equivalent to seeking the optimal values of the 16 parameters to minimize the performance objective. The configuration parameters of the PSO algorithm used in the proposed local ramp metering strategy are listed in Table 3.

4. Simulation Experiment and Analysis

4.1. Simulation of Traffic Model under Foggy Weather Conditions
4.1.1. Experimental Setup

The hypothetical freeway stretch is divided into five segments with a length of Δxi, namely, Δx1 = 643 m, Δx2 = 643 m, Δx3 = 643 m, Δx4 = 643 m, and Δx5 = 643 m. The hypothetical freeway stretch has two lanes and two on-ramps. The lengths of on-ramps R1 and R2 are both 400 m. The hypothetical freeway stretch is shown in Figure 3.

Segment 4 is used for traffic modelling under foggy weather conditions. The freeway traffic data under such conditions derived from VISSIM with time intervals of 5 min are used as inputs for the traffic modelling, as shown in Figure 4. The demand (Q3) of segment 3 from detector 4 and demand (d2) of on-ramp R2 from detector 8 are shown in Figure 4(a). The units of the segment 3 demand (Q3) and on-ramp R2 demand (d2) are both the hourly flow. The average speed (V3) of segment 3 from detector 4 and the density (ρ5) of segment 5 from detector 6 are shown in Figures 4(b) and 4(c), respectively. The experiment simulates the freeway traffic from 1 : 00 am to 23 : 40 pm with a simulation time step of 10 s.

The higher the fog concentration, the lower the visibility. To analyze the effects of foggy weather on the freeway conditions, the traffic data on the density and speed in segment 4 are sampled from VISSIM under different freeway visibility conditions, as shown in Figure 5. As Figure 5(a) indicates, the desired density of the freeway decreases with the elevated concentration of fog. As shown in Figure 5(b), the speed fluctuation is greater with the increase in fog concentration. Therefore, the freeway traffic safety and efficiency decrease with the elevated concentration of fog. The influence of foggy weather on the traffic model is mainly in terms of density and speed.

The proposed traffic model was simulated using the traffic data under foggy weather conditions as derived from VISSIM. Two cases were simulated with a visibility of r = 150 m and a curve radius of b = 1,500 m. For case 1, one model correction factor is used for the traffic model under foggy weather conditions. For case 2, two model correction factors are used for the traffic model under such conditions. The parameters used for the proposed traffic model are set as follows: initial speed (1) = 97 km/h and initial density ρ(1) = 0.735 veh/km/ln, where the actual physical domains of the visibility and curve radius in the traffic model are [100 m, 200 m] and [500 m, 1,500 m], respectively. According to equation (8), mean values of rm = 100 m and bm = 1000 m and scaling factors of Kr = 0.02 and Kb = 0.002 are used.

4.1.2. Simulation Results and Analysis

As shown in Figure 6, one model correction factor (cm) is applied to the mainstream traffic density and velocity. The fitness value is used to evaluate the performance of the proposed traffic model. According to equation (12), the fitness value of the traffic model with one model correction factor (cm) is 5.96%. As indicated in Figure 7, two model correction factors cm1 and cm2 are applied to the mainstream traffic density and speed, respectively. The fitness value of the traffic model with two model correction factors is 6.22%. Clearly, the traffic model with one model correction factor achieves a better performance than that with two factors.

The 19 parameters used in the traffic model with one model correction factor through the PSO algorithm are regulated as follows: ρjam = 88.9889 veh/km/ln,  = 99.1510 km/h, τ = 18 s, γ = 45.5616 km2/h, θ = 11.0836 veh/km, m = 1, δ = 1.1861, f1 = 0.7631, f2 = 0.5976, f3 = 0.2099, f4 = 0.6452, f5 = 0.1955, f6 = 0.3291, f7 = 0.7095, f8 = 0.1745, f9 = 0.3159, f10 = 0.0034, f11 = 0.0535, and f12 = 0.3515. The model correction factor (cm) is calculated from parameters f1 through f12, and the value of 0.99 is obtained.

4.2. Simulation of the Proposed Ramp Metering Strategy under Foggy Weather Conditions
4.2.1. Experimental Setup

Freeway traffic data with time intervals of 10 s, such as for the upstream demand (Qu) and on-ramp demand (d1 and d2), are employed as the input data of the local ramp metering under foggy weather conditions, as shown in Figure 8. The units of upstream demand (Qu), on-ramp R1 demand (d1), and on-ramp R2 demand (d2) are all hourly flow. The simulation time step is 10 s, and the control time step is 30 s. Owing to the low on-ramp flow, a no-control measure is used for on-ramp R1. On-ramp R2 is controlled using PI-ALINEA and the proposed ramp metering strategy. PI-ALINEA is described in equation (13). The simulations are carried out using a visibility of 150 m and a curve radius of 1,200 m. The parameters used for the traffic modelling are set as follows: initial upstream demand Qu(1) = 2730 veh/h, initial on-ramp R1 demand d1(1) = 181 veh/h, initial on-ramp R2 demand d2(1) = 301 veh/h, maximum ramp metering flow umax = 1000 veh/h, and minimum ramp metering umin = 100 veh/h, and the actual physical domains of the density, speed, and visibility of the ramp metering are [32 veh/km/ln, 38 veh/km/ln], [80 km/h, 90 km/h], and [100 m, 200 m], respectively. According to equation (16), the mean values are ρm = 35 veh/km/h,  = 85 km/h, and rm = 150 m, and the scaling factors are Kρ = 0.2,  = 0.2, and Kr = 0.02. The parameters in equations (13) and (14) are listed as follows: KP = 10 and KR = 40.

4.2.2. Simulation Results and Analysis

According to equations (20)–(27), a real-time crash-risk prediction model reflecting traffic safety is used to evaluate the proposed local ramp metering. The data on traffic incidents are obtained through a simulation in VISSIM. The location of a traffic incident is shown in Figure 3. The time interval is Δt = 10 s, the time period is ΔT = 60 s, and N1 = ΔTt = 6 is applied. The real-time crash-risk probability is calculated during every six simulation time steps. The parameters in equation (27) are obtained through the logistic regression of the traffic incident data as follows: α1 = −2.2028, α2 = −0.035, α3 = 10.4302, and α4 = 13.3114. Partial traffic data used for the parameter fitting are listed in Table 4.

The freeway traffic density and speed under different local ramp metering strategies are shown in Figures 9(a) and 9(b), respectively. Equation (27) shows the real-time collision rate, which is used to evaluate the proposed local ramp metering strategy. The real-time collision rate of different local ramp metering strategies is shown in Figure 9(c).

As shown in Figure 9, within the first 500 time steps and the last 260 time steps during the simulation time, the strategies of no-control and PI-ALINEA have similar control results under the traffic state and real-time crash-risk probability. Because the mainstream density of a freeway is always lower than the desired density, the flow of on-ramp R2 is not controlled by PI-ALINEA. As the freeway mainstream density gradually exceeds the desired density, PI-ALINEA will reduce the entrance flow of on-ramp R2 and slow down the increasing trend of density to maintain the mainstream density around its critical value at the cost of increasing the ramp queue. Correspondingly, the real-time crash-risk probability will decrease during this period.

As indicated in Figure 9, the proposed ramp metering strategy under foggy weather conditions differs from the PI-ALINEA strategy, which has a consistent effect on on-ramp R2. At the beginning of the simulation, on-ramp R2 is continuously controlled by the proposed ramp metering strategy under the premise of reducing the real-time crash-risk probability. As shown in Figures 9(a) and 9(b), the fluctuations of the mainstream density and speed are smaller than those controlled by PI-ALINEA. As shown in Figure 9(c), the real-time crash-risk probability of the proposed ramp metering strategy is always lower than that controlled by PI-ALINEA during the entire simulation time step.

In order to further analyze the effects of PI-ALINEA and the proposed strategy, the experimental results of PI-ALINEA and the proposed strategy are used for statistical study. Because the real-time collision rate of different strategies characterizes normal distribution, the t-test is used to evaluate statistical significance with MATLAB. The significant difference between these results is characterized by a significance threshold fixed at a p value less than or equal to 0.05. The calculated value is much less than 0.01; therefore, the proposed strategy is superior to PI-ALINEA in ensuring traffic safety. Partial experimental data used to evaluate statistical significance are listed in Table 5. On the whole, the proposed ramp metering strategy achieves a better performance in ensuring traffic safety and is more suitable for a freeway system under foggy weather conditions.

5. Conclusions

A macroscopic traffic model applied under foggy weather conditions and based on a model correction factor (cm) was proposed in this paper. The model correction factor (cm) is regulated online based on different visibility conditions and curve radius of the freeway to better optimize the traffic model under foggy weather conditions. The sum of the mean absolute percentage error of the mainstream density and speed is used as the fitness function to evaluate the proposed traffic model. A local ramp metering strategy under foggy weather conditions based on the density correction factor (cd) is proposed when considering the proposed traffic model. The density correction factor (cd) is regulated online based on the mainstream traffic density, speed, and visibility. A real-time crash-risk prediction model that reflects the level of traffic safety is used to evaluate the performance of the proposed local ramp metering strategy. The simulation results show the effectiveness of the proposed traffic model and ramp metering strategy under foggy weather conditions.

Data Availability

The (Excel) data used to support the findings of this study are included within the supplementary information files.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Supplementary Materials

Data 1: data derived from VISSIM by simulating the traffic incident, which are used for parameter regulation in the real-time crash-risk prediction model. These data are complete part corresponding to Table 4 in the manuscript. data 2: data on the real-time collision rate of PI-ALINEA and the proposed strategy, which are used for statistical study. These data are complete part corresponding to Table 5 in the manuscript. (Supplementary Materials)