Cluster-based Sampling Algorithm for Lightweight IoT Intrusion Detection System