Adaptive Federated Learning In Ai