Abstract
Multimodal classification often suffers from recognition reliability that is asymmetric across data sources and classes, and its evaluation is frequently complicated by information leakage from overlapping sampling windows. This paper proposes a class-wise-optimized reliability fusion model (CORF), using the classification of multimodal driver responses under four controlled weather conditions as a validation case. Electroencephalogram, electrocardiogram, and vehicle signals were recorded for 30 participants, and two leakage-free protocols were adopted: leave-one-subject-out (LOSO) cross-validation and a purged temporal-block cross-validation, with all preprocessing, probability calibration, and weight estimation refitted inside every fold. Under LOSO, CORF achieved an accuracy of 0.356 (chance = 0.25) and a 0.630 macro-average area under the curve (AUC), whereas the originally used random overlapping-window split inflated accuracy to 0.92; the fused adverse-class probability discriminated adverse- from clear-weather windows with an AUC of 0.73. The fusion retains a symmetric reliability-weighting structure across classes, and its moderate symmetry-breaking difficulty emphasis significantly improved the most challenging adverse-weather class over equal-weight fusion (snow F1 +9.8 percentage points, Holm-corrected p < 0.001) at a small, statistically non-significant overall accuracy cost. CORF therefore provides a probability-calibrated, interpretable mechanism for controlling class-specific performance tradeoffs, highlighting the necessity of leakage-free validation in multimodal physiological classification.
1. Introduction
Adverse weather has been identified as a major contributor to traffic accidents [1], with fog particularly linked to severe freeway crashes [2]. Driving-simulator studies confirm that fog prompts behavioral adjustment while increasing speed dispersion [3], elevates mental load and lowers maximum acceptable speed [4], weakens takeover capability in emergency car-following [5], and causes marked fluctuations in attention, fatigue, and mental load [6]. In this context, electroencephalogram (EEG) captures central neural activity, electrocardiogram (ECG) reflects autonomic cardiovascular regulation, and vehicle telemetry records behavioral control; yet no single modality fully characterizes the operator’s state under environmental stress. EEG-derived workload and distraction indices have been validated in both combat and simulated driving contexts [7,8], demonstrating the sensitivity of cortical rhythms to driving-task demands. Accordingly, the classification of multimodal driver responses under controlled weather conditions serves as the validation case for the fusion framework proposed in this study.
Multimodal data fusion has become a primary strategy for robust classification in domains where single-source signals are insufficiently discriminative. In physiological monitoring, for instance, EEG data are widely used to assess central neural activity, and Huang et al. [9] previously compared machine learning and deep learning methods for mental-load classification. Zhang et al. [10] achieved notable results using EEG multidimensional feature selection and fusion. For ECG data, Halomoan et al. [11] introduced heart-rate fragmentation features and combined heart-rate variability analysis with mutual-information feature selection. Multisensor fusion has recently become the primary method for robust recognition, and Wang et al. [12] presented a multisensor fusion framework based on EEG, ECG, and vehicle images that achieved real-time fatigue recognition via a feedback mechanism. Chen et al. [13] used normalized mutual-information features with a self-optimized radial basis function extreme learning machine, whereas Shao et al. [14] fused Transformer and convolutional neural network architectures for multimodal physiological signals. A recursive feature elimination–Shapley additive explanations multilayer stacking ensemble method was proposed by Huang et al. [15], and a SHAP-based interpretable framework was developed by Sellal et al. [16] for driving-style classification. However, the above studies primarily relied on single-source or single-indicator descriptions, and systematic investigation into the category-level reliability variation during multimodal fusion remains scarce.
To address the fusion of heterogeneous sources, Nandi et al. [17] proposed a reward-penalty-weighted ensemble that dynamically adjusts weights according to classifier performance. Although this approach outperforms traditional voting, its weight adjustment targets global performance and fails to adapt to differences in recognition difficulty across categories. Consequently, when recognition difficulty differs across classes, the discriminative signals of challenging classes can be overwhelmed by dominant classes, reducing the interpretability and practical utility of the fused output. The other equally important concern is evaluation validity. Physiological and behavioral time series are routinely segmented into overlapping windows; when such windows are randomly assigned to cross-validation folds, adjacent segments share a substantial portion of their raw signals across the training and test partitions, and the resulting performance estimates can be markedly optimistic. Leakage-controlled validation protocols and probability calibration are therefore prerequisites for credible fusion-weight comparison and uncertainty quantification, yet they remain inconsistently applied in the literature.
To address these gaps, this paper proposes a class-wise-optimized reliability fusion model (CORF) and evaluates it under leakage-free protocols. The contributions are threefold. First, we formulate the task as the classification of multimodal driver-response patterns across four experimentally controlled weather conditions (clear, rain, snow, and fog), without equating weather labels with independently annotated latent driver states. Second, we introduce a class-wise reliability fusion rule in which each base classifier receives a category-specific contribution weight derived from its per-class validation performance; an inverse-F1 difficulty-emphasis term is evaluated as an optional, tunable extension rather than assumed to be beneficial. Third, we evaluated the framework using leave-one-subject-out (LOSO) and temporally purged validation protocols with train-only preprocessing, sigmoid probability calibration, participant-level statistical comparisons, and calibration-sensitive uncertainty metrics, and we quantified the performance inflation produced by the conventional random overlapping-window split. From the symmetry perspective, CORF applies a symmetric reliability-weighting structure across classes and modalities, while the class-difficulty exponent introduces a bounded and controllable symmetry breaking that compensates for the asymmetric recognition reliability observed across the weather classes.
2. Data Acquisition and Preprocessing
2.1. Experimental Design and Data Acquisition
A Maike driving simulator with a Logitech G29 steering wheel was used to conduct adverse-weather driving experiments. A typical urban road with straight and curved sections, 3.5 m lane width, and a 60 km/h speed limit was considered. The traffic density, road geometry, and driving-task requirements remained consistent across weather conditions. We set four weather conditions: clear, rain, snow, and fog. The case of clear conditions served as the normal driving control, with the rain, snow, and fog cases constituting the adverse weather conditions. The visibility parameters followed the China Meteorological Administration scale, at 200–500 m for heavy rain and dense fog and below 500 m for heavy snow. By keeping the road conditions fixed and varying the weather conditions only, we largely excluded interference from the road structure, traffic flow, and task complexity. Therefore, the differences in the samples were primarily due to differences in the weather conditions.
Thirty licensed drivers (20 males and 10 females) participated in the study. All participants were young adults aged 20–24 years, with driving experience ranging from less than one year to five years. All had normal or corrected vision and no history of neurological disease, and they refrained from alcohol, coffee, and strong tea within 24 h before the experiment. They first completed a 5–10 min simulator practice run to become familiar with the simulator handling. The formal experiment began with a 2 min eyes-closed resting-state recording as the physiological baseline. Each participant then completed the clear-weather task (6 min) as the cognitive-load baseline, followed by a 2 min break during which the NASA Task Load Index (NASA-TLX) and Karolinska Sleepiness Scale (KSS) were completed to record subjective workload and fatigue. The three adverse-weather tasks were subsequently performed in an order that was randomized across participants to weaken order effects. Each adverse-weather task comprised 6 min of adverse-weather driving, 3 min of clear-weather recovery driving, and a 2 min break with questionnaire completion. The entire experimental session lasted approximately 1 h per participant. All participants provided written informed consent.
We collected three objective data streams simultaneously. The EEG data were recorded at eight positions (F4, C3, Fz, Cz, F3, Oz, C4, and Pz) using a NeuSen W wireless system at a sampling rate of 256 Hz, with Ref as the reference electrode and Gnd as the ground. The ECG (Leads I and II) and respiration data were captured using an Equivital system; hence, heart rate, RR intervals, and breathing rate data were obtained. Vehicle data, including speed, acceleration, steering angle, throttle opening, brake opening, and lateral deviation data, were obtained directly from the simulator. All three streams were aligned using unified timestamps. The experimental instruments and a participant during the driving simulation are shown in Figure 1.
Figure 1.
Experimental instruments and participant snapshots.
2.2. Multimodal Feature Extraction
For the multimodal feature extraction, the EEG signals were first preprocessed in EEGLAB. A 1–40-Hz band-pass filter was applied to reduce low-frequency drift, power-line interference, and high-frequency noise, followed by baseline correction, and independent component analysis (ICA) was then used to remove ocular and muscular artifacts. Then, we cut the preprocessed EEG signal into fixed-length windows of 10 s each and extracted the frequency-domain features within each window. Specifically, we computed power features at δ, θ, α, β and γ bands, and further constructed three power-ratio features: (θ + α)/β, θ/β and α/β. These features were calculated across all eight EEG channels, yielding 64 EEG features per window.
The ECG signals were preprocessed and R-waves were detected; RR intervals were constructed from the adjacent R-peak spacing. As adverse weather may cause changes in driver tension, alertness, and autonomic regulation, we extracted four physiological features: the heart-rate mean, breathing rate, standard deviation of normal-to-normal intervals (SDNN), and low-frequency/high-frequency (LF/HF) ratio. The heart-rate mean reflects the overall physiological arousal, the SDNN reflects the HRV, the LF/HF supplements the frequency-domain characterization of the HRV by describing the relative contributions of different frequency components, and the breathing rate adds a description of the respiratory regulation.
The vehicle features were extracted according to three aspects: speed control, longitudinal operation, and lateral stability. These included the mean speed, speed standard deviation, root mean square (RMS) acceleration, steering standard deviation, throttle mean, brake mean, and lateral deviation mean, yielding seven vehicle features per window.
Questionnaire data were collected after each weather task. The participants completed the NASA-TLX and KSS questionnaires. The NASA-TLX has four sub-dimensions: mental demand, temporal demand, effort, and frustration, and the sum of these four scores serves as the total mental workload. KSS is a 1-to-9 fatigue scale. In this study, the questionnaire data were used only as auxiliary descriptive measures; they did not provide class labels for model training or evaluation.
These four data types jointly characterized the participants’ subjective, neurophysiological, and behavioral responses under the different weather conditions. Accordingly, the multimodal fusion model was constructed to classify weather-associated response patterns and to quantify predictive uncertainty.
2.3. Feature Standardization and Sample Construction
To reduce inter-individual differences, we applied a baseline-referenced Z-score standardization to each participant across the three sensor types, thereby obtaining 75 features. Specifically, the mean and standard deviation of every feature were computed from each participant’s own benign (clear-weather) baseline windows, and all windows of that participant were then standardized using these baseline statistics. Here,
where is the raw feature value, and are the mean and standard deviation of that feature computed from the participant’s benign-baseline windows, and is the standardized value. Because the reference statistics are derived from each driver’s own baseline rather than from the pooled sample, this processing removed systematic inter-individual offsets while preserving the relative changes induced by the weather conditions, and it can be obtained for a new driver from a short baseline recording alone.
Each standardized window was used as one model input, and its class label was determined by the weather condition under which it was recorded; windows obtained from the same participant and experimental segment were treated as correlated observations rather than as independent samples in all statistical analyses (Section 2.4). The four labels were as follows: “clear,” “rain,” “snow,” and “fog.” After screening, the raw windows yielded 6564 valid samples, with “rain,” “snow,” and “fog” outnumbering “clear” slightly. To maintain class balance, we randomly subsampled “rain,” “snow,” and “fog” to equal sizes, finally obtaining 1614 windows per class and 6456 total samples to input to the model. This balanced structure prevented the model from favoring any category owing to sample size differences, and also facilitated a comparison of recognition difficulty across weather types.
2.4. Leakage-Free Evaluation Protocols
Because the 10 s windows were cut with a 5 s step, adjacent windows overlap, and random stratified splitting can place near-duplicate windows in both the training and test sets, which inflates the estimated performance. To obtain substantially less biased, leakage-controlled estimates under explicitly defined calibration assumptions, we designed two evaluation protocols that strictly separate the training, validation, and test partitions.
The first protocol was a purged temporal-block cross-validation. For each participant and each weather segment, the windows were sorted by their start times and divided into five contiguous blocks; one block served as the test set, the temporally adjacent block served as the validation set, and the remaining three blocks served as the training set. Each window spans 10 s with a 5 s step; therefore, at every partition boundary, all windows whose 10 s span overlapped the adjacent partition (at least two windows on each side, corresponding to a purge gap of at least 10 s) were discarded, so that no training window shared any raw signal with a validation or test window. This protocol evaluates the model’s ability to recognize the weather-response patterns of known drivers on unseen temporal segments.
The second protocol was a leave-one-subject-out (LOSO) cross-validation, in which one participant was held out for testing, six additional participants were held out as the validation set, and the remaining participants formed the training set. For the held-out participant, the first half of the clear-weather (Benign) baseline recording served as a prespecified calibration segment: the participant’s normalization statistics were computed exclusively from this segment, which mirrors practical deployment, in which a short calibration drive is available for a new user. A purge of at least 10 s separated the calibration segment from the second half of the baseline recording, which provided the Clear-class test windows; The calibration segment contributed only feature-wise normalization statistics: its class label was not used for classifier fitting, probability calibration, fusion-weight estimation, or performance evaluation, and the calibration and purged windows entered no evaluation, so the test participant’s normalization reference was temporally disjoint from all evaluated windows. This protocol therefore constitutes a baseline-calibrated unseen-participant evaluation under a deployable calibration assumption.
In both protocols, median imputation, Random Forest (RF)-based top-30 feature selection, and base-classifier fitting were performed using the training partition only; the sigmoid probability calibrators and the class-wise reliability weights were estimated on the independent validation partition; and the test partition was not used in any model fitting, calibration, weight estimation, or hyperparameter selection, so that no information from the test data could leak into model construction. Baseline-referenced normalization was participant-specific: for the training and validation participants, the statistics were computed from their own clear-weather baseline windows within the corresponding development partition, and for the held-out LOSO participant, from the prespecified calibration segment described above; no evaluated window was used to estimate any normalization parameter. The original within-subject stratified cross-validation was retained only as a reference protocol for quantifying leakage-driven inflation (Section 4.1).
3. Model Construction
3.1. Overall Framework
The CORF fusion model built in this study uses “clear,” “rain,” “snow,” and “fog” as experimental labels for validation. Its core task is to classify the weather-associated multimodal response patterns of drivers, although the underlying framework is structurally applicable to other multisource classification problems. The weather categories are externally imposed experimental labels rather than direct annotations of latent driver states such as fatigue, distraction, or workload; the underlying premise is that different weather conditions systematically induce different physiological–behavioral response patterns. Model construction comprises five steps: baseline-referenced feature standardization (Section 2.3), within-fold dynamic Top-30 feature selection, training of three base classifiers, sigmoid probability calibration on the validation partition, and computation of the class-wise reliability weights to complete probability fusion and uncertainty quantification. The overall framework of the model is illustrated in Figure 2. All steps are embedded in the leakage-free evaluation protocols described in Section 2.4, and the fused probabilities are finally stabilized by a short moving-average filter along the window sequence.
Figure 2.
Overall framework of the CORF model.
3.2. Dynamic Feature Selection and Probability Calibration
Individual differences in physiological responses and driving behavior are observed across drivers, and different drivers have different sensitive features under the same weather conditions; therefore, a fixed global feature set introduces redundant features and increases the risk of overfitting. Accordingly, feature selection and all preprocessing statistics were fitted dynamically inside each training fold, as described in this section.
Probability calibration was likewise fitted inside each fold. For each base classifier, a one-vs.-rest sigmoid (Platt) calibrator was fitted for each class on the validation partition and then applied to the test partition, allowing the fused scores to be interpreted as calibrated probabilities. In addition, because the windows within each weather segment are temporally ordered, the fused test-partition probabilities were stabilized with a centered moving average over five consecutive windows (±2) within the same participant and weather segment. This operation uses no label information and only suppresses isolated, transient misclassifications; the operation serves as an offline sequence-stabilization step for evaluation, whereas real-time deployment would require a causal, backward-looking filter.
Different drivers exhibit different sensitive features under the same weather conditions; therefore, a fixed global feature set is inappropriate. In this study, before training was performed for each fold, a temporary RF of 300 decision trees was constructed based on the training set of the current fold. The mean decrease in impurity importance was then computed for each feature, and the top 30 features were selected for subsequent modeling in that fold. Note that this strategy avoids information leakage from the global ranking while making the selection frequency available for the interpretation of key sensor modalities.
3.3. Base Classifiers and Their Parameters
In this study, three base classifiers based on different principles were selected: the Support Vector Machine (SVM), RF, and Extreme Gradient Boosting (XGBoost). Each of these classifiers learns the mapping between features and weather categories from a different perspective. Notably, SVM uses an RBF kernel; thus, to handle nonlinear relationships, the original features are mapped to a high-dimensional space. Previous studies have shown that this classifier achieves high classification accuracy in the context of mental load recognition [9]. We set the penalty parameter to 10 and the kernel coefficient to scale.
RF comprises multiple decision trees. Each tree randomly draws equal-sized samples with replacements from the original training set, and randomly selects a subset of features for the best split at each node. Here, we set 150 decision trees, the feature subset size to the square root of the total feature count, and no maximum depth limit.
XGBoost is a gradient-boosting decision-tree algorithm that iteratively trains multiple decision trees, thereby gradually optimizing the prediction error. This is achieved through the introduction of L2 regularization into the objective function to control model complexity. Here, we set the XGBoost learning rate to 0.05, maximum depth to 5, and number of iterations to 50. The hyperparameters of all three base classifiers were fixed before the main experiments and were identical across folds. Each classifier was trained on the training set, and its per-class F1 score on the validation set was computed for subsequent fusion-weight calculation.
3.4. Class-Adaptive Probability Fusion
If simple fusion strategies such as direct probability averaging were employed here, they would assign equal weights to all weather categories; however, the recognition difficulty often differs across these categories. Similar low visibility is encountered with snow and fog; thus, the physiological and behavioral features of the drivers are close and the categories are easily confused. Clear-weather features are relatively stable and, thus, the recognition accuracy is usually higher. If all the categories are treated equally, the judgment signal of the difficult categories is buried by the signal of the dominant categories. Here, inspired by the RPWE proposed by Nandi et al. [17], we propose a class-adaptive reliability fusion method called CORF. The core concept is that the model- and class-level reliability weights are estimated separately according to the recognition performance of each base classifier on different weather categories in the validation set, thereby awarding greater fusion influence to the difficult categories.
We let the base-classifier set be SVM, RF, or XGBoost. The probability that the -th base classifier is assigned to class for window is . Here, m = 1, …, M (M = 3) indexes the base classifiers and c = 1, …, C (C = 4) indexes the weather classes. Further, we let be the F1 score of the -th base classifier on class in the validation set. To prevent division by zero, a tiny positive number is introduced. Then, the reliability weight of this base classifier for class is
where Fc(m) is the F1 score of model m on class c in the validation set, ε = 10−6 prevents division by zero, and ρc(m) is the normalized reliability weight of model m for class c.
This weight reflects the relative credibility of each base classifier on class c. Specifically, the higher the F1 value, the more reliable the discrimination of the base classifier for that class, and the larger its share in the fusion. The average F1 score of the three models on class is computed as follows:
Because a lower F1 score indicates more difficult recognition, the reciprocal of the average F1 score, raised to a tunable exponent α, serves as the raw class weight
where uc is the raw difficulty weight of class c, and α ≥ 0 controls the strength of the difficulty compensation (α = 0 recovers reliability-only fusion). In the main experiments, α = 0.25 was adopted as a conservative operating point; this value was specified in the original model definition before the leakage-free re-evaluation and was retained rather than re-optimized on the new test results. The sensitivity of the model to α is analyzed in Section 4.
The raw weights of the four classes are then normalized such that their sum equals one
where is the final class-adaptive weight.
In the test phase, each of the three base classifiers outputs a probability vector. First, the same-class probabilities of each base classifier are weighted and summed according to the model-class reliability weights . Hence, the class probabilities after model-reliability allocation are obtained. Then, the probabilities are multiplied by the class-difficulty weight , yielding weighted scores. This process integrates the model-level reliability and class-level difficulty in a step-by-step manner. Finally, normalization is performed to obtain the fused probability
The average probability is then multiplied by the corresponding class-adaptive weight to obtain the weighted score
where is the final weighted score for class c.
Let be the class with the highest weighted score; then, the final weather-recognition result is .
Note that the class-difficulty term is controlled by the exponent α and should be interpreted as an adjustable operating point rather than as a fixed performance-enhancing component: larger α values progressively shift the fused decisions toward the difficult classes, which benefits the recognition of the most challenging category, but an excessively large α amplifies validation noise and destabilizes the overall predictions. Accordingly, CORF should be understood as a reliability-driven probability-fusion framework with a controllable degree of class compensation. In this study, CORF with α = 0 (reliability-only fusion) is reported as the standard configuration, whereas α = 0.25 is presented as a safety-oriented operating point that shifts a small, controlled amount of recognition capacity toward the most difficult adverse-weather class; the full operating characteristic is reported as a sensitivity analysis in Section 4.4.
3.5. Prediction Confidence, Uncertainty, and Their Application in Weather-Response Classification
For each test sample, the weighted-score vector was obtained after the CORF fusion; however, this vector was not necessarily a probability distribution. To obtain interpretable confidence and entropy, was first normalized to a probability vector as follows:
where is the normalized probability for class c.
The confidence score was then defined as the maximum value in the normalized probability vector, denoted . A larger confidence value indicated higher model confidence regarding the weather recognition of that sample.
The prediction uncertainty was based on the Shannon entropy
where is the prediction entropy in bits.
Specifically, the larger the entropy, the flatter the probability distribution, the greater the model hesitation when selecting from among multiple weather categories, and the less reliable the recognition results.
The model-output confidence reflects the clarity of judgment; higher values indicate higher model certainty that the current window corresponds to a specific weather category. The prediction entropy reflects the model’s hesitation; higher entropy indicates that the model assigns similar probabilities to multiple weather categories. Such ambiguity may arise from overlapping response patterns, transient measurements, or model uncertainty, and the present data do not distinguish among these explanations. When the model gives high confidence for a window, the estimated response pattern closely matches the pattern typically associated with that weather condition in the training data.
3.6. Auxiliary Cognitive-Load Indicator
To assist in interpreting the model results, the cognitive-load index was defined as the following F4-electrode:
For this index, a higher value indicates greater cognitive resource consumption for the driver. This index was used to support the physiological interpretation of the feature-level results, and the model uncertainty outputs were examined for consistency with the expected cognitive-load pattern across weather categories.
4. Results and Analysis
4.1. Overall Performance Comparison
To evaluate the effectiveness of CORF, we compared this model with the three base classifiers and two classic fusion strategies under the two leakage-free protocols (Table 1 and Figure 3), using accuracy and macro-average AUC as the evaluation metrics. To clarify the effect of the evaluation protocol itself, the original within-subject stratified cross-validation was additionally rerun as a reference. Under this random-overlap splitting, CORF (α = 0.25) reproduced the high performance of our preliminary experiments (accuracy 0.918, macro-AUC 0.988); however, because adjacent windows overlap by 5 s and near-duplicate windows are shared between the training and test sets, this estimate is optimistically biased. Once temporal overlap and subject identity were controlled, the accuracy decreased to 0.497 under the purged temporal-block protocol and to 0.356 under LOSO. This gap quantifies how strongly weather-response recognition relies on participant-specific signal patterns and is consistent with the cross-subject generalization difficulty reported in related EEG-based studies [7,8].
Table 1.
Overall performance under the purged temporal-block and leave-one-subject-out (LOSO) protocols.
Figure 3.
Distribution of participant-level accuracy for CORF (α = 0.25) and the alternative fusion strategies under the LOSO protocol.
Under both leakage-free protocols, the three fusion strategies performed comparably in terms of the overall accuracy, and the difference between CORF (α = 0.25) and equal-weight averaging was not significant (paired Wilcoxon test across participants, unadjusted p = 0.274, Holm-adjusted p = 1.000; Section 4.5). The macro-AUC remained moderate (0.630 under LOSO and 0.747 under the purged protocol), indicating above-chance ranking ability despite the difficulty of exact four-class assignment. As a prespecified secondary readout, the summed adverse-class probability (the sum of the rain, snow, and fog class probabilities) discriminated adverse-from clear-weather windows with a pooled AUC of 0.73 under LOSO (participant-level mean 0.78) and 0.79 under the purged protocol (participant-level mean 0.81), corresponding to the ranking ability most relevant to graded-warning applications; the commonly used fixed 0.5 threshold, however, did not transfer to the disjoint-calibration LOSO regime, as discussed in Section 5. The sequence-stabilization step improved the LOSO accuracy from 0.342 to 0.356 and the macro-AUC from 0.611 to 0.630, and it was retained in all reported LOSO results; under the purged protocol, its effect on participant-level accuracy was negligible. RF alone attained the highest purged accuracy (0.527), although its advantage over the fusion methods was not statistically significant (p > 0.05).
4.2. Per-Class Recognition Performance
Table 2 and Figure 4 present the confusion matrix of CORF (α = 0.25) for all test windows under the LOSO protocol, and Table 3 lists the per-class precision, recall, and F1 scores.
Table 2.
CORF (α = 0.25) confusion matrix under the LOSO protocol (window counts after sequence stabilization).
Figure 4.
CORF (α = 0.25) confusion matrix under the LOSO protocol.
Table 3.
Per-class performance metrics of CORF (α = 0.25) under the LOSO protocol (pooled-window values computed from the aggregated out-of-fold predictions after sequence stabilization).
Under LOSO, the clear-weather class was the most difficult to recognize (pooled F1 = 0.246), whereas the rain class was easily recognized (F1 = 0.414) and the snow and fog classes yielded F1 scores of 0.352 and 0.364. The weak clear-class performance may partly reflect temporal baseline drift under the disjoint-calibration design: the evaluated clear windows postdate the calibration segment, and the baseline statistics are only partially stable over time (split-half correlations: means r = 0.94, SDs r = 0.65; Supplementary Material). Rain–snow and snow–fog misclassifications were the most frequent among the adverse-weather classes, which may reflect overlapping multimodal response patterns. The three adverse states appear to share a common multisensory signature. This pattern explains why ranking windows by the summed adverse-class probability remains informative (AUC = 0.73; Section 4.1) even when the exact adverse-state assignment fails.
4.3. Multimodal Ablation Analysis
To verify the complementarity of the EEG, ECG, and vehicle features, we conducted a modality ablation under the purged temporal-block protocol. Table 4 and Figure 5 list the modality combinations ranked by accuracy.
Table 4.
Modality ablation results (CORF).
Figure 5.
Modality ablation results under the purged temporal-block protocol.
The worst performance was observed for ECG alone (accuracy 0.296, macro-AUC 0.556), indicating that heart rate, breathing, and HRV features alone are insufficient to stably distinguish the four weather responses. EEG alone (0.458) and vehicle data alone (0.471) performed comparably, and the best dual combination, EEG + Vehicle (0.496), essentially matched the full three-modality fusion (0.494). These results indicate that the discriminative information is carried mainly by the cortical and behavioral channels, whereas the ECG channel contributes little to this four-class task; the full three-modality configuration was nevertheless retained as the prespecified primary configuration, because its macro-AUC (0.741) was essentially identical to that of the best dual combination and because it supports the reliability-weighted interpretation, as described in this section.
4.4. Dynamic Feature Selection and the Class-Difficulty Exponent α
The dynamic feature-selection strategy screened the top 30 features inside each training fold. We calculated the frequency with which each feature entered the top 30 across all 35 folds (5 purged temporal-block folds and 30 LOSO folds), thereby identifying the sensor indicators with stable discriminative power across participants and data splits. Table 5 lists the top 10 features, and Figure 6 shows the top 20 features, ranked by selection frequency.
Table 5.
Top 10 features by dynamic selection frequency over the 35 folds of the two leakage-free protocols; ties were broken by the mean importance rank.
Figure 6.
Top 20 features by selection frequency across the 35 training folds.
The most frequently selected features spanned vehicle control, autonomic physiology, and the EEG γ-band; thus, the information distinguishing adverse weather from clear conditions is broadly distributed across sensor modalities. The mean heart rate and mean speed were the two most stable cross-participant indicators, followed by the mean breathing rate, mean lateral deviation, mean throttle opening, and steering variability; each of the top 10 features listed in Table 5 was selected in all 35 folds of the two leakage-free protocols. The consistent selection of γ-band power at the C3, F4, and Oz channels, together with the PZ δ-band power, indicates that these sensorimotor and frontal–occipital features contributed consistently to discrimination across folds; the direction and neurophysiological interpretation of these feature-level changes require a separate statistical analysis and have not been addressed here.
To characterize the effect of the class-difficulty exponent α, we swept α over {0, 0.25, 0.5, 1, 2, 4} under both protocols; representative results are listed in Table 6, and the complete sweep is visualized in Figure 7.
Table 6.
Effect of the class-difficulty exponent α on overall accuracy and snow-class F1 (participant-level means).
Figure 7.
Effect of the class-difficulty exponent α on overall accuracy and snow-class F1 under the two protocols.
Increasing α monotonically improved the F1 score of the most difficult adverse-weather class: under LOSO, the snow F1 increased from 0.207 at α = 0 to 0.295 at α = 0.25 and 0.410 at α = 1.0, whereas the overall accuracy gradually decreased. The value α = 0.25 constitutes a conservative operating point: it improved the snow F1 by 8.8 percentage points relative to α = 0 (paired Wilcoxon, Holm-adjusted p = 0.002) at a non-significant overall accuracy cost of 1.0 percentage point (unadjusted p = 0.347, Holm-adjusted p = 1.000). In contrast, α ≥ 2 destabilized the model (LOSO accuracy 0.29, macro-F1 0.12 at α = 2), which confirms that an excessively strong difficulty compensation amplifies validation noise and should be avoided.
4.5. Fusion Component Ablation and Class-Reliability Weights
To clarify whether the class-wise reliability weighting provides measurable benefits over conventional fusion, we compared CORF (α = 0.25) with equal-weight averaging, performance weighting, CORF without the difficulty term (α = 0), and the strongest single base classifier using paired Wilcoxon signed-rank tests across the 30 participants, with Holm correction within each metric family; the results for overall accuracy, macro-F1, and the rain- and snow-class F1 scores are listed in Table 7, and the complete results for all metrics and classes, including bootstrap 95% confidence intervals and effect sizes, are provided in the Supplementary Material.
Table 7.
Paired participant-level comparisons of CORF (α = 0.25) with the alternative strategies under LOSO (Wilcoxon signed-rank tests; Holm-corrected p values in parentheses).
CORF (α = 0.25) significantly outperformed the three base classifiers, the two conventional fusion strategies, and the reliability-only variant (α = 0) on the most difficult adverse-weather class (snow), with F1 gains of 8.8–11.8 percentage points (Holm-corrected p < 0.01 in five of the six comparisons and p = 0.013 for the comparison with XGBoost; rank-biserial correlations 0.76–0.94), whereas the differences in overall accuracy and macro-F1 were non-significant. The gain was not free: relative to the fusion baselines, the rain-class F1 decreased by 2.1–2.6 percentage points (not significant after Holm correction, corrected p > 0.1), and the fog and clear classes decreased by 6.7 and 4.9 percentage points, respectively; only the clear-class decrease remained marginally significant after correction (corrected p = 0.043 versus equal-weight averaging), and the clear class was already the most drift-affected under the disjoint-calibration LOSO protocol (Section 4.2). Under LOSO, the estimated class-difficulty weights were 0.220 (clear), 0.247 (rain), 0.283 (snow), and 0.250 (fog); the largest weight was assigned to snow, the class with the lowest validation F1, which is consistent with the intended mechanism of the difficulty term.
To examine whether the inverse-F1 form of the difficulty term is appropriate, we compared it with two alternative difficulty-weighting schemes—rank-based weighting, in which the classes are ordered by increasing validation F1 and the weights are proportional to the resulting ranks (1, 2, 3, 4; the most difficult class receives 4), normalized to sum to one, and focal-inspired weighting, in which the normalized weights are proportional to with γ = 1 and γ = 2 as mild and strong presets following the focal-loss convention—recomputing the fusion under LOSO with identical reliability weights (Table 8). The stronger schemes further increased the snow F1 (up to 0.385 for rank-based and 0.409 for focal-inspired weighting with γ = 2) but severely degraded the overall accuracy (to 0.302 and 0.317, respectively) and macro-F1 (to 0.159 and 0.184), because an aggressively amplified difficult class absorbs predictions from all other classes. The temperature-controlled inverse-F1 term at α = 0.25 provided the most balanced tradeoff: its macro-F1 (0.276) remained close to the reliability-only variant (0.287; difference not significant after Holm correction) while delivering a statistically significant snow-class gain. This finding supports the use of a bounded, moderate-strength difficulty correction rather than an aggressive one.
Table 8.
Comparison of class-difficulty weighting schemes under LOSO (participant-level means).
We further compared the per-class F1 scores of the fusion strategies under LOSO; the results are listed in Table 9 and shown in Figure 8. Note that the participant-level means listed in Table 9 differ from the pooled-window values listed in Table 3; the former are computed separately for each participant and then averaged with equal weight, whereas the latter aggregate all test windows and therefore weight participants according to their number of windows.
Table 9.
Per-class F1 scores of the fusion strategies under the LOSO protocol (participant-level means: F1 was first calculated separately for each participant and then averaged across the 30 participants).
Figure 8.
Per-class F1 comparison of fusion strategies under the LOSO protocol.
As listed in Table 9, CORF (α = 0.25) achieved the highest F1 score for the most difficult adverse-weather class (snow: 0.295, versus 0.198 for equal-weight and 0.200 for performance-weighted averaging, absolute gains of approximately ten percentage points), whereas its macro-F1 (0.276) remained close to those of the conventional strategies (0.287 and 0.286; differences not significant after Holm correction). This gain was obtained mainly by reallocating probability mass toward snow, whose validation reliability was the lowest; the cost was a moderate decrease in the rain and fog F1 scores (0.366 versus 0.392 and 0.276 versus 0.343 relative to equal-weight averaging) and a further decrease in the already drift-affected clear class (0.166 versus 0.215). A window-level switch analysis confirmed this mechanism: relative to α = 0, the α = 0.25 configuration changed 21.5% of the window predictions, 93% of the switches moved decisions toward the snow class (599 from rain, 324 from fog, and 197 from clear), and 330 of the 1120 snow-ward switches landed on truly snow windows, yielding the observed snow-recall gain at a net window-level cost of approximately 0.5%.
Although the overall accuracies of CORF and the conventional fusion strategies are comparable, their working mechanisms differ fundamentally. Equal-weight averaging treats all base classifiers identically for every class, and performance weighting allocates a single global weight per classifier; neither considers the fact that a classifier can be reliable for one weather response and unreliable for another. CORF estimates the reliability of each base classifier separately for every class on the validation partition and adds a bounded difficulty compensation. Hence, the fused output allocates more influence to the classes that are most difficult to recognize, while largely preserving the ensemble’s overall ranking performance in the experiments.
Moreover, CORF outputs the per-window confidence and prediction entropy simultaneously. Under LOSO, the lowest mean confidence (0.346) was obtained for the clear-weather windows—the class most affected by baseline drift under the disjoint-calibration protocol—confirming that the model was indeed most hesitant for the class that was most difficult to recognize. For practical applications, such an uncertainty readout supports graded decision-making: windows with high entropy can be routed to a conservative system response rather than being acted upon directly.
4.6. Prediction Confidence, Uncertainty, and Calibration
CORF outputs the confidence and prediction entropy for each test sample. Table 10 lists the means and standard deviations of these quantities by weather category under LOSO. In addition, we quantified the effect of the sigmoid calibration step on the probability quality (Table 11). Under the purged protocol, calibration substantially improved the SVM probabilities (expected calibration error 0.217 → 0.073; negative log-likelihood 1.742 → 1.308; Brier score 0.789 → 0.709) and left the already well-calibrated tree ensembles essentially unchanged. For the CORF fusion, calibration slightly improved the accuracy (0.470 → 0.496) and the negative log-likelihood (1.195 → 1.186), whereas the Brier score changed minimally (0.644 → 0.642) and the expected calibration error increased modestly (0.058 → 0.074); its effect therefore depended on the metric. We note that Table 11 reports the purged protocol, whereas the reliability diagram (Figure 9) is computed under LOSO, in which the calibrated CORF probabilities show broadly reasonable calibration, although the gains are metric- and model-dependent.
Table 10.
Prediction confidence and entropy by weather category.
Table 11.
Calibration quality of the base classifiers and the CORF fusion before and after sigmoid calibration under the purged protocol (means over the five folds).
Figure 9.
Reliability diagram of the sigmoid-calibrated models under the LOSO protocol; the calibrated fused probabilities show broadly reasonable calibration (see Table 11 for metric-dependent quantitative results under the purged protocol).
The lowest mean confidence was obtained for the clear-weather condition (0.346), and the entropy of the three adverse-weather classes (0.92–0.93) was comparable to that of the clear class (0.95). The entropy levels were high in absolute terms because cross-subject four-class recognition is intrinsically uncertain; importantly, the confidence ordering of the classes matches their recognition difficulty, ensuring that the uncertainty readout remains informative for downstream decision gating.
The stable selection of gamma-band power at the C3, C4, and F4 channels across drivers is consistent with the neuroergonomics literature, in which elevated high-frequency cortical activity indexes sustained sensorimotor engagement and vigilance under increased task demands [7,8]. Moreover, the prediction confidence of CORF was lowest for the clear-weather windows, the most difficult class under the disjoint-calibration LOSO protocol; the calibrated confidence scores thus provide a model-based indicator of predictive certainty, although whether these uncertainty measures correspond to independently defined psychophysiological ambiguity requires further validation. This property distinguishes the proposed framework from conventional fusion schemes that report accuracy alone, and the framework supports the use of confidence and entropy as signals for graded warning.
5. Conclusions
This paper proposed a class-wise-optimized reliability fusion model (CORF) for multimodal driver-response recognition under adverse weather and re-evaluated it under two leakage-free protocols. Under the purged temporal-block and LOSO protocols, CORF (α = 0.25) achieved accuracies of 0.497 and 0.356 and macro-AUCs of 0.747 and 0.630, respectively. These values are substantially lower than the 0.918 obtained under random-overlap splitting, which we demonstrated to be optimistically biased by the overlap between adjacent windows; this comparison quantified, for the present task, how much of the apparent performance reflects participant- and segment-specific patterns rather than generalizable weather responses. Under the realistic protocols, CORF performed comparably to conventional fusion in overall accuracy while significantly improving the recognition of the most difficult adverse-weather class (snow) (F1 gains of 8.8–11.8 percentage points over the base classifiers and conventional fusion strategies, Holm-corrected p < 0.05), and the fused adverse-class probability discriminated adverse- from clear-weather windows with an AUC of 0.73–0.79. The principal positive outcome is therefore not a universally more accurate ensemble but a validated mechanism for explicit, statistically measurable control of class-specific performance tradeoffs, together with a quantified demonstration of how strongly random-overlap validation can inflate multimodal physiological classification results. This design—symmetric reliability weighting with controllable symmetry breaking—offers an interpretable example of how symmetry concepts can inform multimodal fusion under class imbalance.
The main advancement of CORF is that the fusion process is interpretable and controllable. The class-wise reliability weights expose which classifier is trusted for which weather response, and the exponent α provides an explicit operating point that trades overall accuracy against the recognition of difficult classes: a moderate value (α = 0.25) significantly improved the snow-class F1 at a small, statistically non-significant overall accuracy cost, whereas α ≥ 2 destabilized the fusion. The modality ablation further showed that the EEG and vehicle channels carry most of the discriminative information, and the probability calibration improved selected probability-quality metrics, particularly for the SVM, whereas its effect on the fused CORF probabilities was mixed across the NLL, Brier score, and ECE (Table 11).
The formulation is structurally applicable to other multiclass ensemble problems that provide calibrated class probabilities, because the reliability weights are derived from validation-set performance rather than domain-specific knowledge; however, its empirical generalizability beyond the present dataset and task remains to be validated on external data. In practice, the predictive entropy may be used as a model-level caution signal for decision gating; specifically, windows with high entropy can be routed to a conservative system response. Further, the model could combine multiple consecutive windows for comprehensive evaluation, thereby enabling a more robust graded warning.
This study was conducted in a driving simulator, and whether the findings generalize to real-world traffic remains to be verified. The modest cross-subject accuracy may partly reflect the strong inter-individual variability of physiological responses, together with the limited cohort size and the overlapping response patterns among the adverse-weather conditions. The proposed baseline-referenced normalization offers a practical deployment route in which a short calibration drive is collected for each new driver, but further personalization or domain-adaptation techniques are likely to be beneficial. In addition, the fixed adverse-weather decision threshold did not transfer across normalization regimes: under the disjoint-calibration LOSO protocol, clear-weather test windows drifted away from the calibration segment, and the prespecified 0.5 threshold became degenerate, whereas threshold-free ranking (AUC) remained informative; operating thresholds should therefore be recalibrated for each driver or expressed in drift-robust forms before deployment.
Supplementary Materials
The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/sym18081381/s1, Figure S1: Two-panel reliability diagram under LOSO (extended variant of Figure 9); Table S1: Participant-level metrics under LOSO (sequence-stabilized); Table S2: Participant-level metrics under the purged temporal-block protocol; Table S3: Paired statistical tests under LOSO; Table S4: Paired statistical tests under the purged temporal-block protocol; Table S5: Participant-level metrics for alternative difficulty-weighting schemes; Table S6: Per-participant prediction-switch counts (α = 0 vs. α = 0.25); Table S7: Calibration comparison before and after sigmoid calibration (LOSO); Table S8: Calibration aggregates under the purged protocol; Table S9: Split-half stability of the baseline z-score normalization; Table S10: Per-fold validation F1 tables under LOSO (CORF reliability weights); Table S11: Per-fold validation F1 tables under the purged protocol; Table S12: Per-fold top-30 feature selections across the 35 training folds. The archive also contains the complete reanalysis code (corf_reanalysis_complete.py, corf_code.py, and the original stage-by-stage scripts), with a README and an output manifest describing every file; it contains no extraneous content.
Author Contributions
Conceptualization, Y.T. and J.H. (Jianping Hu); methodology, Y.T.; software, Y.T.; validation, Y.T.; formal analysis, Y.T.; investigation, Y.T., W.D., B.Y., J.H. (Jialin Hu), Y.L. and Y.D.; data curation, Y.T.; writing—original draft preparation, Y.T.; writing—review and editing, Y.T. and J.H. (Jianping Hu); visualization, Y.T.; supervision, J.H. (Jianping Hu); project administration, J.H. (Jianping Hu); funding acquisition, J.H. (Jianping Hu) All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National College Students’ Innovation and Entrepreneurship Training Program (202610755156) and the Xinjiang Key Laboratory of Green Construction and Smart Traffic Control of Transportation Infrastructure (2024D01C30).
Institutional Review Board Statement
The study was conducted in accordance with the Declaration of Helsinki. According to the relevant provisions of the Science and Technology Ethics Review Measures (Trial) of China, this driving-simulator experiment is exempt from ethical review for the following reasons: the experimental risk level meets the definition of minimum risk in Article 52 (not higher than the risks of daily driving activities); the experimental design involves no special ethical risks as stipulated in Article 15, nor does it fall within the list of scientific and technological activities requiring expert review under Article 25. All participants provided written informed consent before the experiment.
Informed Consent Statement
Informed consent was obtained from all subjects involved in the study.
Data Availability Statement
The aggregated subject-level data supporting the statistical analyses in this study are available as Supplementary Material. The raw window-level multimodal recordings are not publicly available due to participant privacy constraints but can be made available upon reasonable request to the corresponding author.
Acknowledgments
During the preparation of this manuscript, the author(s) used DeepSeek-V3 and ChatGPT 5.5 for language polishing, code development and debugging, and preliminary data analysis. The authors have reviewed and edited the output and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.
References
- Qi, C.; Sun, G. Research on traffic safety management countermeasures for main channels affected by severe weather. Road Traffic Manag. 2023, 11, 22–25. [Google Scholar]
- Liu, M. Research on Driving Stability State Recognition Based on Driver Mental Load in Rain and Fog Low Visibility Environment; South China University of Technology: Guangzhou, China, 2017. [Google Scholar]
- Chang, X.; Li, H.; Qin, L.; Rong, J.; Lu, Y.; Chen, X. Evaluation of cooperative systems on driver behavior in heavy fog condition based on a driving simulator. Accid. Anal. Prev. 2019, 128, 197–205. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, K.; Zhang, W.; Feng, Z.; Sze, N.; Hu, Z.; Wang, C. Maximum acceptable speed based on physiological performance for different alignments of rural roads under the influence of visibility in fog. Traffic Inj. Prev. 2020, 21, 145–150. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lin, Z.; Chen, F. How various urgencies and visibilities influence drivers’ takeover performance in critical car-following conditions. Transp. Res. Part F Traffic Psychol. Behav. 2024, 104, 303–317. [Google Scholar] [CrossRef] [Scilit]
- Kamti, M.K.; Iqbal, R.; Kakoti, P. EEG-based mental states assessment of three-wheeler drivers in different environments and traffic conditions. Transp. Res. Part F Traffic Psychol. Behav. 2023, 99, 98–112. [Google Scholar] [CrossRef] [Scilit]
- Díaz-Piedra, C.; Sebastián, M.V.; Di Stasi, L.L. EEG Theta Power Activity Reflects Workload among Army Combat Drivers: An Experimental Study. Brain Sci. 2020, 10, 199. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ronca, V.; Brambati, F.; Napoletano, L.; Marx, C.; Trösterer, S.; Vozzi, A.; Aricò, P.; Giorgi, A.; Capotorto, R.; Borghini, G.; et al. A Novel EEG-Based Assessment of Distraction in Simulated Driving under Different Road and Traffic Conditions. Brain Sci. 2024, 14, 193. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, J.; Liu, Y.; Peng, X. Recognition of driver’s mental workload based on physiological signals: A comparative study. Biomed. Signal Process. Control 2022, 71, 103094. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Guo, H.; Zhou, Y.; Xu, C.; Liao, Y. Recognising drivers’ mental fatigue based on EEG multi-dimensional feature selection and fusion. Biomed. Signal Process. Control 2023, 79, 104237. [Google Scholar] [CrossRef] [Scilit]
- Halomoan, J.; Ramli, K.; Sudiana, D.; Gunawan, T.S.; Salman, M. ECG-based driving fatigue detection using heart rate variability analysis with mutual information. Information 2023, 14, 539. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Song, F.; Zhou, T.; Hao, J.; Ryu, K.H. EEG and ECG-based multi-sensor fusion computing for real-time fatigue driving recognition based on feedback mechanism. Sensors 2023, 23, 8386. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chen, J.; Fan, F.; Wei, C.; Polat, K.; Alenezi, F. Decoding driving states based on normalized mutual information features and hyperparameter self-optimized Gaussian kernel-based radial basis function extreme learning machine. Chaos Solitons Fractals 2025, 199, 116751. [Google Scholar] [CrossRef] [Scilit]
- Shao, S.; Zhang, Y.; Yan, W. Driving behavior recognition based on multimodal physiological feature fusion. Acta Electron. Sin. 2025, 53, 3540–3550. [Google Scholar]
- Huang, J.; Peng, Y.; Hu, L. A multilayer stacking method based on RFE-SHAP feature selection strategy for recognition of driver’s mental load and emotional state. Expert Syst. Appl. 2024, 238, 121729. [Google Scholar] [CrossRef] [Scilit]
- Sellal, F.A.; Bellachia, A.A.; Dif, M.M.; Roy, E.D.R.D.L.; Bouchiha, M.A.; Ghamri-Doudane, Y. XAI-driven machine learning system for driving style recognition and personalized recommendations. arXiv 2025, arXiv:2509.00802. [Google Scholar] [CrossRef] [Scilit]
- Nandi, A.; Xhafa, F.; Subirats, L.; Fort, S. Reward-penalty weighted ensemble for emotion state classification from multi-modal data streams. Int. J. Neural Syst. 2022, 32, 2250049. [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. 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.








