Evaluation of under balance drilling using an intelligent system