Data mining at the IoT edge