Abstract
Accurately estimating the severity of crash injuries among older drivers is paramount for enhancing traffic safety, a task challenged by class imbalance and label noise. Traditional predictive paradigms often struggle to identify rare severe cases, as they tend to prioritize global accuracy, thereby compromising sensitivity to high-risk outcomes. To overcome these limitations, this study develops a Log-Loss Cleaned and Probability-Calibrated Cascade (L-CSC) framework by strategically integrating existing advanced algorithmic components for robust and reliable severity prediction. Initially, a Log-Loss-based noise filtering mechanism is implemented to purge outliers and ambiguous samples from the training data, thereby enabling higher-quality representation learning. Subsequently, a two-stage cascade architecture is designed to decouple the classification task. Stage I employs a Preliminary Screening Model, optimized via Bayesian optimization for F2-score, to specifically maximize the recall for severe and fatal cases. In Stage II, a Stacking ensemble classifier is deployed to achieve a fine-grained classification of injury levels among the cases identified in the initial screening. Finally, Isotonic Regression is employed to calibrate the output probabilities from both stages, ensuring that the resulting risk estimations are statistically sound and reliable. Empirical evaluations demonstrate that the L-CSC framework effectively balances overall performance with critical risk detection, achieving a robust Macro-F1 of 0.7296. Specifically, compared to the best-performing baseline, the recall and F1-score for the critical severe and fatal category showed relative improvements of over 82% and 62%, respectively. Ablation analyses further substantiate the vital contributions of both the data cleaning and calibration modules. This research demonstrates that the cascaded framework effectively mitigates the biases inherent in imbalanced datasets, providing a robust algorithmic foundation to potentially support future traffic safety interventions.
1. Introduction
With the increasing trend of population aging, older drivers exhibit high sensitivity to injuries in traffic accidents due to the decline in physiological functions and response capabilities [1,2,3]. Globally, the transition to electric vehicles is accelerating. By 2025, 39 nations had achieved an electric vehicle (EV) market share exceeding 10%. This shift is particularly evident in Europe, a region facing acute aging challenges alongside an electrification rate of approximately 26%. Consequently, older adults increasingly constitute a major user base for senior electric transport. However, the distinctive characteristics of electric vehicles, such as rapid acceleration and near-silent operation, further amplify the inherent traffic safety risks for the older adult population. Accurately predicting injury severity for older drivers is therefore essential. While the ultimate goal is to safeguard this vulnerable demographic in electrified environments, the current extreme scarcity of EV-specific crash data necessitates the use of mature conventional traffic datasets to develop and validate foundational predictive algorithms. This predictive capability advances conventional traffic safety protocols while establishing a critical algorithmic foundation for inclusive design and emergency resource allocation in future intelligent transportation networks [4].
In the research of accident injury severity prediction, the methodological framework has evolved from traditional statistical models to machine learning models. Previous studies mainly relied on parametric methods such as ordered logit [5], multinomial logit [6] and generalized linear Logit model [7]. To overcome the limitations of fixed parameters in traditional models, scholars introduced more complex statistical frameworks. The mixed logit model has been proven to effectively capture unobserved heterogeneity in the data [8,9,10]. Wei et al. [11] proposed a Bayesian spatial random parameters logit model to further address the spatial correlation of accident data; and for small sample data, Miao et al. [12] employed a Bayesian spatiotemporal framework that accounts for interaction effects, thereby capturing the intricate risk patterns that govern injury severity. Xie et al. [13] demonstrated that the Bayesian ordered probit model possesses superior inference capabilities compared to traditional methods. In recent years, machine learning methods such as Random Forest [14,15,16], GBDT [17,18], XGBoost [19,20], CatBoost [21], support vector machines [22,23], and artificial neural networks [24,25,26] have been widely applied due to their excellent non-linear fitting abilities and prediction performance. However, single models have limited ability to identify minority classes when dealing with class-imbalanced data, and suffer from issues such as sensitivity to kernel function selection and bottlenecks in performance improvement. Consequently, scholars have adopted hybrid strategies such as ensemble learning, aiming to achieve more precise and stable prediction results by integrating the advantages of multiple algorithms. For instance, the stacking ensemble frameworks constructed by Tang et al. [27], El Mallahi et al. [28], and Ahmad et al. [29] have all significantly improved classification accuracy and robustness by combining multiple base learners. Zhao and Deng [30] also confirmed the advantages of heterogeneous ensemble models in synthesizing multi-source information.
However, the upper limit of the prediction performance of machine learning methods is constrained by the quality of training data. Traffic accident data universally exhibit serious class imbalance problems, where samples of critical minority classes are scarce. To address this issue, at the data level, studies by Hassanzadeh et al. [31] and Alanazi et al. [32] have shown that machine learning models combined with SMOTE techniques can significantly enhance the identification capability for minority classes; Elamrani Abou Elassad et al. [33] further validated the effectiveness of resampling-based ensemble strategies in predicting rare accident events. Nevertheless, while synthesizing minority class samples, these methods are prone to introducing noise and overfitting risks [34]. At the algorithmic level, cost-sensitive learning methods enhance attention to minority classes by adjusting the loss function. Rahim and Hassan [35] improved the prediction accuracy of fatal accidents through a customized loss function for convolutional neural networks; the cost-sensitive graph convolution network proposed by Wu et al. [36] also effectively solved the zero-inflation and sample sparsity problems. However, such methods rely heavily on the setting of the cost matrix, and noise and outliers present in accident data may severely interfere with model learning [37].
Furthermore, existing research exhibits deficiencies in model structure and output credibility. Most methods model injury severity as a flat multi-class task, ignoring its inherent hierarchy, which leads to severe interference from majority classes when the model distinguishes critical minority classes. In contrast, cascade structures can effectively handle hierarchical tasks and alleviate class imbalance problems. For example, the two-stage mixed multivariate model proposed by Wang et al. [38] and the two-stage sequential prediction framework constructed by Abdi et al. [39] both achieved better prediction effects than traditional single-stage models by processing different features or severity levels in steps. The conditional cascade framework constructed by Ren et al. [40] in the field of information extraction has also been proven effective in coping with class imbalance and achieving performance improvements. On the other hand, traffic accident injury severity prediction is a typical safety-critical application, where the reliability of the model’s output probability directly affects the effectiveness of emergency decision-making. However, existing studies generally neglect the probability calibration process, focusing mostly on the improvement of classification performance indicators, leading to potential systemic biases in outputs, often manifesting as overconfidence [41,42]. The value of probability calibration has been verified in other safety-critical fields; Gao et al. [43] pointed out that introducing an uncertainty-aware module can effectively correct prediction bias and provide a more comprehensive risk assessment. Crucially, the aforementioned methodological challenges, particularly severe class imbalance, label noise and reliability of predicted probabilities, are notably pronounced within the emerging domain of EVs. Data concerning severe and fatal collisions involving older drivers remain exceedingly scarce. This scarcity generates a highly imbalanced and sparse learning environment. As electric transportation becomes increasingly intelligent and connected, the demand for robust algorithmic modules grows urgent. These algorithms must effectively navigate existing data limitations while delivering reliable risk assessments. Such precise predictions are essential for successful integration into future intelligent traffic systems.
This study introduces the Log-Loss Cleaned and Probability-Calibrated Cascade (L-CSC) framework to predict injury severity among older drivers. The methodology systematically resolves interconnected challenges regarding data quality, model architecture, and probability reliability. Three strategic components are integrated to optimize discrimination capability. First, a noise filtering strategy based on logarithmic loss identifies and removes ambiguous samples from the training set. This step effectively purifies the learning environment. Second, a two-stage cascade architecture decouples the complex multiclass problem into hierarchical tasks. The initial stage employs a preliminary screening model optimized for high recall to identify casualty accidents. The subsequent stage utilizes a stacking ensemble classification model to achieve fine-grained distinction among injury levels. Finally, isotonic regression calibration ensures the statistical reliability of predictions across both stages. Fusing these components enables the L-CSC framework to establish a rigorous algorithmic foundation for traffic safety prediction under imbalanced and noisy data conditions.
Although electric vehicle adoption is accelerating, compiling mature, large-scale crash databases with a statistically sufficient volume of severe accidents specifically involving older EV drivers remains challenging due to reporting lags and the inherent sparsity of such intersectional events. This inherent data scarcity dictates the immediate need to develop and validate advanced methodological frameworks. Therefore, this study adopts a comprehensive conventional dataset as a methodological testbed. The explicit goal is to validate the robustness of the L-CSC framework against extreme class imbalance and label noise. These specific data quality issues currently paralyze early stage safety research for electric vehicles. Crucially, this transferability is rooted in the algorithmic domain rather than physical collision mechanics. The data-level challenges of skewed distributions and label ambiguity are mathematically universal; in fact, they are severely exacerbated in the emerging electric vehicle sector due to data sparsity. Because the proposed algorithmic architecture operates strictly on data distributions independent of specific powertrain characteristics, its proven capacity to optimize complex decision boundaries makes it a highly suitable foundational infrastructure. It is conceptually designed to integrate into the advanced driver assistance systems and emergency electronic call networks of future electric vehicles. Such integration will secure reliable risk assessments while specific crash data for electric vehicles gradually accumulates.
The remainder of this paper is organized as follows: Section 2 details the methodology of the proposed L-CSC framework, including the noise filtering strategy, the cascade architecture, and the probability calibration process. Section 3 describes the data sources and the implementation of the sensitivity-based cleaning strategy. Section 4 presents the experimental results, including model optimization, comparative performance analysis, and calibration effects. Section 5 discusses the effectiveness of the framework through ablation studies and comparative analysis with baseline models. Finally, Section 6 summarizes the research conclusions and discusses limitations and future work.
2. Materials and Methods
2.1. The Proposed L-CSC Framework
To address the challenges of class imbalance and label noise in older driver accident data, this study proposes a Log-Loss Cleaned and Probability-Calibrated Cascade (L-CSC) framework. The core contribution of this framework resides in the strategic integration and domain-specific application of existing algorithmic components. As illustrated in Figure 1, the framework effectively integrates three strategic components: (1) a Log-Loss-Based Noise Filtering Strategy to purify the training set; (2) a Two-Stage Cascade Architecture comprising a Recall-Prioritized Preliminary Screening Model and a Stacking-Based Injury Severity Classification Model; and (3) an Isotonic Regression module for posterior probability calibration. Compared to traditional single-model classification methods, this hierarchical design demonstrates significant advantages in reducing modeling complexity while mitigating the bias often seen in direct multi-class frameworks.
Figure 1.
Schematic diagram of the L-CSC for accident severity prediction.
2.1.1. Log-Loss-Based Noise Filtering Strategy
To effectively mitigate the interference of data noise and label ambiguity on the decision boundary, a Log-Loss-Based Noise Filtering Strategy is implemented. Logarithmic Loss (Log-loss) captures the uncertainty of model predictions; it not only penalizes misclassified samples but also assigns high loss values to ambiguous samples with predicted probabilities close to 0.5. Samples with typically high Log-loss values are identified as potential noise or outliers, such as mislabeled cases, that can degrade the training of the cascade classifier. The core of this strategy lies in utilizing Out-of-Fold (OOF) prediction probabilities to assess sample quality objectively. The Log-loss is calculated sample-by-sample using the formula:
where is the true label of the sample, taking values of 0 or 1; is the probability that the model predicts the sample as category 1; and is the natural logarithm. By setting a dynamic threshold based on the Log-Loss distribution, these high-uncertainty samples are removed from the training set to enhance the robustness of the subsequent learning phases.
2.1.2. Two-Stage Cascade Architecture
The core of the L-CSC framework is the Two-Stage Cascade Classifier, which decomposes the multi-class task into serial binary problems. The model takes a 38-dimensional sample feature vector as input. To optimize the feature representation for each specific classification task, Recursive Feature Elimination (RFE) is independently applied to select the most discriminative feature subset, as detailed in Section 2.1.3.
The dependent variable is defined as , where represents property damage only (PDO), represents minor injury, and represents severe and fatal injury. The first stage functions as a Preliminary Screening Model, designed to rapidly distinguish casualty accidents () from PDO accidents () within the entire sample set. The model outputs the probability that a sample belongs to the casualty class. By comparing this with a decision threshold , if , the sample is classified as a casualty accident and passed to the second stage; conversely, it is classified as . Given that the consequences of missing casualty accidents are more severe, this stage adopts the F2-score, which prioritizes recall, as the core optimization metric. To achieve the optimal trade-off, the hyper-parameters of the screening model are tuned via Bayesian Optimization, as detailed in Section 2.1.4, to explicitly maximize the F2-score.
The second stage is the Severity Classification Model, aimed at further precisely classifying the casualty samples identified in the first stage into minor injury () and severe and fatal injury (). This stage receives the samples where , calculates the probability of the sample belonging to the class, and compares it with a decision threshold . If , the sample is classified as ; conversely, it is classified as . To enhance the accuracy and robustness of the discrimination task in this stage, a Stacking Ensemble learning strategy is adopted. The specific formulation of this Stacking Ensemble, which integrates multiple heterogeneous learners, is elaborated in Section 2.1.5. Finally, to ensure the statistical reliability of the risk estimation, Isotonic Regression is applied to calibrate the output probabilities of both stages.
2.1.3. Recursive Feature Elimination
Recursive Feature Elimination (RFE) is a greedy backward feature selection algorithm. Starting with the complete feature set, this method iteratively trains base models, evaluates feature importance, and removes the least important features. After each feature removal, K-fold cross-validation is used to evaluate the model performance of the current feature subset, ultimately selecting the subset that achieves the optimal average cross-validation performance metric. RFE effectively identifies redundant or irrelevant features, mitigates the curse of dimensionality, reduces the risk of model overfitting, and enhances the model’s training efficiency and generalization performance. In this study, RFE is independently applied to multiple candidate models in both stages of the hierarchical framework, aiming to screen out the most discriminative and optimal feature subsets for each classification task.
2.1.4. Bayesian Optimization
Bayesian Optimization is an efficient global optimization algorithm, particularly suitable for black-box optimization problems where the cost of evaluating the objective function is high. In this study, to fully exploit the potential of each model within the cascade framework, Bayesian optimization is integrated with 5-fold cross-validation for hyperparameter tuning. Unlike traditional grid search, this method constructs a probabilistic surrogate model, typically a Gaussian Process, and utilizes an acquisition function to facilitate efficient convergence toward high-performance parameter regions.
To align the optimization process with the safety-critical requirements of accident prediction, the objective function is tailored to the specific task of each stage. For the preliminary screening in Stage I, the optimization focuses on maximizing the F2-score to ensure high sensitivity toward casualty accidents. For the precise grading in Stage II, the focus shifts to maximizing the Macro-F1 to achieve a balanced evaluation across different injury severities. The optimization objective is formulated as
where is the optimal hyperparameter combination found; represents the hyperparameter search space; is the number of folds in the cross-validation; and is the average validation performance across K folds. By defining through these specialized metrics, the optimization process is explicitly guided to prioritize the identification of casualty accidents and maintain classification balance. This strategy effectively mitigates the bias inherent in imbalanced accident datasets, where property-damage-only samples often dominate the distribution.
2.1.5. Stacking Ensemble Formulation
Stacking is an efficient ensemble learning strategy. Its core idea is to fuse the prediction results of multiple heterogeneous base-learners through a meta-learner to obtain stronger and more robust generalization performance than any single base learner. Its structure typically consists of two layers.
In the first layer, to capture diverse pattern features within the data, this study initially constructed a candidate pool of nine heterogeneous algorithms. These include K-Nearest Neighbors (KNN), Naive Bayes (NB), Support Vector Machines (SVM), Random Forest (RF), Extreme Gradient Boosting (XGBoost), Categorical Boosting (CatBoost), Adaptive Boosting (AdaBoost), Light Gradient Boosting Machine (LightGBM), and Multilayer Perceptron (MLP). These algorithms were selected for their distinct inductive biases, ranging from distance-based (KNN) and probabilistic (NB) models to tree-based ensembles and neural networks.
To optimize the ensemble performance, two key strategies were implemented. Firstly, during the training of base learners, the class_weight = ‘balanced’ parameter was applied. This method automatically adjusts weights inversely proportional to class frequencies, penalizing the misclassification of minority samples such as severe and fatal injuries. Secondly, for Diversity-based Selection, a Pearson correlation coefficient analysis was conducted on the prediction probabilities of the candidate models to minimize redundancy. For highly correlated model pairs with a Pearson correlation coefficient exceeding an empirical threshold of 0.80, the model with inferior individual predictive performance was pruned. This strategy was particularly applied among tree-based algorithms to ensure that the final set of base learners provided complementary information.
Based on this screening process, a subset of low-correlation, high-performance models was retained as the final base learners. The second layer serves as the meta-learner. This study investigates Random Forest (RF), Logistic Regression (LR), and BP Neural Network (BPNN) as candidates, selecting the optimal meta-learner based on validation performance. To mitigate data leakage and ensure the unbiasedness of the meta-features, K-fold cross-validation was employed to generate out-of-fold (OOF) prediction probabilities. For a training set , the set is partitioned into K disjoint folds . For each base-learner , the OOF prediction for fold is generated by training on . The resulting meta-feature matrix , which serves as the input for the meta-learner, is defined as:
In the formulation above, N denotes the total number of accident samples in training set, while M signifies the total number of the heterogeneous base-learners integrated within the first layer. Each element represents the probability of sample belonging to the target class as predicted by the m-th base-learner. The notation indicates that the k-th fold is excluded during training to ensure that the generated meta-features are unbiased. The meta-learner H then learns the optimized mapping function to the final categories:
where denotes the final fused prediction, and represents the i-th row of the meta-feature matrix Z corresponding to sample . This hierarchical mapping enables the meta-learner to weigh the relative strengths of the base models, achieving an optimized fusion of heterogeneous predictions.
2.1.6. Posterior Probability Calibration
The raw prediction probabilities of classification models often exhibit systematic bias, making it difficult to accurately reflect the true posterior probabilities of samples. To improve the reliability of probability outputs, this study introduces probability calibration techniques. Common calibration methods include parametric Platt scaling and non-parametric Isotonic Regression. The former performs parametric fitting via a sigmoid function and is suitable for models with sigmoid-shaped output deviations, such as SVM models; the latter adaptively learns probability deviations of any shape by fitting a monotonic mapping function, making the calibrated probabilities match the true observed distribution. Given that this study integrates multiple heterogeneous algorithms resulting in a complex probability output structure, Isotonic Regression is selected for probability calibration. The objective of Isotonic Regression is to find a non-decreasing mapping function f that minimizes the following weighted least-squares criterion:
where represents the raw predicted probability, is the true binary label, and are the weights. This non-parametric fit ensures that the calibrated probabilities align more closely with the actual observed distribution without assuming a specific parametric form.
The reliability curve is a visualization tool for evaluating calibration effects. It intuitively presents the calibration effect by plotting the relationship between the mean predicted probability in bins and the corresponding actual positive observation frequency. An ideal reliability curve should coincide with the diagonal; deviations indicate that the model underestimates or overestimates probabilities. To quantify the calibration effect, this study simultaneously employs the Brier Score (BS) and Expected Calibration Error (ECE). The BS evaluates the overall mean squared error between the calibrated probabilities and the actual outcomes, where a smaller value indicates more precise prediction:
where N represents the total number of samples, and denotes the calibrated probability for the i-th sample. Furthermore, the ECE directly measures the difference between probability output and true observation frequency by calculating the weighted calibration error across probability bins:
where B is the total number of probability bins, is the number of samples in bin b, and and represent the actual accuracy and average predicted confidence within that bin, respectively.
Based on the CalibratedClassifierCV module in Scikit-learn (v1.6.1), this study employs Isotonic Regression to calibrate the output probabilities of the two-stage models in the cascade framework, providing a more reliable probabilistic basis for subsequent risk assessment and safety analysis.
2.2. Evaluation Metrics
To comprehensively evaluate the performance of the classification models, this study adopts a multi-dimensional evaluation metric system. All metrics are calculated based on the confusion matrix, which defines four basic discrimination results: True Positive (TP), False Positive (FP), False Negative (FN), and True Negative (TN). First, the core metrics for binary classification problems are defined. Precision focuses on the reliability of results predicted as positive by the model; Recall measures the completeness of the model’s identification of positive samples; and Accuracy reflects the overall correctness of discrimination for all samples. Their calculation formulas are as follows:
To balance Precision and Recall, the F1-score is introduced, which is the harmonic mean of the two. Given that the cost of misclassifying a casualty accident as property damage only is high in the first stage of this study, the F2-score, which places greater emphasis on Recall, is introduced. The specific calculation formulas are as follows:
Addressing multi-class and class imbalance issues requires a balanced consideration of recognition performance across categories. Standard accuracy can be misleading in imbalanced datasets as it is dominated by the majority class. Therefore, to ensure the model’s capability to distinguish minority classes is effectively evaluated, this study adopts the Macro-Average F1-score and Macro-Average Recall, denoted as Macro-F1 and Macro-Recall, respectively, which treat all classes equally regardless of sample size. They are defined as follows:
where represents the total number of classes. and represent the F1-score and Recall of the i-th class, respectively.
3. Data Description
3.1. Data Sources and Dataset Construction
The crash data involving older drivers, who are aged 65 years or older, were collected from the traffic accident database of the state of Florida in the United States from 2017 to 2019, yielding 29,422 valid crash samples. Given this historical timeframe, the database lacks specific variables to distinguish electric vehicles from conventional vehicles. Based on the market composition during this period, the analytical sample consists predominantly of conventional internal combustion engine vehicles. Consequently, this dataset serves fundamentally as a robust methodological testbed to validate the proposed algorithmic framework for future electrified and intelligent transport systems. Based on the “human—vehicle—road—environment—crash” system framework, 38 potential influential factors are preliminarily extracted, as presented in Table 1. During the subsequent data preprocessing phase, records containing missing values in critical variables were directly removed via listwise deletion to ensure strict data integrity. Furthermore, the Interquartile Range (IQR) method was employed to identify and eliminate extreme outliers. Regarding categorical variables, standard label encoding was applied for the tree-based models to preserve their native processing efficiency, while specific transformations for distance-based models were handled separately in their respective modeling phases. To further enhance model performance, feature engineering is applied to specific key variables. Specifically, to accurately characterize the risk heterogeneity of speeding behavior across different road environments, a variable named “Is_Speeding” is constructed. By comparing the “estimated impact speed” in the crash report with the “posted speed limit”, samples exceeding the limit are labeled as 1, and 0 otherwise. This approach enables the capturing of the non-linear impact of speeding behavior on the injury severity of older drivers. In addition, to eliminate the interference of multicollinearity among variables on model stability, the Variance Inflation Factor (VIF) for each variable is calculated. The examination results show that the VIF values of all selected variables are within a reasonable range, indicating that no severe multicollinearity issues exist.
Table 1.
Overview of the Original Feature Set.
To address the training requirements of the L-CSC framework, the original dataset is decoupled into two target-specific sub-datasets to mitigate the difficulty of a single model handling extreme class imbalance. Dataset 1 is constructed specifically for the Preliminary Screening Model to perform the task of injury existence prediction. In this process, labels are reconfigured based on the KABCO scale by aggregating all fatal (K), incapacitating (A), non-incapacitating (B), and possible injuries (C) into the positive class “Injury”, while designating Property Damage Only (O) samples as the negative class “PDO”. This binary configuration aims to enable the model to focus on learning the robust decision boundary between ‘injury-causing’ and ‘non-injury’ crashes, effectively isolating casualty accidents from the dominant PDO background. Dataset 2 is tailored for the Severity Classification Model. This dataset retains only the casualty samples (K/A/B/C) identified in the first stage. The classification target is further refined by aggregating fatal (K) and incapacitating (A) injuries into a single severe and fatal category, while non-incapacitating (B) and possible injuries (C) are grouped into the ‘minor injury’ category. Building on the preliminary screening, this dataset provides a purer sample environment. This refined setting enables the algorithm to enhance its sensitivity to severe accident features, thereby improving prediction accuracy for critical outcomes. The specific sample distribution is presented in Table 2. Subsequently, stratified sampling is applied to divide the data into training, validation, and test sets in a ratio of 8:1:1, so as to maintain the consistency of class distribution within each subset.
Table 2.
Composition of Datasets for the Hierarchical Model.
3.2. Descriptive Statistics Analysis
The descriptive statistical analysis of the raw dataset reveals that the crash data exhibits significant class imbalance characteristics. Specifically, PDO crashes occupy a dominant position, accounting for approximately 61.06%. Among the injury-involved crashes, minor injury cases account for 77.32%, while severe and fatal cases collectively account for 22.68%. This indicates that severe and fatal category belong to a typical “long-tail” minority class, representing the critical target for traffic safety interventions. Regarding driver demographics, the gender distribution presents a high degree of balance, with male and female drivers accounting for 49.60% and 50.40%, respectively. In terms of age structure, the “young-old” group (aged 65–74) constitutes the primary crash-involved population, accounting for 60.55%, whereas senior drivers aged 75 and above account for approximately 39.45%. This distribution may be associated with the higher travel activity and relatively larger exposure risk of the young-old group. Regarding the spatiotemporal and environmental characteristics of crash occurrences, the majority of crashes occur under favorable environmental conditions. Specifically, 76.91% of crashes occur in clear weather, and 82.85% occur during daylight with sufficient lighting. In terms of temporal distribution, crash occurrences are concentrated during the daytime off-peak hours from 10:00 to 16:00. This pattern suggests that older drivers may adopt “compensatory driving behaviors”, tending to choose travel times with better visibility and simpler road conditions to avoid complex nighttime or adverse weather environments.
3.3. Implementation of Log-Loss-Based Noise Filtering
To implement the cleaning strategy described in Section 2.1.1, LightGBM is selected as the baseline classifier due to its efficiency and robustness in handling large-scale data. In this implementation stage, standard parameters are used without hyperparameter tuning to ensure that the evaluation results reflect the intrinsic distribution characteristics of the samples themselves rather than model overfitting.
Specifically, a 10-fold stratified cross-validation is performed on the training set to generate the unbiased OOF prediction probabilities required for the Log-Loss calculation. The analysis of the resulting Log-Loss distribution for each category in the two datasets reveals that the Log-Loss values of the majority class (Category 0, PDO) are highly concentrated in the low-value region, presenting a significant right-skewed morphology.
Conversely, the distribution of the minority class (Category 1, Injury) is more dispersed with a longer tail. This indicates that the model exhibits higher uncertainty in predicting minority class crashes, further justifying the necessity of the proposed cleaning and cascade architecture. The specific quantitative distributions and the corresponding removal thresholds determined via sensitivity analysis are visually detailed in Section 3.4.
3.4. Cleaning Strategy Based on Sensitivity Analysis
This study adopts sensitivity analysis to determine the optimal sample removal ratio and sets differentiated evaluation metrics for the two stages. A two-dimensional search space for removal ratios is constructed for both datasets, including 8 levels {1%, 3%, 5%, 10%, 15%, 20%, 25%, 30%} and totaling 64 combinations. The evaluation of each combination’s performance via 10-fold stratified cross-validation indicates that the optimal strategy must balance model performance and data integrity, rather than blindly pursuing the maximization of a single metric.
For Dataset 1, the F2-score was selected to assign higher weight to recall, as missing an injury crash is significantly costlier than misclassifying a property-damage-only event. The maximum F2-score of 0.6324 occurred when removing 25.0 percent of both Category 0 and Category 1. However, removing 25.0 percent of Category 0 and 10.0 percent of Category 1 yielded a highly comparable F2-score of 0.6310. For Dataset 2, the Macro-F1 was used to balance prediction performance across categories. The absolute optimum Macro-F1 score of 0.6165 required removing 25.0 percent of Category 0 and 30.0 percent of Category 1, whereas applying a highly conservative removal ratio of 1.0 percent to Category 1 yielded a Macro F1 of 0.6099.
Consequently, the final cleaning strategies adopt the sub-optimal configurations. Specifically, the removal ratios for the majority and minority classes are set to 25.0% and 10.0% for Dataset 1, and 25.0% and 1.0% for Dataset 2. This deliberate selection prioritizes model generalization and data integrity over marginal metric gains. As evaluated through the 10-fold stratified cross-validation, the performance differences between the absolute optimums and the chosen settings are highly negligible. These differences measure merely 0.0014 for Dataset 1 and 0.0066 for Dataset 2. In traffic safety modeling, pursuing such microscopic numerical improvements requires discarding a significantly larger portion of critical minority samples. This aggressive pruning disproportionately increases the risk of overfitting. Therefore, adopting these conservative thresholds retains more original minority cases, prevents severe information loss, and guarantees a more robust modeling approach for unseen data.
Furthermore, a rigorous dual audit process evaluates the removed samples through visual distribution tracking and empirical validation. This validation prevents the mistaken discarding of rare but informative minority cases. True noise in traffic crash data frequently manifests as class overlapping. Majority class samples often share nearly identical pre-crash feature spaces with minority class samples due to aleatoric uncertainty or subjective misreporting by responding officers. Such confounding noise blurs decision boundaries and causes the classifier to underestimate severe accident risks. Figure 2 explicitly illustrates the targeted ambiguous samples using Log-Loss distributions. The corresponding removal thresholds appear as red dashed lines, and the filtered data occupy the shaded regions. The removed samples remain strictly confined to the extreme right tail of the distributions. These instances represent highly ambiguous cases characterized by maximum model uncertainty, high information entropy, and unobserved heterogeneity. By restricting removal to these specific tail-end outliers, the strategy eliminates boundary noise without indiscriminate data deletion. For example, the 1.0% threshold applied to the Dataset 2 minority class visually corresponds to the extremely narrow shaded region in Figure 2d. This minimal removal guarantees the retention of 99% of severe and fatal cases.
Figure 2.
Log-Loss Distribution of Samples in the Two Datasets: (a) Dataset 1—Property Damage Only Class; (b) Dataset 1—Injury Class; (c) Dataset 2—Minor Injury Class; (d) Dataset 2—Severe Injury/Fatality Class. The blue columns indicate the frequency distribution of samples across the Log-Loss intervals.
3.5. Cleaning Results
The above analysis confirms that implementing robust cleaning on majority class samples helps improve model performance, whereas differentiated strategies should be adopted for critical minority class samples according to stage objectives. Based on this, the training set is cleaned, and the sample statistical results before and after cleaning are presented in Table 3. In Dataset 1, a substantial number of PDO noise samples are removed, resulting in a relative increase in the proportion of injury samples, which effectively mitigates the extreme class imbalance problem. In Dataset 2, the cleaning operation further sharpens the classification boundary between severe and fatal injuries and minor injury injuries.
Table 3.
Statistics of Training Set Sample Size Before and After Cleaning.
4. Results
4.1. Experimental Setup and Reproducibility Protocols
All experiments were executed in a Python 3.9 environment. The core modeling relied on the scikit-learn (v1.6.1), xgboost (v2.1.4), lightgbm (v4.6.0), and catboost (v1.2.8) libraries. Bayesian optimization was conducted using scikit-optimize (v0.10.2). To expedite the computational intensive offline training phase, the native GPU implementations of the XGBoost and CatBoost libraries were directly utilized for the ensemble tree models, whereas the PyTorch (v2.5.1, with CUDA 12.6) framework was exclusively employed to construct a CUDA-accelerated MLP. Conversely, to simulate the hardware constraints of actual deployment conditions, the subsequent inference processes on the independent test set were strictly executed on the CPU. The global random seed was fixed at 42 to ensure reproducibility across all stochastic processes. These processes include data partitioning, cross-validation, and algorithmic initialization. The independent validation set generated during the initial data partitioning served as the hold-out calibration data for Isotonic Regression. This pre-fit protocol prevented data leakage from the training phase to the calibration phase.
4.2. Stage I: Preliminary Screening Models
4.2.1. Candidate Model Construction and Optimization
To identify the preliminary screening model exhibiting superior comprehensive performance, five representative machine learning algorithms, including SVM, Random Forest, XGBoost, CatBoost, and LightGBM, were selected as candidate models. To ensure the comparability and robustness of the results, a unified two-stage optimization strategy was implemented across all candidate models.
In the first stage, the RFE method, utilizing the F2-score as the evaluation metric and integrated with 5-fold cross-validation strictly confined to the training set, was employed to identify the optimal feature subset for each candidate model. Considering the specific algorithmic characteristics of SVM, one-hot encoding and standardization were additionally applied to its feature subsets during this phase. In the second stage, Bayesian optimization also coupled with 5-fold cross-validation on the training data was utilized for hyperparameter tuning of all candidate models, with the F2-score serving as the primary optimization objective. This approach was designed to prioritize the recall rate for the casualty class, while class imbalance parameters were uniformly configured to address data skewness. To ensure reproducibility, the optimal hyperparameters for the Stage I preliminary screening model, determined via Bayesian optimization, are detailed in Table A1 of Appendix A.
4.2.2. Comparison and Selection of Preliminary Screening Models
Following the optimization procedures described above, the optimal number of features was determined during the RFE stage. To strictly prevent data leakage, the actual evaluation and selection of the optimal preliminary screening model were conducted on the independent validation set. In this decision phase, the F2-score was adopted as the core metric, aiming to maximize the identification of casualty accidents while simultaneously controlling the misclassification of PDO crashes. Figure 3 presents a Pareto frontier analysis scatter plot comparing five candidate models based on false positive and false negative error metrics evaluated on the independent validation set. Since both axes represent prediction errors, proximity to the origin indicates superior overall performance. Discrete coordinate points represent individual models, while surrounding colored circles encode the Macro-F1. Darker hues correspond to higher Macro-F1 and signify more balanced model performance. The connecting dashed line delineates the Pareto frontier. This boundary defines the theoretical limit of the trade-off between minimizing false negatives and false positives under extreme class imbalance.
Figure 3.
FP-FN Trade-off Analysis of Candidate Screening Models.
The candidate models exhibit distinctly divergent decision tendencies under a high recall optimization objective. Tracing the dashed line from left to right, models such as SVM, LightGBM, and XGBoost demonstrate aggressive classification patterns heavily skewed toward the minority class. For instance, the SVM model limits false negatives to only 43 cases but concurrently yields 521 false positives. This extreme trade-off culminates at the far right of the frontier with XGBoost, while it successfully minimizes false negatives to merely 3 cases, it severely compromises overall precision by generating 926 false positives. Notably, the LightGBM model yields 7 false negatives and 530 false positives. In comparison, the XGBoost model produces 3 false negatives and 926 false positives. This transition indicates that eliminating the final 4 false negatives comes at the cost of an additional 396 false positives. Although this reflects a high sensitivity to the casualty class, such an exponential increase in false alarms signifies a severe loss of discriminative capacity, heavily deviating from the optimal performance trade-off. In contrast, CatBoost demonstrates superior error control capability by achieving 48 false positives and 98 false negatives. These metrics fall squarely within the optimal tolerance zone, successfully balancing data purity and casualty sample recall. Specifically, CatBoost achieves a 91.44% recall for casualty accidents alongside a 97.33% noise filtering rate for property damage only cases. This configuration anchors the optimal trade-off point on the Pareto frontier and highlights robust performance under extreme class imbalance.
This performance divergence reveals underlying mechanistic differences among the models when optimizing for the F2-score on heavily imbalanced data. Conventional algorithms typically attempt to capture minority casualty samples by aggressively lowering classification thresholds. This greedy recall optimization severely shifts decision boundaries toward the majority class space, degrading the algorithms into classifiers with high sensitivity but deficient discriminative capacity. CatBoost circumvents this algorithmic trap through its efficient categorical feature processing and unbiased gradient estimation derived from a symmetric tree structure. These architectural advantages prevent the collapse of precision often caused by pursuing marginal recall gains. Given its exceptional bias resistance and optimal FP-FN trade-off observed during the validation phase, CatBoost is officially selected as the preliminary screening model.
To demonstrate the models’ final generalization capabilities and corroborate the validation-based decision, the optimal number of features determined during the RFE stage and the final performance of each candidate model on the independent test set are summarized in Table 4.
Table 4.
Performance Comparison of Candidate Screening Models.
The analysis reveals that candidate models exhibited significantly divergent strategic tendencies when optimized for the F2-score. Although XGBoost, LightGBM, and SVM achieved recall rates for the casualty class that reached 0.9974, 0.9965, and 0.9721, respectively, their precision for the same category declined substantially. Notably, XGBoost demonstrated a precision of only 0.5606, which indicates that these models converged toward a high-recall, low-precision optimization pattern. This imbalance contributed to lower Macro-F1 scores, suggesting a failure to effectively balance Type I and Type II errors. In contrast, CatBoost not only attained the highest F2-score of 0.9256 but also exhibited superior balance and robustness, achieving optimal performance in both Macro-F1, which reached 0.9458, and casualty class precision, which stood at 0.9462.
4.3. Stage II: Injury Severity Classification Model
Building upon the framework in Section 2.1.5, this stage implements the Stacking ensemble strategy for fine-grained severity classification. First, an optimal, non-redundant subset of base learners is selected to construct the meta-feature matrix. A meta-learner then utilizes these features to output final predictions. The following subsections detail this model selection process and the resulting predictive performance.
4.3.1. Performance and Selection of Base Learners
To ensure the diversity and robustness of the ensemble model, nine heterogeneous machine learning algorithms were preliminarily selected as base learners. These included tree-based ensemble models (Random Forest, XGBoost, LightGBM, CatBoost, and AdaBoost), a distance-based metric model (KNN), a probability-based statistical model (Naive Bayes), a hyperplane-based discriminative model (SVM), and a neural network model (MLP). This combination is designed to operate from distinct feature space hypotheses, capturing potential linear and non-linear patterns within the data, thus providing highly complementary information input for the subsequent decision-making of the meta-learner. Before evaluating predictive diversity, all models underwent the same Recursive Feature Elimination (RFE) and Bayesian hyperparameter optimization processes as described previously. During this phase, to prevent data leakage in meta-feature generation, a 5-fold cross-validation strategy was adopted on the training set to produce out-of-fold prediction probabilities. These predictions were ultimately concatenated to form probability vectors of the same length as the training set.
To quantify the predictive diversity among base learners and mitigate the potential impact of multicollinearity within the meta-features, the Pearson correlation coefficient matrix of the prediction probabilities on the validation set was calculated, as illustrated in Figure 4. The results reveal pronounced linear correlations among homogeneous ensemble models based on Boosting and Bagging frameworks. Notably, the correlation coefficient between LightGBM and XGBoost was the highest, reaching a value of 0.89, and that between Random Forest and XGBoost was also substantial at 0.83. This suggests that the error distributions of these models in the feature space tend to align; thus, their concurrent retention would lead to information redundancy in the secondary training set of the Stacking model. In contrast, although CatBoost belongs to the gradient boosting decision tree family, it exhibited a correlation coefficient of only 0.76 with XGBoost. This value is significantly lower than other tree-based models and is attributed to its unique ordered boosting mechanism, demonstrating a distinct predictive heterogeneity. Accordingly, within the cluster of highly correlated tree models, the XGBoost model was prioritized for retention due to its superior overall standalone performance observed on the independent validation set. Simultaneously, CatBoost was retained to provide complementary information, leveraging its differentiated gradient estimation mechanism. Furthermore, the correlation coefficients between the tree-based models and the other algorithms, specifically SVM, KNN, Naive Bayes, and MLP, were generally below 0.7. This indicates that these algorithms, grounded in different inductive biases, offer unique decision-making perspectives. Ultimately, a base learner ensemble comprising these six diverse algorithms, namely XGBoost, CatBoost, SVM, KNN, Naive Bayes, and MLP, was constructed to generate high-quality input features for the meta-learner.
Figure 4.
Heatmap of Prediction Probability Correlation among Base-learners.
To evaluate generalization capabilities and establish a baseline for the subsequent ensemble, the performance of all nine initial candidate models on the independent test set is summarized in Table 5. To provide a comprehensive reference for the Stacking, the specific base learners and their corresponding optimized hyperparameters for the six retained base learners are detailed in Table A2 of Appendix A.
Table 5.
Performance Summary of Base-learners.
The analysis revealed significant performance complementarity among the base learners. Specifically, XGBoost exhibited superior performance in terms of Macro-F1 with a score of 0.7874, as well as the F1-score and Precision for the casualty class, which stood at 0.6665 and 0.7021, respectively. Conversely, SVM achieved the highest Recall of 0.7885 for the casualty class. These findings indicate that no single model could simultaneously maximize both Precision and Recall, thereby underscoring the necessity of adopting an ensemble strategy to leverage the complementary strengths of different algorithms.
4.3.2. Meta-Learner Selection and Analysis
To identify the optimal meta-learner for the second stage of the Stacking ensemble, this study selected Random Forest, Logistic Regression, and BP Neural Network as candidate models. Similar to the base learner optimization, Bayesian optimization combined with 5-fold cross-validation was employed for hyperparameter tuning, with the Macro-F1 serving as the primary objective. Based on the optimal internal performance, Random Forest was identified as the final meta-learner. To demonstrate its generalization capability and provide a fair comparison against the base learners, the performance of the candidate meta-learners on the independent test set is presented in Table 6. Additionally, the optimal hyperparameter configurations for the best candidate meta-learner are comprehensively listed in Table A3 of Appendix A.
Table 6.
Performance Summary of Meta-learners.
A comparative analysis on the independent test set between Table 5 and Table 6 reveals that single base learners face a dilemma in performance trade-offs. Specifically, the SVM model exhibits a pattern of high recall but low precision, making it susceptible to noise introduction. Conversely, XGBoost demonstrates high precision but low recall, indicating insufficient coverage of samples. In contrast, the Stacking model utilizing Random Forest as the meta-learner achieved a Macro-F1 of 0.7951. Furthermore, in terms of the F1-score for the casualty class, it reached 0.6811, representing a significant improvement compared to the best-performing single base learner, XGBoost, which achieved the highest Macro-F1 of 0.7874. These results indicate that the Stacking model effectively fused the complementary information from various base learners. It inherited the discriminatory rigor of high-precision models like XGBoost while incorporating the sensitivity to boundary samples from high-recall models such as SVM and CatBoost. Consequently, it found a superior equilibrium between precision and recall, realizing a 0.978% relative improvement in Macro-F1 performance over the best-performing single base learner.
From a methodological perspective for future traffic safety management applications, this improvement holds significant importance. The single XGBoost model, due to its low recall, poses a risk of missing severe accidents, known as false negatives. Meanwhile, SVM, due to its low precision, is prone to generating a high volume of false alarms, known as false positives, thereby increasing management costs. The Stacking strategy does not merely pursue the extremum of scores; rather, by correcting the structural biases of single models, it constructs a robust balance mechanism between missed detections and false alarms. This capability allows it to integrate the decision boundaries of different models, making it more suitable for high-risk traffic accident severity determination tasks. These test set results corroborate the internal evaluation, fully justifying the selection of Random Forest as the meta-learner for the second stage.
4.4. Posterior Probability Calibration Results
4.4.1. Calibration Results and Analysis
To address the distortion in probability distributions inherent to tree-based models, this study employed Isotonic Regression, a non-parametric method, to calibrate the output probabilities of both stages in the cascade framework. The reliability curves before and after calibration are compared in Figure 5.
Figure 5.
Reliability curves: (a) The first stage; (b) The second stage. The diagonal dashed line represents the ideal perfectly calibrated model.
Expected Calibration Error and reliability diagrams utilized 10 equal-width bins. Calibration fitting and assessment phases used independent datasets to prevent data leakage. In the first stage, the Isotonic Regression calibrator was fitted on a validation set and evaluated on a separate test set, each containing 2942 samples. In the second stage, the calibrator was fitted on a validation set and evaluated on an independent test set, each containing 1145 samples. This data separation ensures the calibration metrics objectively reflect generalization capabilities.
For the preliminary screening model, the pre-calibration reliability curve exhibited a typical S-shaped sigmoid pattern. This characteristic reflects the tendency of ensemble tree models to push predicted probabilities towards 0 or 1, resulting in severe deviations from the diagonal. Following calibration, the curve aligned much more closely with the diagonal ideal. Quantitatively, the BS and ECE decreased from 0.0641 and 0.140 to 0.0376 and 0.012, respectively, representing relative improvements of 41.3% and 91.4%. This indicates a fundamental enhancement in probability reliability and successfully resolves the model’s extreme overconfidence and underconfidence issues.
For the injury severity classification model, the pre-calibration reliability curve remained consistently below the diagonal across nearly the entire probability range. This pattern reveals a systematic overconfidence, where predicted probabilities persistently exceeded the actual true fraction of positives. The overconfident bias was most evident in middle-to-high probability intervals, specifically within the 0.6 to 1.0 range, indicating the stacking model’s tendency to overestimate the likelihood of severe and fatal injuries. Following calibration, the curve shifted upward and aligned substantially closer to the diagonal ideal, with only minor fluctuation persisting near the 0.7 predicted probability bin. Quantitatively, the BS decreased from 0.1291 to 0.1173, and the Expected Calibration Error dropped from 0.146 to 0.070. These results demonstrate that Isotonic Regression effectively reduced the systematic overconfidence, producing more reliable and well-calibrated probability estimates for injury severity.
4.4.2. L-CSC Framework Integration and Threshold Optimization
To prevent data leakage and overfitting, this study performed threshold optimization strictly on the validation set based on the calibrated probabilities. A grid search was implemented within the [0, 1] interval with a step size of 0.01 to determine the optimal classification threshold for each stage, targeting their respective core metrics.
In the first stage, with the F2-score as the optimization objective, the optimal threshold was determined to be 0.18. This value is significantly lower than the default threshold of 0.5, reflecting a risk-averse decision preference. Figure 6a shows the continuous performance curve. The strategy sacrifices a degree of precision to maximize the recall of potential casualty samples. This aligns with the functional positioning of the preliminary screening model. Minimizing missed detections is the primary priority. Examining the local optimal region reveals a stable performance plateau. The 0.18 threshold is located at the left edge of this plateau rather than on an isolated peak. Selecting this lower bound guarantees the highest possible recall while keeping the F2-score at its maximum.
Figure 6.
Continuous performance curves: (a) The first stage. (b) The second stage. The red dot represents the optimal threshold point, and the vertical red dashed line indicates its corresponding value on the x-axis. The black arrow points to a magnified inset, where the pink shaded area highlights the local maximization of the objective function.
In the second stage, to ensure that the Severity Classification Model’s output accurately reflects the risk level of the severe and fatal category, the Macro-F1 score was selected as the objective. The resulting optimal threshold was 0.34. Figure 6b shows this value at the convergence zone of precision and recall. This indicates a balance consistent with the role of a fine-grained classifier. The threshold optimization curve reveals a broad performance plateau spanning from 0.34 to 0.42. The maximum Macro-F1 remains flat across this range. Among the equivalent points on this plateau, precision generally rises and recall drops as the threshold increases. Selecting the leftmost point of 0.34 maximizes the recall for the severe and fatal category without compromising the overall Macro-F1 performance.
Figure 7 presents a quantitative stress-testing analysis. This analysis evaluates performance variation across progressively expanding perturbation ranges of ±2%, ±5%, ±10%, and ±15%. Including larger perturbations provides a boundary condition to validate the sensitivity metric. The results identify distinct maximum tolerance boundaries for each stage. Stage 1 maintains a relative F2-score variation under 0.2% up to a ±10% perturbation. Stage 2 resides at the left boundary of its performance plateau. It exhibits a tighter near-static tolerance, maintaining a Macro-F1 variation under 0.1% strictly within a ±5% range. Performance metrics degrade naturally beyond these established boundaries. This confirms the validity of the selected thresholds and avoids cherry-picking optimal ranges.
Figure 7.
Quantitative stress-testing analysis under progressive threshold perturbations: (a) The first stage. (b) The second stage.
5. Discussion
5.1. Model Performance Evaluation
To comprehensively evaluate the effectiveness of the L-CSC framework, this study benchmarks its performance against baseline models constructed using four mainstream machine learning algorithms. To ensure a fair comparison, all baseline models are configured as standard single-stage three-class classifiers. Crucially, to account for the inherent data imbalance, these baseline models are implemented using cost-sensitive learning strategies by applying dynamically balanced class weights during training. These baselines undergo the same data preprocessing, RFE feature selection, and Bayesian hyperparameter optimization processes strictly confined to the training set, ensuring alignment with the proposed framework.
Furthermore, to quantify the marginal contributions of the Log-Loss-Based Noise Filtering Strategy and Isotonic Regression-based probabilistic calibration strategies, two sets of ablation studies were designed. The first set employed the raw training dataset containing noise, without Log-Loss-Based Noise Filtering Strategy, for training in both stages of the cascade framework; The second set retained the Noise Filtering strategy but excluded probabilistic calibration in both stages of the cascade model. Apart from these specific variables, the internal structure, feature engineering, and optimization processes of the ablation models remain identical to the full L-CSC framework. To rigorously preclude data leakage, all model training and hyperparameter tuning were strictly confined to the training dataset. For configurations involving probabilistic calibration, the calibration functions were fitted exclusively on the validation set. Ultimately, the generalization performance of all baselines, ablation variants, and the proposed framework was assessed on a unified, independent test set. The performance comparison results are detailed in Table 7, where the Proposed L-CSC Framework represents the comprehensive system integrating all strategic components.
Table 7.
Performance Comparison of Baseline Models, Ablation Studies, and the Proposed Cascade Model.
5.2. Comparative Analysis of Model Results
5.2.1. Comparison with Baseline Models
The experimental results show that the proposed L-CSC framework outperforms all mainstream baseline models in both overall performance and the identification of high-risk classes. Specifically, the proposed model achieved a Macro-F1 of 0.7296. This represents an 11.37% relative improvement over CatBoost, the best-performing baseline, which scored 0.6551. To demonstrate the source of these improvements and report prediction uncertainty, the class-wise support counts and confidence intervals derived from the confusion matrices on the independent test set were analyzed. The test set includes 1796 property damage only cases, 803 light or minor injury cases, and 343 critical severe or fatal cases. This underlying disparity reveals the inherent limitation of traditional single-stage three-class classifiers when handling highly imbalanced data. Driven by the objective of minimizing global loss, baseline models tend to shift decision boundaries toward the majority classes. This results in a dysfunctional trade-off where the ability to identify the core class is sacrificed to inflate overall metrics. From the confusion matrix, out of the 343 severe or fatal cases, CatBoost correctly identified only 156 cases. This corresponds to a recall of 0.4548 with a 95% confidence interval from 0.402 to 0.508, calculated via the normal approximation for binomial proportions. CatBoost misclassified 182 critical cases as minor injuries. Consequently, even the top-performing CatBoost achieved an F1-score below 0.37 for the casualty class. The study evaluated SMOTE-CatBoost as a data resampling baseline to address class imbalance. The classification results revealed limitations on complex cases. The model correctly identified 97 out of the 343 severe and fatal cases. This resulted in a recall of 0.2828. The model misclassified 224 severe and fatal cases as minor injuries. Generating synthetic data in overlapping feature spaces introduces noise and blurs decision boundaries. This process reduced the overall Macro-F1 to 0.6372 and the severe and fatal F1-score to 0.325.
In contrast, the proposed framework effectively circumvents this issue through its multi-stage focusing strategy. Out of the same 343 severe and fatal cases, the L-CSC framework successfully identified 284 cases. This yields a recall of 0.8280 with a 95% confidence interval from 0.788 to 0.868. Misclassifications into the minor injury class were reduced to just 52 cases. This translates into a relative improvement in recall of 82.06%. The F1-score for this core class reached 0.5942, representing a relative increase of 62.26% compared to CatBoost’s 0.3662. These non-overlapping confidence intervals and the concrete prediction counts clearly show that the L-CSC framework breaks the ineffective trade-off of sacrificing core risk detection for inflated overall indicators, achieving a statistically robust capture of high-risk samples.
5.2.2. Effectiveness of Log-Loss Noise Filtering
The ablation study revealed that removing the Log-Loss-Based Noise Filtering Strategy led to a significant performance decline. The Macro-F1 dropped from 0.7296 to 0.6487, and the Recall for the core class plummeted from 0.8280 to 0.6501. This sharp decrease confirms that ambiguous samples and label noise in the training data severely interfere with feature learning, leading to blurred decision boundaries. Conversely, the Log-Loss-Based Noise Filtering Strategy successfully enhanced model sensitivity to typical injury features by filtering out these high-uncertainty samples, allowing the model to learn clearer decision boundaries and improve the capture of critical minority class samples.
5.2.3. Impact of Posterior Probabilistic Calibration
The introduction of Isotonic Regression Calibration demonstrated a safety-oriented performance trade-off, shifting the focus from universally maximizing all hard classification metrics to prioritizing risk detection reliability. The predicted probability distribution became closer to the true distribution, thus improving recall performance on the core class. Post-calibration, the Macro-Recall of the model rose from 0.7566 to 0.7784, and the core class Recall increased from 0.7230 to 0.8280. Although the Macro-F1 score decreased slightly from 0.7326 to 0.7296 due to fluctuations in majority class performance, the F1-score for the core class was improved from 0.5675 to 0.5942. This phenomenon indicates that the distorted probability distributions of uncalibrated tree models severely interfere with the precise classification of ambiguous samples. By correcting the systematic probability biases, the calibrated probability distribution aligns better with the true risk distribution, allowing potential severe and fatal cases originally located near the decision boundary to be correctly recalled. The probabilistic calibration method effectively enhanced the credibility and consistency of predicted probabilities, enabling the model to more reliably identify critical minority class samples located near the decision boundary that are prone to misclassification. Therefore, in traffic injury severity prediction tasks, this strategy of exchanging minor overall Macro-F1 loss for significant core risk identification gain demonstrates substantial methodological advantages and strong potential for future practical adaptation.
5.3. Comparative Efficiency and Real-Time Feasibility
While the predictive superiority and architectural robustness of the L-CSC framework have been established, its practical deployment fundamentally depends on computational efficiency. Downstream applications, such as triggering tailored Advanced Driver Assistance Systems (ADAS) or intelligent emergency call (eCall) mechanisms, impose strict latency constraints. To empirically validate real-time feasibility, an end-to-end inference timing analysis was conducted in a standard baseline environment without specialized hardware acceleration.
The inference pipeline processes crash samples sequentially through the Stage I screening layer, the Stage II heterogeneous Stacking ensemble, comprising tree-based, distance-based, and probabilistic algorithms, and the Isotonic Regression calibration logic. The two-stage cascade optimizes latency via selective data routing. The complete test set initially contains 2942 samples. Stage I filters out 55.85% of easily classifiable property-damage-only cases, meaning only the remaining 1299 ambiguous or severe samples proceed to Stage II. This filtering mechanism prevents the computationally expensive Stage II ensemble, which includes high-complexity learners such as SVM and KNN, from expending computational resources on simple majority samples. The reduced data volume allows the full pipeline to process the entire test set in 6.93 s, yielding an average inference latency of merely 2.36 milliseconds per sample. This minimal computational overhead confirms that the structural complexity of the L-CSC framework does not compromise its responsiveness, successfully bridging the gap between robust algorithmic prediction and practical traffic safety interventions.
6. Conclusions
6.1. Research Conclusions
Addressing the inherent challenges of class imbalance and label noise in older driver accident data, this study developed the Log-Loss Cleaned and Probability-Calibrated Cascade (L-CSC) framework. Through systematic empirical analysis and ablation studies, the following conclusions are drawn:
- The Two-Stage Cascade Architecture effectively mitigates the predictive bias inherent in imbalanced datasets. By decoupling the complex severity prediction into a Preliminary Screening Model and an Injury Severity Classification Model, the framework optimizes decision boundaries for critical minority classes. The integrated model achieved a Macro-F1 of 0.7296, representing an 11.37% relative improvement over mainstream baseline models.
- The Log-Loss-Based Noise Filtering Strategy and Isotonic Regression Calibration are pivotal for enhancing model robustness. Ablation experiments confirm that noise filtering from the training set improves the Macro-F1 by 12.47%. Furthermore, while probability calibration involves a minor trade-off in global metrics, it ensures the statistical reliability of outputs and specifically increased the recall of core injury categories by 10.50%, providing a more dependable basis for safety-critical risk assessment.
- The proposed L-CSC framework demonstrates promising methodological potential for traffic safety management. For the most critical severe and fatal category, the recall and F1-score achieved relative improvements of over 82% and 62%, respectively, compared to optimal baselines. Furthermore, while the offline training process of the two-stage cascade and stacking ensemble is computationally intensive, empirical tests demonstrate that the online end-to-end inference for a single new crash sample averages merely 2.36 milliseconds. This minimal latency confirms the framework’s high computational feasibility for future integration into real-time traffic safety monitoring systems, such as ADAS and intelligent eCall mechanisms.
6.2. Limitations and Future Work
Despite the positive outcomes, this study has certain limitations:
- The current L-CSC framework relies primarily on static accident-level data. It lacks the integration of dynamic, real-time features such as instantaneous traffic flow, high-resolution weather conditions, and driver physiological states. Future research could incorporate multi-source heterogeneous data to enhance the model’s situational awareness.
- The current Noise Filtering strategy primarily relies on prediction loss for filtration. Since label noise and hard samples often exhibit similar high-loss characteristics in high-dimensional feature spaces, effectively decoupling the two in extreme boundary cases remains a challenge based solely on loss values. Future research will explore adaptive weighting mechanisms incorporating Meta-Learning or Confident Learning to further exploit the value of hard samples while suppressing noise.
- While the proposed Two-Stage Cascade Architecture achieves robust results on the current datasets, its performance across different geographical regions or time scales has yet to be fully validated. Future studies will focus on the spatial-temporal transferability of the framework to ensure its reliability in diverse urban environments.
- Although the actual dataset is predominantly composed of conventional-vehicle data, contains no EV-specific variables, and was tested on a single regional dataset, the impact of class imbalance is a cross-domain universal challenge, and it is particularly pronounced in the electric vehicle sector, where accident data remains scarce. The L-CSC framework, designed for sparse and imbalanced data, shows strong potential to be adapted to accident prediction for autonomous vehicles and EVs. Its advantages in handling class imbalance and delivering calibrated probability assessments enable it to be conceptually embedded into the risk perception systems of future intelligent EVs. However, it must be acknowledged that this connection remains conceptual rather than empirical at this stage. The current findings serve primarily as a supporting algorithmic argument, not a direct validation of EV-specific applicability. In the future, as EV-specific crash data becomes increasingly abundant, this data will be utilized to validate and fine-tune the framework, aiming to enhance its predictive performance for older drivers involved in EV accidents, thereby enabling targeted safety applications such as triggering tailored ADAS or intelligent eCall responses.
Author Contributions
Conceptualization, X.J. and Y.P.; methodology, X.J. and Y.P.; software, X.J. and G.L.; validation, X.J., G.L. and J.H.; formal analysis, X.J. and P.X.; investigation, X.J. and P.X.; resources, Y.P.; data curation, Y.P. and X.J.; writing—original draft preparation, X.J.; writing—review and editing, X.J., G.L. and J.H.; visualization, J.H. and P.X.; supervision, Y.P. and G.L.; project administration, Y.P.; funding acquisition, Y.P. All authors have read and agreed to the published version of the manuscript.
Funding
This work was supported in part by the National Natural Science Foundation of China under Grant: 51508280.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The original data used in the study are available from the corresponding author upon request.
Conflicts of Interest
The authors declare there are no conflicts of interest.
Appendix A
Table A1.
Optimized Hyperparameters for the Stage I Preliminary Screening Model.
Table A2.
Optimized Hyperparameters for Base Learners in the Stage II Stacking Ensemble.
Table A3.
Optimized Hyperparameters for the Meta-Learner in the Stage II Stacking Ensemble.
References
- Dissanayake, S.; Lu, J.J. Factors influential in making an injury severity difference to older drivers involved in fixed object–passenger car crashes. Accid. Anal. Prev. 2002, 34, 609–618. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Khattak, A.J.; Pawlovich, M.D.; Souleyrette, R.R.; Hallmark, S.L. Factors related to more severe older driver traffic crash injuries. J. Transp. Eng. 2002, 128, 243–249. [Google Scholar] [CrossRef] [Scilit]
- Boufous, S.; Finch, C.; Hayen, A.; Williamson, A. The impact of environmental, vehicle and driver characteristics on injury severity in older drivers hospitalized as a result of a traffic crash. J. Saf. Res. 2008, 39, 65–72. [Google Scholar] [CrossRef] [Scilit]
- Yang, Y.; Huang, H.; Li, G.; Han, B.; Yuan, Z.; Ma, H. A systematic review of resilience assessment and enhancement of urban integrated transportation networks. J. Transp. Geogr. 2025, 129, 104420. [Google Scholar] [CrossRef] [Scilit]
- O’Donnell, C.J.; Connor, D.H. Predicting the severity of motor vehicle accident injuries using models of ordered multiple choice. Accid. Anal. Prev. 1996, 28, 739–753. [Google Scholar] [CrossRef] [Scilit]
- Ye, F.; Lord, D. Comparing three commonly used crash severity models on sample size requirements: Multinomial logit, ordered probit and mixed logit models. Anal. Methods Accid. Res. 2014, 1, 72–85. [Google Scholar] [CrossRef] [Scilit]
- Pan, Y.; Yang, S.; Wang, C. Exploring the endogeneity between the autonomous vehicle takeover and crash severity: A comparative analysis of structural equation modeling and generalized linear logit model. Traffic Inj. Prev. 2025, 27, 245–252. [Google Scholar] [CrossRef] [Scilit]
- Milton, J.C.; Shankar, V.N.; Mannering, F.L. Highway accident severities and the mixed logit model: An exploratory empirical analysis. Accid. Anal. Prev. 2008, 40, 260–266. [Google Scholar] [CrossRef] [Scilit]
- Wu, L.; Shen, Q.; Li, G. Identifying Risk Factors for Autos and Trucks on Highway-Railroad Grade Crossings Based on Mixed Logit Model. Int. J. Environ. Res. Public Health 2022, 19, 15075. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Ji, S.; Cheng, W.; Wang, W.; Yan, X.; Yang, Z.; Yang, Y.; Zhang, J. A new framework for modelling traffic conflict interval time based on correlated random parameter duration model with heterogeneity in means and variances. Accid. Anal. Prev. 2026, 224, 108282. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wei, F.; Cai, Z.; Wang, Z.; Guo, Y.; Li, X.; Wu, X. Investigating Rural Single-Vehicle Crash Severity by Vehicle Types Using Full Bayesian Spatial Random Parameters Logit Model. Appl. Sci. 2021, 11, 7819. [Google Scholar] [CrossRef] [Scilit]
- Miao, J.; Pan, Y.; Zhao, K. Analysis of the Spatiotemporal Effects on the Severity of Motorcycle Accidents Without Helmets and Strategies for Building Sustainable Traffic Safety. Sustainability 2025, 17, 3280. [Google Scholar] [CrossRef] [Scilit]
- Xie, Y.; Zhang, Y.; Liang, F. Crash injury severity analysis using Bayesian ordered probit models. J. Transp. Eng. 2009, 135, 18–25. [Google Scholar] [CrossRef] [Scilit]
- Iranitalab, A.; Khattak, A. Comparison of four statistical and machine learning methods for crash severity prediction. Accid. Anal. Prev. 2017, 108, 27–36. [Google Scholar] [CrossRef] [Scilit]
- Azhar, A.; Ariff, N.M.; Bakar, M.A.A.; Roslan, A. Classification of Driver Injury Severity for Accidents Involving Heavy Vehicles with Decision Tree and Random Forest. Sustainability 2022, 14, 4101. [Google Scholar] [CrossRef] [Scilit]
- Yan, M.; Shen, Y. Traffic accident severity prediction based on random forest. Sustainability 2022, 14, 1729. [Google Scholar] [CrossRef] [Scilit]
- Han, B.; Huang, H.; Li, G.; Jiang, C.; Yang, Z.; Zhu, Z. Investigating the contributors to hit-and-run crashes using gradient boosting decision trees. PLoS ONE 2025, 20, e0314939. [Google Scholar] [CrossRef] [Scilit]
- Li, G.; Huang, H.; Han, B.; Jiang, C.; Pan, Y.; Zhou, J. Exploring factors of E-bike rider’s hit-and-run behavior of E-bike crashes on urban and rural roads using Light Gradient Boosting machine and SHapley additive exPlanations. Transp. Lett. 2026, 1–19. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Liang, G. Analysis of Injury Severity in Elderly Pedestrian Traffic Accidents Based on XGBoost. Appl. Sci. 2025, 15, 9909. [Google Scholar] [CrossRef] [Scilit]
- Yin, J.; Zhao, F.; Tang, W.; Ma, J. The Nonlinear and Threshold Effect of Built Environment on Ride-Hailing Travel Demand. Appl. Sci. 2024, 14, 4072. [Google Scholar] [CrossRef] [Scilit]
- Angarita-Zapata, J.S.; Maestre-Gongora, G.; Calderín, J.F. A Bibliometric Analysis and Benchmark of Machine Learning and AutoML in Crash Severity Prediction: The Case Study of Three Colombian Cities. Sensors 2021, 21, 8401. [Google Scholar] [CrossRef] [Scilit]
- Assi, K.; Rahman, S.M.; Mansoor, U.; Ratrout, N. Predicting Crash Injury Severity with Machine Learning Algorithm Synergized with Clustering Technique: A Promising Protocol. Int. J. Environ. Res. Public Health 2020, 17, 5497. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, J.; Guo, F.; Zhou, Y.; Yang, W.; Ni, D. Predicting the severity of traffic accidents on mountain freeways with dynamic traffic and weather data. Transp. Saf. Environ. 2023, 5, tdad001. [Google Scholar] [CrossRef] [Scilit]
- Sameen, M.I.; Pradhan, B. Severity Prediction of Traffic Accidents with Recurrent Neural Networks. Appl. Sci. 2017, 7, 476. [Google Scholar] [CrossRef] [Scilit]
- Alkheder, S.; Taamneh, M.; Taamneh, S. Severity prediction of traffic accident using an artificial neural network. J. Forecast. 2017, 36, 100–108. [Google Scholar] [CrossRef] [Scilit]
- Zuo, D.; Qian, C.; Xiao, D.; Xu, X.; Wang, H. Data-driven crash prediction by injury severity using a recurrent neural network model based on Keras framework. Int. J. Inj. Control Saf. Promot. 2023, 30, 561–570. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Tang, J.; Liang, J.; Han, C.; Li, Z.; Huang, H. Crash injury severity analysis using a two-layer Stacking framework. Accid. Anal. Prev. 2019, 122, 226–238. [Google Scholar] [CrossRef] [Scilit]
- El Mallahi, I.; Riffi, J.; Tairi, H.; Nikolov, N.S.; El Mallahi, M. Optimizing Traffic Accident Severity Prediction with a Stacking Ensemble Framework. World Electr. Veh. J. 2025, 16, 561. [Google Scholar] [CrossRef] [Scilit]
- Ahmad, N.; Wali, B.; Khattak, A.J. Heterogeneous ensemble learning for enhanced crash forecasts–a frequentist and machine learning based stacking framework. J. Saf. Res. 2023, 84, 418–434. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.; Deng, W. Prediction in traffic accident duration based on heterogeneous ensemble learning. Appl. Artif. Intell. 2022, 36, 2018643. [Google Scholar] [CrossRef] [Scilit]
- Hassanzadeh, R.; Farhadian, M.; Rafieemehr, H. Hospital mortality prediction in traumatic injuries patients: Comparing different SMOTE-based machine learning algorithms. BMC Med. Res. Methodol. 2023, 23, 101. [Google Scholar] [CrossRef] [Scilit]
- Alanazi, F.; Suleiman, A. Impact of Data Balancing and Feature Engineering on Accident Severity Models. Promet–Traffic Transp. 2025, 37, 665–690. [Google Scholar] [CrossRef] [Scilit]
- Elamrani Abou Elassad, Z.; Elamrani Abou Elassad, D.; Mousannif, H. Imbalance-learning road crash assessment under reduced visibility settings: A proactive multicriteria decision-making system. J. Ambient Intell. Smart Environ. 2024, 16, 215–240. [Google Scholar] [CrossRef] [Scilit]
- Swana, E.F.; Doorsamy, W.; Bokoro, P. Tomek Link and SMOTE Approaches for Machine Fault Classification with an Imbalanced Dataset. Sensors 2022, 22, 3246. [Google Scholar] [CrossRef] [Scilit]
- Rahim, M.A.; Hassan, H.M. A deep learning based traffic crash severity prediction framework. Accid. Anal. Prev. 2021, 154, 106090. [Google Scholar] [CrossRef] [Scilit]
- Wu, M.; Jia, H.; Luo, D.; Luo, H.; Zhao, F.; Li, G. A multi-attention dynamic graph convolution network with cost-sensitive learning approach to road-level and minute-level traffic accident prediction. IET Intell. Transp. Syst. 2023, 17, 270–284. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.; Liu, P.; Wang, S.; Zheng, N.; Guo, X. Prediction and interpretation of crash severity using machine learning based on imbalanced traffic crash data. J. Saf. Res. 2025, 93, 185–199. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, C.; Quddus, M.A.; Ison, S.G. Predicting accident frequency at their severity levels and its application in site ranking using a two-stage mixed multivariate model. Accid. Anal. Prev. 2011, 43, 1979–1990. [Google Scholar] [CrossRef] [Scilit]
- Abdi, A.; Seyedabrishami, S.; O’Hern, S. A Two-Stage Sequential Framework for Traffic Accident Post-Impact Prediction Utilizing Real-Time Traffic, Weather, and Accident Data. J. Adv. Transp. 2023, 2023, 8737185. [Google Scholar] [CrossRef] [Scilit]
- Ren, F.; Zhang, L.; Yin, S.; Zhao, X.; Liu, S.; Li, B. A conditional cascade model for relational triple extraction. In Proceedings of the 30th ACM International Conference on Information and Knowledge Management, Gold Coast, QLD, Australia, 1–5 November 2021; pp. 3393–3397. [Google Scholar] [CrossRef] [Scilit]
- Biggio, L.; Wieland, A.; Chao, M.A.; Kastanis, I.; Fink, O. Uncertainty-aware prognosis via deep gaussian process. IEEE Access 2021, 9, 123517–123527. [Google Scholar] [CrossRef] [Scilit]
- Araujo, B.; Teixeira, J.F.; Fonseca, J.; Cerqueira, R.; Beco, S.C. The road to safety: A review of uncertainty and applications to autonomous driving perception. Entropy 2024, 26, 634. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gao, X.; Jiang, X.; Haworth, J.; Zhuang, D.; Wang, S.; Chen, H.; Law, S. Uncertainty-aware probabilistic graph neural networks for road-level traffic crash prediction. Accid. Anal. Prev. 2024, 208, 107801. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Published by MDPI on behalf of the World Electric Vehicle Association. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.






