The application discloses an
activity recognition method based on a variational
autoencoder and a
time sequence network, and belongs to the technical field of behavior
feature recognition, and comprises the following steps: S1, collecting an
original data set of activity signals and performing pretreatment; S2, extracting latent features based on S1 by using a VAE, and outputting a
reconstruction error; S3, obtaining time dynamic features based on S1 by using a CNN-GRU; S4, performing
feature fusion based on the results of S2 and S3 by using a self-attention mechanism, performing soft assignment by using a deep embedding clustering layer, and performing classification by using a classifier, and completing model training; S5, testing, judging whether input is OOD data, and outputting a category. The application effectively recognizes and processes OOD data by judging the
reconstruction error and the output of the deep embedding clustering layer, and enhances the robustness and generalization ability of the model; by combining the VAE, the CNN, the GRU and the self-attention mechanism, space-time features in IMU signals are comprehensively extracted, the accuracy of
activity recognition is improved,
time sequence information is effectively reserved, and the model training efficiency is improved.