Development of the Logic Programming Approach to the Intelligent Monitoring of Anomalous Human Behaviour