AI in Healthcare Diagnosis: Early Detection with Algorithms