A framework for anomaly detection and classification in Multiple IoT scenarios