Temporal-spatial sparse coding for X-ray image analysis and interpretation