AIDive
Back to glossary

What is Class Imbalance

GlossaryMachine Learning

A situation where there are many more examples in the data than others.

Definition

Class Imbalance is a situation where there are many more examples in the data than others. Simply put, this concept helps train models, compare approaches, and reduce the risk of errors on new data. In practice, it helps to understand what capabilities the tool actually has, what data it will need, and what limitations are worth checking before implementation.

Example

In a fraud detection system, there are thousands of regular payments and few fraudulent transactions, so accuracy can be deceiving.

Why it matters

Without accounting for imbalance, a model may look good but miss the most important rare cases. This helps you choose AI tools not by big promises, but by how they work in a real problem.

How it works

First, the problem is translated into data and metrics, then the model is trained, tested on a separate sample, and compared with alternatives. In the case of the term "Class Imbalance", it is important to look separately at the data, quality criteria and application conditions.

Where it is used

  • Used in training, testing and tuning models, in automatic selection of parameters, forecasting, classification and recommendation systems.

Limitations

The main limitation is the dependence on data, metrics and verification conditions. A good result on a test does not always mean reliable performance in a real product.