I notice the AI waste a lot of ships by sending too few of them when they're about to attack a planet. The local pirate fleet just keeps killing them off and the AI loses a lot of ships.
I think they should plan a bit better by making a larger force before jumpin in to take a planet.