Detecting class imbalance involves examining the distribution of classes within the dataset. Basic descriptive statistics, such as class frequencies, can reveal the extent of imbalance. Visualization tools like bar charts or pie charts can also provide a clear picture of class distributions.