The AI decides on the resources value of the planets, not on its actual needs - sadly. There is only one exception: When the Ai has a negative income it will make the next colony of the need resources - this time disregarding any resource values. Worst case in this scenario is that you get a 0% resource planet.
This is one of the major points I'd like to see improved in SEV.