In cancer diagnosis, the stakes are high. Failing to accurately detect cancer can lead to misdiagnosis, delayed treatment, and potentially fatal outcomes. Class imbalance can result in models that overlook rare but critical cases. For example, in a dataset where early-stage cancer cases are rare compared to late-stage or non-cancerous cases, the model might not learn to identify early-stage cancer effectively.