Signatures of planets and Galactic subpopulations in solar analogs. Precise chemical abundances with neural networks