Driving fatigue online calculation method based on multi-view multi-source domain self-adaption
Through the multi-view multi-source domain adaptive online calculation method, the first-order TSK fuzzy system and perspective regularization technology are used to solve the problems of insufficient adaptability and high complexity in the existing technology, and the efficiency of driving fatigue is achieved. , real-time monitoring, suitable for low-end equipment and complex environments.
Patent Information
- Application Number
- CN202411005247.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-11-15
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing online calculation methods for driving fatigue are insufficient in dealing with specific driving environments or individual differences, and the integration of multiple methods increases system complexity and hardware requirements, making it difficult to implement on low-end devices. EEG data acquisition is complex and susceptible to environmental noise. The sliding window method has high impact on real-time real-time computing resource requirements.
Adopting the online calculation method of multi-view multi-source domain adaptive driving fatigue, collecting EEG data, extracting multi-view features, using a first-order TSK fuzzy system for model training and gradually adding target domain calibration samples for online calibration, using the trained model Fatigue state prediction is performed on the target domain label-free data, combining the average power spectrum density and decibel value characteristics, and using perspective consistency regularization, compact graph regularization and joint distribution adaptation regularization techniques.
The algorithm's consistency for different views outputs is realized, the generalization effect and adaptability of the model is improved, the complexity of data collection and model calibration is reduced, the performance and real-time performance of fatigue state estimation is improved, and it is suitable for practical application scenarios.
Smart Images

Figure CN118948284A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of signal processing, and in particular to an online calculation method for driving fatigue based on multi-view and multi-source domain adaptation. Background Art
[0002] Psychophysiological computing mainly quantifies, fuses, analyzes and mines multi-source physiological data (such as brain imaging, electroencephalogram, body electricity, heart rate, respiration, body temperature, etc.), infers the complex physiological and psychological mapping relationship, and realizes more comprehensive and objective quantitative perception and reasoning calculation of different psychological states. As a kind of psychophysiological computing, online driving fatigue calculation has received extensive attention in the past decade. Reducing the calibration work is usually an unresolved issue in the process of online driving fatigue calculation. To this end, a multi-view unsupervised domain adaptation method with soft large margin clustering is proposed.
[0003] For example, the invention with patent number CN202310194181.5 discloses a multi-method fusion fatigue driving detection method, which combines the feature extraction method based on key point positioning with the feature extraction method based on MobileNetV3_small. First, in order to improve the accuracy of the feature extraction method based on key point positioning, a personalized threshold is used instead of the traditional average threshold. Secondly, in order to solve the problem of the small number and type of public data sets for fatigue driving detection, when training the eye and mouth state classifiers, the transfer learning method is used to enable the model to converge quickly and achieve a high accuracy rate. Finally, the driver is tested for fatigue driving by a multi-parameter joint discrimination method. Compared with the feature extraction method based on key point positioning or the method based on MobileNetV3_small alone, the feature extraction method fused by their method improved the F1 score by 23.12% and 2.56% respectively, and the final F1 score of fatigue detection reached 92.21%, and the FPS was 29. It has the advantages of lightweight, high accuracy and good real-time performance, which is convenient for promotion and use. However, this method may still have adaptability issues when dealing with specific driving environments or individual differences, and the fusion of multiple methods increases the complexity of the system and has high hardware requirements, which may be difficult to implement on some low-end devices.
[0004] For example, the invention with patent number CN201910859394.9 discloses a method for analyzing the dynamic characteristics of EEG functional connectivity related to driving fatigue. This method preprocesses the EEG data using independent component analysis and wavelet packet transform, and then constructs the preprocessed EEG data into a time brain network with dynamic characteristics based on the sliding window method. On this basis, the temporal efficiency analysis framework is used to measure the spatiotemporal topology of the temporal brain network, and statistical analysis is performed on it to obtain the correlation between the behavioral performance related to driving fatigue and the dynamic characteristics of the temporal brain network. By introducing the temporal characteristics into the static network of driving fatigue and constructing a temporal brain network with dynamic characteristics, the spatiotemporal reorganization law of the temporal brain network during driving fatigue can be obtained through statistical analysis, thereby providing more accurate analysis results and helping to reveal the key dynamic characteristics of the functional reorganization of information transfer between brain regions related to driving fatigue on a fine time scale. However, this method also has some shortcomings. First, the EEG data acquisition and preprocessing are complex and easily affected by environmental noise, resulting in unstable data quality. Secondly, the sliding window method and time efficiency analysis have high computing resource requirements, which affects real-time performance.
[0005] For example, the invention with patent number 202210862524.6 discloses a fatigue driving detection method, system and storage medium based on multi-source information fusion. This method combines the driver's visual signals and physiological signals, and determines the driver's fatigue state through multi-source information fusion to improve monitoring accuracy. When one signal source fails, the other signal source can still independently judge the fatigue state and has good robustness. While realizing real-time fatigue monitoring, it does not interfere with normal driving behavior, and provides reasonable driving time recommendations to help drivers plan their trips, effectively reducing traffic accidents caused by fatigue driving. However, the challenges of signal acquisition in complex environments, data processing delays, high hardware costs and user dependence are the shortcomings of this method. Summary of the invention
[0006] The present invention provides an online calculation method for driving fatigue based on multi-view multi-source domain adaptation and compact graph from the perspective of multi-view multi-source domain adaptation, and provides a new solution for the field of driving fatigue monitoring:
[0007] The online calculation method of driving fatigue based on multi-view multi-source domain adaptation includes the following steps:
[0008] Collect EEG data and extract multi-view features from the EEG data;
[0009] The first-order TSK fuzzy system is used for model training and optimization;
[0010] During the model training process, calibration samples of the target domain are gradually added for online calibration;
[0011] The trained model is used to predict fatigue status on unlabeled data in the target domain.
[0012] Furthermore, the multi-view features include: average power spectral density PSD and decibel dBs value;
[0013] The average power spectral density PSD is calculated in the theta frequency band of each EEG channel by the Welch method; the decibel dBs value is obtained by converting the average power spectral density PSD feature into a decibel dBs value and standardizing the dBs value.
[0014] Furthermore, in the TSK fuzzy system model, the optimization objective formula integrates loss minimization, view consistency regularization, view weighting regularization, compact graph regularization, and joint distribution adaptation regularization;
[0015] Among them, the optimization objective formula is specifically:
[0016]
[0017] Among them, I represents the loss minimization part, II represents the view consistency regularization part, III represents the view weighted regularization part, IV represents the compact graph regularization part, and V represents the joint distribution adaptation regularization part; λ1, λ2, λ3, and λ4 represent the regularization parameters of the corresponding parts respectively;
[0018] Among them, in the loss minimization part, and denote the labels of the source domain and the target domain respectively, and Represent the prediction functions of the source domain and the target domain respectively, y s and t denote the output of the source domain and the target domain respectively, and Represent the characteristics of the source domain and the target domain respectively, σ t represents the parameter used to adjust the contribution of target domain samples, represents the sum of the loss function;
[0019] In the perspective consistency regularization part, ω (v) represents the weight of the view v, v represents the current view, c represents the constant in the view consistency regularization term, V represents the total number of views, v′ represents the view v′, and Represent the prediction functions of the view angle v′ in the source domain and the target domain respectively;
[0020] In the view weighted regularization part, w represents the view weighted regularization term;
[0021] In the compact graph regularization part, c represents the constant in the compact graph regularization term, g represents the graph in the compact graph regularization term, and b represents the graph Laplacian matrix in the compact graph regularization term;
[0022] In the joint distribution adaptation regularization part, j represents the constant in the joint distribution adaptation regularization term, d represents the difference in the joint distribution adaptation regularization term, and a represents the distribution in the joint distribution adaptation regularization term.
[0023] Furthermore, adding calibration samples of the target domain for online calibration specifically includes the following steps:
[0024] All EEG segments of the subjects were labeled and each subject was used as the source domain;
[0025] The NC samples of the added subjects are labeled with subject-specific calibration data as the target domain and added to the training set on the fly, specifically:
[0026] In the first iteration, a random m0∈[1,NC] is generated as the starting position, and then the sample of the last subject is marked as subject-specific calibration data and added to the training set for model training; the remaining unlabeled samples of the last subject are used for testing; according to parity reasoning, at the second iteration, the samples of the last subject The data is labeled as subject-specific and added to the training set of the model for training; until the maximum number of iterations is reached.
[0027] Furthermore, the trained model input includes: unlabeled EEG data in the source domain; unlabeled EEG data in the target domain; regularization parameters λ1, λ2, λ3, λ4, which are used to control the contribution of each regularization term; calibration samples, which are used to calibrate the model online; initial view weights, which are used for view weighted regularization; and graph Laplacian matrix, which is used for compact graph regularization.
[0028] According to one aspect of the present invention, a storage medium is provided, wherein instructions are stored in the storage medium. When a computer reads the instructions, the computer executes any one of the above-mentioned methods for online calculation of driving fatigue based on multi-view and multi-source domain adaptation.
[0029] According to another aspect of the present invention, there is provided an electronic device, comprising a processor and the above-mentioned storage medium, wherein the processor executes instructions in the storage medium.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] 1. The present invention can automatically learn the importance weight of each view and Figure 1Consistency regularization ensures that the outputs of different views remain consistent. This allows the algorithm to effectively integrate pattern information from different views.
[0032] 2. The present invention uses compact graph regularization technology to improve the generalization effect and ensure that the manifold structure of the training samples from the input feature space to the output space is as consistent as possible. This helps to improve the adaptability of the model to new data.
[0033] 3. The present invention captures the essence of the data structure through soft large-margin clustering technology and utilizes the clustering structure of the target domain to improve the performance of sleepiness estimation.
[0034] 4. Compared with other methods, the present invention only requires a small number of specific samples, indicating that it is suitable for practical application scenarios. This reduces the complexity of data collection and model calibration in actual operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0036] Figure 1 It is a schematic diagram of a flow chart of an embodiment of the present invention;
[0037] Figure 2 It is a schematic diagram of online calibration according to an embodiment of the present invention;
[0038] Figure 3 3 is a comparison diagram of the root mean square error of the models of the embodiments of the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0040] like Figure 1 As shown in the figure, data preparation and feature extraction are first performed to extract multi-view features from EEG data; then, the view output is kept consistent and the weights are adjusted through view consistency and weighted regularization; the first-order TSK fuzzy system is used for model training, and the compact graph regularization and joint distribution adaptation optimization model are combined; during the model training process, calibration samples of the target domain are gradually added for online calibration, and the trained model is used to predict the fatigue state of the unlabeled data in the target domain; finally, the model performance is evaluated by indicators such as the root mean square error (RMSE).
[0041] Multi-view consistency regularization
[0042] We develop a multi-view consistency regularization by automatically weighting the data to capture the pattern information in EEG signals from different viewpoints. This regularization not only maintains the consistency between different viewpoints, but also automatically assigns weights to each viewpoint to indicate its importance.
[0043] Compact Graph Regularization
[0044] Compact graph regularization is introduced in the domain adaptation framework to keep the manifold structure of the input feature space unchanged after being transformed to the output space, thereby improving the generalization ability. The main idea of compact graph regularization is that in each view, when the training samples are transformed from the input feature space to the output space, the consistency of the manifold structure should be maintained as much as possible.
[0045] First-order TSK fuzzy system
[0046] A first-order TSK fuzzy system is used as the basic learning component to ensure the interpretability of the proposed estimator. The system infers and defuzzifies the input data through fuzzy rules and learning process to obtain the output results.
[0047] The experimental data was provided by a hospital and included EEG data from 16 community volunteers in a 360-degree virtual reality driving task in a real car equipped with a six-degree-of-freedom motion platform. The experiment was conducted in the afternoon, because the sleepiness caused by physiological rhythms is the strongest in the afternoon. Participants drove on a virtual straight road at a speed of 100 km / h, and lane departure events were randomly generated every 5-10 seconds. The experiment lasted for 60 to 90 minutes, and scalp EEG signals were recorded using a 32-channel 500Hz EEG device. After the original EEG signal was bandpass filtered at 1-50Hz, downsampled to 250Hz, and re-referenced to the earlobe, time domain and frequency domain features were extracted from it.
[0048] Since lane departure events were randomly distributed within a time frame of 5–10 seconds, data of different sizes were obtained for 16 individuals. Data of 15 individuals were used in the subsequent study, and one subject whose data was improperly recorded was excluded. Figure 2 The procedure shown is used to simulate an incremental online calibration scenario to evaluate the online fatigue calculation performance of the proposed method.
[0049] Online calibration scenario:
[0050] 1. Label all EEG segments of 14 subjects and use each subject as the source domain. Therefore, there are 14 source domains and 1 target domain.
[0051] 2. The NC sample of the 15th subject is labeled as subject-specific calibration data and added to the training set on the fly, e.g. Figure 2Specifically, in the first iteration, a random m0∈[1,NC] is generated as the starting position, and then the sample of the 15th subject is marked. as subject-specific calibration data and added to the training set for model training. The remaining unlabeled samples of the 15th subject are used for testing. According to parity reasoning, at the second iteration, the samples of the 15th subject The training set is labeled as subject-specific data and added to the model. Iterations continue until the maximum number of iterations is reached. The process is repeated ten times with different random starting positions so that the performance is statistically significant. Figure 2 The entire process shown was performed 15 times to ensure that each participant had the opportunity to be the "15th" subject.
[0052] Sleepiness index and evaluation criteria:
[0053] The sleepiness index y can be defined as a function of the driving event response time ρ, as shown in formula (2):
[0054]
[0055] The sleepiness index is smoothed using a 90-second square moving average window to reduce fluctuations. Since the cycle duration of sleepiness fluctuations is longer than 4 minutes, the smoothing process does not eliminate the sensitivity of the sleepiness index. It can be seen that the sleepiness index of some subjects reaches or approaches 1, indicating a fatigue driving event.
[0056] RMSE (root mean square error) was used as the criterion for evaluating the sleepiness estimation performance.
[0057] Multi-view scenario:
[0058] In multi-view scenarios, using different types of features can significantly improve the estimation performance of fatigue index. Two types of features were used in the experiment: the first was to calculate the average power spectral density (PSD) of each EEG channel in the theta band (4-7.5Hz) by the Welch method; the second was to convert these PSD features into decibels (dBs) and standardize the dBs values (remove channels with maximum dBs values exceeding 20, and make the dBs value of each channel mean 0 and standard deviation 1). By combining these two different views, more pattern information can be captured. Compared with the single view learning method, multi-view learning can more effectively improve the model's estimation performance of the driver's fatigue state.
[0059] Baseline:
[0060] To emphasize the superiority of the proposed method, five baselines are provided for comparative studies.
[0061] Baseline 1 (BL1) is 1-TSK-FS, evaluated on new subjects after training on 14 pre-existing subjects. That is, BL1 is a subject-independent regression model that completely ignores subject-specific calibration data from new subjects.
[0062] Baseline 2 (BL2) is also 1-TSK-FS, evaluated on new subjects after being trained on subject-specific calibration data from the new subjects. In other words, BL2 does not rely on any pre-existing subjects.
[0063] DAMF first trains the estimator by combining the labeled samples of each subject and the subject-specific calibration data of the “15th subject”. Then the 14 estimators are put together using an average weighting strategy. Finally, DAMF is tested with the unlabeled samples from the “15th subject”.
[0064] MV-TSK-FS is a multi-view TSK fuzzy system that automatically learns view weights and explores Figure 1 MV-TSK-FS is trained by combining all 14 subjects and tested on the “15th subject”.
[0065] O-MV-T-TSK-FS is an online multi-view and transport TSK fuzzy system, which is trained on each topic related to the specific topic data and tested on new topics. Finally, each regression model is weighted by assigning a weight based on the training error.
[0066] Table 1 summarizes the parameter settings of the baselines and the proposed method.
[0067] Table 1 Parameter settings of the baseline and the proposed method
[0068]
[0069]
[0070] Experimental results:
[0071] BL1, BL2 and DAMF cannot be used directly for multi-view learning, therefore, the average performance in theta-band power and dBs is recorded. Figure 3 The average RMSE of all subjects is shown. Figure 3 It can be seen that the proposed method outperforms other methods. More features are as follows.
[0072] BL2’s regression performance is the worst among all methods because it cannot learn enough patterns from very few subject-specific samples. More importantly, it is worth noting that BL2 can no longer be trained when there is no subject-specific calibration data at all, but other methods can be trained using patterns from different individuals.
[0073] The training process of BL1 and MV-TSK-FS does not depend on the samples of a specific subject. Therefore, it can be seen that their RMSE does not change with the change of the number of samples of a specific subject. For DAMF, O-MV-TSK-FS and the method proposed in the present invention, the RMSE basically shows a downward trend as the number of samples of a specific subject increases.
[0074] O-MV-TSK-FS and the proposed method consistently show lower RMSE than DAMF, and MV-TSK-FS also outperforms BL1 in terms of RMSE, which indicates that there is a correlation between the theta-band power view and the dBs view. Therefore, multi-view learning across two views is preferred because it can capture more pattern information than learning independently on each view.
[0075] The proposed method outperforms O-MV-TSK-FS, which indicates that the soft large-margin clustering captures the essence of the data structure well and the clustering structure in the target domain improves the performance of drowsiness estimation.
[0076] From the RMSE of subjects 1 to 15, it can be seen that when the sample size of a specific subject is 0, O-MV-TSK-FS and the proposed method perform worse than MV-TSK-FS. However, as the sample size of a specific subject increases, O-MV-TSK-FS and the proposed method quickly outperform MV-TSK-FS. This phenomenon shows that there are significant differences between subjects, and if these differences can be effectively utilized, it will help improve the estimation performance. Therefore, it is not recommended to train an estimator independent of the subject.
[0077] The second batch of topic-specific samples gradually stabilizes the performance of O-MV-TSK-FS and the proposed method. Since O-MV-TSK-FS and the proposed method only require a small number of topic-specific samples, this indicates that they are very suitable for practical use.
[0078] The computer-readable storage medium of this embodiment may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal; the computer-readable storage medium of this embodiment may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, etc. equipped on the terminal; further, the computer-readable storage medium may also include both an internal storage unit of the terminal and an external storage device.
[0079] The computer-readable storage medium of this embodiment is used to store computer programs and other programs and data required by the terminal. The computer-readable storage medium can also be used to temporarily store data that has been output or is to be output.
[0080] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0081] The examples described in the present invention are merely descriptions of the preferred implementation modes of the present invention, and are not intended to limit the concept and scope of the present invention. Without departing from the design concept of the present invention, various modifications and improvements made to the technical solutions of the present invention by engineers and technicians in this field should all fall within the protection scope of the present invention.
Claims
1. An online calculation method for driving fatigue based on multi-view and multi-source domain adaptation, characterized in that: The steps include: Collect EEG data and extract multi-view features from the EEG data; The first-order TSK fuzzy system is used for model training and optimization; During the model training process, calibration samples of the target domain are gradually added for online calibration; The trained model is used to predict fatigue status on unlabeled data in the target domain.
2. The method according to claim 1, characterized in that Multi-view features include: average power spectral density PSD and decibel dBs value; The average power spectral density PSD is calculated in the theta frequency band of each EEG channel by the Welch method; the decibel dBs value is obtained by converting the average power spectral density PSD feature into a decibel dBs value and standardizing the dBs value.
3. The method according to claim 1, characterized in that In the TSK fuzzy system model, the optimization objective formula integrates loss minimization, perspective consistency regularization, perspective weighted regularization, compact graph regularization, and joint distribution adaptation regularization; Among them, the optimization objective formula is specifically: Among them, I represents the loss minimization part, II represents the view consistency regularization part, III represents the view weighted regularization part, IV represents the compact graph regularization part, and V represents the joint distribution adaptation regularization part; λ1, λ2, λ3, and λ4 represent the regularization parameters of the corresponding parts respectively; Among them, in the loss minimization part, and denote the labels of the source domain and the target domain respectively, and Represent the prediction functions of the source domain and the target domain respectively, y s and t denote the output of the source domain and the target domain respectively, and Represent the characteristics of the source domain and the target domain respectively, σ t represents the parameter used to adjust the contribution of target domain samples, represents the sum of the loss function; In the perspective consistency regularization part, ω (v) represents the weight of the view v, v represents the current view, c represents the constant in the view consistency regularization term, V represents the total number of views, v′ represents the view v′, and Represent the prediction functions of the view angle v′ in the source domain and the target domain respectively; In the view weighted regularization part, w represents the view weighted regularization term; In the compact graph regularization part, c represents the constant in the compact graph regularization term, g represents the graph in the compact graph regularization term, and b represents the graph Laplacian matrix in the compact graph regularization term; In the joint distribution adaptation regularization part, j represents the constant in the joint distribution adaptation regularization term, d represents the difference in the joint distribution adaptation regularization term, and a represents the distribution in the joint distribution adaptation regularization term.
4. The method according to claim 1, characterized in that: Add the calibration samples of the target domain for online calibration, which includes the following steps: All EEG segments of the subjects were labeled and each subject was used as the source domain; The NC samples of the added subjects are labeled with subject-specific calibration data as the target domain and added to the training set on the fly, specifically: In the first iteration, a random m0∈[1,NC] is generated as the starting position, and then the sample of the last subject is marked as subject-specific calibration data and added to the training set for model training; the remaining unlabeled samples of the last subject are used for testing; according to parity reasoning, at the second iteration, the samples of the last subject The data is labeled as subject-specific and added to the training set of the model for training; until the maximum number of iterations is reached.
5. The method according to claim 1, characterized in that: The trained model input includes: unlabeled EEG data in the source domain; unlabeled EEG data in the target domain; regularization parameters λ1, λ2, λ3, λ4, which are used to control the contribution of each regularization term; calibration samples, which are used to calibrate the model online; initial view weights, which are used for view weighted regularization; graph Laplacian matrix, which is used for compact graph regularization.
6. A storage medium, characterized in that: The storage medium stores instructions, and when a computer reads the instructions, the computer executes the online calculation method for driving fatigue based on multi-view and multi-source domain adaptation as described in any one of claims 1 to 5.
7. An electronic device, characterized in that: The invention comprises a processor and the storage medium as claimed in claim 6, wherein the processor executes instructions in the storage medium.
Citation Information
Cited By
Fatigue state recognition method based on learnable filter bank and joint regularization
CN121265057A
