Training on rare events requires more than duplicating examples
Class weighting and resampling change the learning problem, not the underlying prevalence.

Give scarce cases attention
When important examples are rare, ordinary training can favor the majority class. Class weighting or resampling can change how much different examples influence the objective. These techniques can help a model learn useful distinctions, but they do not create new independent evidence. Repeating a rare example many times cannot reveal the variety of rare cases absent from the dataset.
An equipment-monitoring example
Imagine a workshop with thousands of normal operating records and only a few documented faults. Oversampling those faults may help training notice them. If all recorded faults came from one machine, however, the model may learn that machine’s identity rather than a general fault pattern. More balanced batches do not automatically produce more representative evidence.
Keep evaluation realistic
The held-out evaluation should reflect the deployment question, including actual event prevalence where relevant. Artificially balancing the test data can change the interpretation of measures such as precision. Probability estimates may also require careful assessment after training changes. Report the number of independent rare cases and inspect whether related observations have been separated appropriately across training and evaluation.
Combine modeling with collection
For the workshop, improve fault logging, preserve context and review uncertain incidents with specialists. Measure the alert workload under realistic operating conditions. Consider a cautious review system when evidence for automatic decisions is thin. The most useful response to imbalance is often a combination of learning techniques and better data practices, with clear recognition that the rare class is not one homogeneous pattern waiting to be recovered by a clever sampling ratio. A fault label should also record how the incident was confirmed, because uncertain maintenance notes can otherwise become repeated training examples with undeserved authority.
Sources & further reading
www.tensorflow.org — imbalanced data ↗
AI-assisted editorial explainer. Sources are provided for verification.
Continue reading
The quiet power of a straight line ↗
Probability is not a verdict ↗