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.
Glossary
One-Sided Selection

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
| Feature | One-Sided Selection | Random Undersampling | Edited Nearest Neighbors | Tomek 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 |
Related Terms
Explore the foundational resampling and data cleaning techniques that complement One-Sided Selection in building robust fraud detection models.
Tomek Links
A data cleaning method that identifies pairs of minimally distanced nearest neighbors of opposite classes. By removing the majority class instance in each pair, Tomek Links clarifies the decision boundary between overlapping classes. This is the first step in the One-Sided Selection algorithm, used to eliminate borderline and noisy majority examples before applying Condensed Nearest Neighbors.
Condensed Nearest Neighbors
An under-sampling technique that aims to find a minimal consistent subset of the training data. It iteratively adds only those majority class examples that are misclassified by the current subset, effectively removing instances far from the decision boundary. In One-Sided Selection, CNN is applied after Tomek Links to eliminate redundant majority samples, reducing dataset size without sacrificing discriminatory information.
Edited Nearest Neighbors
An under-sampling technique that removes any majority class example whose predicted class differs from its actual class based on its k-nearest neighbors. ENN acts as a noise filter, eliminating ambiguous instances. While One-Sided Selection uses Tomek Links for boundary cleaning, ENN is often paired with SMOTE in the SMOTEENN hybrid method to clean both classes after synthetic oversampling.
Neighborhood Cleaning Rule
A two-step under-sampling algorithm that first uses Edited Nearest Neighbors to remove majority class examples, then removes minority class examples that are misclassified by three nearest neighbors. Unlike One-Sided Selection which focuses solely on reducing the majority class, NCL cleans both classes, prioritizing the removal of overlapping and noisy instances from the minority side as well.
SMOTETomek
A combined resampling technique that first applies SMOTE to generate synthetic minority samples, then removes overlapping majority class instances using Tomek Links. This creates a cleaner class separation than SMOTE alone. While One-Sided Selection is a pure under-sampling strategy, SMOTETomek is a hybrid approach that both increases minority representation and clarifies the decision boundary.
NearMiss
A family of under-sampling algorithms that selects majority class examples based on their average distance to the nearest minority class instances. NearMiss-1 keeps majority samples with the smallest average distance to three closest minority samples, preserving those near the decision boundary. This contrasts with One-Sided Selection, which uses consistency rather than distance heuristics to select retained instances.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us