INSERM, Nemesis Research Team, Institut Pierre Louis d'Épidémiologie et de Santé Publique, Sorbonne Université, Paris, France.
School of Public Health, Ecole des Hautes Études en Santé Publique, Rennes, France.
Int J Health Geogr. 2022 Nov 16;21(1):19. doi: 10.1186/s12942-022-00319-y.
There has been an increased focus on active transport, but the measurement of active transport is still difficult and error-prone. Sensor data have been used to predict active transport. While heart rate data have very rarely been considered before, this study used random forests (RF) to predict transport modes using Global Positioning System (GPS), accelerometer, and heart rate data and paid attention to methodological issues related to the prediction strategy and post-processing.
The RECORD MultiSensor study collected GPS, accelerometer, and heart rate data over seven days from 126 participants living in the Ile-de-France region. RF models were built to predict transport modes for every minute (ground truth information on modes is from a GPS-based mobility survey), splitting observations between a Training dataset and a Test dataset at the participant level instead at the minute level. Moreover, several window sizes were tested for the post-processing moving average of the predicted transport mode.
The minute-level prediction rate of being on trips vs. at a visited location was 90%. Final prediction rates of transport modes ranged from 65% for public transport to 95% for biking. Using minute-level observations from the same participants in the Training and Test sets (as RF spontaneously does) upwardly biases prediction rates. The inclusion of heart rate data improved prediction rates only for biking. A 3 to 5-min bandwidth moving average was optimum for a posteriori homogenization.
Heart rate only very slightly contributed to better predictions for specific transport modes. Moreover, our study shows that Training and Test sets must be carefully defined in RF models and that post-processing with carefully chosen moving average windows can improve predictions.
人们越来越关注主动出行,但主动出行的测量仍然困难且容易出错。传感器数据已被用于预测主动出行。虽然之前很少考虑心率数据,但本研究使用随机森林 (RF) 来预测使用全球定位系统 (GPS)、加速度计和心率数据的交通方式,并关注与预测策略和后处理相关的方法问题。
RECORD 多传感器研究在七天内从居住在法兰西岛地区的 126 名参与者那里收集了 GPS、加速度计和心率数据。为了预测每分钟的交通方式(模式的地面真实信息来自基于 GPS 的移动性调查),建立了 RF 模型,将观测值在参与者级别而不是在分钟级别上划分为训练数据集和测试数据集。此外,还测试了几种窗口大小用于预测交通方式的后处理移动平均值。
出行与访问地点的分钟级预测率为 90%。交通方式的最终预测率范围从公共交通的 65%到骑自行车的 95%。在训练和测试集中使用相同参与者的分钟级观测值(如 RF 自动执行)会向上偏置预测率。仅心率数据的纳入仅略微提高了骑自行车的预测率。3 到 5 分钟的带宽移动平均值是后验均匀化的最佳选择。
心率数据仅对特定交通方式的更好预测略有贡献。此外,我们的研究表明,在 RF 模型中必须仔细定义训练集和测试集,并且可以通过选择精心设计的移动平均窗口来改进预测。