This method involves the following steps:
- Processing the input accelerometer data: The accelerometer data is sensitive to where it is located. For example, if mounted in the waist region, the hand movements will not see a big change in the accelerometer compared to when mounted in the arm. Also, for a different position, different data needs to be collected and then combined.
- Preparing data so that it can be input into TensorFlow: Load the data using tf.data.Dataset to develop a simple, highly efficient data pipeline. The tensor_slices command extracts a slice of data from the input.
- Developing the CNN model and training it: One or two dense layers with the flatten and softmax functions at the ...