Traffic Model and On-Ramp Metering Strategy under Foggy Weather Conditions Using T-S Fuzzy Systems

. 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.


Introduction
Foggy weather not only deepens the uncertainty, complexity, and randomness of freeway systems but also brings about a decrease in tra c e ciency 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].
Tra c management strategies for improving tra c safety and e ciency 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 tra c ow and incident data can provide more timely and accurate freeway tra c information for travelers and thereby reduce fog-related crashes [4].Dynamic tra c 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 tra c ow management strategies.Regarding speed management, automatic visibility warning systems estimate a safe tra c speed for motorists based on the real-time visibility of the freeway as derived from visibility sensors to reduce fogrelated 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 tra c 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].e 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, fixedtime 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 closedloop 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 [14][15][16], 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.erefore, 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].e proposed T-Stype fuzzy controller implements an optimal ramp metering according to the different traffic states using the PSO algorithm.
e self-adjusted fuzzy ramp metering strategy based on the correction factor was proposed [21].e fuzzy control rules of the proposed self-adjusted fuzzy ramp metering strategy are replaced with correction factors.e 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 (c m ) under foggy weather conditions is proposed using the T-S model.e 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.e sum of the mean absolute percentage error based on the mainstream traffic density and speed is used to evaluate the proposed traffic model.e traffic model parameters are optimized using the PSO algorithm.e 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 (c d ) 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 crashrisk prediction model reflecting the level of safety of the freeway traffic is used to evaluate the proposed local ramp metering strategy.
e 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.

Macroscopic Traffic Model under Foggy
Weather Conditions where p i l is a constant parameter of the consequent part related to the i-th fuzzy rule, in which l � 0, 1, . . ., M, and y i denotes the output value corresponding to this rule.
In addition, μ i (x m ) denotes the membership value of the input variable x m corresponding to the linguistic variable 2 Complexity A i (x m ), and μ i refers to the membership value of the i-th fuzzy rule, which is calculated as follows: e final output of the T-S model is expressed as follows: (3)

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.e freeway friction coefficient and visibility are reduced under foggy weather conditions, adding to the complexity of driving behaviors on curved sections.e 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.e 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.
erefore, in this study, a traffic model applied under foggy weather conditions that introduces a model correction factor (c m ) into the METANET traffic model is proposed.is 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.e model correction factor is directly determined using the T-S model.e proposed traffic model is expressed as follows: where T is the length of the time step; k indicates the time step t � kT, where k � 1, . . ., λ i denotes the number of lanes in the segment i; v i (k) and ρ i (k) are the average speed and average mainstream density in the segment i at the time step kT, respectively; q i (k) represents the mainstream flow through the segment i entering the next segment during the time step kT; u i (k) represents the on-ramp metering flow entering the segment i at the time step kT; the notations v f , ρ jam , Δ i , and V(ρ i (k)) 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, c, τ, δ, and θ are global parameters reflecting the freeway characteristics; and c m denotes the model correction factor.Equations ( 4)-( 7) are for determining the conservation, traffic parameter relationship, dynamic mean speed, and static speeddensity relationship, respectively.

Model Correction Factor Regulation Based on T-S Model.
e visibility and curve radius are the two most important factors affecting freeway traffic under the foggy weather condition.
us, 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.
e freeway visibility and curve radius can be obtained from a freeway information system.e freeway visibility and curve radius at the time step kT are denoted as us, the measured values r(k) and b(k) can be transformed into the normalized domain using the appropriate scaling factors as follows: e membership function of normalized input fuzzy sets described using a trapezoidal function [26] is as shown in Figure 1.
ere are four different combinations of input variables in the fuzzy rules, as summarized in Table 1.

Complexity 3
An example of a fuzzy rule is expressed in the IF-THEN form as follows: where β i j , in which j 0, 1, 2, is a constant parameter of the consequent part corresponding to the i-th fuzzy rule and c i m denotes the output value corresponding to the i-th fuzzy rule.
According to equations ( 1)-(3), the model correction factor (c m ) is calculated as follows: e T-S model of the model correction factor contains four fuzzy rules, and each fuzzy rule has three parameters to be regulated.us, the T-S model regulates a total of 12 parameters.Including v f , τ, ρ jam , m, c, θ, and δ, there are a total of 19 parameters to be regulated in the proposed tra c model.e performance of the T-S model depends on the structure and parameter identi cation.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 prede ned.erefore, to minimize the performance objective, the problem of tra c modelling under foggy weather conditions is equivalent to seeking the optimal values of the 19 parameters.
e PSO algorithm is adopted to optimize these parameters.

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 ocking bird [27].e 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 ight, as well as the tness value calculated using a tness 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, v j i denotes the velocity of the i-th particle during the j-th iteration, x j i denotes the position of the i-th particle during the j-th iteration, p j i is the individual best position of the i-th particle during the j-th iteration, p j g is the global best position of the particle swarm during the jth iteration, w is the inertia weight, c 1 and c 2 are learning factors regulating the attraction of the individual and global best positions to the particle, and r 1 and r 2 are random values within the range of zero to 1.
During the application of the PSO algorithm, the tness function is used to evaluate the e ectiveness of the parameter optimization during the k-th iteration.e sum of the mean absolute percentage error of the mainstream tra c density and speed is used for the tness function.e tness function is expressed as follows: where k indicates the time step t kT, where k 1, 2, . . ., K is the total time period; ρ o (k) and ρ i (k) are the actual mainstream density and the density derived from the proposed tra c model at the time step kT, respectively; and v o (k) and v i (k) are the actual mainstream speed and the speed derived from the proposed tra c model at the time step kT, respectively; in addition, the data on ρ o (k) and v o (k) under foggy weather conditions can be obtained from a freeway information system.e mainstream tra c ow is a product of the mainstream tra c density and speed, and thus, the mainstream ow is indirectly taken into account through the tness

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 c 1 and c 2 as 2, and the inertia weight w 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.
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 p 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.

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.e consequence of closing an on-ramp is not only a reduction in the mainstream traffic flow but also a decrease in the traffic efficiency.erefore, 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.us, 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 K P and K R are the gain factors for the proportional and integral terms, respectively.e proposed local ramp metering strategy based on the density correction factor (c d ) can regulate the on-ramp flow according to the freeway traffic state.In addition, the density correction factor (c d ) is directly determined using the T-S model.e proposed local ramp metering strategy based on the density correction factor (c d ) can be expressed as follows: where K P and K R are the gain factors for the proportional and integral terms, respectively; ρ p is the predefined density value; and c d represents the density correction factor.e mainstream traffic density (ρ), speed (v), and visibility (r) of the freeway are three key factors affecting the traffic safety under foggy weather conditions.us, this paper sets the mainstream traffic density (ρ), speed (v), and visibility (r) as input variables of the T-S model and the density correction factor (c d ) as the output variable.Assume that A(ρ), A(v), 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.e 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 ], [v 1 , v 2 ], and [r 1 , r 2 ], respectively.e mean values of ρ m , v m , and r m and the scaling factors K ρ , K v , and K r transform the physical domains , and [− 1, 1], respectively, the mathematical formulas of which are as follows: Complexity us, the measured values r(k) and b(k) can be transformed into the normalized domain as follows: e 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.erefore, 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: IF ρ is HIGH AND v is LOW AND r is HIGH √√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√√ where o i j , in which j � 0, 1, 2, 3, is a constant parameter of the consequent part corresponding to the i-th fuzzy rule and c i d denotes the output value corresponding to the i-th fuzzy rule.
According to equations ( 1)-(3), the density correction factor (c d ) can be calculated as follows: According to equations ( 15) and ( 18), the desired density can be calculated as follows: e T-S model of the density correction factor contains four fuzzy rules, each of which has four parameters to be regulated.us, the T-S model has 16 parameters to regulate in the proposed local ramp metering strategy.
e PSO algorithm is used to optimize these 16 parameters.
e principle and implementation steps of the PSO algorithm are described in Section 2.4.e determined difference is the fitness function.Freeway traffic safety during foggy weather conditions is the primary control target.us, 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.
e 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.e real-time crash-risk prediction model [29] is calculated as follows: where V U (t − ΔT, t) and V D (t − ΔT, t) are the average speed in the upstream and downstream segments during the time period ΔT, respectively; O U (t − ΔT, t) 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 V λ U (t n − Δt, t n ) and V λ D (t n − Δt, t n ) are the average speed of the λ-th lane in the upstream and downstream segments during the time interval Δt, respectively.In addition, O λ U (t n − Δt, t n ) is the average occupancy of the λ-th lane in the upstream segment during the time interval Δt; σ(O U ) and σ(O D ) 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; N 1 is the number of time intervals in a single time period (N 1 � ΔT/Δt); P(Y � 1) 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.erefore, 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.e configuration parameters of the PSO algorithm used in the proposed local ramp metering strategy are listed in Table 3. e 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. e demand (Q 3 ) of segment 3 from detector 4 and demand (d 2 ) of on-ramp R2 from detector 8 are shown in Figure 4(a).e units of the segment 3 demand (Q 3 ) and onramp R2 demand (d 2 ) are both the hourly flow.e average speed (V 3 ) 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.e experiment simulates the freeway traffic from 1 : 00 am to 23 : 40 pm with a simulation time step of 10 s. e 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.erefore, the freeway traffic safety and efficiency decrease with the elevated concentration of fog.e influence of foggy weather on the traffic model is mainly in terms of density and speed.e 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.e parameters used for the proposed traffic model are set as follows: initial speed v(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 r m � 100 m and b m � 1000 m and scaling factors of K r � 0.02 and K b � 0.002 are used.

Simulation Results and Analysis.
As shown in Figure 6, one model correction factor (c m ) is applied to the mainstream traffic density and velocity.e 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 (c m ) is 5.96%.As

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.e data on traffic incidents are obtained through a simulation in VISSIM.e location of a traffic incident is shown in Figure 3. e time interval is Δt � 10 s, the time period is ΔT � 60 s, and N 1 � ΔT/Δt � 6 is applied.e real-time crash-risk probability is calculated during every six simulation time steps.e 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.
e freeway traffic density and speed under different local ramp metering strategies are shown in Figures 9(a 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  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 crashrisk 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-ALI-NEA 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.e significant difference between these results is characterized by a significance threshold fixed at a p value less than or equal to 0.05.e calculated p 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.

Conclusions
A macroscopic traffic model applied under foggy weather conditions and based on a model correction factor (c m ) was proposed in this paper.e model correction factor (c m ) is regulated online based on different visibility conditions and curve radius of the freeway to better optimize the traffic model under foggy weather conditions.e 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 (c d ) is proposed when considering the proposed traffic model.e density correction factor (c d ) 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.e simulation results show the effectiveness of the proposed traffic model and ramp metering strategy under foggy weather conditions.
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.e 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 [r 1 , r 2 ] and [b 1 , b 2 ], respectively.e mean values of r m and b m and the scaling factors K r and K b are used to transform the physical domains [r 1 , r 2 ] and [b 1 , b 2 ] into the normalized domains [− 1, 1] and [− 1, 1], respectively, the mathematical formulas of which are as follows:

Figure 1 :
Figure 1: Membership functions of (a) visibility and (b) curve radius.

4. 1 .
Simulation of Traffic Model under Foggy Weather Conditions4.1.1.Experimental Setup.e hypothetical freeway stretch is divided into five segments with a length of Δx i , namely, Δx 1 � 643 m, Δx 2 � 643 m, Δx 3 � 643 m, Δx 4 � 643 m, and Δx 5 � 643 m. e hypothetical freeway stretch has two lanes and two on-ramps.e lengths of on-ramps R1 and R2 are both 400 m. e hypothetical freeway stretch is shown in Figure3.Segment 4 is used for traffic modelling under foggy weather conditions.

Figure 6 :Figure 7 :Figure 8 :
Figure 6: (a) Model speed and actual speed and (b) model density and actual density of case 1.
) and 9(b), respectively.Equation(27) shows the real-time collision rate, which is used to evaluate the proposed local ramp metering strategy.e real-time collision rate of different local ramp metering strategies is shown in Figure9(c).

Figure 9 :
Figure 9: (a) Mainstream density, (b) mainstream speed, and (c) real-time crash-risk probability of different local ramp metering strategies.

Table 1 :
Combinations of input variables in fuzzy rules.It is known that the speed, density, and flow are considered to be explanatory variables of the freeway traffic model.erefore, the fitness function, which includes the mainstream speed, density, and flow, represents a comprehensive assessment of the proposed traffic model.e implementation steps of the PSO algorithm are divided into two parts: initialization and iteration.

Table 2 :
Combinations of input variables used in fuzzy rules.

Table 3 :
Combinations of input variables in fuzzy rules.

Table 5 :
Partial real-time collision rate of different strategies.