摘要

The orientation and location of a mobile phone pose fundamental challenges to activity recognition (AR) in a device. Given that AR significantly affects recognition accuracy, in this study, we focus on eliminating the influence of orientation and location changes on AR. First, we propose an activity recognition framework, which is independent of orientation and location changes, to uniformly deal with the problem of orientation and location changes on AR. Second, a dynamic coordinate transformation approach on inertial sensor data is proposed. In this method, the data collected in different orientations are dynamically mapped to the reference coordinate system of a mobile phone. The classification on the mapped data can reach significantly higher accuracy than that on the original data. We design four sets of comparative experiments to verify the validity of the proposed method, and the results demonstrate its effectiveness. Third, the influence of the location changes of mobile phones on AR is eliminated through the location-specific AR method. The effectiveness of the proposed method is verified by two groups of contrast tests. Finally, a real-time AR system is implemented on an Android platform. Results demonstrate that the proposed method obtains valid recognition results despite various orientation and location changes.