AI optimization

I have a project in which there are several types of AI skeleton objects, each of which is up to hundreds of thousands and each of them has particle effects on each body. In this case, how can I optimize it to maximize the effect of the engine. The LOD of the skeletal objects and the LOD of the particle effects are all close.