A Preliminary Smartphone-Based IMU System for Walking, Running, and Cycling Recognition Under Different Carrying Modes
Longyi Tang, Youli Liang, Binyu YanThis paper presents a preliminary smartphone-based inertial measurement unit (IMU) system for recognizing three common motion types, namely walking, running, and cycling, under different carrying modes. The proposed system is implemented on an Android smartphone and uses accelerometer and gyroscope signals to support both offline evaluation and on-device recognition. The current dataset contains six motion-carrying combinations formed by three motion types and two carrying modes, with more than 15 data segments collected for each category. Each segment lasts approximately 40–60+ s and was collected on flat ground. The raw sensor streams were processed using a sampling rate of 50 Hz, an 8 s sliding window, and a 4 s step size. To reduce data leakage, session-level splitting was adopted in the offline experiments. A K-nearest neighbor (KNN) classifier was used as the baseline recognition model, and different sensor combinations and feature settings were compared. The best offline configuration, using fused accelerometer and gyroscope features with the enhanced feature set and K = 3, achieved an accuracy of 86.57% and a macro-F1 score of 88.42%. On-device tests further showed stable recognition performance under hand-held conditions, while performance decreased under an unseen briefcase-style carrying condition, especially for walking and running. These results indicate that the proposed system is feasible as a preliminary smartphone-based motion recognition pipeline. At the current stage, the study should be interpreted as a pilot-scale feasibility evaluation under limited and partially unbalanced multi-subject data conditions, rather than a strict subject-independent generalization study. The findings nevertheless highlight the importance of carrying-mode diversity and more rigorous cross-subject evaluation in future work.