Cognitive agent based fault tolerance in ubiquitous networks: a machine learning approach International Journal of Information Technology