Online recognition of human activities and adaptation to habit changes by means of learning automata and fuzzy temporal windows