Intelligent Localization and Deep Human Activity Recognition through IoT Devices