Machine learning for healthcare diagnostics