SMOTEENN is a combined resampling strategy that first applies the Synthetic Minority Over-sampling Technique (SMOTE) to generate artificial minority class examples, then immediately applies Edited Nearest Neighbors (ENN) to remove any example—from either class—whose class label differs from the majority of its k-nearest neighbors. This sequential pipeline over-samples the rare class and then aggressively cleans the resulting dataset by eliminating overlapping, ambiguous, and noisy instances near the decision boundary.
Glossary
SMOTEENN

What is SMOTEENN?
SMOTEENN is a two-step hybrid resampling method that combines over-sampling of the minority class via SMOTE with data cleaning via Edited Nearest Neighbors to produce a balanced, less noisy training dataset.
The primary advantage of SMOTEENN over SMOTE alone is its ability to remove the noisy synthetic samples and majority class outliers that SMOTE can inadvertently introduce. By applying ENN as a post-processing filter, the technique creates a cleaner class separation than SMOTETomek, which only removes majority class instances. However, ENN's willingness to remove examples from both classes can lead to more aggressive data reduction, making SMOTEENN particularly effective for datasets with severe class overlap and noise.
Key Characteristics of SMOTEENN
SMOTEENN combines over-sampling and data cleaning to create a balanced, high-quality training set. It first generates synthetic minority examples via SMOTE, then applies Edited Nearest Neighbors to remove noisy or ambiguous instances from both classes.
Two-Stage Pipeline Architecture
SMOTEENN operates in a sequential, two-phase process:
- Stage 1 (SMOTE): Over-samples the minority class by creating synthetic examples through interpolation between a randomly selected minority instance and its k-nearest minority neighbors.
- Stage 2 (ENN): Applies Edited Nearest Neighbors to the entire augmented dataset. ENN removes any example whose class label differs from the majority class of its k-nearest neighbors (typically k=3). This pipeline ensures the final dataset has both increased minority representation and cleaner class boundaries.
Noise and Overlap Elimination
The primary advantage of SMOTEENN over standalone SMOTE is its ability to remove overlapping and noisy instances introduced during synthetic generation.
- SMOTE can inadvertently create synthetic minority examples deep inside majority class clusters, introducing noise.
- The ENN cleaning step identifies and deletes these ambiguous examples, along with majority class instances that intrude on minority space.
- The result is a dataset with wider, more well-defined class separation margins, which is critical for algorithms like k-NN and SVM that are sensitive to boundary noise.
Dual-Class Cleaning Behavior
Unlike Tomek Links or One-Sided Selection, which primarily remove majority class examples, ENN cleans both classes:
- Majority class removal: Majority instances surrounded by minority neighbors are deleted, clarifying the minority boundary.
- Minority class removal: Synthetic or original minority instances that fall within dense majority regions are also removed, preventing the model from learning misleading patterns. This dual cleaning is particularly valuable in fraud detection, where legitimate transactions can exhibit anomalous patterns and fraudulent transactions can mimic normal behavior.
Computational Complexity Considerations
SMOTEENN is computationally more expensive than either SMOTE or ENN alone:
- SMOTE complexity: O(n_minority * k * d), where d is the feature dimensionality.
- ENN complexity: O(N * k * d), where N is the total number of examples in the augmented dataset.
- The ENN step must compute nearest neighbors for every instance in the expanded dataset, which can be substantial after SMOTE over-sampling. For large-scale financial transaction datasets with millions of records, consider using approximate nearest neighbor algorithms or applying SMOTEENN on a representative stratified sample.
Parameter Sensitivity and Tuning
SMOTEENN inherits hyperparameters from both constituent algorithms:
- SMOTE k-neighbors: Controls the number of nearest minority neighbors used for interpolation. Typical values range from 3 to 5.
- ENN k-neighbors: Determines how many neighbors vote on whether an instance should be removed. The default is 3; increasing this value makes the cleaning more aggressive.
- Sampling strategy: Dictates the desired minority-to-majority ratio after SMOTE (e.g., 0.5 for 1:2, 1.0 for perfect balance). Cross-validation should be performed on the full pipeline, not on individual components, as the interaction effects between SMOTE and ENN parameters significantly impact final model performance.
Integration with Fraud Detection Workflows
SMOTEENN is particularly effective in financial fraud anomaly detection pipelines:
- Preprocessing step: Applied before training classifiers like XGBoost, LightGBM, or Random Forest on imbalanced transaction data.
- Imbalanced-learn implementation: Available via
SMOTEENNin theimblearn.combinemodule, with a scikit-learn-compatiblefit_resampleAPI. - Pipeline integration: Can be embedded directly into scikit-learn
Pipelineobjects usingimblearn.pipeline.Pipelineto prevent data leakage during cross-validation. - Typical fraud ratios: Effective when fraud-to-legitimate ratios range from 1:100 to 1:1000, where standalone SMOTE may create excessive noise without the ENN cleaning step.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the SMOTEENN hybrid resampling algorithm for imbalanced classification in financial fraud detection.
SMOTEENN is a hybrid resampling method that combines over-sampling of the minority class using SMOTE (Synthetic Minority Over-sampling Technique) with data cleaning via Edited Nearest Neighbors (ENN). The algorithm operates in two sequential phases: first, SMOTE generates synthetic minority class examples by interpolating between existing minority instances in feature space, balancing the class distribution. Second, ENN applies a k-nearest neighbors classifier (typically k=3) to every example in the augmented dataset and removes any instance whose predicted class label contradicts its actual label. This cleaning step eliminates both noisy majority class examples that intrude into minority class regions and synthetic minority examples that were generated in ambiguous or overlapping areas. The result is a dataset with a more balanced class ratio and a cleaner, more well-defined decision boundary, which is particularly valuable in financial fraud detection where fraudulent transaction patterns often overlap with legitimate ones.
SMOTEENN vs. Other Hybrid Resampling Methods
A feature-level comparison of SMOTEENN against other combined over-sampling and under-sampling strategies for imbalanced classification.
| Feature | SMOTEENN | SMOTETomek | OSS |
|---|---|---|---|
Over-sampling Method | SMOTE | SMOTE | None |
Cleaning Method | Edited Nearest Neighbors (ENN) | Tomek Links | Tomek Links + CNN |
Removes Majority Class Noise | |||
Removes Minority Class Noise | |||
Cleans Both Classes | |||
Aggressiveness of Under-sampling | Moderate | Conservative | Aggressive |
Risk of Information Loss | Moderate | Low | High |
Computational Complexity | High | Moderate | Moderate |
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.
Related Terms
SMOTEENN is part of a broader family of combined over-sampling and data cleaning strategies. These related techniques address class imbalance through different combinations of synthetic generation and noise removal.
SMOTETomek
A combined resampling technique that first applies SMOTE to generate synthetic minority samples, then uses Tomek Links to remove overlapping majority class instances. Unlike SMOTEENN, which uses Edited Nearest Neighbors for cleaning, SMOTETomek identifies pairs of minimally distanced nearest neighbors of opposite classes and removes the majority class instance. This creates a cleaner, more defined class separation by eliminating borderline ambiguity rather than misclassified noise.
Edited Nearest Neighbors (ENN)
The cleaning component of SMOTEENN. ENN removes any example whose predicted class differs from its actual class based on its k-nearest neighbors (typically k=3). In SMOTEENN, ENN is applied after SMOTE over-sampling to eliminate:
- Noisy majority examples that intrude into minority space
- Ambiguous synthetic samples that may have been generated in overlapping regions
- Misclassified instances from both classes This dual cleaning creates a dataset with more homogeneous class clusters.
Neighborhood Cleaning Rule (NCR)
A more aggressive under-sampling algorithm that combines Edited Nearest Neighbors with additional minority class cleaning. NCR first applies ENN to remove majority class examples, then removes minority class examples that are misclassified by their three nearest neighbors. This two-pass approach cleans both classes simultaneously, making it more thorough than SMOTEENN's single ENN pass. NCR is particularly effective when the minority class itself contains outliers or mislabeled instances that could mislead the classifier.
One-Sided Selection (OSS)
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. Unlike SMOTEENN which over-samples first, OSS is purely an under-sampling approach that retains only the majority class examples essential for defining the decision boundary. This makes OSS more conservative in dataset size reduction but avoids introducing synthetic data.
SMOTEBoost
An ensemble method that integrates SMOTE into the AdaBoost boosting procedure. At each boosting iteration, SMOTE generates new synthetic minority class examples before training the next weak learner. This increases the emphasis on the rare class progressively as boosting continues. Unlike SMOTEENN which produces a single cleaned dataset for one model, SMOTEBoost creates multiple balanced training sets across iterations, combining the benefits of synthetic sampling with ensemble diversity for improved generalization.
Borderline-SMOTE
A variant of SMOTE that only over-samples minority class examples near the decision boundary, where misclassification is most likely. It classifies minority examples into three groups—safe, borderline, and noise—based on their neighbor composition, then generates synthetic samples only from borderline instances. SMOTEENN can be combined with Borderline-SMOTE as the over-sampling component to focus synthetic generation on the most critical regions before ENN cleaning, creating an even more targeted hybrid approach.

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