Zero Labs
Industry News / AI

The Feature Selection Trap: Why ‘More Data’ Can Actively Hurt Your Machine Learning Model

Source · Towards AI By Arslaan

From the publisher’s feed, collected in the ZeroLabs newsroom.

The Feature Selection Trap: Why ‘More Data’ Can Actively Hurt Your ML ModelDISCLAIMER: This article is based on a peer-reviewed preprint co-authored with researchers at Cardiff University, currently under review at Frontiers in Remote Sensing: https://arxiv.org/abs/2605.09746A simple experiment in deep learning feature selection that questioned the “more is better” assumption.In machine learning, it is a standard but naive move to always assume that more is better. More data, more indices, more engineered features… it is a natural human instinct to think that adding data always adds value, even though literature and life try to teach us otherwise. I started this project by following that exact instinct. I was building a model for landslide detection using satellite data, so I threw 30 different channels into a U-Net++. The logic felt sound: each channel encodes something physical, from vegetation health to terrain slope, so why would the model not want all of it? But after the model ran with a fine but uninspiring F1 score, I had to stop and ask: what is it actually using and does it need all of it?Figure 1: Example Images and Bands from the Landslide4Sense Dataset Repository.[5]A quick bit of context for the features we used. Satellite imagery is not just a photo, it is dozens of layers of data captured across different wavelengths of light. Each layer is called a band or channel. Some capture visible light, others infrared, others moisture. On top of those raw bands, researchers engineer additional features: mathematical combinations of existing bands designed to highlight specific physical properties like NDVI for vegetation, NDWI for water, slope for terrain steepness. A U-Net++[1] is just the deep learning architecture we used to do the actual segmentation, think of it as the model that looks at all those layers and decides pixel by pixel: landslide or not.Section 2: The problem with “just add more Features”Before I even begin, I think it is important to establish why this common tendency is not as harmless as it looks. When you train a model, what is it actually doing? You might suggest that it is simply “Learning,” but beyond that simple word lies math. The model is aggressively finding connections within all its existing features, using the exceptional power of statistics and probability. In our case, the inputs included not just the raw satellite bands but also extra mathematical features (like NDVI) that remote sensing specialists make from those base bands. It’s almost standard that many of these features are highly correlated. When features are highly correlated, you are not handing the model any new information. A vegetation index like NDVI is literally a ratio of two bands already sitting in your input stack. You are giving it the same signal twice, dressed up differently. The model has to spread its learning capacity across more dimensions, but the useful signal has not grown. At some point, performance plateaus. Sometimes it actively gets worse. This effect even has a name: the Hughes Phenomenon[2].Look at the numbers from our experiment. Going from 14 raw bands to a full 30-channel engineered stack gained us 0.2% F1. That is not nothing, it is nearly nothing. One tenth of a percent, for double the input complexity! To address this, I trained a model with a specific algorithm [3], and I explore that below.Section 3: SFFS: What it does and why it’s differentPress enter or click to view image in full sizeFigure 2: Simple Illustration of the Sequential Forward Algorithm from Ahmad et al.[3]SFFS, which stands for Sequential Forward Floated Search [4], is a feature selection trick. It helps your ML model find the best feature subset. It does a dynamic, ‘bottom-up’ search, starting empty, then adding and sometimes removing features until it finds the best combo.Think about building a team. You would not evaluate each candidate in isolation, you would ask whether they add something the people already hired do not cover. A brilliant generalist might be useless if you already have three of them. SFFS works the same way. It does not exactly ask “is this feature useful?” like a simple selection algorithm, it asks “is this feature useful given what we have already selected?”That second question is what most feature selection methods unfortunately miss. The standard approach, where you drop one feature and see what happens, tests features in isolation and completely ignores interaction effects which is extremely important in standard machine learning. SFFS too builds the subset iteratively, but crucially it also includes a backward step: after adding a new feature, it checks whether any previously selected feature has now become redundant. If it has, it gets cut. The result is a compact set of genuinely complementary features, not a collection of individually decent ones.This is a simple implementation of the algorithm below:# Simplified SFFS Logicselected_bands = []current_best_f1 = 0.0while len(selected_bands) # 1. FORWARD STEP: Find the single best band to add right nowbest_new_band, new_f1 = evaluate_addition(candidate_pool,selected_bands)selected_bands.append(best_new_band)current_best_f1 = new_f1# 2. BACKWARD STEP: Check if adding this made older bands redundantfor band in selected_bands[:-1]:f1_without_band = evaluate_removal(band, selected_bands)# If the F1 score stays the same (or improves) without it, cut it.if f1_without_band >= current_best_f1:selected_bands.remove(band)current_best_f1 = f1_without_bandSection 4: General ImplementationAs simple as I made it sound, implementation is almost never straightforward.The dataset we used for the landslide detection had a huge class imbalance, which is a common challenge in segmentation. We had 3,799 patches, but only about 2.5% of pixels are actually landslides. That’s not a typo. The model was staring at mostly background, with tiny slivers of what it actually needs to find and work with. Standard segmentation models struggle badly with this kind of imbalance.We settled on a U-Net++ model with a ResNet-50 backbone because it performed the best out of the three architectures we benchmarked. To deal with the imbalance problem and ensure fair comparison across our feature sets, we used a consistent three-part training strategy:Loss Function: We skipped the standard focal loss that some people use and combined a class-weighted Binary Cross-Entropy (BCE) with Dice loss. This gave us stable training while still making sure the segmented shape was accurate.Sampling: We used class-balanced sampling so the model would actually see enough landslide tiles. We also mixed in hard-negative mining sometimes. This forces the model to work harder and learn to separate landslides from tricky background areas that look a lot alike.Threshold Optimization: Since the data is so unbalanced, just setting the decision threshold to 0.5 usually isn’t the best. We ran a validation sweep from 0.3 to 0.8 to find the threshold that gave us the maximum F1 score.To make sure the SFFS process was stable and computationally feasible (especially since each search round involves training a new subset) we used a two-phase evaluation strategy on our PyTorch framework:Pre-training: We first trained the full 30-channel setup until it converged. This gave our ResNet-50 encoder a solid start with robust features.Iterative Selection: During the SFFS search, we froze that pre-trained encoder. We only trained the decoder (and a small adapter layer) for 20 epochs per subset. That way, any difference in performance was only because of the input bands. All of this ran on an NVIDIA T4 GPU in Google Colab.On top of that, before running SFFS, we needed a candidate pool. We took the 14 raw Sentinel-2 from earlier and ALOS PALSAR bands and added 16 engineered channels such as vegetation indices, moisture indices, structural features like edge detectors and image gradients. The full list is below.Multispectral data from Sentinel-2: B1, B2, B3, B4, B5, B6, B7, B8, B9, B10, B11, B12.Slope data from ALOS PALSAR: B13.Digital elevation model (DEM) from ALOS PALSAR: B14.Engineered channels from Normalised B2, B3, B4 (B15–17), NDVI (B18), NDMI (B19), NBR (B20), Grayscale composite (B21), Gaussian and Median filters (B22–23), Sobel gradients (B24–25), Canny edge detector (B26), SAVI (B27), EVI (B28), NDWI (B29), MNDWI (B30). All these engineered bands were borrowed from the esteemed work of Dr Montero.Section 5: The Results: What the Algorithm Kept (and Why)How many bands were selected? Just 8, out of 30, without sacrificing any accuracy whatsoever.Table 1: Comparative ResultsWhich ones? B3 Green, B4 Red, B5 RE1, B8 NIR, B11 SWIR1, B13 Slope, B14 DEM andfinally, B22 Gray.Figure 3: Selected Bands in Green, Redundant Bands in Yellow, and Removed bands in Red, image from Ahmad et al.[3]Notice something funny? None of the engineered indices except Gray actually made it to thefinal subset. Not even all of the base 14 bands made it to the final subset, which merely consistsof 8 bands, but gives you the same level of performance as subsets varying from sizes 14 to 30.Figure 4: Permutation Feature Importance Chart from Ahmad et al.[3]B4 (Red) was the dominant contributor by far. This makes immediate physical sense: when a landslide occurs, it strips vegetation and exposes bare soil. That exposure spikes reflectance in the red portion of the spectrum. The model learned to look for that signal above everything else. Slope came in second, which again is exactly what you’d expect: gravity dictates where failures happen, and steep terrain is where landslides live.The remaining selections: Green, Red Edge, NIR, SWIR1, and DEM. Each contributed complementary pieces. Moisture information, vegetation disturbance at different wavelengths, broader terrain context. Nothing redundant, nothing overlapping. Every feature is pulling in a different direction. Then there’s Gray. The grayscale composite is literally just an average of the three visible bands. It shouldn’t, in theory, add anything that Red and Green don’t already cover. And yet it survived every backward elimination step. My best hypothesis is that collapsing three correlated channels into one cleaner brightness signal is actually more useful to the model than maintaining all three separately. But honestly? We’re not entirely certain. Sometimes the algorithm sees something you don’t.Section 6: What does it mean for us?Dropping from 30 channels to 8 is not just a theoretical victory. It fundamentally changes the engineering reality of deploying these models.By shrinking the input tensor depth by nearly 75%, we drastically reduce the memory footprint. During training, this meant our GPU VRAM utilization dropped by roughly 40%, allowing us to increase batch sizes and cut training time per epoch from 10 minutes down to 6 minutes on alocal A100. In production, this matters even more. When you deploy a model, you often operate in resource-constrained environments, running models on field laptops or edge devices, not on university GPU clusters. A lightweight model that requires less data to be downloaded, processed, and passed through memory is vastly superior, especially when it delivers amathematically identical F1 score.More importantly, when the model is wrong, you can actually interrogate why. With 30 channels of mixed inputs, tracing a bad prediction back to its source is nearly impossible. With 8 physically meaningful bands, you can. Red spiked but slope was low, maybe it’s a building site, not a landslide. That kind of reasoning matters when decisions affect people. There’s also a broader point for the field. If principled selection can match or beat brute-force feature stacking on this benchmark, the same logic could likely apply elsewhere in machine learning. Medical imaging, time-series analysis, financial modelling — all face the same temptation to add more features and hope the model figures it out. Maybe it doesn’t have to.What does any of this mean beyond one benchmark?The honest answer is: we don’t fully know yet. This experiment was run across four geographically distinct regions, but always evaluated within those regions, not across them. The model was trained on the first spatial quarter of each study area and tested on the remaining three quarters, so it never saw a truly foreign landscape. A different model might select a different subset entirely. If it does, that tells you the selection reflects the architecture’s behaviour more than the underlying physics. If it selects the same 8, that’s a much more interesting result.What we can say with confidence: the field’s default assumption — add more features, let the model figure it out — didn’t hold here. Eight channels beat thirty. Principled selection beat brute force. And a model you can actually explain beats one you can’t. That feels like enough to question the assumption. The rest is future work.Sources[1] Z. Zhou, M. M. R. Siddiquee, N. Tajbakhsh, and J. Liang, “UNet++: A Nested U-NetArchitecture for Medical Image Segmentation.,” Deep Learn Med Image Anal MultimodalLearn Clin Decis Support (2018), vol. 11045, pp. 3–11, Sep. 2018, doi:10.1007/978–3–030–00889–5_1.[2] G. Hughes, “On the mean accuracy of statistical pattern recognizers,” IEEE Trans.Inform. Theory, vol. 14, no. 1, pp. 55–63, Jan. 1968, doi: 10.1109/TIT.1968.1054102.[3] A. Ahmad, O. Karakus, and P. L. Rosin, “Sequential Feature Selection for EfficientLandslide Segmentation from Multi-Spectral Data,” arXiv, 2026, doi:10.48550/arxiv.2605.09746.[4] P. Pudil, J. Novovičová, and J. Kittler, “Floating search methods in feature selection,”Pattern Recognit. Lett., vol. 15, no. 11, pp. 1119–1125, Nov. 1994, doi:10.1016/0167–8655(94)90127–9.[5] O. Ghorbanzadeh, Y. Xu, P. Ghamisi, M. Kopp, and D. Kreil, “Landslide4sense: referencebenchmark data and deep learning models for landslide detection,” IEEE Trans. Geosci.Remote Sensing, vol. 60, pp. 1–17, 2022, doi: 10.1109/TGRS.2022.3215209.[6] D. Montero, C. Aybar, M. D. Mahecha, F. Martinuzzi, M. Söchting, and S. Wieneke, “Astandardized catalogue of spectral indices to advance the use of remote sensing in Earthsystem research.,” Sci. Data, vol. 10, no. 1, p. 197, Apr. 2023, doi:10.1038/s41597–023–02096–0.The Feature Selection Trap: Why ‘More Data’ Can Actively Hurt Your Machine Learning Model was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.