Skip to main content

Research Repository

Advanced Search

The effect of window length on accuracy of smartphone-based activity recognition.

Bashir, S.A.; Doolan, D.C.; Petrovski, A.


S.A. Bashir

D.C. Doolan


One of the main approaches for personalization of activity recognition is the generation of the classification model from user annotated data on mobile itself. However, giving the resource constraints on such devices there is a need to examine the effects of system parameters such as the feature extraction parameter that can affect the performance of the system. Thus, this paper examines the effects of window length of the sensor data and varying data set sizes on the classification accuracy of four selected supervised machine learning algorithms running on off the shelf smartphone. Our results show that out of the three window lengths of 32, 64 and 128 considered, the 128 window length yields the best accuracy for all the algorithms tested. Also, the time taken to train the algorithms with samples of this length is minimal compare to 64 and 32 window lengths. A smartphone based activity recognition is implemented to utilize the results in an online activity recognition scenario.


BASHIR, S.A., DOOLAN, D.C. and PETROVSKI, A. 2016. The effect of window length on accuracy of smartphone-based activity recognition. IAENG international journal of computer science [online], 43(1), pages 126-136. Available from:

Journal Article Type Article
Acceptance Date Feb 29, 2016
Online Publication Date Feb 29, 2016
Publication Date Aug 27, 2016
Deposit Date Dec 19, 2016
Publicly Available Date Dec 19, 2016
Journal IAENG international journal of computer science
Print ISSN 1819-656X
Electronic ISSN 1819-9224
Publisher IAENG: International Association of Engineers
Peer Reviewed Peer Reviewed
Volume 43
Issue 1
Pages 126-136
Keywords Activity recognition; Smartphone; Accelerometer sensor data; Machine learning algorithms
Public URL
Publisher URL


You might also like

Downloadable Citations