In order to study the mechanical behavior of nuclear fuel during direct long term storage, UO2 polycrystals were implanted with Helium ions at a thin surface layer (1 µm approximately), which leads to stress and strain fields in the layer. Strains were measured, at the grains scale, by X-ray micro-diffraction, using synchrotron radiation (ESRF). Image analysis methods were developed for an automatic analysis of the large number of diffraction patterns. Applying statistical tools to Laue patterns allows an automatic detection of low quality images, and enhances the measurement precision. At low layer thickness, the mechanical interaction between grains can be neglected. At higher thickness, experimental results showed a higher mechanical int...