Research and validation of context-based activity recognition methods using visual data