Visual understanding of human activity : towards ambient intelligence in AI-assisted hospitals