Collecting training data

We can now use the collector to collect training data for activity recognition. The collector supports three activities by default, standing, walking, and running, as shown in the following screenshot.

You can select an activity, that is, target class value, and start recording the data by clicking the START COLLECTING button. Make sure that each activity is recorded for at least three minutes; for example, if the Walking activity is selected, press START COLLECTING and walk around for at least three minutes. At the end of the activity, press Stop collecting. Repeat this for each of the activities.

You could also collect different scenarios involving these activities, for example, walking in the kitchen, walking outside, ...

Get Machine Learning in Java - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.