Enhancing Chest X-ray Pathology Prediction through Data-Driven Approaches and Transfer Learning