Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2014 Apr 9;14(4):6474-99.
doi: 10.3390/s140406474.

Window size impact in human activity recognition

Affiliations

Window size impact in human activity recognition

Oresti Banos et al. Sensors (Basel). .

Abstract

Signal segmentation is a crucial stage in the activity recognition process; however, this has been rarely and vaguely characterized so far. Windowing approaches are normally used for segmentation, but no clear consensus exists on which window size should be preferably employed. In fact, most designs normally rely on figures used in previous works, but with no strict studies that support them. Intuitively, decreasing the window size allows for a faster activity detection, as well as reduced resources and energy needs. On the contrary, large data windows are normally considered for the recognition of complex activities. In this work, we present an extensive study to fairly characterize the windowing procedure, to determine its impact within the activity recognition process and to help clarify some of the habitual assumptions made during the recognition system design. To that end, some of the most widely used activity recognition procedures are evaluated for a wide range of window sizes and activities. From the evaluation, the interval 1-2 s proves to provide the best trade-off between recognition speed and accuracy. The study, specifically intended for on-body activity recognition systems, further provides designers with a set of guidelines devised to facilitate the system definition and configuration according to the particular application requirements and target activities.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
Distribution of the activity recognition research studies presented in Tables 2 and 3 based on the window size.
Figure 2.
Figure 2.
Different stages of the activity recognition chain (ARC). An example of the correlation of the windowing approach and subsequent levels of the ARC is shown. Here, different window sizes are depicted particularly. Concretely, M sensors deliver raw signals (u1, u2, …, uM), which are subsequently processed (p1, p2, …, pM). The signals are partitioned into data windows of size Wk (e.g., s1Wk, s2Wk, …, sMWk). For each window, k, a set of features are extracted and aggregated in a single feature vector (f1(s1Wk), f2(s2Wk), …, fM(sMWk)) that is used as the input to a classifier. The classifier yields a class (cWk) that represents the identified activity.
Figure 3.
Figure 3.
Effect of the data window size on the activity recognition system performance (F1-score). Twelve recognition systems, respectively, corresponding to the combination of three feature sets (FS1, FS2, FS3) and four classification models (DT, NB, NCC, KNN) are evaluated.
Figure 4.
Figure 4.
Activity-specific recognition performance for diverse window sizes and methodologies (-): (a) NCC-FS1; (b) NCC-FS2; (c) NCC-FS3; (d) NB-FS1; (e) NB-FS2; and (f) NB-FS3. The minimum window size required to achieve a specific F1-score is depicted. No color is specified (not defined, ND) for performance values that may not be achieved for any of the window sizes and methodologies.
Figure 5.
Figure 5.
Activity-specific recognition performance for diverse window sizes and methodologies (-): (a) DT-FS1; (b) DT-FS2; (c) DT-FS3; (d) KNN-FS1; (e) KNN-FS2; and (f) KNN-FS3. The minimum window size required to achieve a specific F1-score is depicted. No color is specified (not defined, ND) for performance values that may not be achieved for any of the window sizes and methodologies.
Figure 6.
Figure 6.
Minimum window size required for diverse performance thresholds. The threshold values are respectively calculated from the maximum F1score that could be achieved for the recognition of each activity (represented on top). The results for two particular recognition methodologies are shown: (a) DT-FS2; and (b) KNN-FS2. Non-colored spots (not defined, ND) correspond to performance values for which no window enhancement may be obtained.

References

    1. EC. Horizon 2020 — The Framework Programme for Research and Innovation. European Commission; Brussels, Belgium: 2013. Technical Report.
    1. Lin J.J., Mamykina L., Lindtner S., Delajoux G., Strub H.B. Fish‘N’Steps: Encouraging physical activity with an interactive computer game. Proceedings of the 8th International Conference on Ubiquitous Computing; Orange County, CA, USA. 17–21 September 2006; pp. 261–278.
    1. Consolvo S., McDonald D.W., Toscos T., Chen M.Y., Froehlich J., Harrison B., Klasnja P., LaMarca A., LeGrand L., Libby R., et al. Activity sensing in the wild A field trial of ubifit garden. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems; Florence, Italy. 5–10 April 2008; pp. 1797–1806.
    1. Sazonov E., Makeyev O., Schuckers S., Lopez-Meyer P., Melanson E., Neuman M. Automatic detection of swallowing events by acoustical means for applications of monitoring of ingestive behavior. IEEE Trans. Biomed. Eng. 2010;57:626–633. - PMC - PubMed
    1. Sazonov E., Metcalfe K., Lopez-Meyer P., Tiffany S. RF hand gesture sensor for monitoring of cigarette smoking. Proceedings of the Fifth International Conference on Sensing Technology; Palmerston North, New Zealand. 28 November–1 December 2011; pp. 426–430.

Publication types