Application of Bayesian Hierarchical Finite Mixture Model to Account for Severe Heterogeneous Crash Data

Various techniques have been proposed in the literature to account for the observed and unobserved heterogeneity in the crash dataset. Those include techniques such as the finite mixture model (FMM), or hierarchical techniques. The FMM could provide a flexible framework by providing various distributions for various individual observations. However, the shortcoming of the standard FMM is that it cannot account for the heterogeneity in a single model’s structure, and the data needs to be disaggregated to its resultant subsamples. That would result in a loss of information. On the other hand, a second plausible approach is to use a hierarchical technique to account for the data heterogeneities, being based on various explanatory variables, and based on engineering intuition. In the context of traffic safety, while some researchers, for instance, considered the seasonality, some others considered highway systems or even genders. However, a question might arise: are the same observations within a same hierarchy homogenous? Are all the observations within different clusters heterogeneous? Additionally, how about other variables? Although the results in the literature highlighted accounting for the structure of the dataset would result in an acceptable interclass correlation (ICC), and also result in a significant improvement in terms of reduction in the deviance information criteria (DIC), there is no justification why to use those specific hierarchies and reject others. A more reasonable approach is to let the algorithm come up with the best distributions based on the provided parameters and accommodate observations to the related mixtures. In that approach those observations that belong to various subjective hierarchies, e.g., winter versus summer, but found to be similar would be set in a similar cluster. That is why we proposed this methodology to implement an objective hierarchy of the FMM to be used for the hierarchical technique. Here, due to the label switching problem of the FMM in the context of Bayesian, the FMM first conducted in the context of maximum likelihood estimates, and then assigned observations were used for the final analysis. The results of the DIC highlighted a significant improvement in the model fit compared with a subjective assigned hierarchy based on highway system. Additionally, although the subjective model resulted in a very low ICC due to so much heterogeneity in the dataset, the implemented methodology resulted in an acceptable ICC (0.3), justifying the use of hierarchy. The Bayesian hierarchical finite mixture model (BHFMM) is one of earliest application in traffic safety studies. The findings of this study have important implications for the future studies to account for a higher heterogeneity of the crash dataset based on the distance of observations to each cluster.


Introduction
Vehicle crashes are one of the leading causes of death around the world. Annually, more than 1 million people die and more than 20 million are severely injured in crashes [1]. These crashes are ranked 7th in terms of life lost [2]. The life lost is equivalent to more than 230 billion worth of crash costs every year.
Researchers around the world are striving to find and tackle contributory factors to crashes in the most accurate way by implementing advanced statistical techniques, Signals 2021, 2 42 especially by accounting for the data heterogeneity. One of the main sources of data heterogeneity is due to not accounting for the structure of the data. This would ignore the similarities across observations in the same group, and dissimilarly across the cross-group resulting in data heterogeneity.
Researchers, especially, in social science are often confronted with hierarchical data. Examples are numerous such as: repeated measures taken from the same individuals in an organization, individuals living in a same state with various districts and so on. Despite the obvious structures in those fields, very often the researchers consider the hierarchical techniques for traffic safety studies. Although no clear-cut structures could be assigned to the dataset, often various factors such as seasonality, gender, highway, or barrier types have been considered. As it is expected, almost all those studies highlighted an improvement in the model fit. However, the question might arise whether those variables could account for optimum amount of the heterogeneity in the datasets. If, for instance, the highway system was chosen as the hierarchy levels, would all the observations within each highway system be similar, and would the observations within various categories be different?
Significant efforts also have been made for the use of the finite mixture model (FMM) for the traffic studies. Based on that method, observations closest to a cluster would be assigned to that cluster accounting for the heterogeneity of the dataset. Although the method has the capability to account for the data heterogeneity, it would result in a loss of information. Thus, in this study we took advantage of both methods by aggregating those techniques. The method is the Bayesian hierarchical finite mixture model (BHFMM). The methodological approach is described in Figure 1. A comprehensive discussion was made, and the methodological approach presented in Figure 1. [1]. These crashes are ranked 7th in terms of life lost [2]. The life lost is equivalent to more than 230 billion worth of crash costs every year.
Researchers around the world are striving to find and tackle contributory factors to crashes in the most accurate way by implementing advanced statistical techniques, especially by accounting for the data heterogeneity. One of the main sources of data heterogeneity is due to not accounting for the structure of the data. This would ignore the similarities across observations in the same group, and dissimilarly across the cross-group resulting in data heterogeneity.
Researchers, especially, in social science are often confronted with hierarchical data. Examples are numerous such as: repeated measures taken from the same individuals in an organization, individuals living in a same state with various districts and so on. Despite the obvious structures in those fields, very often the researchers consider the hierarchical techniques for traffic safety studies. Although no clear-cut structures could be assigned to the dataset, often various factors such as seasonality, gender, highway, or barrier types have been considered. As it is expected, almost all those studies highlighted an improvement in the model fit. However, the question might arise whether those variables could account for optimum amount of the heterogeneity in the datasets. If, for instance, the highway system was chosen as the hierarchy levels, would all the observations within each highway system be similar, and would the observations within various categories be different?
Significant efforts also have been made for the use of the finite mixture model (FMM) for the traffic studies. Based on that method, observations closest to a cluster would be assigned to that cluster accounting for the heterogeneity of the dataset. Although the method has the capability to account for the data heterogeneity, it would result in a loss of information. Thus, in this study we took advantage of both methods by aggregating those techniques. The method is the Bayesian hierarchical finite mixture model (BHFMM). The methodological approach is described in Figure 1. A comprehensive discussion was made, and the methodological approach presented in Figure 1. The content of this manuscript is structured as follows: the method section would discuss the methodological approaches taken in this study followed by the data section, which details the data used in this study. The findings are then summarized in the results section. The content of this manuscript is structured as follows: the method section would discuss the methodological approaches taken in this study followed by the data section, which details the data used in this study. The findings are then summarized in the results section.

Method
This section describes the methodological approach implemented in this study. It, first, briefly discusses the model distributions being considered in this study. It then covers the FMM technique. The methodological approach then discusses how the models' parameters would be estimated.

Model Distributions
The negative binomial, gamma-Poisson model, is equivalent to the Poisson distributions with mean parameter µ, where the µ parameter follows a gamma distribution with shape parameter α, and rate parameter of α/µ. Although maximum likelihood has been used extensively in the literature by the generalized linear model (GLM), the Bayesian model especially favors the data, if there is prior expert knowledge about the parameters of interest, or when especially there is a small sample size.
Although we did not have any prior knowledge about the possible distributions' parameters of interest, the hierarchical technique was used due to a relatively low number of observations, and ease of implementing the hierarchical technique in the Bayesian context. In this paper, a hierarchical approach has been developed where there were 3 levels of hierarchy due to the factor of cluster.
Often, the response variable is a count response, which makes the algorithm for estimating the parameters more challenging, compared with a binary response like Probit or logit models. For this model we have a set of covariates as x = 1, where λ is the only parameter of Poisson, while there are two parameters of shape and scale for gamma. The probability density function (PDF) of the Poisson-gamma mixture, from Equation (1), would be written as: where Γ(.) is the gamma function, P is a probability parameter, and Y is assumed to follow the negative binomial (NB) distribution through the log link function. Now based on the above, the posterior probability of beta conditioned on data could be obtained as: As the equation P(data|β) in the numerator is intractable, after denoting distributions to the parameter's prior, a simulation-based approach would be used for estimating the posterior distributions of β.
The log likelihood function for finding the model parameters of the above equation could be written as follows [3]: The above is the key for the parameters' estimates in the context of maximum likelihood estimation, which would be solved with the help of gradient and Hessian. In the Bayesian context the process is based on sampling, which an upcoming subsection would talk about.

Finite Mixture Model
The FMM with K components would be written as follows [4]: where y is a dependent variable, with conditional density h, x is a vector of independent variable, and π k is dependent on the number of clusters or groups. ϕ is a vector of all the parameters as: Consider f as a normal density, for instance, with two parameters of mean as µ and variance of σ 2 . θ k could be written as θ K = µ, σ 2 , and in the above equation, h could be called as latent class regression [5]. On the other hand, if f , like our case, is a member of the exponential family, the model would be a mixture of generalized linear models [6].
The posterior probability that a crash (x, y) belongs to class j is [4]: The log likelihood of a mixture multivariate model with N observations {(x 1 , y 1 ), . . . , (x N , y N ) could be written as: After interposing h, from Equation (5) in the above equation, there would be: The above equation would be implemented across various observation crashes, of n belonging to a component k. The above equation cannot be solved directly, so, it would be solved based on the expectation-maximization (EM) algorithm. In summary, the likelihood of each component would be maximized separately by using a posterior probability,p nk , as weights: Additionally,p nk could be written as: where k is the component. The FMM highlights that in an efficient way, the traffic barriers could be considered to be obtained, for instance, from 4 different negative binomial distributions. Additionally, those distributions are not necessarily based on barrier types or highway classifications.
Research have implemented various techniques to account for the heterogeneity of the data. These include methods such as separating the dataset based on various characteristics such as highway systems or accounting for the heterogeneity through considering the mixed effect model. Although these two methods could account for the heterogeneity of the dataset, they could not account for the heterogeneity in a most efficient way.
Another method is to separate the dataset based on various distributions to account for an unobserved heterogeneity in a most efficient way. In other words, after randomly assigning a number of k as components, the model would come up with k distributions. Observations closest to a cluster would be assigned to that cluster. After assigning all the observations to each component, weighted generalized linear model (GLM) model, with the assigned distribution would be conducted. This is a model-based clustering. Barriers data could be clustered into 4 separate equations, for instance, in a most efficient way as follows: where X a , X b , X c , and X d are the observations belonging to 4 clusters. λ and α are negative binomial model parameters.
To make Equation (12) more intuitive, consider 2 component models with the x number of distributions: while the first model follows an equation of y = 5 + 2x, the second component follows the equation of y = 0.5 + 3x. After using the EM algorithm, appropriate distribution would be identified, and points/observations would be assigned to the appropriate clusters with the higher probability. In other words, observations would be assigned to the model distributions by answering the question of: what is the likelihood that the ith observation comes from k component p(x i |z i = k, r 2 , p 2 ) : Observation belongs to a cluster with a highest probability. Recall that the shortcoming of the application of Equation (12) is the loss of information due to separating the dataset into k number of datasets. A discussion why the FMM was conducted in the maximum likelihood context would be presented in a future subsection.

Model Parameters' Estimations
It can be said that the objective clustering associated with the FMM technique, identifies subsets of features that could best discriminate the observation crashes, while considering sets of covariates associated for each class. Contrary to frequentist methods, Bayesian methods consider the probability as beliefs. Non informative belief by a prior distribution would be given to an unknown parameter θ as π(θ). After seeing various data observations, based on the Bayes theorem, we would have: where L(θ) is the likelihood function. In summary, in simple words, the process of the MCMC, based on the above equation, would be highlighted in few points as:

•
Express the belief with a probability density (prior distribution) π(θ), this is without seeing any data. • Now distributions such as negative binomial or logit models would be highlighted to reflect our beliefs about x given θ. • After observing data { X 1 , . . . , X n }, our beliefs would be updated for estimation of the posterior distribution p (θ|X n ) . However, the challenge in the computation of multiparameter problems is, there would be a need to extract inferences about few parameters instead of only a single parameter. Due to difficulty in calculating the integral, the simulation could be used for solving the integral by randomly drawing from the posterior. For instance, for estimating the marginal posterior for θ 1 we would have: Suppose that p is a family of prior distributions, and for each θ we have a distribution p(.|θ) , then we have: It should be noted that often we need to sample from a complicated distribution h to reach our objective of posterior distribution. However, we would draw samples from a simplified distribution, which, based on the law of large number, would be converged to a desired distribution. For instance, consider a complicated function h. We could instead sample from a uniform distribution of U (0, 1) for estimating the integral, and based on the assumption of large number, we could assume the model would converge to the desired integral.
Importance sampling is a basic concept of Monte Carlo that addresses the challenge that there is no guarantee that the sampling, likelihood function, is from a known distribution. For instance, consider g is a probability density that we know how to sample from, and f is the probability density, which we do not know how to sample from, we have: Again, by the law of large number for the above we haveÎ → I . The Gibbs sampling would be used to find the conditional distribution of a parameter, conditioned on all other parameters. The concept is by gathering information and receiving feedbacks from the model, we would refine our belief to get closer to the truth. That follows a Bayes theorem. The knowledge of various explanatory variables would update our beliefs about the status of the crash counts. Thus, by gathering more information and updating the beliefs we can get closer to the truth.
The idea behind the Markov chain is that the random samples are generated by a special sequential process. In other words, the next random sample would be generated based on a previous generated value. It should be noted that although each new sample is dependent on the before samples, new samples are not dependent on the ones before the previous.
The process with Gibbs sampling could be summarized as follows: 1.
Begin with the starting values.

2.
Generate a new proposal by taking the last sample and adding some noise. The noise would be generated from proposal distribution, e.g., normal distribution with a mean of zero and wide precision.

3.
Estimate the next samples from the previous values with no rejection. Instead of the accept-reject method, or Metropolis-Hastings, we use Gibbs sampling, which is based on θ ). This would be estimated with the assumed distribution. The process would be described as follows:

I
Consider, for instance, two chains with 1000 iterations with an initial value such as 1 and 1.

I
Normalize the initial values based on the data distribution and replace updated values by the assigned starting values, highlighting the plausibility of initial values that came out from the proposed distribution. I Generate the first value in the first chain by adding up the related starting value by some random numbers: It should be noted that the generated values are created by adding up initial values by a random number from the normal distribution, or assigned distribution. I Check the plausibility of generated sample numbers coming from the population distribution; accept the generated value if it is more plausible as the related starting value, otherwise use the starting value. I For value in the second chain, the value of the first chain would be used.

4.
An updated proposed sample would become as a base for the next sample in the MCMC chain.

5.
Return to step 2 for a next iteration. 6.
Stop when there are enough samples to the number of iterations, based on the assigned value. 7.
Discard the warm-up, or burn-in samples, as they are likely to be inaccurate. As the starting values were set arbitrary and it take time for the algorithm to get approxi-mately close to the posterior distribution, the observations would go up and down very abruptly; and the distribution is unlikely to be from a posterior distribution.
The use of sampling is helpful as the model could use the chains to run sampling many times with different starting values. The following paragraphs would outline some background about model adjustments based on JAGS.
A random number of the generator (RNG) was used for each chain, and each chain has its own RNG [7]. Although the numbers seem entirely random, they would be determined by the initial values. It should be noted that the RNG is supplied by the Witchmann-Hill algorithm, which is a pseudorandom number generator. To reduce autocorrelation between the generated numbers, thinning would be used to keep observations based on some intervals, while rejecting the others.
JAGS is built on top of BUGS so the codes were written based on the BUGS language. The BUGS contain various implemented models' distributions for various scenario, and act as a black box as the sampling based on the distribution is not accessible based on the JAGS interface itself.

Bayesian Hierarchical Model
Bayesian hierarchical technique could be used to account for the heterogeneity resulted from the data structures. This technique was especially implemented in this study to account for the heterogeneity, by including the identified clusters based on the FMM, and measuring the amount of the heterogeneity that the clusters or classes could account for. Researchers account for the structure of the dataset based on the subjective decisions: including various spatial measures such as highway system or temporal correlation such as seasonality. However, a most viable and rational method is to let the advanced statistical method, e.g., the FMM, to disaggregate the dataset based on the underlying distributions.
After implementing the hierarchical analysis based on identified clusters through the FMM, an arbitrary highway grouping, in another analysis, was also used to account for spatial heterogeneity. This would provide some measures for comparison when a hierarchy is selected subjectively. The highway system was chosen as a possible dependency of observations across various highway systems. Strong spatial correlation across various highway systems might be expected. The correlations across identified clusters and highway system were implemented in the model via a set of random effects.
In the Bayesian hierarchical model, there is a random intercept for level 2 corresponding to the highway systems, which could be written as follows: where x ijp is covariate p for crash i in highway system j. γ, and ϑ are intercepts related to the levels considered in the model. In the case of the BHFMM, the clusters would be related to the clusters assigned by the FMM. It should be noted that the interpretation of the BHFMM is similar to the standard Bayesian hierarchical technique in Equation (17), with changes in the hierarchy. Finally, it should be noted that the non-informative priors were set for all parameters. These include multivariate normal distributions with means of 0 and large variances, or short precisions. The same distribution was employed for the mean of random intercept, while the random intercept variance was defined as the gamma distribution with low mean and precision.

Intraclass Correlation Measures
In cases where autocorrelation or intraclass correlation (ICC) is present, the information coming from the same group (e.g., highway system) tends to be similar compared with other information. Using the wrong hierarchy would result in possibly many coefficients estimate spuriously to be found significant for a model [8]. It should be noted that the same situation is often occurred while accounting for a model with a wrong distribution, e.g., accounting for a sparse dataset with Poisson for instance, compared with the NB. The ICC is calculated by dividing the between group variance, σ 2 α , by the sum of the between group, and within-group variance, σ 2 ε , as follows: A high value of ICC indicates that high similarity among the observations from the same group, or much variation in the response or barrier equivalent EPDO is due to groupings/levels, while the whole model variance is kept constant. Although the ICC value depends on the type of data and research objectives, previous studies considered a minimum cut-off of 0.25 for consideration of multilevel models [9]. Additionally, ICC value greater than 0.9 is an indication of an excellent reliability [10]. Hierarchical model corrects for the ICC value by inclusion of random effects in the model. One of the main advantages of using the hierarchical technique is to account for a causal heterogeneity [11].
It should be noted that the variance and mean of NB models could be written as follows: The above equations would be used for NB's ICC.

Label Switching
The FMM as a probabilistic model could be used to represent the whole data into its related subpopulations by assigning individuals to the main subpopulations. A question might arise why the FMM was not implemented in the context of Bayesian, like the main model. There are few concerns with the use of the FMM in the context of Bayesian, which the new few paragraphs would outline.
First there is an issue of the necessity to set prior information for the parameters. Although the problem might be resolved by setting non-informative priors like the main model, it might add an extra uncertainty. The problem actually has been discussed to be more challenging when using Bayesian technique for parameters estimation and clustering using mixture models (see for example [12]).
The second main issue is due to label switching. For the Bayesian technique, the parameters' posterior distribution is expected to be highly symmetric and multimodal [13]. Although imposing artificial identifiability has been proposed in the literature for solving the label switching issue, it has been discussed that the method does not always result in a satisfactory solution [14]. Thus, the estimation of the FMM model was conducted in the context of maximum likelihood.

Goodness of Fit Measures
As maximum likelihood was primarily used for identification of clusters in data, Akaike information criterion (AIC) was employed. On the other hand, as the hierarchical model was implemented in the Bayesian context, a general form of AIC for Bayesian, deviance information criterion (DIC) was implemented. Again, both techniques would result in almost identical parameters identifications. Both of these measures provide a relative quality of statistical models by penalizing for the number of included predictors.
AIC can be written as: where K is number of model parameters, including intercept. On the other hand, LL is the log-likelihood measure for model fit. DIC could be written as: where pD is effective number of parameters and should be approximately equal to the true number of parameters, and D θ is a point estimate of the deviance. Finally, it should be noted that although nonparametric Bayesian finite mixture model could be considered, the objective of this study was to make an argument about implementation of parametric technique and making a comparison with a subjective predictor as a hierarchy.

Data
The data in this study were aggregated from three main sources: traffic, historical crashes, and barriers geometric characteristics. All datasets were aggregated over a period of 2007-2017. The traffic dataset includes various traffic data such as the average annual daily traffic (AADT) and average annual truck traffic (ADTT).
The crash data is filtered to include only those crashes having "hitting a barrier" as their first harmful event. The response of the crash data was crash severity levels, which was converted into equivalent property damage only crashes (EPDO), based on the criteria highlighted with Wyoming department of transportation (WYODOT) as follows: EPDO rate = Fatal crashes + suspected serious injury + suspected minor injury + possible injury + Unknown + PDO (23) After converting Equation (23) into their monetary values, the above equation could be written as follows: Barrier geometrics includes various roadway and barrier geometric characteristics such as barrier types, length, offset, barrier height, and various roadside geometric characteristics such as shoulder width. This dataset also includes the starting and ending mileposts of traffic barriers on roadways, and roadway ID along with their directions. The milepost and roadway ID information were used for aggregating the crashes across various barriers. It should be noted, for the crash dataset, two highway systems, highway and interstate, were considered.
Few points are worthy to mention from Table 1. Often a barrier experienced more than a crash. For this scenario, while EPDOs are summed across those barriers, an average of various drivers, weather and road conditions were used as explanatory variables across those barriers. For instance, during the 10-year period, if two drivers: one male as 0 and another female driver as 1 hit a barrier, gender would be set as the average of these two observations as 0.5. Additionally, an average of the predictor highlights the distribution of those characteristics across a specific barrier. For instance, roadway classification for the first part of the table had a mean of 0.5, meaning that half of the barriers were in the highway system while the other half were placed in the interstate system. Only two barriers accounting for more than 95% of barriers were incorporated in the analysis, box-beam and W-beam. Additionally, the cluster in Table 1 is a variable created by the FMM, which would be elaborated in the next section. In total, 1848 barriers with almost equal proportion across two highway systems in Wyoming were considered in this study. The data accounted for 1,373,282 linear feet of barriers.

Results
This section is structured as follows: The first subsection would detail the process results of the FMM while the second part covers the implementation of the identified cluster in the hierarchical modeling. The last section discusses the finalist model based on goodness of fit, and ICC.

FMM
The FMM model with different distributions, NB and Poisson, and various numbers of components were considered to address the issue of unobserved heterogeneity of traffic barriers crash data. For the included model, the weight parameter was modeled based on various included predictors. The Akaike information criterion (AIC) was used for a comparison. As expected, due to the data sparsity, the NB model with various components performed better than the Poisson model. This is expected, as variance and mean are limited to being equal for the Poisson distributions, while variance is considered as a function of the mean for the NB model. Various number of components, k, were considered and an optimal value of 4 was obtained for the number of components. After completing the analysis, the identified components were assigned to each observation for the use in the next analysis.

Hierarchical Model
After identifying clusters for observations, those observations were labeled accordingly. Although a random parameter in the literature review was assigned to various predictors subjectively, clusters were identified based on the FMM and assigned to the data by the methodological approach discussed in the methodology section.
Two hierarchical modeling were developed: (1) a Bayesian hierarchical with the NB distribution with the FMM clusters as latent and (2) a highway system, as a subjective random parameter, in the hierarchical model.
The results of the hierarchical models with an objective clustering are presented in Table 2. The models were compared in terms of DIC and ICC. The DIC values indicated that the model with an objective implementation of the latent variable had significantly better fit, with lower DIC compared with a model with the highway system as a hierarchy, DIC of 8416 versus 10,808, respectively.
As can be seen from variance components of the two models, although the between crash variance of the second model was considerably higher than the other model, 3.274 versus 2.876, the between crash variance of the second model was much larger than the other model, 99.8 versus 0.316. This is expected as considering highway system as the hierarchy could not account for much of the heterogeneity in the dataset, and still there are so much variations due to heterogeneity in the dataset that the second model, even after considering highway system as a hierarchy, could not account for. In summary, while using hierarchical model was justified for the first model, ICC = 0.3, it was not for the second model, ICC < 0.1.
The results highlight that due to much heterogeneity in the barriers EPDO, it is important to account for the heterogeneities in the dataset by an objective method, e.g., the FMM. It is interesting to see that not accounting for the heterogeneity properly would result in the model's biased estimates, even by selecting subjective levels. This could be seen in the results for residency, for instance. While this value was found to be not important, based on the BHFMM, the results of the hierarchical model with road classification highlighted this value to be important.

Conclusions
Vehicle crashes are one of the leading causes of death around the world. Every year more than a million people die on road crashes around the world. Researchers are doing their best to identify most accurate estimations of the parameters, contributing to crashes so they can better understand and tackle the problem.
One of the challenges associated with a crash dataset is its heterogeneity. The heterogeneity resulted from various factors such as aggregating various genders, ages, vehicle types, time of a day, and seasonalities. Various approaches have been taken to tackle those issues such as disaggregating the data based on characteristics (e.g., FMM) or using methods such as hierarchical techniques to account for the structure of the dataset. However, the question is whether disaggregating the data, losing information, or using a subjective hierarchy could account for the whole story.
For instance, consider setting seasonality as a hierarchy. Although it is intuitive to accept that accounting for the hierarchies resulted from the seasonality would account for some heterogeneity in the dataset, the question is whether observations within each class are similar and whether observations within different classes are dissimilar. In addition, how about heterogeneities due to factors such as the highway system or other characteristics.
A possible answer to the question is to disaggregate the observations based on their distances to various clusters or based on their covariance matrices. Despite the method accounting for the heterogeneity by separating the data based on the underlying models' distributions, methods would result in N different modeling resulted for N different datasets, and consequently loss of information. A solution proposed in this study was aggregating the two methods to account for higher heterogeneity in the dataset and to prevent a loss of information.
Due to the label switching issue, while the final model was implemented in the Bayesian context, the FMM model was implemented in the maximum likelihood setting. Additionally, in this study we aggregated various datasets to add to the data heterogeneities. For instance, 10 years of crash data was used, adding to temporal instability, or aggregating two highway systems and various barrier types were included in the dataset. Finally, the results highlighted that the proposed method of the BHFMM performs significantly better in terms of DIC, 8416 versus 10,808. Additionally, while the subjective hierarchy resulted in the ICC of less than 0.1, the proposed method resulted in ICC = 0.3.
The results of this study had an important implication for crash analyses in future studies. This study highlighted that selecting appropriate clusters could account for a significantly higher amount of the heterogeneity in the dataset. Although several studies have been evaluated with FMM, no study to the best of the knowledge of the authors of this study has implemented the BHFMM technique to account for the data heterogeneity in the context of traffic safety. It is highly recommended that this technique to be utilized in future studies instead of subjective use of hierarchies.
Author Contributions: K.K. supervision and funding; M.R. methodology. All authors have read and agreed to the published version of the manuscript.