An architecture for adaptive task planning in support of IoT-based machine learning applications for disaster scenarios