Metropolitan Police leaders at Scotland Yard have admitted to using AI to monitor staff behaviour and performance, prompting criticism from the Police Federation union.