Automatic detection of dangerous events for underground surveillance