X-ray fluorescence analysis has been used to track and monitor the on-site analysis of rock cuttings in oil drilling field. BP (Back Propagation) models of multi-layer neural networks were established to describe different lithology of strata by the binary code through continuously sampling powder-like rock cuttings at the scene.