LwTool: A data processing toolkit for building a real-time pressure mapping smart textile software system

https://doi.org/10.1016/j.pmcj.2022.101540Get rights and content

Abstract

Pressure mapping smart textile is a new type of sensing modality that transforms the pressure distribution over surfaces into digital ”image” and ”video”, that has rich application scenarios in Human Activity Recognition (HAR), because all human activities are linked with force change over certain surfaces. To speed up its application exploration, we propose a toolkit named LwTool for the data processing, including: (a) a feature library, including 1830 ready-to-use temporal and spatial features, (b) a hierarchical feature selection framework that automatically picks out the best features for a new application from the feature library. As real-time processing capability is important for instant user feedback, we emphasize not only on good recognition result but also on reducing time cost when selecting features. Our library and algorithms are validated on Smart-Toy and Smart-Bedsheet applications, an 89.7% accuracy for Smart-Toy and an 83.8% accuracy for Smart-Bedsheet can be achieved (10-fold cross-validation) using our feature library. Adopting the feature selection algorithm, the processing speed is increased by more than 3 times while maintaining high accuracy for both two applications. We believe our method could be a general and powerful toolkit in building real-time recognition software systems for pressure mapping smart textile.

Introduction

Human Activity Recognition (HAR) is an important sub-domain in the research field of ubiquitous computing. Pressure mapping smart textile [1] is a new type of sensor that measures pressure distribution over surfaces, both in the environment and on-body. Soft, thin, and flexible, the textile sensors can cover a large area, providing data of a large scale and high resolution, which are then mined for high-level information. Researchers have used it in dozens of applications (viz. Fig. 1), such as smart home [2], [3], [4], sports [5], [6], [7], healthcare [8], [9], [10]. Even Google started the Jacquard Project [11], releasing interactive digital textile for Human Computer Interaction.

As there are still many new applications to be explored for this emerging sensing modality, there exists a need for speeding up the application exploration. From a rough idea, first hardware needs to be constructed, then a small scale experiment to obtain the labeled data, then data mining algorithms are developed and applied. While hardware may differ from scenario to scenario, the data mining algorithms share the same pipeline: signal pre-processing, feature extraction, and classification. Our work focuses on creating a common toolkit for building the real-time data-mining pipeline for smart textile applications.

The application scenarios of smart textile are rich, and the characteristics of the collected data are the same, similar to ”video”, so it is thus feasible to establish a general feature library suitable for most applications. Researchers have proposed many feature sets for various applications, and these features can be categorized into three domains: the time domain features, the frequency domain features, and spatial features.

Real-time processing is always the ideal goal for data processing, as 1) for real-time response and instant user feedback, and 2) for offline processing, the un-processed data must be stored somewhere and with a large amount of data generated every day, the storage will become a problem sooner or later. For real-time processing, the calculation time is a critical measurement. We thus add time cost as a judging criterion when selecting feature subset from the feature library.

The contributions of this work are as follows:

  • 1.

    Based on the work of [15], we add new features and expand the 743 features contained in the initial version of the TPM feature set to 1830 features, including temporal and spatial features, as demonstrated in Fig. 2.

  • 2.

    To speed up feature calculation and enable real-time processing, we propose a hierarchical feature selection framework, that emphasizes not only on classification accuracy but also on time consumption.

  • 3.

    To estimate the time consumption of any given feature subset, we 1) propose the calculation dependency graph, and 2) develop the consumption estimation algorithm. Although in this paper the method is applied only to the feature library for smart textile, it is general enough to be applied to other feature sets (e.g. for feature set created from video or IMU data), too.

Section snippets

Related work

We organize the related work in three groups: feature sets for pressure mapping textile, feature selection methods, and existing considerations on time-friendly design.

Data processing

As pressure mapping textile generates data similar to video, we name the pressure distribution at each sample time as a ”frame”. Each interaction instance is composed of multiple consecutive frames. Before finally being recognized by the classifier, the raw frames go through three main time-consuming stages: pre-processing (optional), feature extraction, and prediction. In this section, we will introduce the methods for estimating the time consumption of processing an interaction instance at

Feature selection

To pick out the feature subset that is most suitable for an efficient and real-time recognition system, a two-staged feature selection framework (as shown in Fig. 3) is proposed and introduced in this section.

Evaluation

In this section, we will demonstrate the performance of the feature library and the corresponding selection algorithm. All classifiers are implemented using Scikit-learn [38], runs on a Windows machine with Intel i7-8700 CPU and NVIDIA GTX 1070 Ti GPU. The same classifier adopts the same parameter setting in all training rounds.

Conclusions

Above we present our effort in 1) we further expand the TPM feature set [15] into the general feature library, containing 1830 temporal and spatial features, that can serve as the base for new smart textile application exploration; and 2) we propose a toolkit that can automatically pick out the best features from the feature library, keeping high accuracy and meanwhile reduce time cost, for building a real-time recognition software system. Not only the theoretical equations and algorithms are

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

The contributions of the authors are: Tao Guo, algorithm development (including the final feature library and the whole feature selection methods) and paper writing (draft version); Zhixin Huang, the feature library (initial version), Smart-Toy development, data collection, and labeling; Jingyuan Cheng, defining research topics, organizing the research team and paper writing (final version). We would like to express our sincere thanks to Ms. Qi Cui, who designed and realized Fig. 5, to Mr.

References (39)

  • M. Sundholm, J. Cheng, B. Zhou, A. Sethi, P. Lukowicz, Smart-mat: Recognizing and counting gym exercises with low-cost...
  • XuW. et al.

    Smart insole: A wearable system for gait analysis

  • ZhouB. et al.

    Smart table surface: A novel approach to pervasive dining monitoring

  • LiuJ.J. et al.

    Bodypart localization for pressure ulcer prevention

  • HuangM.-C. et al.

    Using pressure map sequences for recognition of on bed rehabilitation exercises

    IEEE J. Biomed. Health Inform.

    (2014)
  • I. Poupyrev, N.-W. Gong, S. Fukuhara, M.E. Karagozler, C. Schwesig, K.E. Robinson, Project Jacquard: interactive...
  • ZhouB. et al.

    From smart clothing to smart table cloth: Design and implementation of a large scale, textile pressure matrix sensor

  • ZhouB. et al.

    TPM Framework: a Comprehensive Kit for Exploring Applications with Textile Pressure Mapping Matrix

    (2017)
  • B. Zhou, P. Lukowicz, TPM feature set: A universal algorithm for spatial-temporal pressure mapping imagery data, in:...
  • Cited by (6)

    View full text