Two major Brisbane roads will be part of a trial of AI--assisted traffic lights from next year.