Unsupervised Learning for Trustworthy IoT