OverNaN: NaN-Aware Oversampling for Imbalanced Learning with Meaningful Missingness
This paper introduces OverNaN, a lightweight oversampling framework that addresses class imbalance in incomplete datasets by generating synthetic samples directly on feature vectors containing missing values, thereby preserving informative missingness patterns rather than erasing them through traditional imputation or deletion.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Problem: The "Broken Puzzle"
Imagine you are trying to teach a computer to recognize different types of cars. You show it photos of red sports cars and blue trucks. But, in many of the photos, parts of the image are missing—maybe the license plate is blurred out, or the side mirror is cut off.
In the world of machine learning, these missing pieces are called NaNs (Not a Number).
Traditionally, when data scientists see these missing pieces, they treat them like defects. They have two main ways of fixing them before teaching the computer:
- Throwing the photo away: If a photo is missing a mirror, they delete the whole picture. This is bad if you already have very few pictures of that specific car type (a "minority class").
- Guessing the missing part: They use math to guess what the missing mirror looks like and fill it in. This is called imputation.
The paper argues that both of these traditional methods are flawed. Throwing data away makes the problem worse if you are already short on data. Guessing the missing parts creates fake certainty—the computer thinks it knows what the mirror looks like, but it's just a guess, which can confuse the model.
The New Idea: OverNaN
The author, Amanda Barnard, introduces a new tool called OverNaN.
Think of OverNaN not as a repair crew, but as a photocopier that respects the missing pieces.
Instead of fixing the missing parts or throwing the photos away, OverNaN says: "Let's keep the missing parts missing, but let's make more copies of these photos so the computer learns better."
This is crucial because in many real-world situations (like science or engineering), missing data isn't an accident; it's meaningful.
- The Analogy: Imagine a recipe for a cake. If the recipe says "Add 2 eggs," but you don't have eggs, you don't just guess "2 eggs" and write it down. The fact that the ingredient is missing tells you something about the recipe (maybe it's a vegan version). If you fill it in with a guess, you ruin the recipe. OverNaN keeps the "missing egg" spot blank so the pattern remains true.
How It Works (The "Magic" Trick)
Usually, to teach a computer more about a rare type of car, we use a technique called SMOTE. This works by taking two photos of rare cars and drawing a new, fake photo right in the middle of them.
- The Old Way: If one photo is missing a mirror, the old method would guess what the mirror looks like, draw a new car with a "guessed" mirror, and hope for the best.
- The OverNaN Way: It looks at the two photos.
- If both have a mirror, it draws a new car with a mirror.
- If one of them is missing a mirror, the new fake car also gets a missing mirror.
It treats the "missingness" as a feature of the data, just like the color or the shape. It creates new synthetic examples that look exactly like the real ones, including their holes and gaps.
Three Ways to Handle the Gaps
The paper explains that OverNaN gives you three different "strategies" for how to handle these missing pieces when making new copies:
- The "Conservative" Strategy (Preserve-Pattern): If either of the original photos had a missing piece, the new copy gets a missing piece too. It's very careful not to invent anything new.
- The "Fill-in" Strategy (Selective Interpolation): If both original photos have the piece, it fills it in. If only one has it, it leaves the new one blank.
- The "Statistical" Strategy (Probabilistic): It looks at how often things go missing in the real world and tries to copy that pattern randomly.
Why Does This Matter? (The Graphene Example)
The paper tests this on a real scientific problem: predicting if a tiny piece of Graphene Oxide (a material used in batteries and medicine) has a specific chemical group attached to it.
- The Situation: Some chemical bonds simply don't exist in certain structures. It's not that the scientists forgot to measure them; the bond is physically absent.
- The Problem with Old Methods: If you use the old "guessing" method, you might tell the computer that a bond exists when it actually doesn't. This is like telling a chef to add salt to a dish that is supposed to be salt-free.
- The OverNaN Result: By keeping the "missing bond" as a missing value, the computer learned to recognize the structure correctly. In the tests, OverNaN was more accurate and consistent than methods that tried to fill in the blanks or delete the data.
The Bottom Line
OverNaN is a tool for when your data is messy, incomplete, and unbalanced (where one type of data is rare).
Instead of trying to "fix" the missing data by guessing or deleting it, OverNaN says: "The missing data is part of the story." It creates more examples of the rare data while keeping the holes in the data exactly where they belong, allowing the computer to learn the truth without being tricked by fake guesses.
It is designed for scientists and engineers working with small, tricky datasets where "what is missing" is just as important as "what is there."
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.