Hi aspirant,
during masters it is not mandatory to take same subjects as there in bachelor. It will be added advantage in knowledge if you will take same subject in master as there during bachelor. Aslo nowadays there are many opportunities in AI and ML, so it will be good if you are go with it in masters.
Hope this is helpful to clear your dilemma.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile