Skip to main content
. 2021 Jan 15;11:1632. doi: 10.1038/s41598-020-80394-y

Figure 1.

Figure 1

Figure depicting the overall pipeline of the micromovement recognition/bite detection part of the algorithm. From left to right, the windowed 3D accelerometer and gyroscope streams of length wl are transformed into the 116-dimensional feature vector fi. Next, using an array of ten one-versus-one SVM the feature vector fi is transformed into the 10-dimensional SVM prediction score vector vi. By applying a voting scheme to the one-vs-one scores of the ten SVM (i.e., to the vi vector) we obtain yi,mm which indicates the micromovement label that corresponds to the ith window. Processing of additional sensor windows leads to the creation of the meal’s SVM score matrix V and label vector ymm. Furthermore, by processing windows of V with length wl, the RNN outputs the probability pi that the given window sequence is a food intake cycle. Variables hi,j and ci,j are used to represent the ith hidden output and cell state of the jth LSTM layer, respectively. The rightmost part of the figure illustrates the local maxima search in the meal’s prediction vector p. Variables b1, b2 and b3 represent three detected bites, while pt represents the prediction threshold.