Text this: AI-powered fault diagnosis and estimation of remaining useful life using IoT framework