An Effective and Efficient Machine-Learning-Based Framework forSupporting Event Detection and Analysis in Complex Environments