A driver trust prediction method based on multi-modal physiological signal decision-level post-fusion
By adopting a multimodal decision-level post-fusion architecture combining XGBoost and Transformer, the problems of insufficient modal difference handling and noise robustness in driver trust prediction are solved, enabling real-time, fine-grained prediction of driver trust levels and improving the robustness and accuracy of the model.
Patent Information
- Application Number
- CN202611432402.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-15
- Publication Date
- 2026-11-27
AI Technical Summary
Existing driver trust prediction methods have shortcomings in modal difference handling, noise robustness, and fine-grained real-time prediction. They are difficult to fully learn the unique trust representations of heterogeneous modalities, and the model performance deteriorates significantly when a single sensor fails or the signal quality deteriorates.
A decision-level post-fusion architecture combining a modality-independent XGBoost single-modal prediction model and a Transformer encoder is adopted. The XGBoost model learns the nonlinear mapping between modality and trust level in the feature space, and the multi-head self-attention mechanism of the Transformer encoder is used to dynamically allocate modality attention weights for fusion.
It achieves real-time, fine-grained, and robust prediction of driver trust levels, improves the model's fusion level, modal complementarity utilization, and noise robustness, and ensures that the failure of a single modality does not lead to system collapse. Its performance is significantly better than early and mid-stage fusion methods.
Smart Images

Figure CN123179231A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a driver trust prediction method based on decision-level post-fusion of multimodal physiological signals, belonging to the field of autonomous driving human-machine interaction technology. Background Technology
[0002] As autonomous driving technology evolves from Level 3 to Level 4, human-machine co-driving remains the mainstream mode. During human-machine co-driving, the driver needs to continuously interact with the automated driving system (ADS), and trust is a key factor in regulating the collaboration and interaction between the driver and ADS. The driver's trust dynamically changes due to factors such as ADS performance, complex road conditions, and system false alarms and missed alarms. Therefore, quickly and accurately predicting the driver's level of trust during human-machine co-driving is crucial for matching trust with ADS capabilities and ensuring efficient and safe human-machine co-driving interaction.
[0003] Human-machine interaction trust in the human-vehicle co-driving mode can be divided into initial trust and dynamic trust. Initial trust is the trust state formed before interaction, while dynamic trust is the trust learned during the dynamic process of interaction based on initial trust. Research on driver trust prediction mainly focuses on the real-time prediction of dynamic trust. The data relied upon for real-time trust prediction includes driving behavior data (such as hand position), physiological signals (such as eye movement, EEG, ECG, and skin conductance), and non-driving-related task data.
[0004] Driver trust prediction methods based on physiological data are mainly divided into state estimation methods and machine learning methods. State estimation methods construct a state-space model of driver trust and integrate observations such as eye movements, system usage time, and secondary task performance to predict trust levels. However, these methods rely on pre-set parameters, making it difficult to meet the demands of real-time trust prediction in terms of responsiveness and accuracy. Machine learning methods utilize data-driven algorithms to construct a nonlinear mapping model between multidimensional physiological characteristics and driver trust states.
[0005] For heterogeneous multimodal physiological data, existing machine learning multimodal modeling methods mainly include early fusion (pre-fusion) and mid-fusion. Early fusion methods directly concatenate signal features from different sources into a high-dimensional vector, which is then input into a single model such as XGBoost, Random Forest, or Support Vector Machine. These methods only perform simple concatenation of original or shallow features at the input layer, ignoring the differences in spatiotemporal distribution of data from different modalities and failing to fully capture the deep nonlinear interactions between modalities. Mid-fusion methods utilize independent network branches to extract features from each modality, and then fuse the feature vectors at the hidden layer. Examples include CNN-LSTM-based multimodal fusion networks and MMPNet, which extracts deep features from EEG, ECG, and respiratory signals using independent branch networks. While mid-fusion methods can extract higher-order representations, the fusion process still occurs at the feature layer. When a signal from a particular modality is missing or subjected to strong noise interference, the noise will propagate to the overall model through feature fusion, leading to a significant decrease in prediction performance.
[0006] In summary, existing driver trust prediction methods have the following shortcomings: First, early and mid-term fusion strategies are insufficient to fully learn the unique trust representations of heterogeneous modalities and cannot effectively handle the differences in dimensionality, sampling rate, and physical meaning among different modalities; Second, existing methods are not robust enough to the lack of physiological modality data and strong noise interference, and the model performance degrades significantly when a single sensor fails or the signal quality deteriorates; Third, existing methods are difficult to achieve fine-grained, real-time dynamic driver trust prediction. Summary of the Invention
[0007] To address the problems of unreasonable fusion hierarchy, modality loss and insufficient noise robustness, and difficulty in achieving fine-grained real-time prediction in existing driver trust prediction methods, this invention provides a driver trust prediction method based on multimodal physiological signals.
[0008] This invention relates to a driver trust prediction method based on multimodal physiological signals, comprising the following steps: S11: Collect multimodal physiological signals of the driver, including eye movement signals, skin conductance signals, electrocardiogram signals and respiratory signals; preprocess and extract features from the multimodal physiological signals to obtain feature vectors corresponding to each modality.
[0009] S12: Train the XGBoost single-modal prediction model for each modality using the feature vector corresponding to each modality as input, and output the single-modal prediction matrix corresponding to each modality from each XGBoost single-modal prediction model; the single-modal prediction matrix includes the probability distribution of the driver's trust level under that modality.
[0010] S13: Input the single-modal prediction matrix corresponding to each modality into the Transformer encoder for decision-level fusion: perform linear embedding on the single-modal prediction matrix of each modality and superimpose the corresponding modal position encoding to obtain a modal feature sequence; the Transformer encoder fuses the modal feature sequence through a multi-head self-attention mechanism, dynamically allocates the attention weights of each modality, and obtains fused features.
[0011] S14: Predict the driver's trust level based on the fused features.
[0012] Further, in step S11, the feature vector of the eye movement signal includes five eye movement features: the maximum value of the absolute value of the pupil diameter change rate, the standard deviation of the absolute value of the pupil diameter change rate, the average value of the standardized pupillary index, the maximum value of the pupillary oscillation frequency, and the average value of the standardized pupillary area; the feature vector of the electrodermal signal includes six electrodermal features: the mean of the processed original electrodermal signal, the mean of the conductance level, the mean of the mutation component, the mean of the mutation-driven component, the mean of the gradual component, and the mean of the gradual component-driven component; the feature vector of the electrocardiogram (ECG) signal includes four ECG features: the mean of the heart rate, the mean of the heartbeat interval, the mean of the original ECG signal, and the R-peak count, wherein the ECG signal is a pulse wave signal obtained by photoplethysmography; the feature vector of the respiratory signal includes five respiratory features: the mean of the processed original respiratory signal, the mean of the respiratory intensity, the respiratory peak count, the mean of the respiratory frequency, and the mean of the respiratory peak detection threshold.
[0013] Furthermore, in step S11, features of physiological signals of each modality are extracted using a 2-second non-overlapping time window, and the feature vector is a statistical quantity calculated for physiological signals of each modality within the 2-second time window.
[0014] Furthermore, the method also includes a trust label construction step, which includes the following sub-steps: S51: Obtain the driver's initial trust level through a questionnaire, and obtain the driver's current trust level through verbal inquiry after the driver experiences a trust-critical event, wherein the trust level is from level 1 to level 5; S52: Align the physiological signal data from 10 seconds before the triggering of the trust-critical event to 60 seconds after the event with the trust level to obtain samples with trust level labels; S53: The XGBoost unimodal prediction model and the Transformer encoder are trained based on the samples with the trust level labels.
[0015] Furthermore, in step S13, the single-modal prediction matrix of each modality is first linearly embedded to obtain an embedded feature vector. Then, the embedded feature vector is added to the learnable position code of the corresponding modality to obtain a modal feature sequence, which is used as the input of the Transformer encoder.
[0016] Furthermore, before training the XGBoost unimodal prediction model, a synthetic minority class oversampling technique is used to oversample the samples with low trust levels in the training set, and the oversampling is performed only in the feature space of the training set.
[0017] Furthermore, when the physiological signal of a certain modality is missing or interfered with by noise, the single-modal prediction matrix corresponding to that modality is replaced with a uniform probability distribution or the attention weight of that modality is reset to zero. The single-modal prediction matrices of the other modalities are still input into the Transformer encoder for decision-level fusion to obtain fused features and predict the driver's trust level.
[0018] The present invention has the following beneficial effects: First, this invention employs a two-stage architecture: independent XGBoost modeling for each modality followed by Transformer decision-level fusion. Each modality's XGBoost single-modal prediction model learns the nonlinear mapping between that modality and the trust level within the feature space, fully exploring the unique trust representations within each modality. The Transformer encoder uses the single-modal prediction matrices output by each modality as input and fuses them at the decision layer. A self-attention mechanism dynamically allocates the attention weights of each modality at different times, avoiding noise interference and the curse of dimensionality introduced by early feature splicing, and also preventing the propagation of single-modal noise to the overall model during mid-stage feature fusion.
[0019] Second, since each mode is first processed by an independent XGBoost model, the failure of a single mode input (such as sensor disconnection, occlusion or failure) will not cause the entire system to collapse; in the degradation and noise experiment simulating sensor failure, the model's accuracy and F1 score remain above 0.92, which is significantly better than the early fusion and mid-term fusion methods in terms of robustness. Attached Figure Description
[0020] Figure 1 This is a flowchart illustrating the overall process of the driver trust prediction method based on multimodal physiological signals in this embodiment of the invention. Figure 2 This is a schematic diagram of a multimodal decision-level post-fusion framework based on XGBoost-Transformer in an embodiment of the present invention; Figure 3 This is a schematic diagram of the multi-head attention module of the Transformer encoder in an embodiment of the present invention; Figure 4 This is a comparison of the single-modal performance of the XGBoost-Transformer algorithm in this embodiment of the invention; Figure 5 This is a comparison of the multimodal performance of the XGBoost-Transformer algorithm in the embodiments of the present invention; Figure 6 The robustness analysis results of the XGBoost-Transformer algorithm in the embodiments of the present invention are shown. Detailed Implementation
[0021] The technical solution of the present invention will now be described in conjunction with the accompanying drawings.
[0022] This embodiment provides a driver trust prediction method based on multimodal physiological signals, such as... Figure 1 As shown, it includes the following steps: S11. Multimodal physiological signal acquisition, preprocessing, and feature extraction Multimodal physiological signals of the driver during human-machine co-driving were collected. These signals included eye movement (Gaze), electrical skin conductance (EDA), electrocardiogram (ECG), and respiratory signal (RESP). The ECG signal was a pulse wave signal acquired using photoplethysmography (PPG). Eye movement signals were acquired using an eye tracker at a sampling frequency of 100 Hz; EDA signals were acquired using an EDA sensor at a sampling frequency of 4 Hz; PPG signals were acquired using a PPG sensor at a sampling frequency of 16 Hz; and respiratory signals were acquired using a respiratory sensor at a sampling frequency of 64 Hz. The two electrodes of the EDA sensor were connected to the distal phalanges of the driver's non-dominant index and middle fingers. The PPG sensor was placed distal to the driver's earlobe, and the respiratory sensor was placed around the driver's upper abdomen to measure chest circumference changes.
[0023] Preprocessing of physiological signals of each modality was performed separately, specifically including: The eye movement signals are subjected to interpolation, sliding median filtering, and fixation point merging. Specifically, the Gaze data is interpolated with a maximum gap length of 75ms and then subjected to sliding median filtering with a window size of 3; the pupil data is linearly interpolated with a minimum pupil diameter of 2mm and then subjected to sliding median filtering with a window size of 3; the fixation data is merged between adjacent fixations with a longest fixation time of 75ms and a maximum fixation angle of 0.5°, and short fixations with a shortest fixation time of less than 60ms are discarded.
[0024] The electrodermal signal was subjected to Gaussian smoothing and low-pass filtering. Specifically, the EDA signal was subjected to Gaussian smoothing with a window size of 5, and a low-pass filter with a cutoff frequency of 5Hz was used.
[0025] The electrocardiogram (ECG) signal is subjected to wavelet denoising, high-pass filtering, band-stop filtering, and low-pass filtering. Specifically, the PPG signal is subjected to wavelet denoising, and then to high-pass filtering with a cutoff frequency of 1Hz, band-stop filtering with a cutoff frequency of 50Hz, and low-pass filtering with a cutoff frequency of 100Hz.
[0026] The respiratory signal is subjected to wavelet denoising, low-pass filtering, band-stop filtering, and baseline correction. Specifically, the RESP signal is subjected to wavelet denoising, low-pass filtering with a cutoff frequency of 20Hz, band-stop filtering with a cutoff frequency of 50Hz, and baseline correction with a cutoff frequency of 0.5Hz.
[0027] Missing values were filled and outliers were detected in the preprocessed physiological signals of each modality. Specifically, linear interpolation was used to fill missing values forward and backward, and outliers were detected based on the interquartile range method.
[0028] Feature extraction was performed on the cleaned physiological signals of each modality. A non-overlapping time window of 2 seconds was used to calculate statistics for each modality's physiological signals within the window, yielding the feature vector corresponding to each modality. The features contained in each modality's feature vector are shown in Table 1, specifically including the following sub-steps S21 to S24.
[0029] Table 1 Summary of Modal Features
[0030] S21: The feature vector of the eye movement signal includes five eye movement features: the maximum absolute value of the pupil diameter change rate, the standard deviation of the absolute value of the pupil diameter change rate, the average value of the standardized pupillary index, the maximum value of the pupillary oscillation frequency, and the average value of the standardized pupillary area. The calculation process for each eye movement feature is as follows: (1) Pupil diameter change rate: Apply Savitzky-Golay filter to the raw fixation data and set the window length. For 31 sample points (310ms), the polynomial order is... The value is 3; by calculating the first derivative of the filter, the instantaneous pupil diameter change rate at each time point is obtained:
[0031] In the formula, For a moment The original pupil diameter, Sampling rate ( Hz), This represents the Savitzky-Golay smoothing operator. For window length, Given the order of a polynomial. Calculate within a 2-second non-overlapping time window. The maximum value and standard deviation are used as two eye movement features.
[0032] (2) Standardized pupil size index: The individual baseline was determined based on the average pupil diameter at rest for the first 10 seconds after the start of the experiment, and the standardized index at time t was determined based on the individual baseline:
[0033] In the formula, For a moment Standardized pupillary index, For a moment The original pupil diameter, The baseline pupil diameter was defined as the average pupil diameter in the first 10 seconds after the start of the experiment. Subsequently, the average value of the standardized pupil size index within a 2-second time window was calculated as an eye movement feature.
[0034] (3) Pupil oscillation frequency: The oscillation intensity is quantified by identifying local extrema of the smoothed pupil diameter signal. At each time point, the number of extrema within a backward sliding window is calculated to obtain the instantaneous oscillation frequency at that moment:
[0035] In the formula, For a moment The instantaneous pupillary oscillation frequency, Sliding window size ( s), For a moment Counting extreme values. Select a 2-second time window. The maximum value of the value is used as an eye movement feature to capture high-frequency pupillary tremor under high cognitive load.
[0036] (4) Standardized pupil area: The baseline pupil area of an individual is determined by the average value of the pupils 10 seconds before the experiment. The standardized pupil area is then:
[0037] In the formula, For a moment Standardized pupil area For a moment pupil area, The baseline pupillary area is the average pupillary area over the first 10 seconds of the experiment. Calculate the pupillary area within the 2-second time window. The average value is used as a supplementary eye movement feature to pupil size.
[0038] S22: The feature vector of the electrodermal signal includes six electrodermal features: the mean of the processed EDA original signal, the mean of the conductance level, the mean of the mutation component, the mean of the mutation-driven component, the mean of the gradual component, and the mean of the gradual component-driven component. Specifically, ErgoLAB software is used to perform Tonic / Phasic separation on the preprocessed EDA signal. The Tonic component, namely the skin conductance level (SCL), represents the slowly changing baseline arousal level of the autonomic nervous system; the Phasic component, namely the skin conductance response (SCR), represents the rapid sympathetic excitation generated in response to discrete stimuli. Using a configuration with medium peak monitoring sensitivity, a maximum rise time of 4s, a maximum half-decay time of 4s, and a minimum SCR amplitude of 0.03, the Tonic and Phasic signal components are extracted, resulting in six indicators: the processed EDA original signal, conductance level, mutation component, mutation-driven component, gradual component, and gradual component-driven component. The average value of each indicator within a 2-second time window is calculated as the final feature.
[0039] S23: The feature vector of the electrocardiogram (ECG) signal includes four ECG features: the mean heart rate, the mean heart interval, the mean raw ECG signal, and the R-peak count. The ECG signal is a pulse wave signal obtained using photoplethysmography (PPG). Specifically, ErgoLAB is used to extract features from the preprocessed PPG signal. The R-peak value is extracted using a maximum heart rate of 120 bpm and an R-peak threshold of 70%. Anomaly monitoring is performed using a median of 4 samples to obtain four indicators: heart rate, heart interval, raw ECG signal, and R-peak count. The average values of heart rate, heart interval, and raw ECG signal, as well as the number of R-peak counts, are calculated within a 2-second time window as the final features.
[0040] S24: The feature vector of the respiratory signal includes five respiratory features: the mean of the processed original respiratory signal, the mean of respiratory intensity, the respiratory peak count, the mean of respiratory rate, and the mean of the respiratory peak detection threshold. Specifically, ErgoLAB is used to extract features from the preprocessed RESP signal. Features are extracted using a maximum respiratory rate of 18 rpm and an R-peak threshold of 50%, resulting in five indicators: the processed original signal, respiratory intensity, respiratory peak count, respiratory rate, and respiratory peak detection threshold. The average value of each indicator within a 2-second time window and the number of respiratory peak counts are calculated as the final features.
[0041] After the above processing, each sample contains a 20-dimensional physiological feature vector consisting of 5 eye-tracking features, 6 skin conductance features, 4 electrocardiogram features, and 5 respiratory features, as well as a trust level label corresponding to an integer from 1 to 5.
[0042] The trust label construction steps include the following sub-steps S51 to S53. S51: Obtain the driver's initial trust level through a questionnaire, and obtain the driver's current trust level through verbal inquiry after the driver experiences a trust critical event. The trust level is from 1 to 5, where 1 represents the least trust and 5 represents the most trust. At the start of the experiment, the driver's initial trust level is obtained through a questionnaire, with each question scored using a 5-point Likert scale. Whenever the driver encounters a specific trust critical event (TCE), the driver's current trust level is obtained through verbal inquiry 1 km after resuming autonomous driving. A total of 7 trust values are obtained in one experiment, covering the baseline measurement before the experiment and the prediction within one minute after the end of each scenario event.
[0043] S52: Align the physiological signal data from 10 seconds before the triggering of the trust-critical event to 60 seconds after the event with the trust level to obtain samples labeled with the trust level. Specifically, an alignment method based on event-related windows is used to align the physiological signal data from 10 seconds before the triggering of the trust-critical event to 60 seconds after the event with the trust level, ensuring that each segment corresponds to a unique trust level label; the physiological signals, scene events, and trust labels collected in the experiment are strictly synchronized through timestamps. S53: The XGBoost unimodal prediction model and the Transformer encoder are trained based on samples labeled with the trust level.
[0044] The driving simulation experiment involved a driving task of approximately 60km in length and 42 to 45 minutes in duration. It included multiple trust-critical event scenarios involving missed or false alarms from the system, such as no warnings of dangerous events (missed warnings), false alarms, and normal warnings. During the activation of autonomous driving, the driver performed visual-auditory non-driving-related tasks (e.g., watching short videos of a specified type) and was prepared to take over the vehicle upon system request. This experimental design aimed to stimulate the driver's cognitive and emotional responses and collect multimodal physiological signals related to dynamic changes in trust.
[0045] S12 and XGBoost Single-Mode Prediction Model Construction and Training XGBoost is a gradient boosting tree-based machine learning algorithm that gradually improves overall prediction performance by combining multiple weakly learned decision tree models. During prediction, the classification result output by XGBoost is represented as follows:
[0046] In the formula, For the first Predicted label for each sample, For the first One input sample, For the number of trees, For use of the first Tree samples The results of the prediction Let be the function space formed by the classification trees.
[0047] XGBoost's objective function combines the loss function and the model complexity function:
[0048] In the formula, The objective function value, For the sample size, For loss function, For the first The true label of each sample For the first The sample at the th Predicted values after rounds of iteration For iteration rounds, For the first The newly added tree pairs in the round of iteration Prediction results for each sample For the first The model complexity penalty term for the newly added tree in each iteration;
[0049] In the formula, This is a regularization parameter for the number of leaf nodes, used to suppress further splitting of nodes. The number of leaf nodes in the tree. The parameter for regularization of leaf node scores. For the first The algorithm assigns a score to each leaf node. To prevent overfitting, it limits leaf node growth by penalizing the number of leaf nodes in each tree.
[0050] This embodiment uses feature vectors from four modalities—eye movement, electrodermal transfer, electrocardiogram, and respiration—as input to construct four parallel XGBoost unimodal prediction models. Each model learns the mapping relationship between the modal feature vector and the driver's trust level, outputting the corresponding unimodal prediction matrix, i.e., the probability distribution of each trust level under that modality. There is a highly nonlinear relationship between different physiological characteristics and trust. XGBoost's high-order interactive feature extraction capability ensures that the contribution of each physiological signal is effectively mined and represented before entering the subsequent Transformer fusion module. The specific post-fusion framework is as follows: Figure 2 As shown.
[0051] Before training the XGBoost unimodal prediction model, Synthetic Minority Oversampling (SMOTE) was used to oversample samples with low trust levels in the training set to alleviate the trust label class imbalance problem. SMOTE was performed only in the feature space of the training set; the validation and test sets did not participate in SMOTE and did not contain any synthetic samples. During training, a random search method was used to search for SMOTE resampling and the hyperparameters of the XGBoost model. Five-fold cross-validation was used on the training set, with the balanced accuracy of the validation set within each fold as the evaluation metric and cross-entropy as the loss function. 100 sets of parameter combinations were randomly sampled. Feature normalization was performed in each fold of cross-validation, and zero-mean, unit-variance standardization was applied to the feature values of each channel. Standardization, SMOTE, and model training were all completed within the training fold to avoid data leakage. The optimal hyperparameters of each unimodal XGBoost model are shown in Table 2.
[0052] Table 2 Optimal hyperparameters for each single-modal XGBoost model
[0053] S13, Transformer encoder decision-level fusion Let the first time window be... one mode ( , A set of prediction models were obtained through their respective XGBoost single-mode prediction models. Probability distribution of trust levels ( To enable the predicted outputs of each modality to serve as input to the fusion model, a fully connected layer is used to process the probability vector of each dimension. Transform to length of From the feature sequence, we obtain the embedded feature vectors corresponding to each modality:
[0054] In the formula, For the first Embedded feature vectors of each modality For the first The single-mode prediction matrix for each mode. For the first Embedding weight matrix corresponding to each modality For the first Each modality corresponds to a bias vector. Through linear mapping, the model can learn the representation of different modality predictions in the feature space.
[0055] Simultaneously, learnable modal position encoding is introduced to distinguish the embeddings of multiple modalities, ensuring that the position vector corresponding to each modality corresponds to the features of that modality. The embedded feature vectors are then... and its corresponding position code Adding them together yields the input to the decision-level fusion model:
[0056] In the formula, For the first Features of a modal input fusion model For the first Each modality corresponds to a learnable modal position encoding vector. Features of each modality Composition length is of The 3D modal feature sequence is used as the input to the Transformer encoder.
[0057] Based on the aforementioned modal feature sequences, a stacked Transformer encoder is used to achieve deep fusion of features from four physiological modalities. The multi-head attention module of the Transformer encoder is as follows: Figure 3 As shown, the process includes the following sub-steps S71 to S74. S71: Construct N layers of sequentially stacked coding layers, where N is a positive integer greater than or equal to 1 (N can be selected between 1 and 4 layers; the optimal number of layers in this embodiment is determined to be 1 layer through hyperparameter search). Each coding layer consists of a multi-head self-attention sub-layer and a feedforward network sub-layer, and residual connections and layer normalization are set at the output of each sub-layer.
[0058] S72: For the input modal feature sequence The query matrix is calculated using three independent linear projections. Key matrix Sum matrix :
[0059]
[0060]
[0061] In the formula, , , These are the learnable weight matrices corresponding to the query, key, and value, respectively. , , , For embedded dimensions, Let be the dimension of the key matrix. is the dimension of the value matrix.
[0062] Then, the attention weights are calculated by scaling the dot product:
[0063] In the formula, The dot product of the query matrix and the transpose of the key matrix represents the similarity between features. This is a scaling factor used to prevent scaling due to... The high dimensionality causes the dot product result to be too large, thus... The function enters the gradient saturation region. It is a normalized exponential function.
[0064] S73: Employs h parallel attention heads, enabling the model to simultaneously focus on information from different modal subspaces, with each head performing independent computation.
[0065] In the formula, For the first The output of each attention head, , , The first The query, key, and value weight matrix corresponding to each attention head. , .Will The outputs of each entity are concatenated and then fused again through a linear layer:
[0066] In the formula, For multi-head attention output, This indicates a splicing operation. This is the output projection weight matrix. Through a multi-head attention mechanism, the model can compute attention scores between modalities in parallel across different representation subspaces, thereby dynamically allocating attention weights for each modality at different times.
[0067] S74: After the multi-head attention sublayer, the coding layer applies the same pointwise feedforward network to each modality in the sequence. This network consists of two linear transformations and a ReLU activation function.
[0068] In the formula, The input features of the feedforward network sublayer are... , , , Here are the weight matrix and bias vector of the feedforward network. The ReLU activation function is used. This network shares parameters across all modal locations, providing non-linear transformation capabilities for the features extracted by the attention module.
[0069] Finally, to build deeper networks and ensure training stability, residual connections are used at the outputs of each multi-head attention sublayer and feedforward sublayer in the encoding layer, followed by application layer normalization:
[0070] In the formula, For the first The output of the layer coding layer, The features are those obtained after passing through a multi-head attention sublayer and residual connections. For layer normalization. After... After layer stacking, the encoder finally outputs a fused feature matrix with the same shape as the input sequence. The matrix contains The high-level features derived from deep interactions across physiological modalities are passed to subsequent feature aggregation layers for final trust classification. For batch size.
[0071] Furthermore, when the physiological signal of a certain modality is missing or interfered with by noise, this embodiment replaces the single-modal prediction matrix corresponding to that modality with a uniform probability distribution, or resets the attention weight of that modality to zero. The single-modal prediction matrices of the remaining modalities are still input into the Transformer encoder for decision-level fusion to obtain fused features and predict the driver's trust level. Since each modal prediction matrix is generated by an independent XGBoost single-modal prediction model, the failure or disturbance of a single modality will not cause the overall fusion process to collapse, and the remaining modalities can still provide prediction information normally, thereby ensuring the robustness of the method under conditions of missing modalities or noise interference.
[0072] S14, Feature Aggregation and Trust Level Prediction To perform the final trust level classification, the feature matrix will be fused. The features are aggregated into a single, fixed-dimensional feature vector. The prediction of the driver's trust level based on the fused features specifically includes: This embodiment employs a hybrid aggregation strategy, which combines the fused output of the Transformer encoder with the original modal features before encoding. The fused features are pooled (e.g., average pooling or max pooling) to obtain pooled features; the pooled features are then compared with the embedding feature vectors of each modality. The features are concatenated to ensure that complex relationships between modalities are captured without losing any independent representational information of the original modalities; these concatenated features are then input into a fully connected classification layer, and processed... The function outputs the probability distribution of each trust level of the driver. ,in for A probability distribution vector of dimension 1. Number of trust levels ( ), For the corresponding number Trust Level The probability; through The function determines the confidence level of the final prediction.
[0073] The Optuna framework was used to search for hyperparameters in the Transformer encoder and classification layer, with zero-mean, unit-variance standardization performed before the search. The optimization objective was balanced accuracy on the validation set, with cross-entropy as the loss function and AdamW as the optimizer. A Bayesian optimization was performed through 50 random searches, with each search involving 30 optimization rounds, and hyperparameters such as learning rate, batch size, and dropout rate were automatically adjusted. The optimal hyperparameters for the multimodal model achieving the highest balanced accuracy are shown in Table 3.
[0074] Table 3 Optimal Hyperparameters of the Multimodal Fusion Model
[0075] To verify the technical effectiveness of the above method, this embodiment establishes an autonomous driving trust experiment platform. Participants performed visual-auditory non-driving-related tasks during autonomous driving activation and reported their trust levels after encountering key trust events. After data preprocessing and filtering, 2278 event window samples were obtained from 30 participants. Each sample contained a 20-dimensional physiological feature vector and a corresponding trust level label from 1 to 5. A participant-level independent partitioning strategy was used to divide the dataset. The 30 participants were randomly partitioned at the individual level, with 21 participants (70%) contributing data to the training set, 6 participants (20%) contributing data to the validation set, and the remaining 3 participants (10%) contributing data to the test set. This strategy ensured that the model never encountered any data from the test set participants during training, avoiding inflated performance figures caused by mixed participant partitioning. The overall performance of the model on the dataset is as follows: (1) Predictive performance: Ten randomized repeated experiments were conducted with different random seeds. In each experiment, 6 subjects were randomly selected as the validation set, 3 subjects were selected as the test set, and the remaining subjects were used for training. The classification performance of the model on the validation set is shown in Table 4.
[0076] Table 4. Model performance statistics under randomized repeated splits of subjects.
[0077] In a selected set of fixed-subjects cases, the model achieved F1 scores of 0.97, 0.99, 0.95, 0.97, and 0.94 on trust levels 1 to 5, respectively, with an overall accuracy of 0.984. In all validation samples, 95.96% of the samples predicted correctly, 1.95% of the samples misclassified adjacent levels, and 2.10% of the samples misclassified non-adjacent levels. The macro-mean AUC was close to 0.98.
[0078] (2) Baseline Comparison: In the single-modal performance comparison, XGBoost was compared with SVM, Logistic Regression, Random Forest Regressor (RFR), and Multilayer Perceptron. The single-modal performance comparison results are as follows: Figure 4 As shown, XGBoost achieves the best or near-best macro-average F1 score across all unimodal tasks, validating the rationale for using XGBoost as a unimodal prediction model. In the multimodal fusion comparison, our method (post-Transformer fusion) is compared with five other fusion methods: majority voting, average probability, RFR, XGBoost feature concatenation, and CNN-LSTM. The multimodal performance comparison results are as follows: Figure 5 As shown, this method achieved the highest values of 0.984 and 0.986 in accuracy and macro-average F1, respectively; compared with simple post-fusion, pre-fusion, and intermediate fusion methods, the F1 score of this method is improved by 0.52%, 1.83%, and 8.67%, respectively.
[0079] (3) Robustness Experiments: Eye-tracking, electrodermal, electrocardiogram, and respiratory modalities were manipulated under three conditions: modality loss, degradation, and noise. The loss experiment removed a modality to simulate failure scenarios caused by sensor disconnection, obstruction, or malfunction. The degradation experiment replaced the input of a specific modality with a uniform probability, significantly reducing the quality of the modality's information without complete loss. The noise experiment introduced Gaussian noise into the modality to simulate random disturbances such as ambient light changes, electrode micro-movements, and vehicle vibrations. The results of the robustness experiments are as follows: Figure 6 As shown, the results indicate that the model performance is lower than the complete model after removing any single modality, suggesting that the four types of physiological signals provide complementary information rather than simple redundancy. In the degradation and noise experiments, since each modality is first processed by an independent XGBoost model, the failure of a single modality input does not cause the entire system to collapse, and the model accuracy and F1 score remain above 0.92. The self-attention mechanism of the Transformer encoder can effectively learn to dynamically weigh the reliability of different modal information in the presence of noise.
[0080] The experimental results above fully demonstrate that the method described in this embodiment can achieve real-time, fine-grained, and robust prediction of driver trust levels based on multimodal physiological signals, exhibiting significant technical effectiveness. This proves the synergistic effect of the overall architecture of independent XGBoost modeling for each modality + Transformer decision-level post-fusion. The four XGBoost single-modal models fully exploit the unique trust representations of heterogeneous physiological signals within their respective feature spaces. The Transformer encoder dynamically allocates the attention weights of each modality at the decision level through a multi-head self-attention mechanism. The two work together to simultaneously improve the fusion level, modal complementarity, and robustness, achieving synergistic cooperation among the constituent techniques. The overall technical effect is significantly better than the individual use of each technique or its conventional combination.
[0081] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A driver trust prediction method based on decision-level post-fusion of multimodal physiological signals, characterized in that, Includes the following steps: S11: Collect multimodal physiological signals of the driver, including eye movement signals, electrodermal signals, electrocardiogram signals, and respiratory signals; preprocess and extract features from the multimodal physiological signals to obtain feature vectors corresponding to each modality; S12: Train the XGBoost single-modal prediction model for each modality using the feature vector corresponding to each modality as input, and output the single-modal prediction matrix corresponding to each modality from each XGBoost single-modal prediction model; the single-modal prediction matrix includes the probability distribution of the driver's trust level under that modality; S13: Input the single-modal prediction matrix corresponding to each modality into the Transformer encoder for decision-level fusion: perform linear embedding on the prediction matrix of each modality and superimpose the corresponding modal position encoding to obtain the modal feature sequence; The Transformer encoder fuses the modal feature sequences through a multi-head self-attention mechanism, dynamically allocating attention weights for each modality to obtain fused features; S14: Predict the driver's trust level based on the fused features.
2. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S11, the feature vector corresponding to each mode includes the following sub-steps: S21: The feature vector of the eye movement signal includes 5 eye movement features, namely: the maximum value of the absolute value of the pupil diameter change rate, the standard deviation of the absolute value of the pupil diameter change rate, the average value of the standardized pupil index, the maximum value of the pupil oscillation frequency, and the average value of the standardized pupil area. S22: The feature vector of the electrodermal signal includes 6 electrodermal features, namely: the mean of the original electrodermal signal after processing, the mean of the conductance level, the mean of the mutation component, the mean of the mutation-driven component, the mean of the gradual component, and the mean of the gradual component-driven component. S23: The feature vector of the electrocardiogram signal includes four electrocardiogram features: mean heart rate, mean heartbeat interval, mean original electrocardiogram signal, and R-peak count; the electrocardiogram signal is a pulse wave signal obtained by photoplethysmography. S24: The feature vector of the respiratory signal includes 5 respiratory features, namely: the mean of the processed original respiratory signal, the mean of respiratory intensity, the respiratory peak count, the mean of respiratory frequency, and the mean of the respiratory peak detection threshold.
3. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 2, characterized in that, In step S11, features of physiological signals of each modality are extracted using a 2-second non-overlapping time window. The feature vector is a statistical measure calculated for physiological signals of each modality within the 2-second time window.
4. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S11, the preprocessing includes: The eye movement signal is subjected to interpolation, sliding median filtering, and fixation point merging; the skin conductance signal is subjected to Gaussian smoothing and low-pass filtering; the electrocardiogram signal is subjected to wavelet denoising, high-pass filtering, band-stop filtering, and low-pass filtering; the respiratory signal is subjected to wavelet denoising, low-pass filtering, band-stop filtering, and baseline correction; and the preprocessed physiological signals of each modality are subjected to missing value imputation and outlier detection.
5. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, The method further includes a trust label building step, which comprises the following sub-steps: S51: Obtain the driver's initial trust level through a questionnaire, and obtain the driver's current trust level through verbal questioning after the driver experiences a key trust event. The trust level is from 1 to 5. S52: Align the physiological signal data from 10 seconds before the triggering of the trust-critical event to 60 seconds after the event with the trust level to obtain a sample with a trust level label; S53: The XGBoost unimodal prediction model and the Transformer encoder are trained based on samples with the trust level labels.
6. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S13, the single-mode prediction matrix for each mode is linearly embedded to obtain the embedded feature vector: ,in, For the first Embedded feature vectors of each modality For the first The single-mode prediction matrix for each mode. For the first Embedding weight matrix corresponding to each modality For the first The bias vectors corresponding to each modality are used; the embedded feature vectors are added to the corresponding modality position codes to obtain the modality feature sequence: ,in, The first input to the fusion model Features of each modality For the first Each modality corresponds to a learnable modal position encoding vector.
7. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S13, the Transformer encoder includes the following sub-steps: S71: Construction Encoding layers stacked one on top of another, The integer is a positive integer greater than or equal to 1. Each coding layer includes a multi-head self-attention sub-layer and a feedforward network sub-layer, and residual connections and layer normalization are set at the output of each sub-layer. S72: The multi-head self-attention sublayer calculates the attention weight using the following formula: , , , ;in, , , These are the query matrix, key matrix, and value matrix, respectively. , , The weight matrix is a learnable matrix. Let be the dimension of the key matrix. Scaling factor, superscript Indicates transpose. It is a normalized exponential function; S73: The multi-head self-attention sublayer will... The outputs of individual attention heads are concatenated and then linearly transformed to obtain the multi-head attention output: ;in, , , , , The first The weight matrix corresponding to each attention head To output the projection weight matrix, Indicates a splicing operation; S74: The feedforward network sublayer performs a nonlinear transformation on the input using the following formula: ;in, The input features of the feedforward network sublayer are... , , , Here are the weight matrix and bias vector of the feedforward network. The ReLU activation function is used; the residual connections and layer normalization are implemented using the following formula: ;in, For the first The output of the layer coding layer, The features are those obtained after passing through multi-head self-attention sublayers and residual connections. For layer normalization.
8. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S14, predicting the driver's trust level based on the fused features specifically includes: The fused features are pooled to obtain pooled features; the pooled features are concatenated with the embedded feature vectors of each modality to obtain concatenated features; the concatenated features are input into a fully connected classification layer, and the probability distribution of each trust level of the driver is output through the softmax function, and the trust level corresponding to the highest probability is taken as the prediction result.
9. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S12, before training the XGBoost single-modal prediction model, a synthetic minority class oversampling technique is used to oversample the samples with low trust levels in the training set, and the oversampling is only performed in the feature space of the training set.
10. The driver trust prediction method based on decision-level post-fusion of multimodal physiological signals according to claim 1, characterized in that, In step S13, when the physiological signal of a certain modality is missing or interfered with by noise, the single-modal prediction matrix corresponding to that modality is replaced with a uniform probability distribution or the attention weight of that modality is reset to zero. The single-modal prediction matrices of the other modalities are still input into the Transformer encoder for decision-level fusion to obtain fused features and predict the driver's trust level.
