Detection of sitting posture using hierarchical image composition and deep learning