Abstract
Automated vehicles are expected to influence human drivers’ behavior. Accordingly, capturing such changes is critical for planning and operation purposes. With regard to car-following behavior, a key question is whether existing car-following models can replicate these changes in human behavior. Using a data set that was collected from the car-following behavior of human drivers when following automated vehicles, this paper offers a robust methodology based on the concept of dynamic time warping to investigate the critical parameters that can be used to capture changes in human behavior. The results indicate that spacing can best substantiate such changes. Moreover, calibration and validation of the intelligent driver model (IDM) suggest its inability to capture changes in human behavior in response to automated vehicles. Thus, an extension of the IDM that explicitly models stochasticity in the behavior of individual drivers is applied, and the results show such a model can identify a reduction in uncertainty when following an automated vehicle. This finding also has implications for a stochastic extension to other models when analyzing and simulating a mixed-autonomy traffic flow environment.
Automated vehicles (AVs) have increased their presence in the emerging mobility system through their ability to sense, evaluate, and predict the surrounding environment meticulously, navigate and plan trajectories comprehensively, and accurately perform the corresponding maneuvers. Based on their improved performance with regard to perception, motion planning, and control compared with human drivers, AVs have the potential to revolutionize future mobility in a fundamental way by promoting safety ( 1 – 3 ), increasing throughput and maintaining stability ( 4 ), reducing emissions ( 5 , 6 ) and fuel consumption ( 7 ), and providing critical mobility to the elderly and disabled ( 8 ). The AV industry has also burgeoned since technology giants, such as Google’s Waymo and transportation network company leaders Uber and DiDi, began collaborating and competing with the traditional automobile manufacturers, for example, General Motors and Ford ( 9 ).
Despite all the potential advantages AVs offer, full market penetration is beyond their scope in the near future ( 10 ); accordingly, a mixed traffic environment with different levels of autonomy is expected in a transition phase. The behavior of humans and AVs are known to be fundamentally different because each follows different logic and mechanisms. Therefore, utilizing the benefits of AVs hinges on characterizing the interactions between humans and AVs in mixed-autonomy traffic.
When investigating AVs’ influence on traffic flow, early research focused on the unique features of AVs and the corresponding implications for macroscopic characteristics of traffic flow. Rajamani and Shladover ( 11 ) conducted a comparative experimental study on the minimum time headway between human-driven vehicles and AVs. The results suggested that AVs can maintain a shorter time gap, which implies a potential increase in capacity. Chen et al. ( 12 ) provided a theoretical formulation of equilibrium operational capacity in mixed-autonomy traffic, considering AVs’ penetration rate, platoon size, spacing characteristics, and lane policies. In another study, Talebpour and Mahmassani ( 4 ) presented a comprehensive acceleration model and a simulation framework to shed light on traffic flow dynamics, including stability and throughput under different market penetration rates, when both connected and AVs were involved.
In analyzing the interactions between humans and AVs, many previous studies have focused on AV operations but rather overlooked the possible behavioral changes in human drivers. For example, Van Arem et al. ( 13 ) extended adaptive cruise control to cooperative adaptive cruise control (CACC) by allowing information exchange via wireless communication, and proposed a safe acceleration logic. Later, Wang et al. ( 14 ) presented a car-following model for CACC that considered more vehicles in the platoon. However, the above studies did not model human drivers’ behavior explicitly. Therefore, until recently, the question of whether and to what extent the introduction of AVs will influence the behavior of human drivers remained uncertain. Among all the decisions that define vehicle interactions, car-following, which dictates how vehicles accelerate in response to the speed, distance, or relative velocity of surrounding vehicles, is probably the most basic. Thus, the studies that focused on human–AV interactions mainly considered the car-following behavior itself, and did not take more complex behavior such as lane changing into account. Cui et al. ( 15 ) investigated the possibility of a single AV stabilizing the traffic flow, assuming human drivers maintained their behavior patterns. Later, Stern et al. ( 16 ) designed an experiment on a circular track with a single AV in the platoon and provided evidence of AVs’ ability to dampen stop-and-go waves, even with a less than 5% market penetration rate. This series of works demonstrated that AVs could increase traffic flow stability by preventing shock wave formation and spread. In a more recent study, Zhao et al. ( 17 ) performed car-following experiments to compare human-following-human and human-following-AVs, and the results indicated that subjective trust in AV technologies would have an impact on driver behavior. Under different experimental settings, Rahmati et al. ( 18 ) conducted an empirical study with a three-vehicle fleet focusing on the human drivers in human–AV interactions. A series of comparative car-following experiments revealed the existence of behavioral changes in human drivers after the introduction of AVs. Zheng et al. ( 19 ) then showed in simulation that the uncertainty in human drivers’ behavior decreases as the penetration rate of AVs increases.
One of the key aspects missing from studies focusing on human–AV interactions is the ability of car-following models to capture such changes in behavior and the accurate modeling of human behavior in response to AVs. Indeed, the previous studies remain silent on the evaluation and validation of the ability of car-following models to capture such behavioral changes effectively. Therefore, an investigation of the existing models, especially those commonly used by researchers and practitioners, will complement the literature and will be essential in characterizing human–AV interactions. To address the aforementioned questions, the major contribution of this study is to investigate whether commonly used models in non-AV traffic can capture human drivers’ behavioral changes, and if not, what special considerations and extensions to the models are needed. These findings can provide insights for characterizing human–AV interaction and will increase the reliability of simulation frameworks in modeling mixed traffic.
The paper is organized as follows. The next section elaborates on the experiment and data utilized in this study. Following this, the methodologies employed are described: a data-driven dynamic time warping (DTW) analysis to examine the behavioral difference between following an AV and a human-driven vehicle that includes speed, acceleration, relative speed, spacing, and time headway; and a model-based method to calibrate and validate stochastic car-following models. The data-driven DTW analysis will investigate which drivers’ behavior measurements can best substantiate changes in driver behavior, and the model-based method will further examine whether car-following models can capture such changes. The paper then presents the results and an associated discussion. Finally, the paper concludes with some summary remarks and offers a few suggestions for future research.
Data Description
This section is a brief version of the experimental setup described in Rahmati et al. ( 18 ). To model the potential impact of AVs on human drivers in mixed traffic, previous studies have focused mainly on capacity analysis. For example, Chen et al. ( 12 ) classified car-following into four scenarios to formulate the equilibrium capacity based on whether the leader and follower vehicle were automated. This modeling technique also provides insights for designing a car-following experiment to compare the different behavior patterns when a human is following an AV or another human-driven car (H).
This study utilizes the data collected by Rahmati et al. ( 18 ). Figure 1 shows the vehicle platooning settings in their experiment. Two scenarios were defined to study the human drivers’ behavior when the leading vehicle was automated or conventional. In both scenarios, the control vehicle (vehicle 1) was driven by the same driver who followed a fixed speed profile to preserve the consistency in other latent variables in each experiment. The follower (vehicle 3) was the test object in each experiment, and the measurements of the driver’s behavior were documented as time series data. The leader (vehicle 2) was operated differently between the two scenarios. In scenario A, the leader (vehicle 2) executed the speed profile of a human driver, whereas in scenario B, the vehicle executed the speed profile of an AV. To generate realistic speed profiles for vehicles 1 and 2, five leader–follower pair trajectories were extracted from the NGSIM US-101 data set ( 20 ). Moreover, the speed profile for the AV in scenario B was determined by a deterministic acceleration modeling framework determined by Van Arem et al. ( 13 ) and represented by the following equation:
where
where n and n− 1 represent the AV and its leader, respectively,

Data collection scenarios ( 18 ).
To account for the range limitation of the sensors and the maximum deceleration for the AV and its leader, the maximum safe speed
where
where
The speed profile in scenario A is drawn directly from lead–follower pairs in the NGSIM US-101 data set to represent human drivers, and in scenario B, the NGSIM data are taken as inputs to compute the corresponding speed profile based on Equations 1 through 7. The speed profile of an AV shares a similar pattern to a human-driven vehicle but it is generally smoother, as shown in Figure 2.

Sample speed profile for vehicle 2 under the two scenarios ( 18 ).
The experiment was performed on the AV testing track at Texas A&M University’s RELLIS campus, with nine drivers operating the test object vehicle (vehicle 3 in Figure 1) under the two scenarios and five different speed profiles. The AV used in this study was Texas A&M University’s automated Chevy Bolt, which can follow any given speed profile. Other vehicles used were conventional cars with no automation. To avoid any bias during experiments, the drivers of the test object vehicle were not aware of the type of their leading car during experiments, and they were simply told to follow the leader along a given straight route. The driving behavior measurements, including speed, acceleration, location, spacing, time headway, and relative speed (the velocity difference between vehicle 2 and 3), were collected at a frequency of 10Hz. After preprocessing, 45 samples in scenario A and 44 samples in scenario B remained. For more information about the data collection, please refer to Rahmati et al. ( 18 ).
Methodology
This section presents two steps for addressing whether an extension to non-AV models is needed to capture the behavioral change of human drivers in mixed traffic. The first step is a data-driven analysis to measure the difference between the two scenarios (i.e., human-following and AV-following), and the second step is a model-based method to investigate how capturing stochasticity in human decision-making has an impact on the ability of the models to capture such behavioral changes.
Data-Driven Method: DTW Analysis
The drivers’ behavior consists of a collection of time series data, including (a) speed, (b) acceleration, (c) longitudinal locations, (d) relative speed, (e) spacing, and (f) time headway. An intuitive way of measuring the difference between following a human-driven vehicle and an AV is to use the Euclidean distance, and according to Esling and Agon (
21
), the Euclidean distance and other
where
However, the Euclidean distance may not suffice to quantify the difference between the collected time series data in this study for two reasons. The first is the inability to measure the dissimilarity of time series with different lengths accurately, which is an innate shortcoming of Euclidean distance (
22
). If the Euclidean distance were to be used as the metric in the illustrative example in Figure 3, all the information contained in the data points in

Illustration of the computational difference between the Euclidean distance (red dotted lines from
Figure 3 demonstrates why the Euclidean distance has intrinsic shortcomings in evaluating the differences in time series data accurately. Here,
In the light of DTW’s ability to calculate the optimal matching and measure the difference in time series data, following the guidelines provided by Hosseini et al. (
25
), this study develops a DTW formulation to quantify the behavioral changes in human drivers when following an AV. For a given driver and speed profile, denote
where
Based on the local cost matrix, a
where
The DTW distance is the accumulated total cost of the optimal warping path. In contrast to the Euclidean distance calculated by Equation 8, the DTW distance is computed based on optimal matching, which will yield more plausible measurements in the difference between time series
The given six constraints instantiate three key assumptions first formally proposed by Sakoe and Chiba (
26
): (a)
So, the optimization problem defined by Equations 10 through 16 is reduced to a shortest path problem given the sink, source, and edge costs. The Bellman–Ford algorithm is suitable for solving such problems, and to address the constraints, a dynamic programming (DP) method is used. Denote the
The pseudo-code for the DP algorithm in computing the cumulative distance matrix
To compute the local cost matrix
Table 1 shows an example of two time series containing speed information. This pair of speed data is a piece-wise linear approximation from the experiment data by driver No. 1 under speed profile 334. Each speed series spans over 22 s and has 12 time steps. Following the definition of the Euclidean distance and the approach to calculating it provided in the seminal work by Rakthanmanon et al. (
22
), only paired data occurring at the same time in both time series will be used for computing distances. Figure 4 shows the matching patterns in the Euclidean distance. Eleven pairs of points are plugged into Equation 8, which yields
A Piece-Wise Linear Speed Example for the
Note: AV = automated vehicle; NA = not available.

Matching patterns for the Euclidean distance and the DTW distance of speed, respectively: (a)
From this simplified example, the evaluation process indicates that the DTW distance has an advantage over the Euclidean distance in measuring the difference between two time series with different lengths but similar patterns, which is a feature of the empirical data set utilized in this paper. Because Rahmati et al. ( 18 ) have revealed the existence of changes in human behavior in mixed traffic, this study aims to identify which behavioral parameter(s) (i.e., acceleration, speed, relative speed, spacing, and time headway) can best substantiate such changes using the DTW analysis framework. However, two normalization steps are still needed to compare different behavior parameters with heterogeneous lengths and units.
The DTW distance is an accumulation of errors, so longer time series data inherently have a larger DTW distance, and using the DTW distance defined in Equation 10to measure the difference between two scenarios directly may yield biased results. To address this issue, Giorgino (
27
) defined the
The measurements of the driving behaviors have different units and need to be normalized to unitless quantities within the same range (e.g., [0, 1]) for comparison purposes. Therefore, a unity-based normalization method is adopted in this study. The maximum and minimum values of each measurement set will act as inputs. Because these inputs will be susceptible to abnormal values, the three-sigma rule of thumb is used to remove any outliers before conducting the unity-based normalization. Accordingly, this study uses the
where
In summary, in quantifying the behavioral differences, the DTW analysis framework can better capture the matching patterns and can relax the assumption of identical data length, compared with Euclidean distance. The DTW formulation is reduced to a shortest path problem, which is solvable in polynomial time using DP. More numerical results and analyses will be presented in the Results and Analysis section.
Model-Based Method: Stochastic Car-Following Models
The major questions this study aims to address are whether commonly applied models are able to capture the behavioral change in human drivers identified in Rahmati et al. ( 18 ), and if not, how to extend the original models to accommodate the changes. Car-following behavior has been studied extensively. Most commonly used car-following models are deterministic, with deliberately designed structures and parameter settings, and they include the intelligent driver model (IDM) ( 28 ), Gipps’ model ( 29 ), and Newell’s car-following model ( 30 ). Although these models have been developed with refined properties, they may not capture the intrinsic uncertainty of human drivers. To this end, several stochastic extensions of these models have been developed. For example, the parsimonious car-following model ( 31 ) added white acceleration noise to Newell’s car-following model to address random errors in drivers’ acceleration processes.
This study utilizes the IDM ( 28 ) and its stochastic version proposed by Treiber and Kesting ( 32 ) as representatives of deterministic and stochastic car-following models. Note that the analyses presented in the next section can be replicated with any car-following model. The model specifications are presented in the following equations:
where
where
To minimize the MAPE of speed, this study uses a genetic algorithm because of the nonlinearity in the objective function. Moreover, as a metaheuristic method, genetic algorithms have good converge performance. To analyze further how stochasticity influences the model’s ability to capture the behavioral change, this study adopts the stochastic IDM from Treiber and Kesting (
32
) and Bhattacharyya et al. (
34
), and uses the parameter
where
where
where
It is worth noting that the performance measure can be set at speed or spacing, and previous research suggests that calibrating deterministic models against spacing also yields acceptable results ( 35 , 36 ). However, the stochastic extension of IDM proposed by Treiber and Kesting ( 32 ) provides a distribution of speed explicitly, and if the simulated spacing were to compute numerically, a quadrature error would be introduced when evaluating the location at each time step. Therefore, to ensure consistency when calibrating the deterministic and stochastic IDM models, this study uses speed as the performance measure following the calibration process introduced by Treiber and Kesting ( 32 ). The calibration and validation results will be presented in the next section.
Results and Analysis
The primary goal of this study is to analyze the changes in human driver behavior in a mixed-autonomy traffic environment and to evaluate whether commonly used models are capable of capturing such changes. To this end, we designed a data-driven DTW analysis framework and take the IDM as an example to address the importance of stochasticity based on nonparametric hypothesis tests.
DTW
The power of DTW comes from finding the optimal matching patterns before calculating the sum of errors. Thus, the core is to find the warping path

A demonstration on computing the warping path in DTW: (a) three-way plot, with the two speed time series placed perpendicularly and the warping path displayed in the center; and (b) density plot, with the local cost matrix displayed in the heat map and the corresponding warping path shown as a blue line.
Figure 6 shows an example of how a human driver reacts with respect to the leader’s speed. The shift along the time axis in the follower’s speed curve between the two cases can be observed, especially between 20 and 40 s from the start of the experiments. Such a phenomenon may be explained by the difference in driving behavior of AVs and human-driven vehicles and the human response to this. The DTW analysis framework proposed in this study will first find the matching patterns and align the two time series data before evaluating the differences. This approach will address the time shift issue because of possible errors in time recording that occurred during data collection. Figure 7 further shows what the matching patterns look like. The two speed–time curves have very similar patterns and extreme values. Thus, to demonstrate the alignment better, an offset of 30 is added to the following AV case and the dotted lines present the matching between the two speed time series data.

Speed and the leader’s (driver 1) speed under speed profile 334: (a) following an AV; and (b) following a human-driven vehicle.

A demonstration of the matching patterns from the DTW analysis on speed: (a) original plot; and (b) plot with 30 unit offsets for the following AV case.
Following the same analysis framework, the normalized DTW distance of five data categories is calculated and shown in Figure 8. A total of 44 drivers–speed profile pairs are investigated, and among all five behavior categories, the spacing evidently has a larger distance, which can be interpreted as a more significant difference in maintaining spacing when the leading vehicle is an AV or not. This is not detectable when looking at the aggregated descriptive statistics of spacing. Mahdinia et al. ( 37 ) conducted such an analysis on the same data set, and based on their results, we do not have sufficient evidence to say the spacing has a statistically significant difference when following an AV as opposed to a human-driven vehicle. This may be a result of neglecting the time series properties in the analysis of descriptive statistics. On the contrary, acceleration has the poorest performance in capturing the changes in human behavior. Acceleration often acts as the output in car-following models, and is rather insensitive to the desired speed and the parameters controlling the gaps (spacing and time headway in the case of this study), according to Treiber and Kesting ( 38 ). The dispersion of speed and relative speed are similar to each other in Figure 8. This phenomenon can be predicted if speed and relative speed are strongly linearly correlated, which happens in stable traffic in which the leading vehicle has almost a constant speed.

Boxplot showing the unity-based normalized DTW distance with different data categories.
The DTW analysis can also detect abnormal values in the data set. For example, one of the outliers of time headway is from the experiment of driver 2 under speed profile 211 ( 18 ). Figure 9a depicts a regular headway time series under speed profile 211. However, in Figure 9b, the vehicle has a headway of more than 500 s and should be removed in the following model-based method when calibrating the car-following models. The DTW analysis framework mentioned above was developed from a Python package called dtw ( 27 ). In summary, 85 driver–speed profiles were selected for the following study.

Comparison of headway data: (a) regular headway under speed profile 211; and (b) the outlier identified by DTW analysis.
Stochastic IDM
Evidence from previous studies and the above analysis shows that human drivers’ behavior will change when interacting with AVs in mixed traffic flow. The rest of this paper will calibrate and validate the IDM car-following model, which has been widely applied in previous research and used by existing simulation platforms. In this study, the IDM and stochastic IDM are calibrated with a genetic algorithm. The population is initialized with 30 parents and 900 child chromosomes. The mutation rate is 10% and Figure 10 shows the MAPE converges to less than 10% after 20 generations.

Convergence over generations in a genetic algorithm.
The distribution of the parameters calibrated for the IDM and the corresponding kernel density estimation are shown in Figure 11. The parameters can easily be perceived as not normally distributed based on the histograms, which violates the assumption of the t-test. Therefore, to determine if the distribution of the parameters for human drivers’ behavior when following an AV is significantly different from the distribution of the parameters when following a human-driven vehicle, the two-sample Kolmogorov–Smirnov (K–S) test is conducted on 85 realizations (42 from following a human-driven vehicle and 43 from following an AV). The hypothesis testing results are summarized in Table 2. The null hypothesis
K–S Test Results
Note: IDM = intelligent driver model; HV = human-driven vehicle; AV = automated vehicle; K–S = Kolmogorov–Smirnov; SD = standard deviation; obs. = observations. This shaded cell is to highlight the last parameter is the only one that rejects the null hypothesis.

The distributions of IDM parameters.

Cumulative distribution function for the six parameters in the stochastic IDM.
This finding provides validation of the methodology presented in the Methodology section, that is, employing a stochastic extension of deterministic models to address the changes in human behavior in mixed traffic. This also suggests that whenever the IDM is used to model AV–human-driven vehicle interactions, caution should be exercised because it may not capture the behavioral changes in human drivers.
Conclusion and Discussion
With the associated advances in sensing, computing, navigation, and control technology, AVs have drawn significant attention from both researchers and practitioners and have made an impact beyond the transportation arena. However, because of the low degree of public acceptance and other critical deployment issues, there is still a long way to go before a fully autonomous transportation system will be operational, especially for road traffic. Instead, it is expected that there will be a mixed traffic environment with different levels of autonomy. It has been perceived that human driving behavior will change in response to AVs, but whether existing models can capture such behavioral changes has not received proper investigation.
With a focus on car-following behavior, this paper uses a data set collected from human drivers’ car-following behavior when following an AV ( 18 ). Two approaches were adopted: a data-driven method based on DTW; and a model-based method introducing stochasticity to the existing models.
For the data-driven method, this paper developed a robust DTW analysis framework, which first calculates the optimal matching between two behavioral time series data, and then uses the normalized DTW distance to quantify behavioral changes in human drivers. Next, we follow the same routine with other drivers’ behavior recorded in the data set, including acceleration, speed, relative speed, time headway, and spacing ( 18 ). The results show that spacing has the best performance in measuring changes in human drivers’ behavior, whereas there is little difference in acceleration between the two scenarios.
In the model-based analysis, a genetic algorithm is used to calibrate the IDM by minimizing the MAPE. The calibrated parameters of the IDM do not obey normal distributions, so to assess whether the parameters of the IDM are different when the leader is an AV, this paper uses a two-sample K–S test. The hypothesis testing shows parameters defined in the IDM cannot capture the behavioral changes. Thus, an extended IDM that explicitly models the stochasticity when a driver performs acceleration (
32
,
34
) is calibrated using a similar approach. Then K–S test result shows that the newly introduced parameter
This study introduces a new perspective on a DTW-based method for measuring the changes in drivers’ behavior when interacting with AVs. It is worth noting that the original DTW proposed by Bellman and Kalaba ( 23 ) does not account for the correlation in multivariate time series. However, the driving behavior measurements have correlations. For example, the spacings and relative speeds have high correlations, and applying DTW directly may risk losing correlation information. Bankó and Abonyi ( 39 ) and Hosseini et al. ( 25 ) discussed the potential for using feature selection methods to address this problem. For future research, orthogonalization methods, for example, principal component analysis, may be applied to construct new uncorrelated features before conducting the DTW analysis described in the Methodology section.
This study also heralds a new chapter of research in the area of investigating whether widely-adopted models can capture changes in human drivers’ behavior in response to AVs. Thus, more models will be tested to identify the common features a model should possess to characterize the interactions in mixed-autonomy traffic. Finally, lane-changing behavior and other more complex interactions still remain undiscovered, and offer considerable potential for research.
Footnotes
Acknowledgements
The authors thank Dr.Yalda Rahmati at General Motors LLC for providing the data set used in this paper and for the discussion and collaborations that have guided us to this interesting problem.
Author Contributions
The authors confirm contribution to the paper as follows: study conception and design: Y. Zhang, A. Talebpour; data collection: A. Talebpour; analysis and interpretation of results: Y. Zhang, A. Talebpour; draft manuscript preparation: Y. Zhang, A. Talebpour. All authors reviewed the results and approved the final version of the manuscript.
Declaration of Conflicting Interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This material is based on work supported by the National Science Foundation under grant no. 2047937.
