Inferensys

Glossary

One-Sided Selection

One-Sided Selection is a combined under-sampling strategy that first removes redundant majority class examples using Tomek Links, then applies Condensed Nearest Neighbors to eliminate instances far from the decision boundary.
Overhead shot of a beautifully lit strategy meeting in a modern WeWork hot desk area, designers and executives gathered around a live AI system diagram projected on smart table surface.
IMBALANCED CLASSIFICATION

What is One-Sided Selection?

A combined under-sampling strategy that first removes redundant majority class examples using Tomek Links, then applies Condensed Nearest Neighbors to eliminate instances far from the decision boundary.

One-Sided Selection (OSS) is a data-level under-sampling algorithm designed to clean and reduce the majority class in imbalanced datasets. It operates in two distinct phases: first, it identifies and removes majority class instances that form Tomek Links—pairs of minimally distanced nearest neighbors of opposite classes—to eliminate noisy and borderline overlapping examples. Second, it applies the Condensed Nearest Neighbor (CNN) rule to discard majority class samples that are distant from the decision boundary and redundant for classification, retaining only those essential for defining the class frontier.

By combining Tomek Link removal with CNN-based reduction, OSS creates a compact, consistent subset of the majority class that clarifies the separation between classes without generating synthetic data. This technique is particularly effective for datasets where the minority class is surrounded by dense, overlapping majority class clusters, as it systematically prunes instances that contribute to ambiguity. The result is a cleaner training set that reduces the bias toward the majority class while preserving the original feature space distribution of the retained samples.

UNDER-SAMPLING STRATEGY

Key Characteristics of One-Sided Selection

One-Sided Selection (OSS) is a combined under-sampling strategy that first removes redundant majority class examples using Tomek Links, then applies Condensed Nearest Neighbors to eliminate instances far from the decision boundary.

01

Two-Phase Reduction Pipeline

OSS operates in a sequential two-stage process. Phase 1 identifies and removes majority class instances that form Tomek Links—pairs of minimally distanced nearest neighbors of opposite classes. This cleans the class boundary overlap. Phase 2 applies Condensed Nearest Neighbors (CNN) to the cleaned dataset, retaining only those majority class examples that are essential for correct classification via a 1-NN rule. This eliminates redundant interior points far from the decision boundary.

02

Tomek Links as Boundary Cleaners

A Tomek Link exists between two examples x and y of opposite classes if no other example z is closer to either x or y. In OSS, only the majority class instance in each Tomek Link pair is removed. This step specifically targets ambiguous, overlapping regions where the classes are inseparable, sharpening the decision boundary without discarding minority class information. The result is a cleaner separation surface for subsequent learning.

03

Condensed Nearest Neighbors for Redundancy

After Tomek Link cleaning, CNN builds a consistent subset of the training data. Starting with all minority examples and one majority example, it iteratively adds only those majority instances that are misclassified by a 1-Nearest Neighbor classifier trained on the current subset. The final set—the 'condensed' set—contains only the majority examples that define the classification boundary. All internal, redundant majority points are discarded.

04

Computational Complexity Considerations

OSS has a time complexity of O(n²) in the worst case, driven by the pairwise distance calculations required for both Tomek Link identification and the iterative 1-NN evaluations in CNN. For large-scale financial transaction datasets with millions of records, this quadratic scaling can become prohibitive. Practical implementations often use optimized spatial indexing structures like KD-Trees or approximate nearest neighbor methods to reduce runtime.

05

Comparison with Other Hybrid Methods

Unlike SMOTETomek or SMOTEENN, which combine over-sampling with cleaning, OSS is a pure under-sampling technique. It never generates synthetic data. This makes OSS preferable when:

  • The minority class is already sufficiently represented
  • Synthetic data generation is undesirable due to regulatory constraints
  • Model interpretability must be preserved without artificial feature space interpolation However, OSS may discard more useful majority class information than ensemble methods like EasyEnsemble.
06

Impact on Classifier Performance

By removing both boundary noise and redundant interior points, OSS creates a training set that is both cleaner and smaller. This typically leads to:

  • Faster training times due to reduced dataset size
  • Improved recall on the minority class as the decision boundary is clarified
  • Potential reduction in precision if too many majority examples are removed OSS works best when combined with cost-sensitive classifiers that can further compensate for any remaining imbalance after under-sampling.
ONE-SIDED SELECTION

Frequently Asked Questions

Clear, technical answers to the most common questions about One-Sided Selection, a combined under-sampling strategy for imbalanced classification.

One-Sided Selection (OSS) is a combined under-sampling strategy that first removes redundant majority class examples using Tomek Links, then applies Condensed Nearest Neighbors (CNN) to eliminate instances far from the decision boundary. The algorithm operates in two distinct phases. In the first phase, it identifies all Tomek Link pairs—minimally distanced nearest neighbors of opposite classes—and removes only the majority class instance from each pair, cleaning the class overlap region. In the second phase, it applies the CNN rule: starting with a set containing all minority examples and one randomly selected majority example, it iteratively adds only those majority instances that are misclassified by a 1-nearest neighbor classifier trained on the current set. The result is a reduced majority class consisting only of border and difficult examples, while redundant interior points are discarded. This two-stage approach clarifies the decision boundary without introducing synthetic data.

UNDER-SAMPLING STRATEGY COMPARISON

One-Sided Selection vs. Other Under-Sampling Methods

A feature-level comparison of One-Sided Selection against other common under-sampling techniques for handling imbalanced classification in fraud detection.

FeatureOne-Sided SelectionRandom UndersamplingEdited Nearest NeighborsTomek Links

Core Mechanism

Combines Tomek Links removal with Condensed Nearest Neighbor condensation

Randomly discards majority class examples

Removes majority examples misclassified by k-nearest neighbors

Removes majority class instance from minimally distanced opposite-class pairs

Redundancy Handling

Noise Removal

Decision Boundary Clarification

Preserves Majority Class Distribution

Risk of Information Loss

Moderate

High

Low

Low

Computational Complexity

O(n²)

O(n)

O(kn log n)

O(n²)

Deterministic Output

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.