Department of Behavioural Sciences, Medical School, University of Pécs, Szigeti Str. 12, Pécs, 7624, Hungary.
Department of Psychology, Education, and Child Studies, Erasmus University Rotterdam, Rotterdam, The Netherlands.
Sci Rep. 2022 Nov 21;12(1):20023. doi: 10.1038/s41598-022-24415-y.
A prolonged period of cognitive performance often leads to mental fatigue, a psychobiological state that increases the risk of injury and accidents. Previous studies have trained machine learning algorithms on Heart Rate Variability (HRV) data to detect fatigue in order to prevent its consequences. However, the results of these studies cannot be generalised because of various methodological issues including the use of only one type of cognitive task to induce fatigue which makes any predictions task-specific. In this study, we combined the datasets of three experiments each of which applied different cognitive tasks for fatigue induction and trained algorithms that detect fatigue and predict its severity. We also tested different time window lengths and compared algorithms trained on resting and task related data. We found that classification performance was best when the support vector classifier was trained on task related HRV calculated for a 5-min time window (AUC = 0.843, accuracy = 0.761). For the prediction of fatigue severity, CatBoost regression showed the best performance when trained on 3-min HRV data and self-reported measures (R = 0.248, RMSE = 17.058). These results indicate that both the detection and prediction of fatigue based on HRV are effective when machine learning models are trained on heterogeneous, multi-task datasets.
长时间的认知表现通常会导致心理疲劳,这是一种增加受伤和事故风险的心理生物状态。先前的研究已经在心率变异性 (HRV) 数据上训练机器学习算法以检测疲劳,从而预防其后果。然而,由于各种方法学问题,包括仅使用一种认知任务来诱发疲劳,使得任何预测都是特定于任务的,这些研究的结果无法推广。在这项研究中,我们结合了三个实验的数据集,每个实验都应用了不同的认知任务来诱发疲劳,并训练了检测疲劳和预测其严重程度的算法。我们还测试了不同的时间窗口长度,并比较了在休息和任务相关数据上训练的算法。我们发现,当支持向量分类器在 5 分钟的时间窗口内计算与任务相关的 HRV 时进行训练时,分类性能最佳(AUC=0.843,准确率=0.761)。对于疲劳严重程度的预测,当 CatBoost 回归在 3 分钟的 HRV 数据和自我报告的测量值上进行训练时,表现最佳(R=0.248,RMSE=17.058)。这些结果表明,当机器学习模型在异构、多任务数据集上进行训练时,基于 HRV 的疲劳检测和预测都是有效的。