Text this: Machine learning: enhanced dynamic clustering for privacy preservation and malicious node detection in industrial internet of things