I would like to design a NN to count the number of steps based on the accelerometer data measured using a smartphone.

I completed the Machine Learning Specialization and some parts of the Sequence model course and Convolutional Neural Networks course.

So I know the theory of NNs, CNNs, RNNs, BRNNs, GRUs, LSTMs, etc.

However, it is unclear how to achieve my goal in practice.
I could follow the TensorFlow Developer Professional Certificate Course 4 Sequences, Time Series and Prediction but it seems to focus on predictions.

Is it what Iâ€™m looking for?
What would be the best next action for me?

I have collected training data (time series), but donâ€™t know how to label it, process it, count the number of steps (categorize?), etcâ€¦

I think that you can just convert the accelerometer data accumulated to a number of steps and thats what they do rather than use a ML model to predict it.

Of course an ML model might give you similar results but needs a lot of work: gathering data, preprocessing it, building the model, testing it etc. but if you think thats the way to go, then your task is straightforward, for a given accelerometer count find the number of steps (from what I understand), its a straightforward NN which outputs a scalar number (the number of steps). I donâ€™t think a time series prediction is needed here, the problem is simpler!

Means use a formula that creates a relationship between both (and maybe other variables also) like f(x) = x/(1+x**2), where x is the input data and f(x) is the calculated output!

Iâ€™m not sure how this task would require machine learning.

For machine learning to be used, youâ€™d need to create a labeled training set from which a model can learn how to identify when a step has occurred.

Maybe you could do this with a sequence model, using a method like what was used in Course 5 to detect a keyword that was spoken in an audio recording.

However to me this seems like a difficult way to solve a simple task.

I talked about step counting for simplification but in fact, I would like to count the number of jumps while jumping rope.
I know it sounds simple but when you dig into it, having a high accuracy is not that trivial.
Yes, a sequence model is what I had in mind but itâ€™s unclear to me how to apply it to my time series.

I do not think this would work. For instance, the accelerometer might collect data when you are accelerating in a lift or a car. You have to somehow detect that a certain acceleration is related to a step being taken. I think that is what your watch actually does. So, I guess the training task would be to use machine learning to do this detection.

I am not sure this is necessary. I think I would create a neural network that takes as input a time series of the accelerometer and the number of jumps that are taken within that time. The neural network should then be able to learn which patterns in the time series relate to a jump. Nice project!

But in this case, how do you â€śconvertâ€ť the measured time series into an input vector to feed it to the NN ?
Do you get rid of the timestamp altogether?
here is what my measurements look like this:

I think each training example would be a 2D matrix, 2 x n, where n is the number of timestamps. I think n should ideally be larger than what you gave. So, you might have m training examples, of size 2 x n each. In principle, it should be possible to have n vary across your training examples. However, it might be easier to fix n for your first attempt.

If the data is sequential and uniformly spaced, and youâ€™re using a sequence model, you probably donâ€™t need the time stamps. So youâ€™d have a 1D vector of values.

And if you are using the time stamps (i.e. it becomes a 2D set), then having duplicate time values is a bad idea. For example, what significance does the time stamp have if you have multiple values at the same time stamp?